Class: Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria

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

Advertisers can target different attributes of an ad slot. For example, they can choose to show ads only if the user is in the U.S. Such targeting criteria can be specified as part of Shared Targeting.

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

Returns a new instance of TargetingCriteria.



3893
3894
3895
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3893

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

Instance Attribute Details

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

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



3876
3877
3878
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3876

def exclusions
  @exclusions
end

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

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



3882
3883
3884
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3882

def inclusions
  @inclusions
end

#keyString

The key representing the shared targeting criterion. Targeting criteria defined by Google ad servers will begin with GOOG_. Third parties may define their own keys. A list of permissible keys along with the acceptable values will be provided as part of the external documentation. Corresponds to the JSON property key

Returns:

  • (String)


3891
3892
3893
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3891

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3898
3899
3900
3901
3902
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3898

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