Request account permissions

11 views
Skip to first unread message

Meir Cohen

unread,
Jun 25, 2017, 5:25:21 AM6/25/17
to AdWords API Forum
Hi,

I want to build a web application where in the first step I ask users for permissions to manage their AdWords account/campaigns. Where can I find a good tutorial or any other reference for the first steps? 

The specific part that I'm looking for is the action of the "Link Account" button that I have in my application, that opens the list of google accounts that the user owns ("Choose an account" page).

Thanks.

Shwetha Vastrad (AdWords API Team)

unread,
Jun 26, 2017, 12:54:56 PM6/26/17
to AdWords API Forum
Hi, 

You can follow this guide to set up authentication for web application flow. If you would like to get the list of accounts that are directly accessible by a set of OAuth2 credentials, you need to use CustomerService.getCustomers() method without setting the clientCustomerId header. If you would like to get the list of accounts under a manager account, you need to use ManagedCustomerService.get() method as shown in the GetAccountHierarchy Java example. Example code in other languages is provided here.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages