Customer Client Id

160 views
Skip to first unread message

Mhamad Canaan

unread,
Jan 1, 2016, 11:53:18 AM1/1/16
to AdWords API Forum
Hi everyone,

First of all Happy new year to everybody hope this year would bring joy among us all.
Second I want to ask about the customer client Id when authenticating the user, it brings back code in the _GET parameter, then I should exchange it into refresh_token and till here everything is fine. but when done how can I fetch the customer client Id? the one who authenticated.

Mhamad Canaan

unread,
Jan 2, 2016, 5:30:00 AM1/2/16
to AdWords API Forum
I found the way to access the cusomerClientId of the authenticated customer, through CustomerService. but now I am trying to check if the canManageClients if equal 1 then it is a MCC which means there might be clients managed by him. Which service lets me to fetch the list of the managed clients through a manager account?

Anthony Madrigal

unread,
Jan 4, 2016, 10:03:13 AM1/4/16
to AdWords API Forum
Hi Mhamad,

You can use the ManagedCustomerService in order to get a list of client accounts under an MCC and if they canManageClients. Here is an example on how to use this service with PHP.

Cheers,
Anthony
AdWords API Team

Mhamad Canaan

unread,
Jan 5, 2016, 8:10:55 AM1/5/16
to AdWords API Forum
Hi Anthony,

I tried using this service and it worked very well than you very much indeed. I have done the authentication part for integrating AdWords with our software, now all is left to is integrate adding the campaigns ads etc. with the software. I have seen the making your first request in the API guide, implemented it and it worked (in PHP) but all the rest of the documentation is in java. I know you guys are working on making it available in all languages and I am not complaining about it but I just want to know the easiest way for me to implement the code in PHP in my software. is it to follow the examples in the php library or trying to read the java code and kinda translate it to php?

Thank you for your support,

best regards,

Mohammad Canaan

Anthony Madrigal

unread,
Jan 5, 2016, 4:39:31 PM1/5/16
to AdWords API Forum
Hi Mohammad,

Glad to hear the service worked for you. As far as what you should do to learn how to implement PHP, I recommend both following the PHP examples and trying to see how the Java code works in the examples. From the PHP examples, you should be able to get an understanding on what is needed, and you should be able to fill in any blanks.

Please let me know if you run into any other issues.
Reply all
Reply to author
Forward
0 new messages