Never mind. I figured it out. I should have looked at the specs more 
carefully.

For anyone reading this and running into the same issue, you cannot pass an 
Array of let's say LOCATION objects in one operation. Instead, each 
location/network/etc object needs its OWN operation.

On Monday, February 27, 2012 3:02:27 PM UTC-8, Envoy Media Group wrote:
>
> 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
>                                                 )
>
>                                         )
>
>
On Monday, February 27, 2012 3:02:27 PM UTC-8, Envoy Media Group wrote:
>
> 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

Reply via email to