offline conversions to bing ads api regarding refresh token
Hello,
I have an AWS Lambda that fires periodically X times per day to send offline conversions to the Bing Ads API.
- For each Lambda invocation, should I be continuously updating the refresh token? I have a separate lambda that rotates the refresh token weekly. I used the Q&A AI assist to answer this, but can I get confirmation if the AI response is valid? Thank you
Q&A AI Assist response:
For your AWS Lambda that sends offline conversions to the Bing Ads API, you should update the refresh token whenever you successfully acquire a new access token. The refresh token can last up to 90 days, but it is important to expect that you may need to start the authorization process again if certain conditions occur, such as the user changing their password or removing permissions for your application. Since you have a separate Lambda that rotates the refresh token weekly, it should be sufficient to ensure that your application has a valid refresh token for your periodic invocations.
It's a good practice to securely store the latest refresh token each time you request new access and refresh tokens, as this will help maintain continuous access without requiring user interaction.