MicrosoftDocs / Advertising-docs

Creative Commons Attribution 4.0 International
15 stars 59 forks source link

Option 2 - How long should the access be valid for? #942

Closed judelytics closed 3 years ago

judelytics commented 3 years ago

When using the Option 2, how long should the access be good for? Even when following all the steps, my token expires after 1h... I have a Microsoft Advertising Script sending data to a Google Sheet that I want to run daily, so I need long term access, but I do not know how. Thanks


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

eric-urban commented 3 years ago

Great feedback, thanks! The access token typically is only valid for one hour. If you require access longer, a refresh token per option 3 is required. The documentation needs to be updated to clarify.