Class: Google::Apis::PartnersV2::HistoricalOffer

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

Historical information about a Google Partners 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) ⇒ HistoricalOffer

Returns a new instance of HistoricalOffer



1841
1842
1843
# File 'generated/google/apis/partners_v2/classes.rb', line 1841

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

Instance Attribute Details

#adwords_urlString

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

Returns:

  • (String)


1829
1830
1831
# File 'generated/google/apis/partners_v2/classes.rb', line 1829

def adwords_url
  @adwords_url
end

#client_emailString

Email address for client. Corresponds to the JSON property clientEmail

Returns:

  • (String)


1804
1805
1806
# File 'generated/google/apis/partners_v2/classes.rb', line 1804

def client_email
  @client_email
end

#client_idFixnum

ID of client. Corresponds to the JSON property clientId

Returns:

  • (Fixnum)


1814
1815
1816
# File 'generated/google/apis/partners_v2/classes.rb', line 1814

def client_id
  @client_id
end

#client_nameString

Name of the client. Corresponds to the JSON property clientName

Returns:

  • (String)


1819
1820
1821
# File 'generated/google/apis/partners_v2/classes.rb', line 1819

def client_name
  @client_name
end

#creation_timeString

Time offer was first created. Corresponds to the JSON property creationTime

Returns:

  • (String)


1799
1800
1801
# File 'generated/google/apis/partners_v2/classes.rb', line 1799

def creation_time
  @creation_time
end

#expiration_timeString

Time this offer expires. Corresponds to the JSON property expirationTime

Returns:

  • (String)


1789
1790
1791
# File 'generated/google/apis/partners_v2/classes.rb', line 1789

def expiration_time
  @expiration_time
end

#last_modified_timeString

Time last action was taken. Corresponds to the JSON property lastModifiedTime

Returns:

  • (String)


1824
1825
1826
# File 'generated/google/apis/partners_v2/classes.rb', line 1824

def last_modified_time
  @last_modified_time
end

#offer_codeString

Offer code. Corresponds to the JSON property offerCode

Returns:

  • (String)


1794
1795
1796
# File 'generated/google/apis/partners_v2/classes.rb', line 1794

def offer_code
  @offer_code
end

#offer_country_codeString

Country Code for the offer country. Corresponds to the JSON property offerCountryCode

Returns:

  • (String)


1784
1785
1786
# File 'generated/google/apis/partners_v2/classes.rb', line 1784

def offer_country_code
  @offer_country_code
end

#offer_typeString

Type of offer. Corresponds to the JSON property offerType

Returns:

  • (String)


1834
1835
1836
# File 'generated/google/apis/partners_v2/classes.rb', line 1834

def offer_type
  @offer_type
end

#sender_nameString

Name (First + Last) of the partners user to whom the incentive is allocated. Corresponds to the JSON property senderName

Returns:

  • (String)


1839
1840
1841
# File 'generated/google/apis/partners_v2/classes.rb', line 1839

def sender_name
  @sender_name
end

#statusString

Status of the offer. Corresponds to the JSON property status

Returns:

  • (String)


1809
1810
1811
# File 'generated/google/apis/partners_v2/classes.rb', line 1809

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
# File 'generated/google/apis/partners_v2/classes.rb', line 1846

def update!(**args)
  @offer_country_code = args[:offer_country_code] if args.key?(:offer_country_code)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @offer_code = args[:offer_code] if args.key?(:offer_code)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @client_email = args[:client_email] if args.key?(:client_email)
  @status = args[:status] if args.key?(:status)
  @client_id = args[:client_id] if args.key?(:client_id)
  @client_name = args[:client_name] if args.key?(:client_name)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @adwords_url = args[:adwords_url] if args.key?(:adwords_url)
  @offer_type = args[:offer_type] if args.key?(:offer_type)
  @sender_name = args[:sender_name] if args.key?(:sender_name)
end