From 3e2aeb7fdbe054bde7c9047508210e688e87dfdc Mon Sep 17 00:00:00 2001 From: danielpdwalker Date: Tue, 3 Sep 2024 14:03:36 +0100 Subject: [PATCH] Updated some stream primary keys to be set using the streams schema column names, this lets the tap be used with more loaders --- tap_googleads/streams.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tap_googleads/streams.py b/tap_googleads/streams.py index 155ebeb..19451f1 100644 --- a/tap_googleads/streams.py +++ b/tap_googleads/streams.py @@ -68,7 +68,7 @@ def gaql(self): records_jsonpath = "$.results[*]" name = "stream_customer_hierarchy" - primary_keys = ["customer_client__id"] + primary_keys = ["customerClient__id"] replication_key = None parent_stream_type = AccessibleCustomers schema = th.PropertiesList( @@ -188,14 +188,14 @@ def gaql(self): records_jsonpath = "$.results[*]" name = "stream_click_view_report" primary_keys = [ - "click_view__gclid", - "click_view__keyword", - "click_view__keyword_info__match_type", + "clickView__gclid", + "clickView__keyword", + "clickView__keywordInfo__matchType", "customer__id", - "ad_group__id", + "adGroup__id", "campaign__id", "segments__device", - "segments__ad_network_type", + "segments__adNetworkType", "segments__slot", "date" ]