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.



2369
2370
2371
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2369

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)


2361
2362
2363
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2361

def bid_only
  @bid_only
end

#targeting_dimensionString

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

Returns:

  • (String)


2367
2368
2369
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2367

def targeting_dimension
  @targeting_dimension
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2374
2375
2376
2377
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2374

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