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



2084
2085
2086
# File 'generated/google/apis/partners_v2/classes.rb', line 2084

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)


2047
2048
2049
# File 'generated/google/apis/partners_v2/classes.rb', line 2047

def adwords_url
  @adwords_url
end

#country_codeString

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

Returns:

  • (String)


2052
2053
2054
# File 'generated/google/apis/partners_v2/classes.rb', line 2052

def country_code
  @country_code
end

#creation_timeString

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

Returns:

  • (String)


2062
2063
2064
# File 'generated/google/apis/partners_v2/classes.rb', line 2062

def creation_time
  @creation_time
end

#eligibility_days_leftFixnum

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

Returns:

  • (Fixnum)


2067
2068
2069
# File 'generated/google/apis/partners_v2/classes.rb', line 2067

def eligibility_days_left
  @eligibility_days_left
end

#external_cidString

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

Returns:

  • (String)


2057
2058
2059
# File 'generated/google/apis/partners_v2/classes.rb', line 2057

def external_cid
  @external_cid
end

#get_y_amountString

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

Returns:

  • (String)


2077
2078
2079
# File 'generated/google/apis/partners_v2/classes.rb', line 2077

def get_y_amount
  @get_y_amount
end

#nameString

Name of the customer. Corresponds to the JSON property name

Returns:

  • (String)


2082
2083
2084
# File 'generated/google/apis/partners_v2/classes.rb', line 2082

def name
  @name
end

#offer_typeString

Type of the offer Corresponds to the JSON property offerType

Returns:

  • (String)


2072
2073
2074
# File 'generated/google/apis/partners_v2/classes.rb', line 2072

def offer_type
  @offer_type
end

#spend_x_amountString

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

Returns:

  • (String)


2042
2043
2044
# File 'generated/google/apis/partners_v2/classes.rb', line 2042

def spend_x_amount
  @spend_x_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
# File 'generated/google/apis/partners_v2/classes.rb', line 2089

def update!(**args)
  @spend_x_amount = args[:spend_x_amount] if args.key?(:spend_x_amount)
  @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
  @country_code = args[:country_code] if args.key?(:country_code)
  @external_cid = args[:external_cid] if args.key?(:external_cid)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @eligibility_days_left = args[:eligibility_days_left] if args.key?(:eligibility_days_left)
  @offer_type = args[:offer_type] if args.key?(:offer_type)
  @get_y_amount = args[:get_y_amount] if args.key?(:get_y_amount)
  @name = args[:name] if args.key?(:name)
end