Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonProductCategoryInfo

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

Category of a product offer.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idFixnum

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)


9376
9377
9378
# File 'lib/google/apis/searchads360_v23/classes.rb', line 9376

def category_id
  @category_id
end

#levelString

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

Returns:

  • (String)


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