Hi Martin,
For the benefit of other users who may see this post, I will just summarize
your issue and the recommendations that I provided:
- Issue: You were not able to access your AdWords account with your
client ID, client secret and developer token to manage campaigns.
- Recommendation:
- I suggested that you use a clientCustomerId in accessing an AdWords
account. To get the list of clientCustomerIds associated to your OAuth2
credential, I recommended to run the CustomerService.getCustomers()
<https://developers.google.com/adwords/api/docs/reference/v201710/CustomerService#getCustomers>
without specifying the clientCustomerId in the property file.
- The next step would be to specify the MCC Id (returned in the first
step) in the property file and run the Get Account Hierarchy example
<https://developers.google.com/adwords/api/docs/samples/python/account-management#get-the-account-hierarchy-under-the-current-account>.
This way, all the client accounts under the manager account will be
retrieved.
- You can then specify again the clientCustomerId in the property
file as client account, and not a manager account, in getting the
campaigns
via CampaignService.get()
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignService#get>
as
campaigns actually belong to a client account and not to a manager
account.
Thanks,
Vincent
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/2db27d69-6c50-4e4e-8dde-22af355f5826%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.