Hi Team,

It is working now and thanks for your timely response. 

Could you please help us to get list of accounts/pages from an MCC account. 
Please find the following flow for your reference,

   1. Once we can pull the list of accounts from the connected user
   2. Need to get detailed information/ list of all ad account / MCC 
   account from the selected account(From step 1)
   
We are using Customer services but we are getting all the list of accounts 
instead of the selected accounts. 

$adWordsServices = new AdWordsServices(); 
$CustomerService = $adWordsServices->get($session, CustomerService::class); 
$customers = $CustomerService->getCustomers([$customerId]);

Could you please let us know how to pull the required information? 

TIA

On Wednesday, December 4, 2019 at 12:42:22 AM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hi Ravi, 
>
> You will be able to use the CustomerService.getCustomers() 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CustomerService#getcustomers>
>  
> which returns details of all the customers directly accessible by the user 
> authenticating the call. If you're looking to get the complete account 
> hierarchy, you may use the GetAccountHierarchy 
> <https://developers.google.com/adwords/api/docs/samples/php/account-management#get-the-account-hierarchy-under-the-current-account>
>  
> code sample by adding the manager account Id in the request header to 
> return all the accounts as in the Google Ads dashboard. Could you please 
> give this a try and let me know if you have any questions?
>
> Thanks,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UODV5I: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 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ae56885f-0c2c-486c-bf66-83602539121f%40googlegroups.com.

Reply via email to