What I'm supposed to set TempAdUnionId to? If I don't have one, should I just set it to 0? Here's my SOAP request/response:
-----------------BEGIN API CALL--------------------- Request ------- POST /api/adwords/cm/v200909/AdGroupAdService User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.3603) Content-Type: text/xml; charset=utf-8 SOAPAction: "" Host: adwords.google.com Content-Length: 3339 Expect: 100-continue Accept-Encoding: gzip <?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/ v200909"><applicationToken>********EFPg</ applicationToken><authToken>********</ authToken><developerToken>********vM_g</developerToken></ RequestHeader></soap:Header><soap:Body><mutate xmlns="https:// adwords.google.com/api/adwords/cm/v200909"><operations><operator>ADD</ operator><operand><adGroupId>1293553144</adGroupId><ad xsi:type="TemplateAd"><url>http://tracking.dsmmadvantage.com/redirect/ redirect.aspx? wm_ctID=288&wm_kwID=10134792&wm_mtID=4&wm_DefaultURL=http %3a%2f%2fwww.anjolee.com%2f&wm_content={ifsearch:0}{ifcontent:1} &wm_g_crID={creative}&wm_g_kw={keyword} &wm_g_pcmt={placement}&wm_g_cnt={ifsearch:0}{ifcontent:1}</ url><displayUrl>www.Anjolee.com</displayUrl><templateId>29</ templateId><adUnionId><id>326674</id><AdUnionId.Type>AdUnionId</ AdUnionId.Type></adUnionId><templateElements><uniqueName>adData</ uniqueName><fields><name>adName</name><type>TEXT</ type><fieldText>Visual Ad 1</fieldText></fields><fields><name>text1</ name><type>TEXT</type><fieldText>Buy Diamond Jewelry - Up To 60% OFF!</ fieldText></fields><fields><name>text1Font</name><type>ENUM</ type><fieldText>franklingothic_h</fieldText></ fields><fields><name>text1Color</name><type>ENUM</ type><fieldText>#FFFFFF</fieldText></fields><fields><name>text2</ name><type>TEXT</type><fieldText>Buy Direct From Factory! Save MONEY!</ fieldText></fields><fields><name>text2Font</name><type>ENUM</ type><fieldText>franklingothic_m</fieldText></ fields><fields><name>text2Color</name><type>ENUM</ type><fieldText>#ffffff</fieldText></fields><fields><name>clickText</ name><type>TEXT</type><fieldText>SHOP NOW</fieldText></ fields><fields><name>clickTextFont</name><type>ENUM</ type><fieldText>franklingothic_h</fieldText></ fields><fields><name>clickTextColor</name><type>ENUM</ type><fieldText>#FFFFFF</fieldText></fields><fields><name>buttonColor</ name><type>ENUM</type><fieldText>#D50019</fieldText></ fields><fields><name>backgroundColor</name><type>ENUM</ type><fieldText>#4AA0D3</fieldText></ fields><fields><name>backgroundColor2</name><type>ENUM</ type><fieldText>#032349</fieldText></fields><fields><name>displayUrl</ name><type>VISIBLE_URL</type><fieldText>www.Anjolee.com</fieldText></ fields><fields><name>displayUrlColor</name><type>ENUM</ type><fieldText>#ffffff</fieldText></ fields><fields><name>destinationUrl</name><type>URL</ type><fieldText>http://tracking.dsmmadvantage.com/redirect/ redirect.aspx? wm_ctID=288&wm_kwID=10134792&wm_mtID=4&wm_DefaultURL=http %3a%2f%2fwww.anjolee.com%2f&wm_content={ifsearch:0}{ifcontent:1} &wm_g_crID={creative}&wm_g_kw={keyword} &wm_g_pcmt={placement}&wm_g_cnt={ifsearch:0}{ifcontent:1}</ fieldText></fields></templateElements><dimensions><width>300</ width><height>250</height></dimensions><name>Visual Ad 1</name></ ad><status>ENABLED</status></operand></operations></mutate></ soap:Body></soap:Envelope> Response -------- Content-Encoding: Transfer-Encoding: chunked X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Cache-Control: private, max-age=0 Content-Type: text/xml; charset=UTF-8 Date: Wed, 28 Apr 2010 20:05:40 GMT Expires: Wed, 28 Apr 2010 20:05:40 GMT Server: GSE <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/ envelope/"><soap:Header><ResponseHeader xmlns="https:// adwords.google.com/api/adwords/cm/ v200909"><requestId>e5580fbc998f221bc7e7573c11e7c27a</ requestId><operations>1</operations><responseTime>1688</ responseTime><units>40</units></ResponseHeader></ soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</ faultcode><faultstring>[AdError.MUST_USE_TEMP_AD_UNION_ID_ON_ADD @ operations[0].operand.ad.adUnionId]</ faultstring><detail><ApiExceptionFault xmlns="https:// adwords.google.com/api/adwords/cm/ v200909"><message>[AdError.MUST_USE_TEMP_AD_UNION_ID_ON_ADD @ operations[0].operand.ad.adUnionId]</ message><ApplicationException.Type>ApiException</ ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance" xsi:type="AdError"><fieldPath>operations[0].operand.ad.adUnionId</ fieldPath><trigger></trigger><ApiError.Type>AdError</ ApiError.Type><reason>MUST_USE_TEMP_AD_UNION_ID_ON_ADD</reason></ errors></ApiExceptionFault></detail></soap:Fault></soap:Body></ soap:Envelope> -----------------END API CALL----------------------- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. 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
