Can't I get all account of the login users

52 views
Skip to first unread message

윤성원

unread,
Aug 26, 2019, 2:06:47 AM8/26/19
to AdWords API and Google Ads API Forum
Hi
My developer token has been approved by adwords team few days ago,
But I can't get all accounts of the users.
I got the auth associated with this MCC account(867-685-6055). 
And I logged in adcircle0710@gm*il.com who has the manager authorization about 867-685-6055, but I got the only one account like bellow.
There's no 'links:protected' under the username:Adcircle, also only that account. I want to get all accounts under 867-685-6055 account.

Google\AdsApi\AdWords\v201809\mcm\ManagedCustomerPage Object
(
    [entries:protected] => Array
        (
            [0] => Google\AdsApi\AdWords\v201809\mcm\ManagedCustomer Object
                (
                    [name:protected] => Adcircle
                    [customerId:protected] => 7344067646
                    [canManageClients:protected] => 
                    [currencyCode:protected] => 
                    [dateTimeZone:protected] => 
                    [testAccount:protected] => 
                    [accountLabels:protected] => 
                    [excludeHiddenAccounts:protected] => 
                )

        )

    [links:protected] => 
    [totalNumEntries:protected] => 1
    [PageType:protected] => ManagedCustomerPage
    [parameterMap:Google\AdsApi\AdWords\v201809\cm\Page:private] => Array
        (
            [Page.Type] => PageType
        )

)

I used PHP AdWords library. 
Why can't I get all accounts even though I have administrative rights? And what can I do for get the information?
Thanks.


Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Aug 26, 2019, 1:19:49 PM8/26/19
to chai.a...@gmail.com, adwor...@googlegroups.com
Hello,

It is possible that you are including the ID: 7344067646 in your properties file and making the API call. Could you please make sure that you have the MCC account ID in the request header to pull all the accounts under the hierarchy? If you're encountering any issues, could you please enable logging and share the API SOAP logs to take a closer look? You can share the details privately via Reply privately to author option. 

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UHEdh4:ref

윤성원

unread,
Aug 26, 2019, 9:17:07 PM8/26/19
to AdWords API and Google Ads API Forum
Thanks! 
I can get all accounts under ID:8676856055
by using this code: ->withClientCustomerId($mccId) 

But I had to ask user for MCC ID:8676856055.
How can I display a list of my MCC accounts that are accessible for users to choose instead of input as shown in the photo below?

Thanks all.






2019년 8월 27일 화요일 오전 2시 19분 49초 UTC+9, adsapiforumadvisor 님의 말:
캡처.PNG
Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Aug 27, 2019, 1:47:22 PM8/27/19
to chai.a...@gmail.com, adwor...@googlegroups.com
Hello,

You may use the CustomerService.getCustomers() which will return details of all the customers directly accessible by the user authenticating the call. Could you please give this a try and let me know if you encounter any issues? 
Reply all
Reply to author
Forward
0 new messages