Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesProductCategoryConstant
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesProductCategoryConstant
- 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
A Product Category.
Instance Attribute Summary collapse
-
#category_id ⇒ Fixnum
Output only.
-
#level ⇒ String
Output only.
-
#localizations ⇒ Array<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesProductCategoryConstantProductCategoryLocalization>
Output only.
-
#product_category_constant_parent ⇒ String
Output only.
-
#resource_name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesProductCategoryConstant
constructor
A new instance of GoogleAdsSearchads360V23ResourcesProductCategoryConstant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesProductCategoryConstant
Returns a new instance of GoogleAdsSearchads360V23ResourcesProductCategoryConstant.
32568 32569 32570 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32568 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category_id ⇒ Fixnum
Output only. The ID of the product category. This ID is equivalent to the
google_product_category ID as described in this article: https://support.
google.com/merchants/answer/6324436.
Corresponds to the JSON property categoryId
32540 32541 32542 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32540 def category_id @category_id end |
#level ⇒ String
Output only. Level of the product category.
Corresponds to the JSON property level
32545 32546 32547 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32545 def level @level end |
#localizations ⇒ Array<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesProductCategoryConstantProductCategoryLocalization>
Output only. List of all available localizations of the product category.
Corresponds to the JSON property localizations
32550 32551 32552 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32550 def localizations @localizations end |
#product_category_constant_parent ⇒ String
Output only. Resource name of the parent product category.
Corresponds to the JSON property productCategoryConstantParent
32555 32556 32557 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32555 def product_category_constant_parent @product_category_constant_parent end |
#resource_name ⇒ String
Output only. The resource name of the product category. Product category
resource names have the form: productCategoryConstants/level~category_id`
Corresponds to the JSON propertyresourceName`
32561 32562 32563 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32561 def resource_name @resource_name end |
#state ⇒ String
Output only. State of the product category.
Corresponds to the JSON property state
32566 32567 32568 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32566 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32573 32574 32575 32576 32577 32578 32579 32580 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32573 def update!(**args) @category_id = args[:category_id] if args.key?(:category_id) @level = args[:level] if args.key?(:level) @localizations = args[:localizations] if args.key?(:localizations) @product_category_constant_parent = args[:product_category_constant_parent] if args.key?(:product_category_constant_parent) @resource_name = args[:resource_name] if args.key?(:resource_name) @state = args[:state] if args.key?(:state) end |