Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
Information about which locales a category is available in.
Instance Attribute Summary collapse
-
#availability_mode ⇒ String
Format of the locale availability.
-
#country_code ⇒ String
The ISO-3166-1 alpha-2 country code associated with the category.
-
#language_code ⇒ String
ISO 639-1 code of the language associated with the category.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability
constructor
A new instance of GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability
Returns a new instance of GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability.
3148 3149 3150 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3148 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability_mode ⇒ String
Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and
language will be empty), COUNTRY (only country will be set), LANGUAGE (only
language wil be set), COUNTRY_AND_LANGUAGE (both country and language will be
set).
Corresponds to the JSON property availabilityMode
3136 3137 3138 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3136 def availability_mode @availability_mode end |
#country_code ⇒ String
The ISO-3166-1 alpha-2 country code associated with the category.
Corresponds to the JSON property countryCode
3141 3142 3143 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3141 def country_code @country_code end |
#language_code ⇒ String
ISO 639-1 code of the language associated with the category.
Corresponds to the JSON property languageCode
3146 3147 3148 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3146 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3153 3154 3155 3156 3157 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3153 def update!(**args) @availability_mode = args[:availability_mode] if args.key?(:availability_mode) @country_code = args[:country_code] if args.key?(:country_code) @language_code = args[:language_code] if args.key?(:language_code) end |