Class: Google::Apis::AdexchangebuyerV1_4::SharedTargeting

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

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

Returns a new instance of SharedTargeting.



3460
3461
3462
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3460

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

Instance Attribute Details

#exclusionsArray<Google::Apis::AdexchangebuyerV1_4::TargetingValue>

The list of values to exclude from targeting. Each value is AND'd together. Corresponds to the JSON property exclusions



3447
3448
3449
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3447

def exclusions
  @exclusions
end

#inclusionsArray<Google::Apis::AdexchangebuyerV1_4::TargetingValue>

The list of value to include as part of the targeting. Each value is OR'd together. Corresponds to the JSON property inclusions



3453
3454
3455
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3453

def inclusions
  @inclusions
end

#keyString

The key representing the shared targeting criterion. Corresponds to the JSON property key

Returns:

  • (String)


3458
3459
3460
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3458

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3465
3466
3467
3468
3469
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3465

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