Hi,
When we used CustomerService.getCustomers() a client reported that he got 
"No Adwords Account Found" or something like that so we changed to 
ManagedCustomerService.get() And then only one of my accounts was available.
What could be the problem ?

On Monday, July 22, 2019 at 12:56:17 PM UTC+3, adsapiforumadvisor wrote:
>
> Hi Sibtain,
>
> If you are trying to fetch all of the accounts associated to your email 
> address, you may use CustomerService.getCustomers() 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CustomerService#getcustomers>
>  without 
> specifying a clientCustomerId. This should return up to 5 accounts which 
> your OAuth2 credentials (generated using your email) has direct access. You 
> may also check this blog post 
> <https://ads-developers.googleblog.com/2016/10/access-multiple-adwords-accounts-with.html>
>  for 
> your reference.
>
> With regard to the difference between the ManagedCustomerService and 
> CustomerService, ManagedCustomerService.get() 
> <https://developers.google.com/adwords/api/docs/reference/v201809/ManagedCustomerService#get>
>  should *return all sub accounts *with specifying an MCC as the 
> clientCustomerId in the request header (You may refer to this sample 
> <https://developers.google.com/adwords/api/docs/samples/java/account-management#get-the-account-hierarchy-under-the-current-account>).
>  
> CustomerService will return only the customer information based on the 
> clientCustomerId, or the accounts associated to the OAuth2 credentials.
>
> Please let me know if you have further concern.
>
> Regards,
> Hiroyuki
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UEFyCB:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/92521c08-c3bb-46ce-bcd8-32ac21e1945b%40googlegroups.com.

Reply via email to