Hi,

Given a Google account, you can retrieve the AdWords accounts directly 
accessible by this account using CustomerService.getCustomers() 
<https://developers.google.com/adwords/api/docs/reference/v201609/CustomerService#getcustomers>
 method. 
To retrieve the CustomerId, you need to follow these steps:

   1. Generate client ID and client secret by following the instructions 
   provided here 
   
<https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret>.
 
   Once you have the OAuth2 credentials, you need to generate the refresh 
   token using any of the client libraries 
   
<https://developers.google.com/adwords/api/docs/guides/authentication#configure_and_use_a_client_library>
   . 
   2. Use CustomerService.getCustomers() 
   
<https://developers.google.com/adwords/api/docs/reference/v201702/CustomerService#getcustomers>
 method 
   without setting the clientCustomerId 
   
<https://developers.google.com/adwords/api/docs/guides/call-structure#request_headers>
 header 
   along with the credentials generated. The response will contain the details 
   of all AdWords accounts associated with the authenticated Google account. 

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 [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/44b9acd3-a5e5-47fa-a8e2-2407371d6ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How get Custome... deveopers gumption
    • Re: How ge... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
    • Re: How ge... deveopers gumption
      • Re: Ho... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to