1 message in com.googlegroups.adwords-apiUnable to upload Website criterion
FromSent OnAttachments
CFJ17 Apr 2007 06:54 
Subject:Unable to upload Website criterion
From:CFJ (jmcc@crutchfield.com)
Date:04/17/2007 06:54:50 AM
List:com.googlegroups.adwords-api

I have created a brand new campaign with networkTargeting set to the ContentNetwork and enableSeparateContentBids set to true. In that campaign, I created a single AdGroup and added several image Ads to that new group. Now I'm attempting to add the Website criterion to target the Ads, but I'm getting back an "invalid criterion type" exception (shown below). The AdGroup currently contains NO criterion. Anybody have any thoughts?

Here is the exception:

<ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/v9"> <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>

I'm making the following call in C# to add the Criterion:

Website website = new Website(); website.adGroupId = xxxxxxxx website.url = "thewebsite.com"; website.negative = false; Criterion[] response = service.addCriteria(new Website[] { website });