Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability

Returns a new instance of GoogleAdsSearchads360V23CommonCriterionCategoryLocaleAvailability.



3088
3089
3090
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3088

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

Instance Attribute Details

#availability_modeString

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

Returns:

  • (String)


3076
3077
3078
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3076

def availability_mode
  @availability_mode
end

#country_codeString

The ISO-3166-1 alpha-2 country code associated with the category. Corresponds to the JSON property countryCode

Returns:

  • (String)


3081
3082
3083
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3081

def country_code
  @country_code
end

#language_codeString

ISO 639-1 code of the language associated with the category. Corresponds to the JSON property languageCode

Returns:

  • (String)


3086
3087
3088
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3086

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3093
3094
3095
3096
3097
# File 'lib/google/apis/searchads360_v23/classes.rb', line 3093

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