Create placement problem

15 views
Skip to first unread message

Harutyun Terteryan

unread,
Aug 24, 2009, 1:20:58 AM8/24/09
to AdWords API Forum
Hi all

I use adwords .net api v13.
When I try to create a placement for some adgroup I got this kind of error message in log `
 This criterion type is invalid. Acceptable values are 'Website' and 'Keyword'.  Websites and keywords may not be used in ad groups in the same campaign.
What is this case?

Best
Harut.

AdWords API Advisor

unread,
Aug 24, 2009, 10:17:02 AM8/24/09
to AdWords API Forum
Hi Harut,

Can you please post the SOAP XML from the request that generated this
error? Perhaps the criterionType field wasn't set properly.

Best,
- Eric Koleda, AdWords API Team

Eric Gomes

unread,
Aug 24, 2009, 11:05:45 AM8/24/09
to adwordsa...@google.com, AdWords API Forum
Or probably, as the error message says,  there are both websites and keywords being used in the same campaign.

_____________________
Eric M Gomes
11 9950 3930
Octavarium Tecnologia
www.octavarium.com.br
www.google.com/profiles/OctavariumTecnologia
Google AdWords
ID Gerente 956-647-4629


harroot

unread,
Aug 25, 2009, 12:54:33 AM8/25/09
to AdWords API Forum

Hi
Here is the xml-s
-----SoapRequest at 8/25/2009 9:38:31 AM-----
POST /api/adwords/v13/CriterionService HTTP/1.0
Host: sandbox.google.com:443
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 2.0.50727.3082)
Content-type: text/xml; charset=utf-8
Content-length: 1192
SOAPAction: "addCriteria"
--------------------------------------------------
<?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/
v13">********ken_</applicationToken>
<clientCustomerId xmlns="https://adwords.google.com/api/adwords/
v13">294-47</clientCustomerId>
<developerToken xmlns="https://adwords.google.com/api/adwords/
v13">********+USD</developerToken>
<email xmlns="https://adwords.google.com/api/adwords/
v13">101ww...@gmail.com</email>
<password xmlns="https://adwords.google.com/api/adwords/
v13">********</password>
<useragent xmlns="https://adwords.google.com/api/adwords/
v13">KondimentPaltform_client</useragent>
</soap:Header>
<soap:Body>
<addCriteria xmlns="https://adwords.google.com/api/adwords/v13">
<criteria xsi:type="Website">
<adGroupId>5520843712</adGroupId>
<criterionType>Website</criterionType>
<destinationUrl xsi:nil="true" />
<exemptionRequest xsi:nil="true" />
<id>0</id>
<language xsi:nil="true" />
<negative>false</negative>
<url>test.com</url>
</criteria>
</addCriteria>
</soap:Body>
</soap:Envelope>
--------------------------------------------------

-----SoapResponse at 8/25/2009 9:38:32 AM-----
Content-type: text/xml; charset=utf-8
Content-length: 1799
SOAPAction: "addCriteria"
--------------------------------------------------
<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">277</responseTime>
<operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13">1</operations>
<units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13">1</units>
<requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/
next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13">4957d056bd091fa28f021112b91ae1b0</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/
v13">
<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>criterionType</ns1:field>
<ns1:trigger>Website</ns1:trigger>
<ns1:code>74</ns1:code>
<ns1:isExemptable>false</ns1:isExemptable>
<ns1:detail>This criterion type is invalid. Acceptable
values are 'Website' and 'Keyword'. Websites and keywords may not be
used in ad groups in the same campaign.</ns1:detail>
</ns1:errors>
</ns1:fault>
</detail>
</soapenv:Fault>

Best
Harut.

On Aug 24, 7:17 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

AdWords API Advisor

unread,
Aug 25, 2009, 10:54:40 AM8/25/09
to AdWords API Forum, harroot
Hi Harroot,

Thank your posting the request, it appears to be well formatted. Can
you confirm that the campaign is targeting the content network?

Thanks,
- Eric
Reply all
Reply to author
Forward
0 new messages