Hi Shwetha,
On Friday, 29 July 2016 22:48:36 UTC+1, Shwetha Vastrad (AdWords API Team) wrote:
-- The documentation says something different from what you mentioned. It says in this page: https://developers.google.com/adwords/api/docs/guides/accounts-overview#customerservice
In v201605 and earlier, if no clientCustomerId is specified, then the response will contain a single entry for the authenticated account. You must specify a clientCustomerId when authenticating as a manager account to obtain info for a specific account.
Starting with v201607, if no clientCustomerId is specified, then the response will contain multiple entries if more than one account is directly accessible by the authenticated account. If you only want results for a single account, you must specify the clientCustomerId in your request.
So my question is, if we don't specify a customerId (which we can't if we just authenticated a new user and we don't know his Id), then we will get back multiple accounts. How do we know which account is the root account?
Oliver
On Friday, 29 July 2016 22:48:36 UTC+1, Shwetha Vastrad (AdWords API Team) wrote:
Hi Oliver,If you do not specify a clientCustomerId in the request header, the getCustomers method will return the account details of the authenticated customer. If the canManageClients field is true in the returned Customer object, then the returned account is a Manager account.I hope this helps.Regards,Shwetha, 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/a9d4f79f-aec2-457a-bc29-adab0b8b97e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment