Class: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/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
-
#excluded_criteria_ids ⇒ Array<Fixnum>
A list of numeric IDs to be excluded.
-
#targeted_criteria_ids ⇒ Array<Fixnum>
A list of numeric IDs to be included.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CriteriaTargeting
constructor
A new instance of CriteriaTargeting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CriteriaTargeting
Returns a new instance of CriteriaTargeting.
1040 1041 1042 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1040 def initialize(**args) update!(**args) end |
Instance Attribute Details
#excluded_criteria_ids ⇒ Array<Fixnum>
A list of numeric IDs to be excluded.
Corresponds to the JSON property excludedCriteriaIds
1033 1034 1035 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1033 def excluded_criteria_ids @excluded_criteria_ids end |
#targeted_criteria_ids ⇒ Array<Fixnum>
A list of numeric IDs to be included.
Corresponds to the JSON property targetedCriteriaIds
1038 1039 1040 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1038 def targeted_criteria_ids @targeted_criteria_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1045 1046 1047 1048 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1045 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 |