Hi Keren,

*RequestHeader* should use the *mcm* namespace, but all of the child 
elements of *RequestHeader* should use the *cm* namespace.  Here's a sample 
header I generated using soapUI <http://www.soapui.org/>:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:*v20*="https://adwords.google.com/api/adwords/*mcm*/v201402"; xmlns:
*v201*="https://adwords.google.com/api/adwords/*cm*/v201402";>
   <soapenv:Header>
      <*v20*:RequestHeader>
         <*v201*:clientCustomerId>?</v201:clientCustomerId>
         <v201:developerToken>?</v201:developerToken>
         <v201:userAgent>?</v201:userAgent>
         <!--Optional:-->
         <v201:validateOnly>?</v201:validateOnly>
         <!--Optional:-->
         <v201:partialFailure>?</v201:partialFailure>
      </v20:RequestHeader>
   </soapenv:Header>

It sounds like you are constructing the SOAP messages manually. Just 
curious -- have you considered using one of our client 
libraries<https://developers.google.com/adwords/api/docs/clientlibraries>? 
They take care of all of the SOAP and XML details for you so you only have 
to interact with objects.

Cheers,
Josh, AdWords API Team

On Thursday, May 1, 2014 7:38:32 AM UTC-4, mktprodaw...@gmail.com wrote:
>
> hi,
> I have a problem in ManagedCustomerService : INVALID_TOKEN_HEADER
> (in other services my dev token is valid, i get data and everything's ok!)
>
> when i tried to change mcm to cm in the RequestHeader as it was suggested 
> in one of the past forum posts, I got another error(it looks like it means 
> it should be mcm):
>
> Unmarshalling Error: unexpected element (uri:"
> https://adwords.google.com/api/adwords/cm/v201402";, 
> local:"RequestHeader"). Expected elements are &lt;{
> https://adwords.google.com/api/adwords/mcm/v201402}ApiExceptionFault&gt
> ;,&lt;{https://adwords.google.com/api/adwords/mcm/v201402}RequestHeader&gt
> ;,&lt;{
> https://adwords.google.com/api/adwords/mcm/v201402}ResponseHeader&gt;,&lt;
>
>
> my request xml is:
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> " xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
> <soapenv:Header>
> <ns1:RequestHeader xmlns:ns1="
> https://adwords.google.com/api/adwords/mcm/v201402"; soapenv:actor="
> http://schemas.xmlsoap.org/soap/actor/next"; soapenv:mustUnderstand="0">
> <ns1:clientCustomerId>*********</ns1:clientCustomerId>
> <ns1:developerToken>*********</ns1:developerToken>
> <ns1:userAgent>*********</ns1:userAgent>
> <ns1:validateOnly>false</ns1:validateOnly>
> <ns1:partialFailure>false</ns1:partialFailure>
> </ns1:RequestHeader>
> </soapenv:Header>
> <soapenv:Body>
> <get xmlns="https://adwords.google.com/api/adwords/mcm/v201402";>
> <serviceSelector>
> <fields>customerId</fields>
> <fields>currencyCode</fields>
> <fields>dateTimeZone</fields>
> </serviceSelector>
> </get>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
> can you please help? tnx!
>
> Keren H.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to