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.



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

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)


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

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



185
186
187
# File 'lib/google/apis/localservices_v1/classes.rb', line 185

def aggregator_info
  @aggregator_info
end

#business_nameString

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

Returns:

  • (String)


190
191
192
# File 'lib/google/apis/localservices_v1/classes.rb', line 190

def business_name
  @business_name
end

#charge_statusString

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

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/localservices_v1/classes.rb', line 195

def charge_status
  @charge_status
end

#currency_codeString

Currency code. Corresponds to the JSON property currencyCode

Returns:

  • (String)


200
201
202
# File 'lib/google/apis/localservices_v1/classes.rb', line 200

def currency_code
  @currency_code
end

#dispute_statusString

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

Returns:

  • (String)


205
206
207
# File 'lib/google/apis/localservices_v1/classes.rb', line 205

def dispute_status
  @dispute_status
end

#geoString

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

Returns:

  • (String)


210
211
212
# File 'lib/google/apis/localservices_v1/classes.rb', line 210

def geo
  @geo
end

#lead_categoryString

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

Returns:

  • (String)


215
216
217
# File 'lib/google/apis/localservices_v1/classes.rb', line 215

def lead_category
  @lead_category
end

#lead_creation_timestampString

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

Returns:

  • (String)


220
221
222
# File 'lib/google/apis/localservices_v1/classes.rb', line 220

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)


225
226
227
# File 'lib/google/apis/localservices_v1/classes.rb', line 225

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)


230
231
232
# File 'lib/google/apis/localservices_v1/classes.rb', line 230

def lead_price
  @lead_price
end

#lead_typeString

Lead type. Corresponds to the JSON property leadType

Returns:

  • (String)


235
236
237
# File 'lib/google/apis/localservices_v1/classes.rb', line 235

def lead_type
  @lead_type
end

#message_leadGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1MessageLead

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



240
241
242
# File 'lib/google/apis/localservices_v1/classes.rb', line 240

def message_lead
  @message_lead
end

#phone_leadGoogle::Apis::LocalservicesV1::GoogleAdsHomeservicesLocalservicesV1PhoneLead

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



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

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



251
252
253
# File 'lib/google/apis/localservices_v1/classes.rb', line 251

def timezone
  @timezone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
# File 'lib/google/apis/localservices_v1/classes.rb', line 258

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