Hello,

I am trying to make a call to CampaignCriterionService using
production URL for a given campaign. I keep getting error that
authToken is not passed. Below is the SOAP request that is being
generated at our end:

<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/";>
  <S:Header>
    <ns2:RequestHeader xmlns:ns2="https://adwords.google.com/api/
adwords/cm/v200909">
      <authToken>ValidAuthToken</authToken>
      <clientEmail>[email protected]</clientEmail>
      <developerToken>ValidDevToken</developerToken>
      <userAgent>AdWords API Java</userAgent>
      <validateOnly>false</validateOnly>
    </ns2:RequestHeader>
  </S:Header>
  <S:Body>
    <ns2:get xmlns:ns2="https://adwords.google.com/api/adwords/cm/
v200909">
      <ns2:selector>
        <idFilters>
          <campaignId>39690205</campaignId>
        </idFilters>
      </ns2:selector>
    </ns2:get>
  </S:Body>
</S:Envelope>


>From the request, we are clearly see that the AuthToken is part of
Request. However, following is the response that I am getting back:

<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.campaignmgmt.criterion.campaigncriterion.v200909.jaxbgen.CampaignCriterionPage
com.google.ads.api.services.campaignmgmt.criterion.campaigncriterion.v200909.jaxbgen.CampaignCriterionServiceInterface.get(com.google.ads.api.services.campaignmgmt.criterion.campaigncriterion.v200909.jaxbgen.CampaignCriterionSelector)
throws
com.google.ads.api.services.campaignmgmt.criterion.campaigncriterion.v200909.jaxbgen.ApiException_Exception
with params
[com.google.ads.api.services.campaignmgmt.criterion.campaigncriterion.v200909.jaxbgen.campaigncriterionselec...@174bf5c].</
faultstring>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

Can someone please help me out there -- what is it that I am missing.

Thanks,
J

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to