НЕ использую клиенские библиотеки. Пользуюсь SOAP запросами. Отправляю:
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/v201609"> <soapenv:Header> <v20:RequestHeader> <v20:clientCustomerId>ххх-ххх-хххх</v20:clientCustomerId> <v20:developerToken>ххххххххх</v20:developerToken> <v20:userAgent>1cAdWords</v20:userAgent> <v20:validateOnly>false</v20:validateOnly> <v20:partialFailure>false</v20:partialFailure> </v20:RequestHeader> </soapenv:Header> <soapenv:Body> <v20:get> <v20:serviceSelector> <v20:fields>Name</v20:fields> </v20:serviceSelector> </v20:get> </soapenv:Body> </soapenv:Envelope> Заголовки: Authorization - Bearer "access_token" Content-Type - "text/xml;charset=UTF-8" В ответ получаю: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201609"> <requestId>00053fe959b74c600a37354bc2011c10</requestId> <serviceName>CampaignService</serviceName> <methodName>get</methodName> <operations>1</operations> <responseTime>23</responseTime></ResponseHeader> </soap:Header> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>[AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']</faultstring> <detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201609"> <message>[AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']</message> <ApplicationException.Type>ApiException</ApplicationException.Type> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthenticationError"> <fieldPath></fieldPath> <trigger><null></trigger> <errorString>AuthenticationError.OAUTH_TOKEN_INVALID</errorString> <ApiError.Type>AuthenticationError</ApiError.Type> <reason>OAUTH_TOKEN_INVALID</reason> </errors> </ApiExceptionFault> </detail> </soap:Fault> </soap:Body> </soap:Envelope> On Friday, October 28, 2016 at 11:47:51 AM UTC+3, Joyce Lava wrote: > > Hi, > > Apologies as I can only provide support in English. Could you please > confirm if you are using one of our client libraries > <https://developers.google.com/adwords/api/docs/clientlibraries>? Also, > could you please provide the complete SOAP request and response when you > encountered this error? Please use *reply privately to author *when > responding. > > Thanks, > Joyce, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b68d44b3-5feb-4a29-829a-c5e48365c937%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.