How to download keyword performance report for all accounts using MCC credentials

394 views
Skip to first unread message

sumit gupta

unread,
Jul 2, 2012, 5:18:45 AM7/2/12
to adwor...@googlegroups.com
Hi ,

I am newbie with adwords API. I am trying to pull out keyword performance report for all my adwords account. I am able to do it individually using account credentials.

But I have around 10 accounts in my MCC and want to pull keyword performance report for all of them together. Is there a possible way ?

I used the example code provided in python client library.

Please suggest a way using which I can perform the above mentioned task.

Thanks a lot ,
Sumit

Danial Klimkin

unread,
Jul 3, 2012, 11:07:04 PM7/3/12
to adwor...@googlegroups.com
Hello Sumit,


This is possible with the same credentials but multiple requests. You need to make one request per client account specifying the clientCustomerId for it. You can also do it in parallel to save time.

We do not have example for Python but here is one for Ruby:

  http://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201109/reporting/parallel_report_download.rb


-Danial, AdWords API Team.

david...@mediacom.com

unread,
Jul 4, 2012, 6:53:18 AM7/4/12
to adwor...@googlegroups.com
Hi Sumit

We do this for several clients.

The basic process is:

  1. Call the ServicedAccountService to get the account and sub-accounts.
  2. For each account without any sub-accounts, run the report (we download xml)
  3. We then use an iterator to present the results as a single result set to the consuming services.
This is the essence of it. Our implementation differs only in that we call the ServicedAccountService once a day and store the result in a database. We then do a look up against that rather than calling the ServicedAccountService for every report request.

David
Reply all
Reply to author
Forward
0 new messages