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

On Aug 25, 12:54 am, harroot <[email protected]> wrote:
> 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">[email protected]</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 <[email protected]>
> wrote:
>
>
>
> > 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
>
> > On Aug 24, 1:20 am, Harutyun Terteryan <[email protected]> wrote:
>
> > > 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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to