Tuesday, 5 April 2016

Re: use Python to download reports from multiple accounts

Hello, 

The CLIENT_CUSTOMER_ID field should be AdWords account clientCustomerID, not MCC customerID. 

This code is an example how to authenticate AdWords client without yaml file. You don't have to run this code in order to run other examples. 

You can only specify one clientCustomerID each time you make an API request. To query for different clientCustomerID, you will have to make separate requests. This applies to reports, too. 

Most of examples create adWordsClient using yaml file:


adwords_client = adwords.AdWordsClient.LoadFromStorage()


The example you have used creates client without yaml file:

adwords_client = adwords.AdWordsClient(
developer_token, oauth2_client, user_agent, client_customer_id)

You can modify it so that you can run multiple requests for different adWords accounts in the same program. 

Thanks,
Yin, AdWords API Team. 

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords 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+unsubscribe@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@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/18d74830-72be-49d8-b92d-201db15a6274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment