Class: Google::Apis::PartnersV2::OfferCustomer
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::OfferCustomer
- 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
Customers qualified for an offer.
Instance Attribute Summary collapse
-
#adwords_url ⇒ String
URL to the customer's AdWords page.
-
#country_code ⇒ String
Country code of the customer.
-
#creation_time ⇒ String
Time the customer was created.
-
#eligibility_days_left ⇒ Fixnum
Days the customer is still eligible.
-
#external_cid ⇒ Fixnum
External CID for the customer.
-
#get_y_amount ⇒ String
Formatted Get Y amount with currency code.
-
#name ⇒ String
Name of the customer.
-
#offer_type ⇒ String
Type of the offer Corresponds to the JSON property
offerType
. -
#spend_x_amount ⇒ String
Formatted Spend X amount with currency code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OfferCustomer
constructor
A new instance of OfferCustomer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OfferCustomer
Returns a new instance of OfferCustomer
1737 1738 1739 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1737 def initialize(**args) update!(**args) end |
Instance Attribute Details
#adwords_url ⇒ String
URL to the customer's AdWords page.
Corresponds to the JSON property adwordsUrl
1695 1696 1697 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1695 def adwords_url @adwords_url end |
#country_code ⇒ String
Country code of the customer.
Corresponds to the JSON property countryCode
1700 1701 1702 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1700 def country_code @country_code end |
#creation_time ⇒ String
Time the customer was created.
Corresponds to the JSON property creationTime
1705 1706 1707 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1705 def creation_time @creation_time end |
#eligibility_days_left ⇒ Fixnum
Days the customer is still eligible.
Corresponds to the JSON property eligibilityDaysLeft
1710 1711 1712 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1710 def eligibility_days_left @eligibility_days_left end |
#external_cid ⇒ Fixnum
External CID for the customer.
Corresponds to the JSON property externalCid
1715 1716 1717 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1715 def external_cid @external_cid end |
#get_y_amount ⇒ String
Formatted Get Y amount with currency code.
Corresponds to the JSON property getYAmount
1720 1721 1722 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1720 def get_y_amount @get_y_amount end |
#name ⇒ String
Name of the customer.
Corresponds to the JSON property name
1725 1726 1727 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1725 def name @name end |
#offer_type ⇒ String
Type of the offer
Corresponds to the JSON property offerType
1730 1731 1732 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1730 def offer_type @offer_type end |
#spend_x_amount ⇒ String
Formatted Spend X amount with currency code.
Corresponds to the JSON property spendXAmount
1735 1736 1737 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1735 def spend_x_amount @spend_x_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1742 def update!(**args) @adwords_url = args[:adwords_url] if args.key?(:adwords_url) @country_code = args[:country_code] if args.key?(:country_code) @creation_time = args[:creation_time] if args.key?(:creation_time) @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left) @external_cid = args[:external_cid] if args.key?(:external_cid) @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount) @name = args[:name] if args.key?(:name) @offer_type = args[:offer_type] if args.key?(:offer_type) @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount) end |