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.



8050
8051
8052
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8050

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)


8008
8009
8010
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8008

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)


8015
8016
8017
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8015

def id
  @id
end

#language_codeString

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

Returns:

  • (String)


8020
8021
8022
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8020

def language_code
  @language_code
end

#levelString

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

Returns:

  • (String)


8025
8026
8027
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8025

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)


8031
8032
8033
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8031

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)


8036
8037
8038
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8036

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)


8043
8044
8045
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8043

def resource_name
  @resource_name
end

#statusString

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

Returns:

  • (String)


8048
8049
8050
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8048

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
# File 'lib/google/apis/searchads360_v0/classes.rb', line 8055

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