Hi,

The Ads objects (ProductAds, TextAds, ImageAds, etc) are immutable in the 
system by design. Instead you need to delete and re-create your Ad.

Best,

-David Torres - AdWords API Team

On Monday, September 24, 2012 4:49:54 PM UTC-4, pidus wrote:
>
> Hi,
>
> I am trying add a promotionLine to an existing product-ad using Adwords 
> API  v201109 . My outgoing and incoming soap's are listed below (with 
> intentionally obfuscated data) but it is still not resulting in creation of 
> a promotionLine. Any ideas?
>
> *** Outgoing HTTP headers **********************************************
> POST /api/adwords/cm/v201109/AdGroupAdService HTTP/1.0
> Host:adwords.google.com
> User-agent:SOAPpy 0.12.0 (pywebsvcs.sf.net),gzip
> XML-parser: xml.etree.cElementTree v1.0.6
> Content-type:text/xml; charset="UTF-8"
> Content-length:818
> Accept-Encoding:gzip
> Content-Encoding:gzip
> SOAPAction:"mutate"
> ************************************************************************
> *** Outgoing SOAP ******************************************************
> <?xml version='1.0' encoding='UTF-8'?>
> <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
> xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";>
>  <s:Header>
>   <ns1:RequestHeader xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201109";>
>    <ns1:developerToken>abcdefgh</ns1:developerToken>
>    <ns1:validateOnly>false</ns1:validateOnly>
>    <ns1:userAgent>AwApi-Python-15.2.1 (Python 2.6)|Vurve</ns1:userAgent>
>    <ns1:authToken>xxxxxx</ns1:authToken>
>    <ns1:clientCustomerId>012-345-6789</ns1:clientCustomerId>
>   </ns1:RequestHeader>
>  </s:Header>
>  <s:Body>
>   <ns1:mutate xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201109
> ">
>    <ns1:operations i:type="cm:AdGroupAdOperation" xmlns:i="
> http://www.w3.org/2001/XMLSchema-instance";>
>     <ns1:operator>SET</ns1:operator>
>     <ns1:operand i:type="cm:AdGroupAd">
>      <ns1:adGroupId>123456</ns1:adGroupId>
>      <ns1:ad i:type="cm:ProductAd">
>       <ns1:id>123456</ns1:id>
>       <ns1:promotionLine>Test Promotion Line</ns1:promotionLine>
>      </ns1:ad>
>      <ns1:status>ENABLED</ns1:status>
>     </ns1:operand>
>    </ns1:operations>
>   </ns1:mutate>
>  </s:Body>
> </s:Envelope>
> ************************************************************************
> *** Incoming HTTP headers **********************************************
> HTTP/1.? 200 OK
> Content-Type: text/xml; charset=UTF-8
> Content-Encoding: gzip
> Date: Mon, 24 Sep 2012 20:17:03 GMT
> Expires: Mon, 24 Sep 2012 20:17:03 GMT
> Cache-Control: private, max-age=0
> X-Content-Type-Options: nosniff
> X-Frame-Options: SAMEORIGIN
> X-XSS-Protection: 1; mode=block
> Content-Length: 438
> Server: GSE
> ************************************************************************
> *** Incoming SOAP ******************************************************
> <?xml version='1.0' encoding='UTF-8'?>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";>
>  <s:Header>
>   <ns1:ResponseHeader xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201109";>
>    <ns1:requestId>0123456789</ns1:requestId>
>    <ns1:serviceName>AdGroupAdService</ns1:serviceName>
>    <ns1:methodName>mutate</ns1:methodName>
>    <ns1:operations>1</ns1:operations>
>    <ns1:responseTime>127</ns1:responseTime>
>    <ns1:units>1</ns1:units>
>   </ns1:ResponseHeader>
>  </s:Header>
>  <s:Body>
>   <ns1:mutateResponse xmlns:ns1="
> https://adwords.google.com/api/adwords/cm/v201109";>
>    <ns1:rval>
>     
> <ns1:ListReturnValue.Type>AdGroupAdReturnValue</ns1:ListReturnValue.Type>
>     <ns1:value>
>      <ns1:adGroupId>123456</ns1:adGroupId>
>      <ns1:ad i:type="ProductAd" xmlns:i="
> http://www.w3.org/2001/XMLSchema-instance";>
>       <ns1:id>123456</ns1:id>
>       <ns1:approvalStatus>UNCHECKED</ns1:approvalStatus>
>       <ns1:Ad.Type>ProductAd</ns1:Ad.Type>
>      </ns1:ad>
>      <ns1:status>ENABLED</ns1:status>
>     </ns1:value>
>    </ns1:rval>
>   </ns1:mutateResponse>
>  </s:Body>
> </s:Envelope>
> ************************************************************************ 

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to