Managing third party accounts

21 views
Skip to first unread message

anson oph

unread,
Jan 2, 2018, 12:22:14 AM1/2/18
to AdWords API Forum
Hi,

I followed the OAuth2 Authentication page and got all the tokens I need to made a successful Adwords API call and I did it. I did that with a test account access level token. However, when I try to access (get data) another test account with the same token, the call failed. From this experience, I have this impression that to manage other accounts, I need to generate separate test account access tokens  cache those specific tokens unless I link the accounts. Is this the case? If this is the case then it literally means I need to ask my clients to go through the OAuth2 Authentication account to give me the account accessible token to cache; yet I cannot find any helpful guides that can provide more information.

Best Regards.

Dhanya Sundararaju (AdWords API Team)

unread,
Jan 2, 2018, 3:22:45 PM1/2/18
to AdWords API Forum
Hi Anson,

If you are not a user on the other accounts you will not be able to access the accounts using your credentials. However, if the client is able to authorize you once while setting up their OAuth, you can use that authorization code along with your client credentials (client id and client secret) to generate the refresh token. You will be able to access the client's account using this set of credentials. Please check out this guide that lists the steps how to do so using Java. Please let me know if you have further questions.

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