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 :


   1. *<soapenv:Envelope 
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
   xmlns:v20="https://adwords.google.com/api/adwords/cm/v201605"; 
   xmlns:xsi="xsi">*
   2. *   <soapenv:Header>*
   3. *      <v20:RequestHeader>*
   4. *         <v20:clientCustomerId>**[redacted]**</v20:clientCustomerId>*
   5. *         <v20:developerToken>**[redacted]**</v20:developerToken>*
   6. *         <v20:validateOnly>false</v20:validateOnly>*
   7. *         <v20:partialFailure>false</v20:partialFailure>*
   8. *      </v20:RequestHeader>*
   9. *   </soapenv:Header>*
   10. *   <soapenv:Body>*
   11. *      <mutate 
   xmlns="https://adwords.google.com/api/adwords/cm/v201605";>*
   12. *         <operations>*
   13. *            <operator>ADD</operator>*
   14. *            <operand>*
   15. *               <adGroupId>**[redacted]**</adGroupId>*
   16. *               <ad 
   xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201605"; 
   xsi:type="ns2:TextAd">*
   17. *                  <ns2:displayUrl>example.com</ns2:displayUrl>*
   18. *                  
   <ns2:finalUrls>http://www.example.com</ns2:finalUrls>*
   19. *                  
   <ns2:devicePreference>30001</ns2:devicePreference>*
   20. *                  <ns2:headline>Summer things</ns2:headline>*
   21. *                  <ns2:description1>Get things for 
   summer</ns2:description1>*
   22. *                  <ns2:description2>while the prices are 
   low.</ns2:description2>*
   23. *               </ad>*
   24. *               <status>ENABLED</status>*
   25. *            </operand>*
   26. *         </operations>*
   27. *      </mutate>*
   28. *   </soapenv:Body>*
   29. *</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 [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 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/c23493f4-3241-422b-96f3-bd024b3c29e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to