5 messages in com.googlegroups.adwords-apiAdWords API Re: Category targeting sh...| From | Sent On | Attachments |
|---|---|---|
| Peer Jakobsen | 25 Apr 2008 14:51 | |
| Peer Jakobsen | 29 Apr 2008 09:42 | |
| AdWords API Advisor | 29 Apr 2008 10:10 | |
| Peer Jakobsen | 29 Apr 2008 16:11 | |
| AdWords API Advisor | 30 Apr 2008 11:10 |
| Subject: | AdWords API Re: Category targeting shows categories in internal Google docvertical format![]() |
|---|---|
| From: | Peer Jakobsen (peer...@gmail.com) |
| Date: | 04/29/2008 04:11:27 PM |
| List: | com.googlegroups.adwords-api |
Hi Jeff,
We use the getAllCriteria to get those sites/categories. Here is a sample response:
<getAllCriteriaResponse xmlns="https://adwords.google.com/api/ adwords/v11"> <getAllCriteriaReturn xsi:type="ns1:Website" xmlns:ns1="https:// adwords.google.com/api/adwords/v11"> <ns1:adGroupId>539680037</ns1:adGroupId> <ns1:criterionType>Website</ns1:criterionType> <ns1:destinationUrl>http://mysite.com/</ns1:destinationUrl> <ns1:id>6586024517</ns1:id> <ns1:language xsi:nil="true"/> <ns1:negative>false</ns1:negative> <ns1:paused>false</ns1:paused> <ns1:status>Active</ns1:status> <ns1:maxCpm>0</ns1:maxCpm> <ns1:url>docvertical::98</ns1:url> </getAllCriteriaReturn> </getAllCriteriaResponse>
We use addCriteria to add those categories. Here is a sample request/response:
<?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> <applicationToken xmlns="https://adwords.google.com/api/adwords/ v12">xxx</applicationToken> <clientEmail xmlns="https://adwords.google.com/api/adwords/v12">xxx</ clientEmail> <developerToken xmlns="https://adwords.google.com/api/adwords/ v12">xxx</developerToken> <email xmlns="https://adwords.google.com/api/adwords/v12">xxx</ email> <password xmlns="https://adwords.google.com/api/adwords/v12">xxx</ password> <useragent xmlns="https://adwords.google.com/api/adwords/v12">xxx</ useragent> </soap:Header> <soap:Body> <addCriteria xmlns="https://adwords.google.com/api/adwords/v12"> <criteria xsi:type="Website"> <adGroupId>736905261</adGroupId> <destinationUrl /> <exemptionRequest xsi:nil="true" /> <id>105340277</id> <language xsi:nil="true" /> <negative>false</negative> <status>Active</status> <maxCpm>200000</maxCpm> <url>docvertical::98</url> </criteria> </addCriteria> </soap:Body> </soap:Envelope>
Reponse: <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/v12">56</responseTime> <operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/ next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ adwords/v12">1</operations> <units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ adwords/v12">20</units> <requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/ next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ adwords/v12">d6bb8db981cfa4a6f5cb37f56773e2ce</requestId> </soapenv:Header> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>One or more input elements failed validation.</ faultstring> <detail> <ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/ v12"> <ns1:code>122</ns1:code> <ns1:message>One or more input elements failed validation.</ ns1:message> <ns1:errors> <ns1:index>0</ns1:index> <ns1:field>url</ns1:field> <ns1:trigger>docvertical::98</ns1:trigger> <ns1:code>82</ns1:code> <ns1:isExemptable>false</ns1:isExemptable> <ns1:detail>This website url is invalid. Valid website urls must contain at most two path elements or else must end in a file or query. Negative websites urls must end in one or less path elements and may not end in a file or query.</ns1:detail> </ns1:errors> </ns1:fault> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
Thanks,
Peer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To post to this group, send email to adwo...@googlegroups.com
To unsubscribe from this group, send email to
adwo...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---




