TargetingIdeaService - authToken is missing in SoapHeader

31 views
Skip to first unread message

Owen

unread,
Nov 19, 2009, 8:49:39 PM11/19/09
to AdWords API Forum
Hello. The full request / response is below it. Thanks.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://
schemas.xmlsoap.org/soap/encoding/">
<soap:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/o/
v200909">
<authToken>X</authToken>
<useragent>X</useragent>
<developerToken>X</developerToken>
<applicationToken>X</applicationToken>
</RequestHeader>
</soap:Header>
<soap:Body>
<get xmlns="https://adwords.google.com/api/adwords/o/v200909">
<selector>
<searchParameters xmlns="https://adwords.google.com/api/
adwords/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="RelatedToKeywordSearchParameter">
<keywords>
<text>awesome domain</text>
<matchType>Broad</matchType>
</keywords>
</searchParameters>
<ideaType>KEYWORD</ideaType>
<requestType>IDEAS</requestType>
<paging>
<startIndex>1</startIndex>
<numberResults>200</numberResults>
</paging>
</selector>
</get>
</soap:Body>
</soap:Envelope>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>authToken is missing in SoapHeader. while
invoking public abstract
com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaPage
com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaServiceInterface.get
(com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaSelector)
throws
com.google.ads.api.services.targetingideas.v200909.jaxbgen.ApiException_Exception
with params
[com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaSelector@132a040].</
faultstring></soap:Fault></soap:Body></soap:Envelope>

AdWords API Advisor

unread,
Nov 20, 2009, 12:23:52 PM11/20/09
to AdWords API Forum
Hi Owen,

There are still problems with the namespaces you are using. Please
take another look at the example I sent you:

http://groups.google.com/group/adwords-api/browse_thread/thread/82bd7fcdff3afce1/

In your example the RequestHeader field is in the O namespace but the
authToken field is not in the CM namespace like it should be.

Best,
- Eric Koleda, AdWords API Team

On Nov 19, 8:49 pm, Owen <o...@borseth.us> wrote:
> Hello. The full request / response is below it. Thanks.
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://
> [com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaSe lector@132a040].</
Reply all
Reply to author
Forward
0 new messages