Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
424 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi! We have error called refresh token has expired due to inactivity error but we use the refresh_token everyday and we expect it to be refreshed every time. Meaning of refresh_token life span should increase each time.
We know that refresh token will expire after 90 days if it's inactive but we use it everyday.
At our code base, we use OAuthWebAuthCodeGrant
and request_oauth_tokens_by_refresh_token
function with Python bing ads SDK.
Can anyone help me with this case? what might be the reason for this problem?
bingads.exceptions.OAuthTokenRequestException: error_code: invalid_grant, error_description: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-03-24T14:58:04.6654271Z and was inactive for 90.00:00:00.