As part of transitioning to v201109, I've written a small wrapper that
pulls the criteria csvs from the api docs page, and looks up criteria ids.
While testing that wrapper, I discovered there are cities listed (at
http://code.google.com/apis/adwords/docs/appendix/cities_us.csv) that are
refused as campaign criteria. For example, the entries for Hyannisport and
South Grafton, MA in the cities csv are:
Massachusetts,Hyannis Port,1018255,Boston MA-Manchester NH,506,US-MA
Massachusetts,South Grafton,1018410,Boston MA-Manchester NH,506,US-MA
But trying to use those ids as campaign criteria gets me the following
error:
soap:Fault
faultcodesoap:Server/faultcode
faultstring[CriterionError.CANNOT_TARGET_CRITERION @
operations[119].operand.criterion; trigger:'1018255',
CriterionError.CANNOT_TARGET_CRITERION @ operations[232].operand.criterion;
trigger:'1018410']/faultstring
detail
ApiExceptionFault
xmlns=https://adwords.google.com/api/adwords/cm/v201109;
message[CriterionError.CANNOT_TARGET_CRITERION @
operations[119].operand.criterion; trigger:'1018255',
CriterionError.CANNOT_TARGET_CRITERION @ operations[232].operand.criterion;
trigger:'1018410']/message
ApplicationException.TypeApiException/ApplicationException.Type
errors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:type=CriterionError
fieldPathoperations[119].operand.criterion/fieldPath
trigger1018255/trigger
errorStringCriterionError.CANNOT_TARGET_CRITERION/errorString
ApiError.TypeCriterionError/ApiError.Type
reasonCANNOT_TARGET_CRITERION/reason
/errors
errors xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:type=CriterionError
fieldPathoperations[232].operand.criterion/fieldPath
trigger1018410/trigger
errorStringCriterionError.CANNOT_TARGET_CRITERION/errorString
ApiError.TypeCriterionError/ApiError.Type
reasonCANNOT_TARGET_CRITERION/reason
/errors
/ApiExceptionFault
/detail
/soap:Fault
I was under the impression that the csv files in the api docs were the
authoritative source for criteria ids...is that not the case? Or is it
simply that not all criteria can be used as campaign criteria?
If it helps, this was run against sandbox, and the requestId
was 0004b760a56264b80a0d1a1a6940.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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-api@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