Hi Yin Niu,
On Tuesday, April 5, 2016 at 7:47:50 PM UTC+3, Yin Niu wrote:
-- Thank you for your answer, it is very helpful.
But one thing I still fail to understand.
In the yaml file, I use the clientCustomerID, not MCC customerID (just as you suggest). Still my application did not work. I always got "permission denied" errors.
I solved the problem by running the example code, but there I used the MCC customerID (NOT the clientCustomerID). When I run it, I received the message "You are logged in as customer: 123456789".
Only after I run this example code, my application worked. I have'nt seen any "permission denied" errors after that.
Can you explain this scenario?
Thanks,
Ronen
On Tuesday, April 5, 2016 at 7:47:50 PM UTC+3, Yin Niu wrote:
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/83475a75-15db-4181-8f54-00dcf208d9cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment