Error creating new ad

51 views
Skip to first unread message

Reed

unread,
Jan 23, 2012, 2:03:37 PM1/23/12
to AdWords API Forum
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

Reed

unread,
Jan 23, 2012, 2:50:32 PM1/23/12
to AdWords API Forum
Arrgh. never mind, forgot about the strict XML validation re order of
the elements. WSDL confuses soapUI - it doesn't even show all of the
SOAP elements.

thanks,
-reed

srohde

unread,
Jun 23, 2016, 1:59:21 PM6/23/16
to AdWords API Forum
Reed, I'm running into exactly the same issue you described.   How did you resolve it?

Thanks,
Steve

Vishal Vinayak (Adwords API Team)

unread,
Jun 23, 2016, 3:26:09 PM6/23/16
to AdWords API Forum
Hi Steve,

Since this is an old issue, can you please open a new thread and explain the issue that you are facing?

Regards,
Vishal, AdWords API Team
 

Steve Rohde

unread,
Jun 23, 2016, 3:34:15 PM6/23/16
to adwordsapiadvis...@google.com, AdWords API Forum


Thanks for the super quick response!

-Steve

----------
Steve Rohde
Product Management | Acquisio

Tel: 450.465.2631 ext. 223
Email: sro...@acquisio.com

Follow Us:
Twitter: http://twitter.com/acquisio
LinkedIn: http://www.linkedin.com/company/acquisio
Facebook: http://www.facebook.com/acquisio

6300 Avenue Auteuil, 3˚ étage | Brossard,
Québec J4Z 3P2
Toll Free: 1.866.493.9070 | www.acquisio.com



--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/5Wv0H8tppA8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@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/278cb4c9-0d46-44f7-8d59-ec8cedc66515%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages