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.



32640
32641
32642
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32640

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)


32612
32613
32614
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32612

def category_id
  @category_id
end

#levelString

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

Returns:

  • (String)


32617
32618
32619
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32617

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



32622
32623
32624
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32622

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)


32627
32628
32629
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32627

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)


32633
32634
32635
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32633

def resource_name
  @resource_name
end

#stateString

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

Returns:

  • (String)


32638
32639
32640
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32638

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32645
32646
32647
32648
32649
32650
32651
32652
# File 'lib/google/apis/searchads360_v23/classes.rb', line 32645

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