Re: google ads api Invalid_grant

2024-04-01 Thread CogniTech Systems
Nowhere in those guides does it actually tell you how to refresh the token, 
no where in the examples on Github does it tell you how to refresh the 
token. No where in the guides does it tell you how to retrieve and use the 
clients email to get an API token, no where in the examples on Github does 
it show you how to do it. Yet every time you see someone from Google 
replying, they just send you to documentation that does not actually you 
what to do. 

On Thursday, December 15, 2022 at 2:46:35 PM UTC Google Ads API Forum 
Advisor wrote:

> Hi All,
>
>
> Thanks for reaching out to the Google Ads API team. I hope you are doing 
> well today.
>  
>
> The "invalid_grant 
> 
>  ” 
> error usually indicates an issue with the refresh token. That said, you 
> will need to regenerate credentials and refresh tokens. You may refer here 
> to this guide 
>  for 
> the steps on how you can regenerate credentials and refresh tokens. Also, I 
> agree on what @Lambert said about validity of refresh token.
>  
>
> Furthermore, you may check this document 
>  to 
> read more information about refresh token expiration.
>
>
> Regards,
> [image: Google Logo] 
> Darwin 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2h3KMj:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a22afe2f-4b2b-472e-9a9a-7c37764120d9n%40googlegroups.com.


RE: google ads api Invalid_grant

2022-12-15 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi All,


Thanks for reaching out to the Google Ads API team. I hope you are doing well 
today.

The "invalid_grant ” error usually indicates an issue with the refresh token. 
That said, you will need to regenerate credentials and refresh tokens. You may 
refer here to this guide for the steps on how you can regenerate credentials 
and refresh tokens. Also, I agree on what @Lambert said about validity of 
refresh token.

Furthermore, you may check this document to read more information about refresh 
token expiration.


Regards,

Darwin
Google Ads API Team
ref:_00D1U1174p._5004Q2h3KMj:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/F4nlD0RMXT0Y009RsAoXDWQfC5C9aHt7fEqQ%40sfdc.net.


Re: google ads api Invalid_grant

2022-12-15 Thread Lambert Beekhuis
An accessToken is usually valid for 1 hour. After that you must refresh 
indeed.  If you follow the examples of Google Ads, is always retrieves a 
new Access Token


On Thursday, December 15, 2022 at 11:34:28 AM UTC+1 mkaleem...@gmail.com 
wrote:

> hi . i am using firbebase with Oauth with the following scopes
> [
> "https://www.googleapis.com/auth/adwords;,
> "https://www.googleapis.com/auth/userinfo.email;,
> "openid",
> "email",
> "profile",
> ]
> while i am calling the google ads api with the resfresh token given by 
> firebase i am having a error-->  Error: 16 UNAUTHENTICATED: Failed to 
> retrieve auth metadata with error: invalid_grant
> but when i use oauthAccessToken   it's working fine . so i want to know 
> the expire time to  oauthAccessToken  or  how can i refresh these token 
> so user don;'t have to login again and again .
> thanks 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c0e9a7ff-cff2-4874-9f5d-6a9e1fe34edfn%40googlegroups.com.