clarification of google ads api

67 views
Skip to first unread message

Santhoshkumar Viswanathan

unread,
May 24, 2022, 12:08:43 AM5/24/22
to Google Ads API and AdWords API Forum
Hi google team,

I am building a web portal, using my web portal a user can sign in to my website, to view their metrics, so that a user can view their ads metrics on my website, but there is doubt that, if the (A) user has a google ads account and they have a google developer account to get a developer access token, so that user can view their metrics, what about another (B) user try to login in my web portal to view this user ads metrics,  they also need to register in google developer accounts to get a developer access token to view their metrics

Google Ads API Forum Advisor

unread,
May 24, 2022, 9:43:21 AM5/24/22
to santho...@twilightsoftwares.com, adwor...@googlegroups.com
Hi Santhoshkumar,

Thank you raising this concern to the Google Ads API Forum.

To answer you in general, if the user wants to access their metrics using their Google Ads API then they will need to have their developer token specially if the Google ads account of the users of your website belongs to a different organization/entity. Also, aside from the developer token the user should create their own Oauth2 credentials and use it to authenticate API requests.


Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bCrw4:ref

Santhoshkumar Viswanathan

unread,
May 25, 2022, 5:01:33 AM5/25/22
to Google Ads API and AdWords API Forum
Thanks for clarification Jinky & Google Ads Api Team. I have another doubt , Can i get user oauth2 credentials(client id and client secret) and developer token in my website, like custom form in my website to get their oauth2 credentials and then i save in my database,  so that they can view their ads metrics, Is this legal?

Google Ads API Forum Advisor

unread,
May 26, 2022, 1:35:05 AM5/26/22
to santho...@twilightsoftwares.com, adwor...@googlegroups.com
Hi Santhoshkumar,

Thank you for getting back to us.

Moving forward to your concern, "Can i get user oauth2 credentials(client id and client secret) and developer token in my website, like custom form in my website to get their oauth2 credentials and then i save in my database,  so that they can view their ads metrics, Is this legal?", we really don't recommend doing this because credentials are sensitive information.

However, please see the 2 items below that will allow you to use only your OAuth2 credentials to access the users' accounts without getting your users' credentials:
Regards,
Google Logo
Carmela
Google Ads API Team
 


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