Skip to content

Commit

Permalink
Google ads added fields and reports (#9310)
Browse files Browse the repository at this point in the history
* combine all

working locally

missing fields in click view and keyqord_view

add date to campaigns

add fields to click_view

test

* configured_catalog campaigns

* rem keywordview

* conflicts

* string type

* remove network type

* change ad group id to integer

Co-authored-by: Konrad <[email protected]>
  • Loading branch information
schlattk and Konrad authored Apr 19, 2022
1 parent 1cd3a6b commit f8011f7
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"ad_group_ad.ad.legacy_responsive_display_ad.accent_color": {
"type": ["null", "string"]
},
"ad_group.id": {
"type": ["null", "integer"]
},
"customer.currency_code": {
"type": ["null", "string"]
},
Expand Down Expand Up @@ -171,6 +174,9 @@
"segments.day_of_week": {
"type": ["null", "string"]
},
"segments.keyword.ad_group_criterion": {
"type": ["null", "string"]
},
"ad_group_ad.ad.expanded_text_ad.description": {
"type": ["null", "string"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,21 @@
"campaign.video_brand_safety_suitability": {
"type": ["null", "string"]
},
"metrics.clicks": {
"type": ["null", "integer"]
},
"metrics.cost_micros": {
"type": ["null", "integer"]
},
"metrics.impressions": {
"type": ["null", "number"]
},
"metrics.video_views": {
"type": ["null", "number"]
},
"metrics.video_quartile_p100_rate": {
"type": ["null", "number"]
},
"segments.date": {
"type": ["null", "string"],
"format": "date"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,24 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"ad_group.name": {
"type": ["null", "string"]
},
"click_view.gclid": {
"type": ["null", "string"]
},
"click_view.ad_group_ad": {
"type": ["null", "string"]
},
"click_view.keyword": {
"type": ["null", "string"]
},
"click_view.keyword_info.match_type": {
"type": ["null", "string"]
},
"click_view.keyword_info.text": {
"type": ["null", "string"]
},
"campaign.id": {
"type": ["null", "integer"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@
"metrics.ctr": {
"type": ["null", "number"]
},
"segments.date": {
"type": ["null", "string"],
"format": "date"
},
"segments.day_of_week": {
"type": ["null", "string"]
},
Expand Down Expand Up @@ -210,6 +206,9 @@
"ad_group_criterion.tracking_url_template": {
"type": ["null", "string"]
},
"ad_group_criterion.keyword.match_type": {
"type": ["null", "string"]
},
"ad_group_criterion.url_custom_parameters": {
"type": ["null", "array"],
"items": {
Expand Down Expand Up @@ -248,6 +247,10 @@
},
"segments.year": {
"type": ["null", "integer"]
},
"segments.date": {
"type": ["null", "string"],
"format": "date"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@
"segments.date": {
"type": ["null", "string"],
"format": "date"
},
"campaign.bidding_strategy_type": {
"type": ["null", "string"]
},
"metrics.clicks": {
"type": ["null", "integer"]
},
"metrics.cost_micros": {
"type": ["null", "integer"]
},
"metrics.impressions": {
"type": ["null", "integer"]
},
"ad_group_criterion.criterion_id": {
"type": ["null", "integer"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]:
CampaignLabels(google_api),
ClickView(**incremental_stream_config),
]

custom_query_streams = [
CustomQuery(custom_query_config=single_query_config, **incremental_stream_config)
for single_query_config in config.get("custom_queries", [])
Expand Down

0 comments on commit f8011f7

Please sign in to comment.