V0_7 Google-ads-api PHP library

16 views
Skip to first unread message

cmwa...@gmail.com

unread,
Mar 1, 2019, 2:34:53 PM3/1/19
to AdWords API and Google Ads API Forum
I am not sure to understand the possibilities of the ADS API for account management.
Can you guide me.

Here is the tree under an account (Oauth2 + DeveloperToken + refreshToken = ok - all accounts are test accounts): 

MCC (level 0) -> MCC (level 1) -> Account (level 3)
`
I access the MCC (level 0) by the customerServiceClient service and the listAccesibleCustomer()  and getCustomer() functions gives data, including the CID of the MCC (level 0)

I am accessing MCC2 through a getGoogleAdsServiceClient service query:
$ query = "SELECT"
                 . "customer_client.resource_name,"
                 . "customer_client.level"
             . "FROM customer_client";
$ response = $ googleAdsServiceClient-> search ("CID of MCC (level 0)", $ query, ['pageSize' => 1000]);
The API response contains some data on the MCC (level 2) but no CID or customer data ...

From here is it possible to go further down the tree? to level 3 ?

googleadsapi...@google.com

unread,
Mar 1, 2019, 5:39:13 PM3/1/19
to AdWords API and Google Ads API Forum
Hello,

If the MCC2 has customers underneath it, they will also show in the result with +1 level to the manager account level. Thats is if the MCC2 has level 2 and that manager has client accounts in its hierarchy then there should be records with level 3 in the result. If you still has concerns please share the manager customer Id you are pointing in the API call and the entire result. You could use reply privately to the author option while sharing the information requested. Please remember that all the accounts will be resulted in individual rows even the ones under level 2 MCC.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages