accept invitation

29 views
Skip to first unread message

angel...@societao.com

unread,
Dec 5, 2017, 12:18:30 PM12/5/17
to AdWords API Forum

I want to create a service where a client with an existing adwords account can be linked to my MMC account in the following way: There is a button that when clicked, shows a popup window where the user authenticates and accepts the link. Can you do this? So far as I read in the documentation and forum to accept the invitation, I send you a link to the adword console so that you can log in and accept the invitation, or provide me with your clientId, ClientSecret, RefreshToken keys to accept the invitation with the api but that is more laps for the client
Message has been deleted

Bharani Cherukuri (AdWords API Team)

unread,
Dec 5, 2017, 5:55:39 PM12/5/17
to AdWords API Forum
Hello, 

You could have the button click to trigger the OAuth flow which generates the link for creating the authorization code. You will then need to have a logic to open a new window with this link. If the client's credentials for AdWords account and your application is the same, then they can accept the prompt from that login itself. If it is different, they will have to manually copy the link over to the login which has access to their AdWords account. We don't have code samples which demonstrates this flow. But, you could refer to our OAuth samples in Java here. Code samples in other languages can also be found here

You can use the ManagedCustomerService.mutateLink to extend, rescind, accept and terminate the links. You may refer to the code snippets mentioned in this guide as a reference.

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