Generating refresh token

6,279 views
Skip to first unread message

Katherine Martin

unread,
May 9, 2022, 10:46:10 AM5/9/22
to Google Ads API and AdWords API Forum
Hi all,

I am attempting to connect to the google ads api (using a javascript library) - however I don't understand how to generate the refresh token. This is the only documentation I can find however I still don't understand how to do it after reading it.


Thanks in advance.
Kitty

Google Ads API Forum Advisor

unread,
May 10, 2022, 2:10:24 AM5/10/22
to kath...@aip.media, adwor...@googlegroups.com
Hi Katherine,

Thank you for reaching out to the Google Ads API team.

Moving forward, it appears that this is specifically about generating the refresh token. That said, the documentation you have found is the right guide on how to obtain a refresh token. As you can see on the said documentation, if your application needs access to a Google API beyond the lifetime of a single access token, it can obtain a refresh token. Also, you may refer to this guide for more details on how to generate refresh tokens.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ar2kA:ref

Katherine Martin

unread,
May 10, 2022, 7:38:30 AM5/10/22
to Google Ads API and AdWords API Forum
Hi Adsapi,

Thanks for the quick reply.

I have read the documentation however I don't think it specifically includes information on the actual process of generating the refresh token. Could I please have assistance in doing it.

Thanks,
Katherine

On Tuesday, 10 May 2022 at 07:10:24 UTC+1 adsapi wrote:
Hi Katherine,

Thank you for reaching out to the Google Ads API team.

Moving forward, it appears that this is specifically about generating the refresh token. That said, the documentation you have found is the right guide on how to obtain a refresh token. As you can see on the said documentation, if your application needs access to a Google API beyond the lifetime of a single access token, it can obtain a refresh token. Also, you may refer to this guide for more details on how to generate refresh tokens.

Regards,




Carmela

Google Ads API Team
 

ref:_00D1U1174p._5004Q2ar2kA:ref

Google Ads API Forum Advisor

unread,
May 10, 2022, 10:39:28 AM5/10/22
to kath...@aip.media, adwor...@googlegroups.com

Hi Katherine,

Thanks for getting back to us.

For the refresh token, you may refer here to this guide for the steps on how you can generate the refresh token. 

Let me know if this helps.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ar2kA:ref

Katherine Martin

unread,
May 10, 2022, 10:52:27 AM5/10/22
to Google Ads API and AdWords API Forum
Hi Adsapi,

It seems that you have sent me the same documentation again, is there anywhere I can go for actual steps on how to do it / anyone I can talk to for help?

Best,
Kitty

Google Ads API Forum Advisor

unread,
May 11, 2022, 1:24:07 AM5/11/22
to kath...@aip.media, adwor...@googlegroups.com
Hi Katherine, 

Thank you for getting back to us.

Moving forward, kindly note that the document that we provided is indeed the guide on generating refresh tokens. That said, could you confirm what is your concern or what is not clear in the documentation we gave to you so we can further assist you?

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ar2kA:ref

Katherine Martin

unread,
May 11, 2022, 5:49:36 AM5/11/22
to Google Ads API and AdWords API Forum
Hi Carmela,

Thank you for that. I understand it references refresh tokens, however I am struggling to follow it and need additional help. Is there someone from support who I can have a call with? On the documentation it says: ' The authorization sequence begins when your application redirects a browser to a Google URL; the URL includes query parameters that indicate the type of access being requested.' I don't understand what the URL is, can I have some example code that I can run?

Thanks,
Katherine

Google Ads API Forum Advisor

unread,
May 12, 2022, 11:05:11 PM5/12/22
to kath...@aip.media, adwor...@googlegroups.com
Hi Katherine,

Please note that our team may only provide assistance via email.

Moving forward to your concern, “The authorization sequence begins when your application redirects a browser to a Google URL; the URL includes query parameters that indicate the type of access being requested.”, you may refer to this documentation for more details.

But upon checking, i can see that your client library is javascript and I am afraid that we can only provide support for our official client libraries, if you want to use REST, you may refer to this documentation.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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