How can I get the ClientCustomerId list of user?

68 views
Skip to first unread message

chai.a...@gmail.com

unread,
Feb 21, 2019, 10:03:12 PM2/21/19
to AdWords API and Google Ads API Forum
I'm using php library of google adwords api 
and I have completed setting up the Web application for authenticate as any user who grants permission to my app to access their Google Ads account data.

But I don't know how can I get the user's client customer id list who grant permission to my app.
Like this capture.

capture.png

Which class of API I have to use to get this information?


Thanks.


googleadsapi...@google.com

unread,
Feb 22, 2019, 1:53:08 AM2/22/19
to AdWords API and Google Ads API Forum
Hi,

You could use the ManageCustomerService to retrieve the list of accounts under your MCC account. You may refer to this complete sample code in PHP on how to retrieve your account hierarchy. Make sure to set your MCC ID as the clientCustomerId in your request header.

Thanks and regards,
Luis
AdWords 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/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@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/44f3742c-27e0-4a7d-89d5-86e61a88a375%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

chai.a...@gmail.com

unread,
Feb 24, 2019, 9:27:25 PM2/24/19
to AdWords API and Google Ads API Forum
The account I want to get a list of accounts are not under my MCC account.
They are independent users and do not manage from my MCC account.
The account can be another MCC or a sub-MCC.

I have to get the users NOT under my MCC account list .
How can I get this?

Thanks.



2019년 2월 22일 금요일 오후 3시 53분 8초 UTC+9, googleadsapi-forumadvisor 님의 말:

googleadsapi...@google.com

unread,
Feb 25, 2019, 3:51:40 PM2/25/19
to AdWords API and Google Ads API Forum
Hi,

Are you trying to get the data from accounts where you are a user? If so, you will need to be authenticated to pull up account details from a MCC. Please refer to this section of the guide for better clarity and let us know if you have any further questions.

Regards,
Dhanya, AdWords 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages