Hi Dane, The v13 CriterionService.updateCriteria method takes as a parameter an array of criteria, and your XML request there is no outer criteria object. Also, this criteria must either have the xsi:type attribute or the field criterionType set to the type of criterion being updated (Keyword or Website). Take a look at the v13 CriterionService.addCriteria method XML example which is similar:
http://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/src/v13/add_keyword.xml Best, - Eric Koleda, AdWords API Team On Feb 9, 8:25 am, Dane <[email protected]> wrote: > As far as I can see there are no perl examples of CriterionService - > updateCriteria > > I need to be able to correct the url (or CPC) of a certain keyword > within a certain group. > > Seeking inspiration on the supplied test scripts > andhttp://code.google.com/intl/da/apis/adwords/docs/developer/CriterionS... > I wrote a script myself. > > As far as I can see, the data sent is OK, but I do not get the result > needed, whats wrong with the request below? > > SOAP::Transport::HTTP::Client::send_receive: > POSThttps://adwords.google.com/api/adwords/v13/CriterionServiceHTTP/1.1 > Accept: text/xml > Accept: multipart/* > Content-Length: 968 > Content-Type: text/xml; charset=utf-8 > SOAPAction: "#updateCriteria" > > <?xml version="1.0" encoding="UTF-8"? > > <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema- > instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/so > ap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP- > ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > <SOAP-ENV:Header > > > <email................. > > CENSORED > > ></SOAP-ENV:Header> > > <SOAP-ENV:Body > > > <updateCriteria > > > <adGroupId > >REMOVED</adGroupId> > <id > >REMOVED</id> > <destinationUrl > >http://www.testurl.com</destinationUrl></updateCriteria></SOAP- > ENV:Body></SOAP-ENV:Envelope> > SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 500 Internal > Server Error > Cache-Control: private, max-age=0 > Connection: close > Date: Tue, 09 Feb 2010 13:08:13 GMT > Server: GFE/2.0 > Content-Type: text/xml; charset=utf-8 > Expires: Tue, 09 Feb 2010 13:08:13 GMT > Client-Date: Tue, 09 Feb 2010 13:10:05 GMT > Client-Peer: 74.125.79.112:443 > Client-Response-Num: 1 > Client-SSL-Cert-Issuer: /C=US/O=Google Inc/CN=Google Internet > Authority > Client-SSL-Cert-Subject: /C=US/ST=California/L=Mountain View/O=Google > Inc/CN=adwords.google.com > Client-SSL-Cipher: AES256-SHA > Client-SSL-Warning: Peer certificate not verified > Client-Transfer-Encoding: chunked > X-Content-Type-Options: nosniff > X-Frame-Options: SAMEORIGIN > X-XSS-Protection: 0 > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ > envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <soapenv:Header> > <responseTime soapenv:actor="http://schemas.xmlsoap.org/soap/actor/ > next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ > adwords/v13">17</responseTime> > <operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/ > next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ > adwords/v13">0</operations> > <units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" > soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ > adwords/v13">0</units> <requestId > soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" > soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ > adwords/v13">026872ffe032833d9c6d0768b88 > 52411</requestId> > </soapenv:Header> > <soapenv:Body> > <soapenv:Fault> > <faultcode>soapenv:Server.generalException</faultcode> > > <faultstring>An internal error has occurred. Please retry your > request.</faultstring> > > <detail> > <ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/ > v13"> > <ns1:code>0</ns1:code> > > <ns1:message>An internal error has occurred. Please retry your > request.</ns1:message> > > </ns1:fault> > > </detail> > > </soapenv:Fault> > </soapenv:Body> > </soapenv:Envelope> -- 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.
