Hi,
Since last 2 days we have been getting “AuthenticationError. OAUTH_TOKEN_INVALID” error while calling feed service to create customer feeds for GMB location for all the accounts. We use GMB only to create location extensions in AdWords.
Attached is the request and response for a sample account.
Error details:
<faultstring>[AuthenticationError.OAUTH_TOKEN_INVALID @ operations[0].operand.systemFeedGenerationData.oAuthInfo; trigger:'https://www.googleapis.com/auth/plus.business.manage']</faultstring>
<trigger>https://www.googleapis.com/auth/plus.business.manage</trigger>
<errorString>AuthenticationError.OAUTH_TOKEN_INVALID</errorString>
<ApiError.Type>AuthenticationError</ApiError.Type>
<reason>OAUTH_TOKEN_INVALID</reason>
Also there were no changes (api/property) made at our end since last 2-3 days which can lead to this error.Feed service creation was working fine a few days ago for the same soap request and response.
Other Details:
We use centralized/common GMB business account for multiple AdWords accounts, so the GMB account uses different sign-in email address from the one used for our AdWords account(s).
Request:
<operand>
<name>GMBLocationExtension</name>
<origin>ADWORDS</origin>
<systemFeedGenerationData xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201708" xsi:type="ns2:PlacesLocationFeedData">
<ns2:oAuthInfo>
<ns2:httpMethod>GET</ns2:httpMethod>
<ns2:httpRequestUrl>https://www.googleapis.com/auth/plus.business.manage</ns2:httpRequestUrl>
<ns2:httpAuthorizationHeader>GMB API user access token</ns2:httpAuthorizationHeader>
</ns2:oAuthInfo>
<ns2:emailAddress>aml.gmb...@gmail.com</ns2:emailAddress>
<ns2:labelFilters>4177937093</ns2:labelFilters>
</systemFeedGenerationData>
</operand>
GMB refresh/access token is generated with scope (only GMB): https://www.googleapis.com/auth/plus.business.manage
Adwords refresh/access token is generated with scope (adwords and GMB): https://adwords.google.com/api/adwords https://www.googleapis.com/auth/plus.business.manage
Also other adwords api services like campaign creation, budget updates etc using same adwords access token is created successfully and GMB location are created successfully in GMB account using GMB access token.
Any insight to why this is happening and how to resolve this would be great.
Thanks
Gurpreet Singh