Skip to content

Commit 5a63795

Browse files
authored
Merge pull request #1 from MarletteFunding/feature/add_labels
Add labels to campaign performance, labels as separate report
2 parents a1d3730 + eca843f commit 5a63795

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

tap_google_ads/discover.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"gender_view",
3333
"geographic_view",
3434
"keyword_view",
35+
"label",
3536
"landing_page_view",
3637
"managed_placement_view",
3738
"search_term_view",

tap_google_ads/report_definitions.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
BIDDING_STRATEGY_FIELDS = []
66
ACCESSIBLE_BIDDING_STRATEGY_FIELDS = []
77
CAMPAIGN_BUDGET_FIELDS = []
8+
LABEL_FIELDS = []
89
ACCOUNT_PERFORMANCE_REPORT_FIELDS = [
910
"customer.auto_tagging_enabled",
1011
"customer.currency_code",
@@ -626,6 +627,7 @@
626627
"campaign.experiment_type",
627628
"campaign.final_url_suffix",
628629
"campaign.id",
630+
"campaign.labels",
629631
"campaign.manual_cpc.enhanced_cpc_enabled",
630632
"campaign.maximize_conversion_value.target_roas",
631633
"campaign.name",

tap_google_ads/streams.py

+6
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,12 @@ def initialize_core_streams(resource_schema):
582582
resource_schema,
583583
["id"],
584584
),
585+
"labels": BaseStream(
586+
report_definitions.LABEL_FIELDS,
587+
["label"],
588+
resource_schema,
589+
["id"],
590+
),
585591
}
586592

587593

0 commit comments

Comments
 (0)