Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesProductCategoryConstantProductCategoryLocalization

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

Localization for the product category.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesProductCategoryConstantProductCategoryLocalization

Returns a new instance of GoogleAdsSearchads360V23ResourcesProductCategoryConstantProductCategoryLocalization.



17616
17617
17618
# File 'lib/google/apis/searchads360_v23/classes.rb', line 17616

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

Instance Attribute Details

#language_codeString

Output only. Two-letter ISO 639-1 language code of the localized category. Corresponds to the JSON property languageCode

Returns:

  • (String)


17603
17604
17605
# File 'lib/google/apis/searchads360_v23/classes.rb', line 17603

def language_code
  @language_code
end

#region_codeString

Output only. Upper-case two-letter ISO 3166-1 country code of the localized category. Corresponds to the JSON property regionCode

Returns:

  • (String)


17609
17610
17611
# File 'lib/google/apis/searchads360_v23/classes.rb', line 17609

def region_code
  @region_code
end

#valueString

Output only. The name of the category in the specified locale. Corresponds to the JSON property value

Returns:

  • (String)


17614
17615
17616
# File 'lib/google/apis/searchads360_v23/classes.rb', line 17614

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17621
17622
17623
17624
17625
# File 'lib/google/apis/searchads360_v23/classes.rb', line 17621

def update!(**args)
  @language_code = args[:language_code] if args.key?(:language_code)
  @region_code = args[:region_code] if args.key?(:region_code)
  @value = args[:value] if args.key?(:value)
end