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.
32466 32467 32468 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32466 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
32438 32439 32440 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32438 def category_id @category_id end |
#level ⇒ String
Output only. Level of the product category.
Corresponds to the JSON property level
32443 32444 32445 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32443 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
32448 32449 32450 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32448 def localizations @localizations end |
#product_category_constant_parent ⇒ String
Output only. Resource name of the parent product category.
Corresponds to the JSON property productCategoryConstantParent
32453 32454 32455 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32453 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`
32459 32460 32461 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32459 def resource_name @resource_name end |
#state ⇒ String
Output only. State of the product category.
Corresponds to the JSON property state
32464 32465 32466 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32464 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32471 32472 32473 32474 32475 32476 32477 32478 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32471 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 |