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/65837770-f1cc-43d1-861a-27c7fc22c004%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