Hi Ran,

Could you provide the complete SOAP request and response logs generated 
when the error was encountered via *Reply privately to author *so I could 
investigate this further? 

The ordering of the settings should vary on the situation. However, it is 
advised to follow the order (as shown here 
<https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.Campaign>)
 
of the fields when configuring it.

Regards,
Dannison
AdWords API Team

On Tuesday, November 13, 2018 at 2:22:38 AM UTC+8, RAN HU wrote:
>
> Hi Google,
>
> Following is working one soap request 
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  xmlns:tns="
> https://adwords.google.com/api/adwords/cm/v201809"; xmlns:jaxb="
> http://java.sun.com/xml/ns/jaxb";>
> <soap:Header>
> <ns1:RequestHeader xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201809"; xmlns="
> https://adwords.google.com/api/adwords/cm/v201809";>
> <ns1:developerToken></ns1:developerToken>
> <ns1:userAgent></ns1:userAgent>
> <ns1:validateOnly>false</ns1:validateOnly>
> <ns1:clientCustomerId></ns1:clientCustomerId>
> </ns1:RequestHeader>
> </soap:Header>
> <soap:Body>
> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809";>
> <operations><operator>ADD</operator>
> <operand>
> <name>test_1542045705861</name>
> <status>ENABLED</status>
> <budget>
> <budgetId>1678284892</budgetId>
> </budget>
> <advertisingChannelType>DISPLAY</advertisingChannelType>
>
> <biddingStrategyConfiguration><biddingStrategyType>MANUAL_CPC</biddingStrategyType></biddingStrategyConfiguration>
> </operand>
> </operations>
> </mutate>
> </soap:Body>
> </soap:Envelope>
>
> Following is NOT WORKING one soap request 
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  xmlns:tns="
> https://adwords.google.com/api/adwords/cm/v201809"; xmlns:jaxb="
> http://java.sun.com/xml/ns/jaxb";>
> <soap:Header>
> <ns1:RequestHeader xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201809"; xmlns="
> https://adwords.google.com/api/adwords/cm/v201809";>
> <ns1:developerToken></ns1:developerToken>
> <ns1:userAgent></ns1:userAgent>
> <ns1:validateOnly>false</ns1:validateOnly>
> <ns1:clientCustomerId></ns1:clientCustomerId>
> </ns1:RequestHeader>
> </soap:Header>
> <soap:Body>
> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809
> "><operations>
> <operator>ADD</operator>
> <operand>
> <name>test_1542045755578</name>
> <status>ENABLED</status>
> <budget>
> <budgetId>1678284949</budgetId>
> </budget>
>
> <biddingStrategyConfiguration><biddingStrategyType>MANUAL_CPC</biddingStrategyType></biddingStrategyConfiguration>
> <advertisingChannelType>DISPLAY</advertisingChannelType>
> </operand>
> </operations>
> </mutate>
> </soap:Body>
> </soap:Envelope>
>
> ONLY thing i changed between those 2 requets is order of 
> biddingStrategyConfiguration and advertisingChannelType.
> Second soup request resopnse 
>
> Uncaught Error: soap:Client: Unmarshalling Error: cvc-complex-type.2.4.a: 
> Invalid content was found starting with element '{"
> https://adwords.google.com/api/adwords/cm/v201809":advertisingChannelType}'. 
> One of 
> '{"https://adwords.google.com/api/adwords/cm/v201809":campaignTrialType, 
> "https://adwords.google.com/api/adwords/cm/v201809":baseCampaignId, "
> https://adwords.google.com/api/adwords/cm/v201809":forwardCompatibilityMap, 
> "https://adwords.google.com/api/adwords/cm/v201809":trackingUrlTemplate, "
> https://adwords.google.com/api/adwords/cm/v201809":finalUrlSuffix, "
> https://adwords.google.com/api/adwords/cm/v201809":urlCustomParameters, "
> https://adwords.google.com/api/adwords/cm/v201809":vanityPharma, "
> https://adwords.google.com/api/adwords/cm/v201809":universalAppCampaignInfo, 
> "https://adwords.google.com/api/adwords/cm/v201809":selectiveOptimization}' 
> is expected.
>
>
> the order matters a lot?
>
> Thanks,
> Ran
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/abe9a67c-2107-4920-a4d2-6be03a5589a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... RAN HU
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to