Class: Google::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/localservices_v1/classes.rb,
lib/google/apis/localservices_v1/representations.rb,
lib/google/apis/localservices_v1/representations.rb

Overview

A Detailed Lead Report of a lead identified by their lead id and contains consumer, account, monetization, and lead data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport

Returns a new instance of GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport.



307
308
309
# File 'lib/google/apis/localservices_v1/classes.rb', line 307

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

Instance Attribute Details

#account_idFixnum

Identifies account that received the lead. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


222
223
224
# File 'lib/google/apis/localservices_v1/classes.rb', line 222

def 
  @account_id
end

#aggregator_infoGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1AggregatorInfo

Conatiner for aggregator specific information if lead is for an aggregator GLS account. Corresponds to the JSON property aggregatorInfo



228
229
230
# File 'lib/google/apis/localservices_v1/classes.rb', line 228

def aggregator_info
  @aggregator_info
end

#booking_leadGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1BookingLead

Container for booking lead specific information. Corresponds to the JSON property bookingLead



233
234
235
# File 'lib/google/apis/localservices_v1/classes.rb', line 233

def booking_lead
  @booking_lead
end

#business_nameString

Business name associated to the account. Corresponds to the JSON property businessName

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/localservices_v1/classes.rb', line 238

def business_name
  @business_name
end

#charge_statusString

Whether the lead has been charged. Corresponds to the JSON property chargeStatus

Returns:

  • (String)


243
244
245
# File 'lib/google/apis/localservices_v1/classes.rb', line 243

def charge_status
  @charge_status
end

#currency_codeString

Currency code. Corresponds to the JSON property currencyCode

Returns:

  • (String)


248
249
250
# File 'lib/google/apis/localservices_v1/classes.rb', line 248

def currency_code
  @currency_code
end

#dispute_statusString

Dispute status related to the lead. Corresponds to the JSON property disputeStatus

Returns:

  • (String)


253
254
255
# File 'lib/google/apis/localservices_v1/classes.rb', line 253

def dispute_status
  @dispute_status
end

#geoString

Location of the associated account's home city. Corresponds to the JSON property geo

Returns:

  • (String)


258
259
260
# File 'lib/google/apis/localservices_v1/classes.rb', line 258

def geo
  @geo
end

Unique identifier of a Detailed Lead Report. Corresponds to the JSON property googleAdsLeadId

Returns:

  • (Fixnum)


263
264
265
# File 'lib/google/apis/localservices_v1/classes.rb', line 263

def google_ads_lead_id
  @google_ads_lead_id
end

#lead_categoryString

Lead category (e.g. hvac, plumber) Corresponds to the JSON property leadCategory

Returns:

  • (String)


268
269
270
# File 'lib/google/apis/localservices_v1/classes.rb', line 268

def lead_category
  @lead_category
end

#lead_creation_timestampString

Timestamp of when the lead was created. Corresponds to the JSON property leadCreationTimestamp

Returns:

  • (String)


273
274
275
# File 'lib/google/apis/localservices_v1/classes.rb', line 273

def lead_creation_timestamp
  @lead_creation_timestamp
end

#lead_idFixnum

Deprecated in favor of google_ads_lead_id. Unique identifier of a Detailed Lead Report. Corresponds to the JSON property leadId

Returns:

  • (Fixnum)


279
280
281
# File 'lib/google/apis/localservices_v1/classes.rb', line 279

def lead_id
  @lead_id
end

#lead_priceFloat

Price of the lead (available only after it has been charged). Corresponds to the JSON property leadPrice

Returns:

  • (Float)


284
285
286
# File 'lib/google/apis/localservices_v1/classes.rb', line 284

def lead_price
  @lead_price
end

#lead_typeString

Lead type. Corresponds to the JSON property leadType

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/localservices_v1/classes.rb', line 289

def lead_type
  @lead_type
end

#message_leadGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead

Container for message lead specific information. Corresponds to the JSON property messageLead



294
295
296
# File 'lib/google/apis/localservices_v1/classes.rb', line 294

def message_lead
  @message_lead
end

#phone_leadGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1PhoneLead

Container for phone lead specific information. Corresponds to the JSON property phoneLead



299
300
301
# File 'lib/google/apis/localservices_v1/classes.rb', line 299

def phone_lead
  @phone_lead
end

#timezoneGoogle::Apis::LocalservicesV1::GoogleTypeTimeZone

Represents a time zone from the IANA Time Zone Database. Corresponds to the JSON property timezone



305
306
307
# File 'lib/google/apis/localservices_v1/classes.rb', line 305

def timezone
  @timezone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# File 'lib/google/apis/localservices_v1/classes.rb', line 312

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @aggregator_info = args[:aggregator_info] if args.key?(:aggregator_info)
  @booking_lead = args[:booking_lead] if args.key?(:booking_lead)
  @business_name = args[:business_name] if args.key?(:business_name)
  @charge_status = args[:charge_status] if args.key?(:charge_status)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @dispute_status = args[:dispute_status] if args.key?(:dispute_status)
  @geo = args[:geo] if args.key?(:geo)
  @google_ads_lead_id = args[:google_ads_lead_id] if args.key?(:google_ads_lead_id)
  @lead_category = args[:lead_category] if args.key?(:lead_category)
  @lead_creation_timestamp = args[:lead_creation_timestamp] if args.key?(:lead_creation_timestamp)
  @lead_id = args[:lead_id] if args.key?(:lead_id)
  @lead_price = args[:lead_price] if args.key?(:lead_price)
  @lead_type = args[:lead_type] if args.key?(:lead_type)
  @message_lead = args[:message_lead] if args.key?(:message_lead)
  @phone_lead = args[:phone_lead] if args.key?(:phone_lead)
  @timezone = args[:timezone] if args.key?(:timezone)
end