PHP web flow

22 views
Skip to first unread message

Albert Paolo Rogelio

unread,
Sep 19, 2018, 7:12:59 AM9/19/18
to AdWords API and Google Ads API Forum
Hi All,


Can someone help me to get all tied up Manager accounts in a gmail account. Im using web flow in authentication request. I want to achieve a login like adwords website itself like if i login my gmail it will show all manager accounts under my gmail account. it is possible right? please share your code if you have a flow like that. replies will be much appreciated. thanks!



Milind Sankeshware (AdWords API Team)

unread,
Sep 19, 2018, 4:01:00 PM9/19/18
to AdWords API and Google Ads API Forum
Hi Albert,

To clarify, you would like to get the all manger accounts for your gmail address using AdWords API? If yes, you can use CustomerService.getcustomers() API call without specifying the client customer Id in the request header. This will return details of all the customers directly accessible by the user authenticating the call. In your cases, it will return all customer which are accessible to your gmail address. Please refer to highlighted lines of code in this sample. The samples in other languages can be found here. If your question was different, could you please elaborate so that I can assist you further?

Thanks,
Milind, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages