I'm trying to figure out how to create a text ad form SOAPUI. I get the following validation errors...
*line 22: Element not allowed: headline@https://adwords.google.com/api/adwords/cm/v201605 in element ad@https://adwords.google.com/api/adwords/cm/v201605* *line 23: Element not allowed: description1@https://adwords.google.com/api/adwords/cm/v201605 in element ad@https://adwords.google.com/api/adwords/cm/v201605* *line 24: Element not allowed: description2@https://adwords.google.com/api/adwords/cm/v201605 in element ad@https://adwords.google.com/api/adwords/cm/v201605 * ...and the following API response... *<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">* * <soap:Body>* * <soap:Fault>* * <faultcode>soap:Client</faultcode>* * <faultstring>Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'v20:headline'. One of '{* *"https://adwords.google.com/api/adwords/cm/v201605":finalMobileUrls,* *"https://adwords.google.com/api/adwords/cm/v201605":finalAppUrls,* *"https://adwords.google.com/api/adwords/cm/v201605":trackingUrlTemplate,* *"https://adwords.google.com/api/adwords/cm/v201605":urlCustomParameters,* *"https://adwords.google.com/api/adwords/cm/v201605":type,* *"https://adwords.google.com/api/adwords/cm/v201605":devicePreference,* *"https://adwords.google.com/api/adwords/cm/v201605":Ad.Type}* *'**is expected.</faultstring>* * </soap:Fault>* * </soap:Body>* *</soap:Envelope>* ...when I submit this request... 1. *<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/v201605"> * 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. * <v20:mutate> * 12. * <v20:operations> * 13. * <v20:operator>ADD</v20:operator> * 14. * <v20:operand> * 15. * <v20:adGroupId>[redacted]<</v20:adGroupId> * 16. * <v20:ad> * 17. * <v20:displayUrl>example.com</v20:displayUrl> * 18. * <v20:finalUrls>http://www.example.com</v20:finalUrls> * 19. * <v20:type>TEXT_AD</v20:type> * 20. * <v20:devicePreference>30001</v20:devicePreference> * 21. * <v20:Ad.Type>TextAd</v20:Ad.Type> * 22. * <v20:headline>Summer things</v20:headline> * 23. * <v20:description1>Get things for summer</v20:description1> * 24. * <v20:description2>while the prices are low.</v20:description2> * 25. * </v20:ad> * 26. * <v20:status>ENABLED</v20:status> * 27. * </v20:operand> * 28. * </v20:operations> * 29. * </v20:mutate> * 30. * </soapenv:Body> * 31. *</soapenv:Envelope>* It seems that the order of the ad element has something to do with it because the error messages change when I re-order the ad elements. Any suggestions? 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/46f03d7c-a312-439f-84fc-1e8cbe735734%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
