Class: Google::Apis::PartnersV2::CountryOfferInfo

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

Overview

Offer info by country.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CountryOfferInfo

Returns a new instance of CountryOfferInfo



1137
1138
1139
# File 'generated/google/apis/partners_v2/classes.rb', line 1137

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

Instance Attribute Details

#get_y_amountString

(localized) Get Y amount for that country's offer. Corresponds to the JSON property getYAmount

Returns:

  • (String)


1125
1126
1127
# File 'generated/google/apis/partners_v2/classes.rb', line 1125

def get_y_amount
  @get_y_amount
end

#offer_country_codeString

Country code for which offer codes may be requested. Corresponds to the JSON property offerCountryCode

Returns:

  • (String)


1135
1136
1137
# File 'generated/google/apis/partners_v2/classes.rb', line 1135

def offer_country_code
  @offer_country_code
end

#offer_typeString

Type of offer country is eligible for. Corresponds to the JSON property offerType

Returns:

  • (String)


1120
1121
1122
# File 'generated/google/apis/partners_v2/classes.rb', line 1120

def offer_type
  @offer_type
end

#spend_x_amountString

(localized) Spend X amount for that country's offer. Corresponds to the JSON property spendXAmount

Returns:

  • (String)


1130
1131
1132
# File 'generated/google/apis/partners_v2/classes.rb', line 1130

def spend_x_amount
  @spend_x_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1142
1143
1144
1145
1146
1147
# File 'generated/google/apis/partners_v2/classes.rb', line 1142

def update!(**args)
  @offer_type = args[:offer_type] if args.key?(:offer_type)
  @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
  @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
  @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
end