Working on updating more v2009 code to v201109, am building my own XML
request but using the AddTextAds.php example as a guide. Sending the
following SOAP message:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/
envelope/" xmlns:v20="
https://adwords.google.com/api/adwords/cm/
v201109" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<v20:RequestHeader> <v20:authToken>blahblahblah</v20:authToken>
<v20:developerToken>blah</v20:developerToken>
<v20:userAgent>V201109 Create ad</v20:userAgent>
</v20:RequestHeader>
</soapenv:Header>
<soapenv:Body>
<v20:mutate>
<v20:operations>
<v20:operator>ADD</v20:operator>
<v20:operand>
<v20:adGroupId>986856585</v20:adGroupId>
<v20:ad xsi:type="v20:TextAd">
<v20:headline>Admiral Ahoy Ship Five NEW</v20:headline>
<v20:description1>Welcome to Admiral 201109</v20:description1>
<v20:description2>Smooth Sailing Ahead</v20:description2>
<v20:displayUrl>
www.36bits.com</v20:displayUrl>
<v20:url>
http://www.36bits.com</v20:url>
</v20:ad>
<v20:status>ENABLED</v20:status>
</v20:operand>
</v20:operations>
</v20:mutate>
</soapenv:Body>
</soapenv:Envelope>
returns the error
Unmarshalling Error: cvc-complex-type.2.4.d: Invalid content was found
starting with element 'v20:displayUrl'. No child element is expected
at this point.
Odd thing is that if I reorder the TextAd elements, it seems to throw
this error on whatever is the 4th element. Tried looking at the WSDL
in soapUI, nothing obvious. Above ordering of the TextAd elements is
same as in the php example.
??
Thanks,
reed