Hi AF,

The reason that your requests for *ManagedCustomerService* and 
*CustomerService* are failing is that you are not using the correct XML 
namespace for the *clientCustomerId* and *developerToken* elements in those 
requests. You're specifying the namespace of:

https://adwords.google.com/api/adwords/*mcm*/v201502

but those elements belong to namespace:

https://adwords.google.com/api/adwords/*cm*/v201502

Please use the correct namespace for the SOAP header elements and let me 
know if you still encounter issues.

Thanks,
Josh, AdWords API Team

On Thursday, May 14, 2015 at 9:22:13 AM UTC-4, Jagad MCC wrote:
>
> Dear All,
>
> I have successfully call some SOAP method of Adwords API, but failed for 
> CustomerService and ManagedCustomerService. 
> here s the successfully one:
>
> $ curl \
> --header "Content-Type: application/soap+xml" \
> --header "Authorization : Bearer 
> Xxxx.xxxxxxxxxxxxxx_1234567890abcdefghijklmnopqrstuvwxyz" \
> --data @budget_get.wsdl \
> https://adwords.google.com/api/adwords/cm/v201502/BudgetService
>
> Result:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> ><soap:Header><ResponseHeader xmlns="
> https://adwords.google.com/api/adwords/cm/v201502";><requestId>
> 0005160804a92a510ab680a4da004394</requestId><serviceName>BudgetService
> </serviceName><methodName>get</methodName><operations>1
> </operations><responseTime>207
> </responseTime></ResponseHeader></soap:Header><soap:Body><getResponse 
> xmlns="https://adwords.google.com/api/adwords/cm/v201502";
> ><rval><totalNumEntries>3</totalNumEntries><Page.Type>BudgetPage
> </Page.Type><entries><budgetId>309130621</budgetId><name>Campaign #1
> </name></entries><entries><budgetId>309131581</budgetId><name>xdigital
> </name></entries><entries><budgetId>310436581</budgetId><name>test1
> </name></entries></rval></getResponse></soap:Body></soap:Envelope>
>
> But Failed for ManagedCustomerService : 
> curl \
> --header "Content-Type: application/soap+xml" \
> --header "Authorization : Bearer 
> Xxxx.xxxxxxxxxxxxxx_1234567890abcdefghijklmnopqrstuvwxyz" \
> --data @mcs_get.wsdl \
> https://adwords.google.com/api/adwords/mcm/v201502/ManagedCustomerService
>
> [AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED] Failed Result:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> ><soap:Header><ns2:ResponseHeader xmlns:ns2="
> https://adwords.google.com/api/adwords/mcm/v201502"; xmlns="
> https://adwords.google.com/api/adwords/cm/v201502";><requestId>
> 00051608079b73f80abc8c43e2005f32</requestId><serviceName>
> ManagedCustomerService</serviceName><methodName>get
> </methodName><operations>0</operations><responseTime>208
> </responseTime></ns2:ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>
> soap:Server</faultcode><faultstring>[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED
>  
> @ ; trigger:'&lt;null&gt;']</faultstring><detail><ns2:ApiExceptionFault 
> xmlns="https://adwords.google.com/api/adwords/cm/v201502"; xmlns:ns2="
> https://adwords.google.com/api/adwords/mcm/v201502";><message>[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED
>  
> @ ; 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.CLIENT_CUSTOMER_ID_IS_REQUIRED
> </errorString><ApiError.Type>AuthenticationError</ApiError.Type><reason>
> CLIENT_CUSTOMER_ID_IS_REQUIRED
> </reason></errors></ns2:ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
>
> Also Failed for CustomerService that not required 'clientCustomerId' :
> curl \
> --header "Content-Type: application/soap+xml" \
> --header "Authorization : Bearer 
> Xxxx.xxxxxxxxxxxxxx_1234567890abcdefghijklmnopqrstuvwxyz" \
> --data @cs_get.wsdl \
> https://adwords.google.com/api/adwords/mcm/v201502/CustomerService
>
> [QuotaCheckError.INVALID_TOKEN_HEADER @ ] Failed Result :
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> ><soap:Header><ResponseHeader xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201502"; xmlns="
> https://adwords.google.com/api/adwords/mcm/v201502";><ns2:requestId>
> 00051608121ec4880abc77923a003f53</ns2:requestId><ns2:serviceName>
> CustomerService</ns2:serviceName><ns2:methodName>get
> </ns2:methodName><ns2:operations>0</ns2:operations><ns2:responseTime>209
> </ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>
> soap:Server</faultcode><faultstring>[QuotaCheckError.INVALID_TOKEN_HEADER 
> @ ]</faultstring><detail><ApiExceptionFault xmlns="
> https://adwords.google.com/api/adwords/mcm/v201502"; xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201502";><ns2:message>[QuotaCheckError.INVALID_TOKEN_HEADER
>  
> @ ]</ns2:message><ns2:ApplicationException.Type>ApiException
> </ns2:ApplicationException.Type><ns2:errors xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:type="ns2:QuotaCheckError"
> ><ns2:fieldPath></ns2:fieldPath><ns2:trigger></ns2:trigger><ns2:errorString>
> QuotaCheckError.INVALID_TOKEN_HEADER</ns2:errorString><ns2:ApiError.Type>
> QuotaCheckError</ns2:ApiError.Type><ns2:reason>INVALID_TOKEN_HEADER
> </ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
>
> The Question is does it an effect of limited access of test account or 
> what make it goes wrong?
>
> Related wsdl files attached.
>
> best regards,
> AF
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cd2f66c6-7833-4c5a-aca7-60d13535e3b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to