Thank you for your quick response. Unfortunately, I'm still unable to create a text ad with SOAP UI.
-- Here's my request, updated to include your suggestions :
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/v201605" xmlns:xsi="xsi">
- <soapenv:Header>
- <v20:RequestHeader>
- <v20:clientCustomerId>[
redacted] </v20:clientCustomerId>- <v20:developerToken>[
redacted] </v20:developerToken>- <v20:validateOnly>false</v20:validateOnly>
- <v20:partialFailure>false</v20:partialFailure>
- </v20:RequestHeader>
- </soapenv:Header>
- <soapenv:Body>
- <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201605">
- <operations>
- <operator>ADD</operator>
- <operand>
- <adGroupId>[
redacted] </adGroupId>- <ad xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201605" xsi:type="ns2:TextAd">
- <ns2:displayUrl>example.com</ns2:displayUrl>
- <ns2:finalUrls>http://www.example.com</ns2:finalUrls>
- <ns2:devicePreference>30001</ns2:devicePreference>
- <ns2:headline>Summer things</ns2:headline>
- <ns2:description1>Get things for summer</ns2:description1>
- <ns2:description2>while the prices are low.</ns2:description2>
- </ad>
- <status>ENABLED</status>
- </operand>
- </operations>
- </mutate>
- </soapenv:Body>
- </soapenv:Envelope>
Here are validation errors in the request...
line 16: Attribute not allowed (no wildcards allowed): type@xsi in element ad@https://adwords.google.com/api/adwords/cm/v201605
line 20: Expected element 'Ad.Type@https://adwords.google.com/api/adwords/cm/v201605' instead of 'headline@https://adwords.google.com/api/adwords/cm/v201605' here in element ad@https://adwords.google.com/api/adwords/cm/v201605
line 21: Expected element 'Ad.Type@https://adwords.google.com/api/adwords/cm/v201605' instead of 'description1@https://adwords.google.com/api/adwords/cm/v201605' here in element ad@https://adwords.google.com/api/adwords/cm/v201605
line 22: Expected element 'Ad.Type@https://adwords.google.com/api/adwords/cm/v201605' instead of 'description2@https://adwords.google.com/api/adwords/cm/v201605' here in element ad@https://adwords.google.com/api/adwords/cm/v201605
And here is the API response to my updated request:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling Error: cvc-complex-type.3.2.2: Attribute 'xsi:type' is not allowed to appear in element 'ad'.</faultstring></soap:Fault></soap:Body></soap:Envelope>
Can you pelase help me understand the defects in my request?
Thanks!
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@googlegroups.com.
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/c23493f4-3241-422b-96f3-bd024b3c29e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment