Class: Google::Apis::AuthorizedbuyersmarketplaceV1::CriteriaTargeting

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

Overview

Generic targeting used for targeting dimensions that contains a list of included and excluded numeric IDs. This cannot be filtered using list filter syntax.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CriteriaTargeting

Returns a new instance of CriteriaTargeting.



481
482
483
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 481

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>)


474
475
476
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 474

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>)


479
480
481
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 479

def targeted_criteria_ids
  @targeted_criteria_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



486
487
488
489
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 486

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