Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesProductCategoryConstant

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

A Product Category.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idFixnum

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

Returns:

  • (Fixnum)


32438
32439
32440
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32438

def category_id
  @category_id
end

#levelString

Output only. Level of the product category. Corresponds to the JSON property level

Returns:

  • (String)


32443
32444
32445
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32443

def level
  @level
end

#localizationsArray<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_parentString

Output only. Resource name of the parent product category. Corresponds to the JSON property productCategoryConstantParent

Returns:

  • (String)


32453
32454
32455
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32453

def product_category_constant_parent
  @product_category_constant_parent
end

#resource_nameString

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`

Returns:

  • (String)


32459
32460
32461
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32459

def resource_name
  @resource_name
end

#stateString

Output only. State of the product category. Corresponds to the JSON property state

Returns:

  • (String)


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