AWQL Query with multiple account/Clientcustomerid

184 views
Skip to first unread message

ritesh1...@gmail.com

unread,
Jan 23, 2018, 5:35:04 AM1/23/18
to AdWords API Forum
Hi

Currently i am using AWQL query API to fetch the performance reports. I have multiple account/Clientcustomerid.
I want fetch records for all the columns across multiple Clientcustomerid.

Please, let me know how this is possible.

Currently i am just adding only one header as Clientcustomerid

Regards
Ritesh

Milind Sankeshware (AdWords API Team)

unread,
Jan 23, 2018, 3:19:46 PM1/23/18
to AdWords API Forum
Hi Ritesh,

Could you please confirm that you are trying to fetch the data for all accounts directly under a MCC account? If this is the case, then please check this sample java code to download the reports. If not, then you could pass the client customer id during the run-time instead of defining it in the properties file. To understand how to do that, please check this line in the above sample. Please note that, in the second case, the user authenticating the API call should be same for all the accounts.

Thanks,
Milind, AdWords API Team.

ritesh1...@gmail.com

unread,
Jan 24, 2018, 11:04:27 AM1/24/18
to AdWords API Forum
Hi

I am not using any Client Library Provided by Google.
I am using straight AWQL URI and headers in POSTMAN and it works well with one Clientcustomerid.
How can I do same for multiple accounts.

I tried comma separated value but it does not work.

Regards
Ritesh

Milind Sankeshware (AdWords API Team)

unread,
Jan 24, 2018, 4:04:46 PM1/24/18
to AdWords API Forum
Hi Ritesh,

A report can only be run against one client customer id at a time. Unfortunately, passing multiple accounts in header for one request will not work.

ritesh1...@gmail.com

unread,
Jan 25, 2018, 1:05:11 AM1/25/18
to AdWords API Forum
Thanks for the update.
Reply all
Reply to author
Forward
0 new messages