Thursday, 23 June 2016

Re: Creating a Text Ad with SOAPUI

Hi,

To create a Text ad, you need to use xsi:type to specify the AdType as this field is ignored on input. A sample mutate element to add a TextAd looks like this:

    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201605">
            <operations>
                <operator>ADD</operator>
                <operand>
                    <adGroupId>AdGroupID</adGroupId>
                    <ad xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201605" xsi:type="ns2:TextAd">
                        <ns2:displayUrl>YOUR_DISPLAY_URL</ns2:displayUrl>
                        <ns2:finalUrls>YOUR_FINAL_URL</ns2:finalUrls>
                        <ns2:devicePreference>30001</ns2:devicePreference>
                        <ns2:headline>HEADLINE</ns2:headline>
                        <ns2:description1>DESCRIPTION1</ns2:description1>
                        <ns2:description2>DESCRIPTION2</ns2:description2>
                    </ad>
                    <status>ENABLED</status>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>


Regards,
Shwetha, AdWords API Team.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/167bd2a5-3909-4ced-a753-db2f192ad5e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment