Class: Google::Apis::PartnersV2::OfferCustomer

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

Customers qualified for an offer.

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) ⇒ OfferCustomer

Returns a new instance of OfferCustomer



1748
1749
1750
# File 'generated/google/apis/partners_v2/classes.rb', line 1748

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

Instance Attribute Details

#adwords_urlString

URL to the customer's AdWords page. Corresponds to the JSON property adwordsUrl

Returns:

  • (String)


1706
1707
1708
# File 'generated/google/apis/partners_v2/classes.rb', line 1706

def adwords_url
  @adwords_url
end

#country_codeString

Country code of the customer. Corresponds to the JSON property countryCode

Returns:

  • (String)


1711
1712
1713
# File 'generated/google/apis/partners_v2/classes.rb', line 1711

def country_code
  @country_code
end

#creation_timeString

Time the customer was created. Corresponds to the JSON property creationTime

Returns:

  • (String)


1716
1717
1718
# File 'generated/google/apis/partners_v2/classes.rb', line 1716

def creation_time
  @creation_time
end

#eligibility_days_leftFixnum

Days the customer is still eligible. Corresponds to the JSON property eligibilityDaysLeft

Returns:

  • (Fixnum)


1721
1722
1723
# File 'generated/google/apis/partners_v2/classes.rb', line 1721

def eligibility_days_left
  @eligibility_days_left
end

#external_cidFixnum

External CID for the customer. Corresponds to the JSON property externalCid

Returns:

  • (Fixnum)


1726
1727
1728
# File 'generated/google/apis/partners_v2/classes.rb', line 1726

def external_cid
  @external_cid
end

#get_y_amountString

Formatted Get Y amount with currency code. Corresponds to the JSON property getYAmount

Returns:

  • (String)


1731
1732
1733
# File 'generated/google/apis/partners_v2/classes.rb', line 1731

def get_y_amount
  @get_y_amount
end

#nameString

Name of the customer. Corresponds to the JSON property name

Returns:

  • (String)


1736
1737
1738
# File 'generated/google/apis/partners_v2/classes.rb', line 1736

def name
  @name
end

#offer_typeString

Type of the offer Corresponds to the JSON property offerType

Returns:

  • (String)


1741
1742
1743
# File 'generated/google/apis/partners_v2/classes.rb', line 1741

def offer_type
  @offer_type
end

#spend_x_amountString

Formatted Spend X amount with currency code. Corresponds to the JSON property spendXAmount

Returns:

  • (String)


1746
1747
1748
# File 'generated/google/apis/partners_v2/classes.rb', line 1746

def spend_x_amount
  @spend_x_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
# File 'generated/google/apis/partners_v2/classes.rb', line 1753

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