Google Adverts API Introducing New Error Codes for Invalid Developer Tokens Beginning April 28, 2025
Beforehand, if any Google Adverts API request had an invalid developer token, the API returned an OAUTH_TOKEN_HEADER_INVALID error, which can also be used for different invalid request header values. To make it clear when the authentication error is particularly attributable to an invalid developer token, we’re altering the API to return a brand new error code, DEVELOPER_TOKEN_INVALID, for model v19.1 of the Google Adverts API. All API variations earlier than v19 will deal with invalid developer tokens by throwing a DEVELOPER_TOKEN_NOT_APPROVED error as a substitute. If you’re utilizing model v19 of the API with our consumer libraries, you’ll need to replace to the newest model of the consumer libraries after the v19.1 launch. These modifications will probably be efficient beginning April 28, 2025.
Anybody who has already arrange the Google Adverts API to make profitable calls are extremely unlikely to be affected by this modification. It’s primarily meant to enhance the expertise of recent builders onboarding to the API.
In case you have any questions, please ask them within the Google Adverts API discussion board. We’re right here to assist!