Hi,

You can ignore Ad.Type. It is meant to help dynamic languages deserialize a 
type correctly at runtime. You should specify xsi:type as TextAd at the ad 
level instead. See 
http://code.google.com/apis/adwords/docs/reference/latest/AdGroupAdService.TextAd.html#Ad.Type
 for 
details. Also see a reference xml below.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<soap:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
<authToken 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>******</authToken>
<developerToken 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>******</developerToken>
<clientCustomerId 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>******</clientCustomerId>
<userAgent 
xmlns="https://adwords.google.com/api/adwords/cm/v201109";>AwApi-DotNet-0.0.0|INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE</userAgent>
</RequestHeader>
</soap:Header>
<soap:Body>
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201109";>
<operations>
<operator>ADD</operator>
<operand>
<adGroupId>2024941696</adGroupId>
<ad xsi:type="TextAd">
<url>http://www.example.com</url>
<displayUrl>www.example.com</displayUrl>
<headline>Luxury Cruise to Mars</headline>
<description1>Visit the Red Planet in style.</description1>
<description2>Low-gravity fun for everyone!</description2>
</ad>
</operand>
</operations>
</mutate>
</soap:Body>
</soap:Envelope>

Cheers,
Anash P. Oommen,
AdWords API Advisor.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to