Hi,

You are in the right direction. To get all the accounts under an MCC 
hierarchy, you can use the ManagedCustomerService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201710/ManagedCustomerService#get>
 as 
shown in code sample GetAccountHierarchy 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201710/AccountManagement/GetAccountHierarchy.php>.
 
To perform a CampaingService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201710/CampaignService#get>
 on 
each of the client accounts under that MCC, you can build the session with 
that clientCustomerId on the runtime as in ParallelReportDownload 
<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201710/Reporting/ParallelReportDownload.php#L91>
 sample. 
The sample is for downloading an ad-hoc report from all the client accounts 
under one MCC. You will need to modify the code to perform 
CampaingService.get() instead. By doing this, you will not have to change 
the clientCustomerId in the adsapi_php.ini file while making the get 
campaigns API call. 

Thanks,
Sreelakshmi, 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/e2ce6392-410f-48c6-a162-e278a3ef2499%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to r... ag . apitesthesabi
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... ag . apitesthesabi

Reply via email to