Hi, I'm receiving a OAUTH_TOKEN_HEADER_INVALID when I send a request to the CustomerSyncService. The request ID is 0004a8219b8a5cf00ada428f2f477a8c. Here is the request:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="https://adwords.google.com/api/adwords/ch/v201101"> <SOAP-ENV:Header> <ns1:RequestHeader> <ns1:authToken>#StructFind(api, "authToken")#</ns1:authToken> <ns1:developerToken>#StructFind(api, "devToken")#</ ns1:developerToken> <ns1:userAgent>usrAgent</ns1:userAgent> <ns1:clientEmail>#StructFind(api, "clientEmail")#</ns1:clientEmail> </ns1:RequestHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:get> <ns1:selector> <ns1:dateTimeRange> <ns1:min>#StructFind(api, "startDate")#</ns1:min> <ns1:max>#StructFind(api, "endDate")#</ns1:max> </ns1:dateTimeRange> <ns1:campaignIds> <cfloop array="#IdArray#" index="campId"> <ns1:field>#campId#</ns1:field> </cfloop> </ns1:campaignIds> </ns1:selector> </ns1:get> </SOAP-ENV:Body> </SOAP-ENV:Envelope> And the returned response is: <Envelope ><Header><ResponseHeader ><requestId>0004a8219b8a5cf00ada428f2f477a8c</requestId><operations>0</ operations><responseTime>15</responseTime><units>0</units></ ResponseHeader></Header><Body><Fault><faultcode>soap:Server</ faultcode><faultstring>AuthenticationError.OAUTH_TOKEN_HEADER_INVALID @ Service[CustomerSyncService.get]</ faultstring><detail><ApiExceptionFault ><message>AuthenticationError.OAUTH_TOKEN_HEADER_INVALID @ Service[CustomerSyncService.get]</ message><ApplicationException.Type>ApiException</ ApplicationException.Type><errors type="AuthenticationError"><fieldPath></fieldPath><trigger></ trigger><errorString>AuthenticationError.OAUTH_TOKEN_HEADER_INVALID</ errorString><ApiError.Type>AuthenticationError</ ApiError.Type><reason>OAUTH_TOKEN_HEADER_INVALID</reason></errors></ ApiExceptionFault></detail></Fault></Body></Envelope> The credentials are good-- I am using them successfully in all of my requests to other services. In fact in the same script a request is sent to CampaignService with the same auth token to grab the campaign IDs. I'm using the ClientLogin API, not the OAuth method. Thank you for your help. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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