Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonProductCategoryInfo
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonProductCategoryInfo
- 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
Category of a product offer.
Instance Attribute Summary collapse
-
#category_id ⇒ Fixnum
ID of the product category.
-
#level ⇒ String
Level of the product category.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonProductCategoryInfo
constructor
A new instance of GoogleAdsSearchads360V23CommonProductCategoryInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonProductCategoryInfo
Returns a new instance of GoogleAdsSearchads360V23CommonProductCategoryInfo.
9383 9384 9385 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9383 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category_id ⇒ Fixnum
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
9376 9377 9378 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9376 def category_id @category_id end |
#level ⇒ String
Level of the product category.
Corresponds to the JSON property level
9381 9382 9383 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9381 def level @level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9388 9389 9390 9391 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9388 def update!(**args) @category_id = args[:category_id] if args.key?(:category_id) @level = args[:level] if args.key?(:level) end |