Class: Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria
- 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
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
-
#exclusions ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::TargetingValue>
The list of values to exclude from targeting.
-
#inclusions ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::TargetingValue>
The list of value to include as part of the targeting.
-
#key ⇒ String
The key representing the shared targeting criterion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetingCriteria
constructor
A new instance of TargetingCriteria.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TargetingCriteria
Returns a new instance of TargetingCriteria.
3913 3914 3915 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3913 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclusions ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::TargetingValue>
The list of values to exclude from targeting. Each value is AND'd together.
Corresponds to the JSON property exclusions
3897 3898 3899 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3897 def exclusions @exclusions end |
#inclusions ⇒ Array<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
3903 3904 3905 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3903 def inclusions @inclusions end |
#key ⇒ String
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
3911 3912 3913 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3911 def key @key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3918 3919 3920 3921 3922 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3918 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 |