-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google ads added fields and reports #9310
Changes from 1 commit
0ee1ad1
fe5e4ba
5a0808f
eeabecf
75bed83
5494b20
3f5c981
ea95e02
f5ce674
9702a94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,12 @@ | |
ClickView, | ||
DisplayKeywordPerformanceReport, | ||
DisplayTopicsPerformanceReport, | ||
<<<<<<< HEAD | ||
KeywordView, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @schlattk stream |
||
======= | ||
GeographicReport, | ||
KeywordReport, | ||
>>>>>>> master | ||
ShoppingPerformanceReport, | ||
UserLocationReport, | ||
) | ||
|
@@ -107,5 +112,31 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: | |
Accounts(api=google_api), | ||
Campaigns(**incremental_stream_config), | ||
augan-rymkhan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
ClickView(**incremental_stream_config), | ||
<<<<<<< HEAD | ||
KeywordView(**incremental_stream_config) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need in |
||
] + custom_query_streams | ||
======= | ||
] | ||
|
||
custom_query_streams = [ | ||
CustomQuery(custom_query_config=single_query_config, **incremental_stream_config) | ||
for single_query_config in config.get("custom_queries", []) | ||
] | ||
streams.extend(custom_query_streams) | ||
|
||
# Metrics streams cannot be requested for a manager account. | ||
if not self.is_manager_account(account_info): | ||
streams.extend( | ||
[ | ||
UserLocationReport(**incremental_stream_config), | ||
AccountPerformanceReport(**incremental_stream_config), | ||
DisplayTopicsPerformanceReport(**incremental_stream_config), | ||
DisplayKeywordPerformanceReport(**incremental_stream_config), | ||
ShoppingPerformanceReport(**incremental_stream_config), | ||
AdGroupAdReport(**incremental_stream_config), | ||
GeographicReport(**incremental_stream_config), | ||
KeywordReport(**incremental_stream_config), | ||
] | ||
) | ||
return streams | ||
>>>>>>> master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schlattk Error happens because this field was added.
message: "Cannot select the following segments because at least one unsupported metric is found in SELECT or WHERE clause: \'segments.ad_network_type\'(unsupported metrics: \'historical_quality_score\')."\n}\nrequest_id: "hBx3G90_bSZ-rVpnBMQlxQ"\n, 'hBx3G90_bSZ-rVpnBMQlxQ')"}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works when
read
command is run without this field.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@augan-rymkhan ok but it is a supported field according to documentation and also it has been running live for a long time without any errors. What do you suggest is the solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schlattk It seems we can not query
metrics.historical_quality_score
andsegments.ad_network_type
together inkeyword_report
stream.In docs:
A segment in the SELECT clause is incompatible with a metric in the SELECT or WHERE clause.
For more you can read PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes @augan-rymkhan that appears to be the problem. Ok, I removed the field I think we can most probably do without it in this report.