hmm... then this is a bug with the python api library. On Nov 22, 3:47 pm, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi J, > > The value should be <ns1:validateOnly>true</ns1:validateOnly>, not > <ns1:validateOnly>y</ns1:validateOnly>. > > Hope that helps. Let me know if you have more questions. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Nov 18, 6:39 pm, J <j...@recessnetworks.net> wrote: > > > i was building my app using the sandbox, and when i just did a trial > > run to add a campaign, i was running with validate only in the header: > > > StartTime: 2010-11-19 02:16:24 > > *** Outgoing HTTP headers > > ********************************************** > > User-Agent: ZSI 2.0.0 (http://pywebsvcs.sf.net);xml.etree.ElementTree > > v1.2.6 > > ************************************************************************ > > *** Outgoing SOAP > > ****************************************************** > > <?xml version='1.0' encoding='UTF-8'?><ns0:Envelope xmlns:ns0="http:// > > schemas.xmlsoap.org/soap/envelope/"> > > <ns0:Header> <ns1:RequestHeader xmlns:ns1="https:// > > adwords.google.com/api/adwords/cm/v20100 > > 8"> > > <ns1:authToken>xxxxxx</ns1:authToken> <ns1:partialFailure>y</ > > ns1:partialFailure> > > <ns1:developerToken>j...@recessnetworks.net++usd</ > > ns1:developerToken> > > <ns1:clientEmail>client_2+...@recessnetworks.net</ > > ns1:clientEmail> <ns1:userAgent>AwApi-Python-13.1.0|robin test 0.1</ > > ns1:userAgent> > > <ns1:validateOnly>y</ns1:validateOnly> </ns1:RequestHeader> </ > > ns0:Header> <ns0:Body> > > <ns1:mutate xmlns:ns1="https://adwords.google.com/api/adwords/cm/ > > v201008"> > > <ns1:operations> > > <ns1:operator>ADD</ns1:operator> > > <ns1:operand> > > <ns1:name>1</ns1:name> > > <ns1:status>PAUSED</ns1:status> > > <ns1:startDate>20101118</ns1:startDate> > > <ns1:budget ns2:type="ns1:Budget" xmlns:ns2="http://www.w3.org/ > > 2001/XMLSchema-instance"> > > <ns1:period>DAILY</ns1:period> > > <ns1:amount ns2:type="ns1:Money"> > > <ns1:microAmount>15000000000</ns1:microAmount> > > </ns1:amount> > > </ns1:budget> > > <ns1:biddingStrategy ns2:type="ns1:ManualCPC" > > xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance"> > > <ns1:enhancedCpcEnabled>0</ns1:enhancedCpcEnabled> > > </ns1:biddingStrategy> > > <ns1:adServingOptimizationStatus>ROTATE</ > > ns1:adServingOptimizationStatus> > > </ns1:operand> > > </ns1:operations> > > </ns1:mutate> > > </ns0:Body> > > </ns0:Envelope> > > > now... i saw that the response actually returned the new campaign > > instead of returning None per the documentation around the purposes of > > validateOnly! > > > subsequently, running my app again, it errored out with > > AdWordsRequestError: [CampaignError.DUPLICATE_CAMPAIGN_NAME @ > > operations[0].operand.name] further proving that the sandbox doesn't > > honor the validateOnly header. > > > this seems wrong. i'd love to be able to test things out using the > > sandbox a bit before i commit. i guess i can stick in random garbage > > to existing objects' names to "delete" them... :/ > >
-- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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