Hi Josh ! I have same problem like Sandeep had before, but I can swear access token is actual, could you please take a look ?
Request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:RequestHeader soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201409"> <ns1:clientCustomerId>1195******</ns1:clientCustomerId> <ns1:developerToken>jwSU1DM5f1ziIPX6HqdcKA</ns1:developerToken> <ns1:userAgent>Kenshoo Demo (AwApi-Java, AdWords-Axis/1.34.0, Common-Java/1.34.0, Axis/1.4, Java/1.7.0_25, maven)</ns1:userAgent> <ns1:validateOnly>false</ns1:validateOnly> <ns1:partialFailure>false</ns1:partialFailure> </ns1:RequestHeader> </soapenv:Header> <soapenv:Body> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201409"> <operations> <operator>ADD</operator> <operand> <name>Google My Business feed #1428334036887</name> <origin>ADWORDS</origin> <systemFeedGenerationData xsi:type="ns2:PlacesLocationFeedData" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201409"> <oAuthInfo> <httpMethod>GET</httpMethod> <httpRequestUrl>https://www.googleapis.com/auth/adwords</httpRequestUrl> <httpAuthorizationHeader>Bearer ya29.TQH6JLbutTeYctSQugRPwXNvQ_KiPufjLSsP_JGIlkqzntd16TLeu3MR</httpAuthorizationHeader> </oAuthInfo> <emailAddress>******@gmail.com</emailAddress> </systemFeedGenerationData> </operand> </operations> </mutate> </soapenv:Body> </soapenv:Envelope> Response: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201409"> <requestId>0005130fef1d47c00ac45f0369003431</requestId> <serviceName>FeedService</serviceName> <methodName>mutate</methodName> <operations>0</operations> <responseTime>542</responseTime> </ResponseHeader> </soap:Header> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>[FeedError.INVALID_OAUTH_TOKEN_FOR_EMAIL @ operations[0].operand.systemFeedGenerationData.oAuthInfo; trigger:'Invalid token']</faultstring> <detail> <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201409"> <message>[FeedError.INVALID_OAUTH_TOKEN_FOR_EMAIL @ operations[0].operand.systemFeedGenerationData.oAuthInfo; trigger:'Invalid token']</message> <ApplicationException.Type>ApiException</ApplicationException.Type> <errors xsi:type="FeedError" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <fieldPath>operations[0].operand.systemFeedGenerationData.oAuthInfo</fieldPath> <trigger>Invalid token</trigger> <errorString>FeedError.INVALID_OAUTH_TOKEN_FOR_EMAIL</errorString> <ApiError.Type>FeedError</ApiError.Type> <reason>UNKNOWN</reason> </errors> </ApiExceptionFault> </detail> </soap:Fault> </soap:Body> </soap:Envelope> -- best regards, Sergey. среда, 1 апреля 2015 г., 22:04:53 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал: > > Hi Sandeep, > > That error means that the access token you included in > PlacesLocationFeedData.oAuthInfo > <https://developers.google.com/adwords/api/docs/reference/v201502/FeedService.PlacesLocationFeedData#oAuthInfo> > is > revoked or expired or is not for the user you specified in the emailAddress > attribute > <https://developers.google.com/adwords/api/docs/reference/v201502/FeedService.PlacesLocationFeedData#emailAddress> > . > > Please check out our location extensions guide > <https://developers.google.com/adwords/api/docs/guides/feed-services-locations#creating_the_placeslocationfeeddata_object_on_the_feed> > for > more details on how to populate the attributes of the > *PlacesLocationFeedData* object. > > Thanks, > Josh, AdWords API Team > > On Wednesday, April 1, 2015 at 8:24:29 AM UTC-4, cvit sandeep wrote: >> >> Hi Adwords Team, >> >> When trying to implement AddGoogleMyBusinessLocationExtensions we get the >> following error. >> >> [FeedError.INVALID_OAUTH_TOKEN_FOR_EMAIL @ >> operations[0].operand.systemFeedGenerationData.oAuthInfo; trigger:'Invalid >> token'] >> >> We already checked the email is matching with Adword UI. >> >> Corresponding XML file is following. >> >> [Apr 01 2015 08:22:49.000000 - ERROR] POST >> /api/adwords/cm/v201409/FeedService HTTP/1.1 >> Host: adwords.google.com >> Connection: Keep-Alive >> User-Agent: PHP-SOAP/5.5.12, gzip >> Accept-Encoding: gzip, deflate >> Content-Encoding: gzip >> Content-Type: text/xml; charset=utf-8 >> SOAPAction: "" >> Content-Length: 656 >> Authorization: Bearer >> ya29.SAHJ2zO4JlGePVGqzFQhgQe0TW89QZVHBAbB3M18RkV68cr5fUiP39BKwzVOayzZdfrVly8wMkgMQA >> >> <?xml version="1.0" encoding="UTF-8"?> >> <SOAP-ENV:Envelope xmlns:SOAP-ENV=" >> http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1=" >> https://adwords.google.com/api/adwords/cm/v201409" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance"> >> <SOAP-ENV:Header> >> <ns1:RequestHeader> >> <ns1:clientCustomerId>****</ns1:clientCustomerId> >> <ns1:developerToken>******</ns1:developerToken> >> <ns1:userAgent>Sistemim (AwApi-PHP/5.7.1, Common-PHP/5.7.1, >> PHP/5.5.12)</ns1:userAgent> >> </ns1:RequestHeader> >> </SOAP-ENV:Header> >> <SOAP-ENV:Body> >> <ns1:mutate> >> <ns1:operations> >> <ns1:operator>ADD</ns1:operator> >> <ns1:operand> >> <ns1:name>Google My Business feed #551b8eb67e039</ns1:name> >> <ns1:origin>ADWORDS</ns1:origin> >> <ns1:systemFeedGenerationData >> xsi:type="ns1:PlacesLocationFeedData"> >> <ns1:oAuthInfo> >> <ns1:httpMethod>GET</ns1:httpMethod> >> <ns1:httpRequestUrl>https://www.googleapis.com/auth/adwords >> </ns1:httpRequestUrl> >> <ns1:httpAuthorizationHeader>Bearer >> ******</ns1:httpAuthorizationHeader> >> </ns1:oAuthInfo> >> <ns1:emailAddress>tes...@sistemim.com.tr <javascript:> >> </ns1:emailAddress> >> </ns1:systemFeedGenerationData> >> </ns1:operand> >> </ns1:operations> >> </ns1:mutate> >> </SOAP-ENV:Body> >> </SOAP-ENV:Envelope> >> >> HTTP/1.1 500 Internal Server Error >> Content-Type: text/xml; charset=UTF-8 >> Content-Encoding: gzip >> Date: Wed, 01 Apr 2015 06:22:50 GMT >> Expires: Wed, 01 Apr 2015 06:22:50 GMT >> Cache-Control: private, max-age=0 >> X-Content-Type-Options: nosniff >> X-Frame-Options: SAMEORIGIN >> X-XSS-Protection: 1; mode=block >> Content-Length: 552 >> Server: GSE >> >> <?xml version="1.0"?> >> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> >> <soap:Header> >> <ResponseHeader xmlns=" >> https://adwords.google.com/api/adwords/cm/v201409"> >> <requestId>000512a3be9014a10ab66828bd0044dd</requestId> >> <serviceName>FeedService</serviceName> >> <methodName>mutate</methodName> >> <operations>1</operations> >> <responseTime>842</responseTime> >> </ResponseHeader> >> </soap:Header> >> <soap:Body> >> <soap:Fault> >> <faultcode>soap:Server</faultcode> >> <faultstring>[FeedError.INVALID_OAUTH_TOKEN_FOR_EMAIL @ >> operations[0].operand.systemFeedGenerationData.oAuthInfo; trigger:'Invalid >> token']</faultstring> >> <detail> >> <ApiExceptionFault xmlns=" >> https://adwords.google.com/api/adwords/cm/v201409"> >> <message>[FeedError.INVALID_OAUTH_TOKEN_FOR_EMAIL @ >> operations[0].operand.systemFeedGenerationData.oAuthInfo; trigger:'Invalid >> token']</message> >> >> <ApplicationException.Type>ApiException</ApplicationException.Type> >> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:type="FeedError"> >> >> <fieldPath>operations[0].operand.systemFeedGenerationData.oAuthInfo</fieldPath> >> <trigger>Invalid token</trigger> >> >> <errorString>FeedError.INVALID_OAUTH_TOKEN_FOR_EMAIL</errorString> >> <ApiError.Type>FeedError</ApiError.Type> >> <reason>UNKNOWN</reason> >> </errors> >> </ApiExceptionFault> >> </detail> >> </soap:Fault> >> </soap:Body> >> </soap:Envelope> >> >> >> Regards >> >> sandeep >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/05f95e84-4066-4c8e-a8fb-3b1d4778d8bf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.