When I attempt to ADD or SET CampaignCriterion I get the following error:
[0] => SoapVar Object
(
[enc_type] => 0
[enc_value] => CampaignCriterionError
Object
(
[reason] =>
CONCRETE_TYPE_REQUIRED
[fieldPath] =>
operations[0].operand.criterion
[trigger] =>
[errorString] =>
CampaignCriterionError.CONCRETE_TYPE_REQUIRED
[ApiErrorType] =>
CampaignCriterionError
[_parameterMap:ApiError:private] => Array
(
[ApiError.Type] =>
ApiErrorType
)
)
[enc_stype] => CampaignCriterionError
[enc_ns] =>
https://adwords.google.com/api/adwords/cm/v201109
)
I've seen a few posts that talk about have to set the type to
NegativeCampaignCriterion, but they are only talking about keywords and
placements in those posts. I want these to be "positive" criterion (i.e.
only target these locations, platforms, languages, etc)
What type am I supposed to send with this type of operation?
FWIW, here is a printout of one of my ADD requests which the above error
references:
[0] => CampaignCriterionOperation
Object
(
[operand] => CampaignCriterion
Object
(
[campaignId] => 79437666
[criterion] => Array
(
[0] => Platform
Object
(
[platformName] =>
[id] =>
30000
[type]
=>
[CriterionType] =>
[_parameterMap:Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)
)
[1] => Platform
Object
(
[platformName] =>
[id] =>
30001
[type]
=>
[CriterionType] =>
[_parameterMap:Criterion:private] => Array
(
[Criterion.Type] => CriterionType
)
)
)
[CampaignCriterionType]
=>
[_parameterMap:CampaignCriterion:private] => Array
(
[CampaignCriterion.Type] => CampaignCriterionType
)
)
[operator] => ADD
[OperationType] =>
CampaignCriterion
[_parameterMap:Operation:private] => Array
(
[Operation.Type] =>
OperationType
)
)
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
