Report for several accounts at same time.

40 views
Skip to first unread message

Vlad Iureniev

unread,
Apr 18, 2023, 3:30:39 PM4/18/23
to Google Ads API and AdWords API Forum
We are Digital Marketing company and have several scripts to manage our client's account.
Is API provide ability to get the report for several accounts in one request?
Thank you.
Vlad.  

Google Ads API Forum Advisor

unread,
Apr 19, 2023, 4:55:30 AM4/19/23
to vl...@clxmedia.com, adwor...@googlegroups.com
Hi Vlad,

You have now reached the Google Ads API Team.

Please note that our support channel can provide assistance related to Google Ads API (https://developers.google.com/google-ads/api/docs/start) technical issues only. If you mean for "several accounts" are "several customer Id's",  you may try to retrieve the report for several accounts by Adding several customer.id's to the WHERE clause in the IN operator.

On the other hand, you may check this documentation for more information on Google Ads Query Language Grammar.

documentation: https://developers.google.com/google-ads/api/docs/query/grammar

Best regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2knpEB:ref

Vlad Iureniev

unread,
Apr 27, 2023, 4:12:52 AM4/27/23
to Google Ads API and AdWords API Forum
Thank you for a quick answer but I still can't see a solution 
Maybe I will try to explain better.
Let's imagine we have this structure:
"ManagerAccount1"---CustomerAccount01
                                  |-CustomerAccunt02
                                  |-CustomerAccunt03
So we have a manager account and 3 customer ones
If I do the REST request to   
..../v13/customers/{ManagerAccount1}/googleAds:search  with "SELECT .... FROM campaigns WHERE customer.id in (CustomerAccount01,CustomerAccount01,CustomerAccount03)"
I get the 0 lines as management account doesn't have any campaign

From the another side if I requesting:
..../v13/customers/{ CustomerAccount01  }/googleAds:search  endpoint with "SELECT .... FROM campaigns WHERE customer.id in (CustomerAccount01,CustomerAccount01,CustomerAccount03)"
I get the list of campaigns for  CustomerAccount01 only

So how I can get all campaigns for all customers we manage in one request?
Same regarding the reports. I can get one customer data per request.
Thank you.

Google Ads API Forum Advisor

unread,
Apr 27, 2023, 10:07:31 AM4/27/23
to vl...@clxmedia.com, adwor...@googlegroups.com
Hi Vlad,

Thank you for getting back to us. I hope that you are doing well today.

Moving forward to your concern, i understand what you wanted to happen. You can fetch the campaign report for every account using Parallel Report Download (https://developers.google.com/google-ads/api/samples/parallel-report-download). This Parallel download report is available for client libraries. However, since you are using Rest API, I am afraid that this parallel download is not available using REST.

Furthermore, for us to further investigate, could you please provide us the complete request and response logs with request ID and request header generated on your end? You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com. If you haven't enabled the logging yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link https://developers.google.com/google-ads/api/docs/client-libs?hl=en.

If you used the Google Ads UI, what we can do is to advise you to reach out to the Google Ads Product support team via this link (https://support.google.com/google-ads/gethelp) as they are more equipped regarding UI related issues.

Reference links:  
Kind regards,
Reply all
Reply to author
Forward
0 new messages