Transient OAUTH_TOKEN_INVALID error

20 views
Skip to first unread message

Jerry Uejio

unread,
Jul 2, 2019, 6:22:45 AM7/2/19
to AdWords API and Google Ads API Forum
I'm getting an OAUTH_TOKEN_INVALID about halfway into a job that posts to https://adwords.google.com/api/adwords/rm/v201809/AdwordsUserListService

I'm posting 10k users at a time, and get the error around the 500th call. It always fails somewhere in the middle of the job, so at first I thought it was an issue with the refresh token, but resetting it didn't help.

Example message with requestID: {'operations': '1', 'serviceName': 'AdwordsUserListService', 'methodName': 'mutateMembers', 'requestId': '00058ca60fab53790a81cf04aa0fd5bd', 'responseTime': '81', 'faultMessage': "[AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']"}"

I'm using the Google Ads Python SDK

Has anyone else run into this?

Google Ads API Forum Advisor Prod

unread,
Jul 3, 2019, 2:32:39 AM7/3/19
to adwor...@googlegroups.com
Hi Jerry,

Thank you for reaching out.

The error OAUTH_TOKEN_INVALID is encountered when the OAuth access token in the header is not valid. Could you confirm if the first few API calls you made were successful (meaning no issues were reflected in the results)? I would also appreciate if you provide the complete SOAP request and response logs for better investigation. You may use the reply privately to author option.

Regards,
Dannison
Google Ads API Team
 
 

ref:_00D1U1174p._5001UCaaqH:ref
Reply all
Reply to author
Forward
0 new messages