token issue

72 views
Skip to first unread message

Jade Huang

unread,
Jan 30, 2024, 9:15:12 AM1/30/24
to Google Ads API and AdWords API Forum
hi , 
i renew the token , but why it still show me expired
用戶端密鑰
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
建立日期
2024年1月23日 中午12:05:01 [GMT+8]
狀態
已啟用
停用
用戶端密鑰
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
建立日期
2024年1月30日 下午5:11:34 [GMT+8]
狀態
已啟用
停用
 ADD SECRET

com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request

POST https://oauth2.googleapis.com/token

{

"error": "invalid_grant",

"error_description": "Token has been expired or revoked."

}

Google Ads API Forum Advisor

unread,
Jan 30, 2024, 10:06:54 AM1/30/24
to aiai1...@gmail.com, adwor...@googlegroups.com
Hi,

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

After reviewing your concern, I can see that you have encountered the common invalid_grant error. This error means the token has expired or revoked. For more information about refresh token expiration, you also may refer to the Refresh token expiration guide. 

That said, you may try generating a new refresh token to resolve this error. To generate a new refresh token you may refer to Get an OAuth2 Refresh Token and Configure Your Client guide.

I hope this helps. kindly get back to us, if you have further queries. 
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02ryelL:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages