Class: Google::Apis::PartnersV2::Lead

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

A lead resource that represents an advertiser contact for a Company. These are usually generated via Google Partner Search (the advertiser portal).

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

Returns a new instance of Lead.



259
260
261
# File 'generated/google/apis/partners_v2/classes.rb', line 259

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

Instance Attribute Details

#commentsString

Comments lead source gave. Corresponds to the JSON property comments

Returns:

  • (String)


247
248
249
# File 'generated/google/apis/partners_v2/classes.rb', line 247

def comments
  @comments
end

#emailString

Email address of lead source. Corresponds to the JSON property email

Returns:

  • (String)


222
223
224
# File 'generated/google/apis/partners_v2/classes.rb', line 222

def email
  @email
end

#family_nameString

Last name of lead source. Corresponds to the JSON property familyName

Returns:

  • (String)


232
233
234
# File 'generated/google/apis/partners_v2/classes.rb', line 232

def family_name
  @family_name
end

#given_nameString

First name of lead source. Corresponds to the JSON property givenName

Returns:

  • (String)


227
228
229
# File 'generated/google/apis/partners_v2/classes.rb', line 227

def given_name
  @given_name
end

#gps_motivationsArray<String>

List of reasons for using Google Partner Search and creating a lead. Corresponds to the JSON property gpsMotivations

Returns:

  • (Array<String>)


252
253
254
# File 'generated/google/apis/partners_v2/classes.rb', line 252

def gps_motivations
  @gps_motivations
end

#idString

ID of the lead. Corresponds to the JSON property id

Returns:

  • (String)


212
213
214
# File 'generated/google/apis/partners_v2/classes.rb', line 212

def id
  @id
end

#min_monthly_budgetGoogle::Apis::PartnersV2::Money

Represents an amount of money with its currency type. Corresponds to the JSON property minMonthlyBudget



257
258
259
# File 'generated/google/apis/partners_v2/classes.rb', line 257

def min_monthly_budget
  @min_monthly_budget
end

#phone_numberString

Phone number of lead source. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


242
243
244
# File 'generated/google/apis/partners_v2/classes.rb', line 242

def phone_number
  @phone_number
end

#typeString

Type of lead. Corresponds to the JSON property type

Returns:

  • (String)


217
218
219
# File 'generated/google/apis/partners_v2/classes.rb', line 217

def type
  @type
end

#website_urlString

Website URL of lead source. Corresponds to the JSON property websiteUrl

Returns:

  • (String)


237
238
239
# File 'generated/google/apis/partners_v2/classes.rb', line 237

def website_url
  @website_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



264
265
266
267
268
269
270
271
272
273
274
275
# File 'generated/google/apis/partners_v2/classes.rb', line 264

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @type = args[:type] if args.key?(:type)
  @email = args[:email] if args.key?(:email)
  @given_name = args[:given_name] if args.key?(:given_name)
  @family_name = args[:family_name] if args.key?(:family_name)
  @website_url = args[:website_url] if args.key?(:website_url)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @comments = args[:comments] if args.key?(:comments)
  @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations)
  @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget)
end