Class: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb

Overview

Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CriteriaTargeting

Returns a new instance of CriteriaTargeting.



1071
1072
1073
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1071

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#excluded_criteria_idsArray<Fixnum>

A list of numeric IDs to be excluded. Corresponds to the JSON property excludedCriteriaIds

Returns:

  • (Array<Fixnum>)


1064
1065
1066
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1064

def excluded_criteria_ids
  @excluded_criteria_ids
end

#targeted_criteria_idsArray<Fixnum>

A list of numeric IDs to be included. Corresponds to the JSON property targetedCriteriaIds

Returns:

  • (Array<Fixnum>)


1069
1070
1071
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1069

def targeted_criteria_ids
  @targeted_criteria_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1076
1077
1078
1079
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1076

def update!(**args)
  @excluded_criteria_ids = args[:excluded_criteria_ids] if args.key?(:excluded_criteria_ids)
  @targeted_criteria_ids = args[:targeted_criteria_ids] if args.key?(:targeted_criteria_ids)
end