Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonTargetRestriction

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

Overview

The list of per-targeting-dimension targeting settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonTargetRestriction

Returns a new instance of GoogleAdsSearchads360V0CommonTargetRestriction.



2330
2331
2332
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2330

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

Instance Attribute Details

#bid_onlyBoolean Also known as: bid_only?

Indicates whether to restrict your ads to show only for the criteria you have selected for this targeting_dimension, or to target all values for this targeting_dimension and show ads based on your targeting in other TargetingDimensions. A value of true means that these criteria will only apply bid modifiers, and not affect targeting. A value of false means that these criteria will restrict targeting as well as applying bid modifiers. Corresponds to the JSON property bidOnly

Returns:

  • (Boolean)


2322
2323
2324
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2322

def bid_only
  @bid_only
end

#targeting_dimensionString

The targeting dimension that these settings apply to. Corresponds to the JSON property targetingDimension

Returns:

  • (String)


2328
2329
2330
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2328

def targeting_dimension
  @targeting_dimension
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2335
2336
2337
2338
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2335

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