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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/localservices_v1/classes.rb,
generated/google/apis/localservices_v1/representations.rb,
generated/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.



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

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)


173
174
175
# File 'generated/google/apis/localservices_v1/classes.rb', line 173

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



179
180
181
# File 'generated/google/apis/localservices_v1/classes.rb', line 179

def aggregator_info
  @aggregator_info
end

#business_nameString

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

Returns:

  • (String)


184
185
186
# File 'generated/google/apis/localservices_v1/classes.rb', line 184

def business_name
  @business_name
end

#charge_statusString

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

Returns:

  • (String)


189
190
191
# File 'generated/google/apis/localservices_v1/classes.rb', line 189

def charge_status
  @charge_status
end

#currency_codeString

Currency code. Corresponds to the JSON property currencyCode

Returns:

  • (String)


194
195
196
# File 'generated/google/apis/localservices_v1/classes.rb', line 194

def currency_code
  @currency_code
end

#dispute_statusString

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

Returns:

  • (String)


199
200
201
# File 'generated/google/apis/localservices_v1/classes.rb', line 199

def dispute_status
  @dispute_status
end

#geoString

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

Returns:

  • (String)


204
205
206
# File 'generated/google/apis/localservices_v1/classes.rb', line 204

def geo
  @geo
end

#lead_categoryString

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

Returns:

  • (String)


209
210
211
# File 'generated/google/apis/localservices_v1/classes.rb', line 209

def lead_category
  @lead_category
end

#lead_creation_timestampString

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

Returns:

  • (String)


214
215
216
# File 'generated/google/apis/localservices_v1/classes.rb', line 214

def lead_creation_timestamp
  @lead_creation_timestamp
end

#lead_idFixnum

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

Returns:

  • (Fixnum)


219
220
221
# File 'generated/google/apis/localservices_v1/classes.rb', line 219

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)


224
225
226
# File 'generated/google/apis/localservices_v1/classes.rb', line 224

def lead_price
  @lead_price
end

#lead_typeString

Lead type. Corresponds to the JSON property leadType

Returns:

  • (String)


229
230
231
# File 'generated/google/apis/localservices_v1/classes.rb', line 229

def lead_type
  @lead_type
end

#message_leadGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead

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



234
235
236
# File 'generated/google/apis/localservices_v1/classes.rb', line 234

def message_lead
  @message_lead
end

#phone_leadGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1PhoneLead

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



239
240
241
# File 'generated/google/apis/localservices_v1/classes.rb', line 239

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



245
246
247
# File 'generated/google/apis/localservices_v1/classes.rb', line 245

def timezone
  @timezone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# File 'generated/google/apis/localservices_v1/classes.rb', line 252

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @aggregator_info = args[:aggregator_info] if args.key?(:aggregator_info)
  @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)
  @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