Authentication error

26 views
Skip to first unread message

The Trumpet

unread,
Aug 20, 2015, 8:56:24 AM8/20/15
to AdWords API Forum
Hi,

Iam new to Google Adwords. I am getting the following error while i was to send the soap request to Google Adwords in order to retrieve the Get Campaigns from my Account. 


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201506"><requestId>00051dbbd7ee41d80abfc14ce402910b</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>0</operations><responseTime>699</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[AuthenticationError.OAUTH_TOKEN_HEADER_INVALID @ ; trigger:'&lt;null&gt;']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201506"><message>[AuthenticationError.OAUTH_TOKEN_HEADER_INVALID @ ; trigger:'&lt;null&gt;']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthenticationError"><fieldPath></fieldPath><trigger>&lt;null&gt;</trigger><errorString>AuthenticationError.OAUTH_TOKEN_HEADER_INVALID</errorString><ApiError.Type>AuthenticationError</ApiError.Type><reason>OAUTH_TOKEN_HEADER_INVALID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>



Thanks

Umesh Dengale

unread,
Aug 20, 2015, 2:33:55 PM8/20/15
to AdWords API Forum
Hello,

The above error indicates that the Authorization header in your API call request is malformed. Please check your SOAP request and make sure it is formatted as given in this document.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages