Hi,
Thank you for getting back to us.
After reviewing your concern, I understand that you are encountering the
invalid_grant error while creating a campaign via the Google Ads API.
The common cause for this error is that, a Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days. So, in order to handle this error, go to the Google API Console and navigate to the OAuth consent screen. Then change the publishing status to "In production" to avoid the refresh token expiring in 7 days.
If you still encounter any issues, please provide us with the complete API logs (
request and
response with
request-id and
request header) generated at your end to better assist you.
If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides
Java,
.Net,
PHP,
Python,
Ruby or
Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
This message is in relation to case "ref:!00D1U01174p.!5001U0XWCTf:ref"
Thanks,
 |
Google Ads API Team |
