Hi Tom,

The error CUSTOMER_SERVING_TYPE_REPORT_MISMATCH 
<https://developers.google.com/adwords/api/docs/common-errors#ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH>
 is 
encountered because you are using a manager account to run your reports. 
Reports can only be downloaded on a client level.

The Account Performance Report 
<https://developers.google.com/adwords/api/docs/appendix/reports/account-performance-report>
 retrieves 
metrics on an account level. With this said, it is expected behavior that 
it would return a single row only not unless you included segments for your 
account. If you wish to get the report for other client accounts, you have 
to run the report against the individual client account. If you wish to 
download reports in the manager account level and get the report for it's 
client accounts, you may refer to the Parallel Report Download sample code 
<https://developers.google.com/adwords/api/docs/samples/java/reporting#download-a-report-for-multiple-accounts>
 (also 
available in different languages) on how to do so.

Regards,
Dannison
AdWords API Team

On Thursday, November 22, 2018 at 8:40:56 PM UTC+8, 
tom.wagst...@raisingit.com wrote:
>
> Hi there,
>
> I'm trying to pull an account performance report for all the accounts we 
> manage. I'm querying the API using the Python library, using this type of 
> code:
>
> def getMyAccounts(client):
>     # Initialize appropriate service.
>     report_downloader = client.GetReportDownloader(version="v201809")
>
>     # Create report query.
>     report_query = (adwords.ReportQueryBuilder()
>                   .Select("ExternalCustomerId", "Impressions")
>                   .From("ACCOUNT_PERFORMANCE_REPORT")
>                   .During("YESTERDAY")
>                   .Build())
>
> When I try to call this function, passing it our manager account for *client 
> *triggers this error:
>
> AdWordsReportBadRequestError: Type: 
> ReportDefinitionError.CUSTOMER_SERVING_TYPE_REPORT_MISMATCH
>
> which apparently is because I'm using a manager account rather than an 
> individual client account. When I pass an individual client account I just 
> get a single row for that account.
>
> This seems like crazy behaviour: surely the Account Performance Report is, 
> as described in the documentation, for "statistics aggregated by default 
> at the account level, one row per account"
> So how do I get more than one account out of this report?
>
> Cheers,
> Tom
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c5515f5-45ac-4321-8ba3-f8bfeb6cb8ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... tom . wagstaff
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... tom . wagstaff
        • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to