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.



7497
7498
7499
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7497

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)


7455
7456
7457
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7455

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)


7462
7463
7464
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7462

def id
  @id
end

#language_codeString

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

Returns:

  • (String)


7467
7468
7469
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7467

def language_code
  @language_code
end

#levelString

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

Returns:

  • (String)


7472
7473
7474
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7472

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)


7478
7479
7480
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7478

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)


7483
7484
7485
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7483

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)


7490
7491
7492
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7490

def resource_name
  @resource_name
end

#statusString

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

Returns:

  • (String)


7495
7496
7497
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7495

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
# File 'lib/google/apis/searchads360_v0/classes.rb', line 7502

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