Hi, 

You can follow this guide 
<https://developers.google.com/adwords/api/docs/guides/authentication#webapp> 
to 
set up authentication for web application flow. If you would like to get 
the list of accounts that are directly accessible by a set of OAuth2 
credentials, you need to use CustomerService.getCustomers() 
<https://developers.google.com/adwords/api/docs/reference/v201705/CustomerService#getcustomers>
 method 
without setting the clientCustomerId header. If you would like to get the 
list of accounts under a manager account, you need to use 
ManagedCustomerService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201705/ManagedCustomerService#get>
 method 
as shown in the GetAccountHierarchy 
<https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201705/accountmanagement/GetAccountHierarchy.java>
 Java 
example. Example code in other languages is provided here 
<https://developers.google.com/adwords/api/docs/clientlibraries>.

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+unsubscr...@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+unsubscr...@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/b1166f0e-b58c-4dfe-a2c9-656ccb9b71aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Request account... Meir Cohen
    • Re: Reques... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to