Google API Oauth2: Only one refresh token for connected accounts

13 views
Skip to first unread message

Nikolay Nikolov

unread,
Nov 11, 2019, 5:29:55 AM11/11/19
to AdWords API and Google Ads API Forum
Hi, I am using the Google Oauth2 API to connect to Google Ads and become only one refresh token when my @gmail.com account has read access to two different Google Ads accounts.

I have the account a...@gmail.com. This account has read access to the Google Ads accounts b...@gmail.com and c...@gmnail.com.

When I create two connections to Google Ads with the email a...@gmail.com for the accounts b...@gmail.com and c...@gmail.com, then I receive only one refresh token, for the first connection and none refresh token for the second connection. Why? How can I manage this, to become 2 refresh tokens for each connection? The only way to become a refresh token for the second connection is to go to my account a...@gmail.com and to decline the access to my app manually and connect again with c...@gmail.com. But then b...@gmail.com has no refresh token anymore.

Thanks
Nik

Google Ads API Forum Advisor Prod

unread,
Nov 11, 2019, 3:35:00 PM11/11/19
to adwor...@googlegroups.com

Hello Nik,

Thank you for reaching out. To assist you better, could you please confirm if my understanding is correct and you are looking to access the two accounts under your main account via API? If yes, you could use the OAuth credentials generated using the email address having access to these accounts (your main account). Please refer to this guide for detailed information on making calls to the Google Ads accounts using OAuth credentials. If you want to generate different OAuth credentials for these accounts, you could refer to the OAuth guide for details. If this doesn't address your concern, could you please elaborate more on the API request call made and the guide followed to create two connections? Please use Reply privately to author option if you wish to share the client customer id and other authentications details.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UJaFjc:ref
Reply all
Reply to author
Forward
0 new messages