Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignGeoTargetTypeSetting

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

Represents a collection of settings related to ads geotargeting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignGeoTargetTypeSetting

Returns a new instance of GoogleAdsSearchads360V0ResourcesCampaignGeoTargetTypeSetting.



2010
2011
2012
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2010

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

Instance Attribute Details

#negative_geo_target_typeString

The setting used for negative geotargeting in this particular campaign. Corresponds to the JSON property negativeGeoTargetType

Returns:

  • (String)


2003
2004
2005
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2003

def negative_geo_target_type
  @negative_geo_target_type
end

#positive_geo_target_typeString

The setting used for positive geotargeting in this particular campaign. Corresponds to the JSON property positiveGeoTargetType

Returns:

  • (String)


2008
2009
2010
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2008

def positive_geo_target_type
  @positive_geo_target_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2015
2016
2017
2018
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2015

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