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 and
http://code.google.com/intl/da/apis/adwords/docs/developer/CriterionService.html#updateCriteria
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: POST
https://adwords.google.com/api/adwords/v13/CriterionService HTTP/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 adwords-...@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