Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesProductBiddingCategoryConstant

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb

Overview

A Product Bidding Category.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesProductBiddingCategoryConstant

Returns a new instance of GoogleAdsSearchads360V0ResourcesProductBiddingCategoryConstant.



7363
7364
7365
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7363

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#country_codeString

Output only. Two-letter upper-case country code of the product bidding category. Corresponds to the JSON property countryCode

Returns:

  • (String)


7321
7322
7323
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7321

def country_code
  @country_code
end

#idFixnum

Output only. ID of the product bidding 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 id

Returns:

  • (Fixnum)


7328
7329
7330
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7328

def id
  @id
end

#language_codeString

Output only. Language code of the product bidding category. Corresponds to the JSON property languageCode

Returns:

  • (String)


7333
7334
7335
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7333

def language_code
  @language_code
end

#levelString

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

Returns:

  • (String)


7338
7339
7340
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7338

def level
  @level
end

#localized_nameString

Output only. Display value of the product bidding category localized according to language_code. Corresponds to the JSON property localizedName

Returns:

  • (String)


7344
7345
7346
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7344

def localized_name
  @localized_name
end

#product_bidding_category_constant_parentString

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

Returns:

  • (String)


7349
7350
7351
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7349

def product_bidding_category_constant_parent
  @product_bidding_category_constant_parent
end

#resource_nameString

Output only. The resource name of the product bidding category. Product bidding category resource names have the form: productBiddingCategoryConstants/country_code~level~id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


7356
7357
7358
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7356

def resource_name
  @resource_name
end

#statusString

Output only. Status of the product bidding category. Corresponds to the JSON property status

Returns:

  • (String)


7361
7362
7363
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7361

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7368

def update!(**args)
  @country_code = args[:country_code] if args.key?(:country_code)
  @id = args[:id] if args.key?(:id)
  @language_code = args[:language_code] if args.key?(:language_code)
  @level = args[:level] if args.key?(:level)
  @localized_name = args[:localized_name] if args.key?(:localized_name)
  @product_bidding_category_constant_parent = args[:product_bidding_category_constant_parent] if args.key?(:product_bidding_category_constant_parent)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @status = args[:status] if args.key?(:status)
end