aboutsummaryrefslogtreecommitdiff
path: root/googleapiclient/discovery_cache/documents/localservices.v1.json
blob: b703d33bd73bfaafa1b40b1fbdc49468ee62189b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/adwords": {
"description": "See, edit, create, and delete your Google Ads accounts and data."
}
}
}
},
"basePath": "",
"baseUrl": "https://localservices.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Localservices",
"description": "",
"discoveryVersion": "v1",
"documentationLink": "https://ads.google.com/local-services-ads/",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "localservices:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://localservices.mtls.googleapis.com/",
"name": "localservices",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"accountReports": {
"methods": {
"search": {
"description": "Get account reports containing aggregate account data of all linked GLS accounts. Caller needs to provide their manager customer id and the associated auth credential that allows them read permissions on their linked accounts.",
"flatPath": "v1/accountReports:search",
"httpMethod": "GET",
"id": "localservices.accountReports.search",
"parameterOrder": [],
"parameters": {
"endDate.day": {
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
"format": "int32",
"location": "query",
"type": "integer"
},
"endDate.month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"location": "query",
"type": "integer"
},
"endDate.year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageSize": {
"description": "The maximum number of accounts to return. If the page size is unset, page size will default to 1000. Maximum page_size is 10000. Optional.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The `next_page_token` value returned from a previous request to SearchAccountReports that indicates where listing should continue. Optional.",
"location": "query",
"type": "string"
},
"query": {
"description": "A query string for searching for account reports. Caller must provide a customer id of their MCC account with an associated Gaia Mint that allows read permission on their linked accounts. Search expressions are case insensitive. Example query: | Query | Description | |-------------------------|-----------------------------------------------| | manager_customer_id:123 | Get Account Report for Manager with id 123. | Required.",
"location": "query",
"type": "string"
},
"startDate.day": {
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
"format": "int32",
"location": "query",
"type": "integer"
},
"startDate.month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"location": "query",
"type": "integer"
},
"startDate.year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"location": "query",
"type": "integer"
}
},
"path": "v1/accountReports:search",
"response": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/adwords"
]
}
}
},
"detailedLeadReports": {
"methods": {
"search": {
"description": "Get detailed lead reports containing leads that have been received by all linked GLS accounts. Caller needs to provide their manager customer id and the associated auth credential that allows them read permissions on their linked accounts.",
"flatPath": "v1/detailedLeadReports:search",
"httpMethod": "GET",
"id": "localservices.detailedLeadReports.search",
"parameterOrder": [],
"parameters": {
"endDate.day": {
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
"format": "int32",
"location": "query",
"type": "integer"
},
"endDate.month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"location": "query",
"type": "integer"
},
"endDate.year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageSize": {
"description": "The maximum number of accounts to return. If the page size is unset, page size will default to 1000. Maximum page_size is 10000. Optional.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "The `next_page_token` value returned from a previous request to SearchDetailedLeadReports that indicates where listing should continue. Optional.",
"location": "query",
"type": "string"
},
"query": {
"description": "A query string for searching for account reports. Caller must provide a customer id of their MCC account with an associated Gaia Mint that allows read permission on their linked accounts. Search expressions are case insensitive. Example query: | Query | Description | |-------------------------|-----------------------------------------------| | manager_customer_id:123 | Get Detailed Lead Report for Manager with id | | | 123. | Required.",
"location": "query",
"type": "string"
},
"startDate.day": {
"description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
"format": "int32",
"location": "query",
"type": "integer"
},
"startDate.month": {
"description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
"format": "int32",
"location": "query",
"type": "integer"
},
"startDate.year": {
"description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.",
"format": "int32",
"location": "query",
"type": "integer"
}
},
"path": "v1/detailedLeadReports:search",
"response": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/adwords"
]
}
}
}
},
"revision": "20240512",
"rootUrl": "https://localservices.googleapis.com/",
"schemas": {
"GoogleAdsHomeservicesLocalservicesV1AccountReport": {
"description": "An Account Report of a GLS account identified by their account id containing aggregate data gathered from a particular date range. Next ID: 18",
"id": "GoogleAdsHomeservicesLocalservicesV1AccountReport",
"properties": {
"accountId": {
"description": "Unique identifier of the GLS account.",
"format": "int64",
"type": "string"
},
"aggregatorInfo": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1AggregatorInfo",
"description": "Aggregator specific information related to the account."
},
"averageFiveStarRating": {
"description": "Average review rating score from 1-5 stars.",
"format": "double",
"type": "number"
},
"averageWeeklyBudget": {
"description": "Average weekly budget in the currency code of the account.",
"format": "double",
"type": "number"
},
"businessName": {
"description": "Business name of the account.",
"type": "string"
},
"currencyCode": {
"description": "Currency code of the account.",
"type": "string"
},
"currentPeriodChargedLeads": {
"description": "Number of charged leads the account received in current specified period.",
"format": "int64",
"type": "string"
},
"currentPeriodConnectedPhoneCalls": {
"description": "Number of connected phone calls (duration over 30s) in current specified period.",
"format": "int64",
"type": "string"
},
"currentPeriodPhoneCalls": {
"description": "Number of phone calls in current specified period, including both connected and unconnected calls.",
"format": "int64",
"type": "string"
},
"currentPeriodTotalCost": {
"description": "Total cost of the account in current specified period in the account's specified currency.",
"format": "double",
"type": "number"
},
"impressionsLastTwoDays": {
"description": "Number of impressions that customers have had in the past 2 days.",
"format": "int64",
"type": "string"
},
"phoneLeadResponsiveness": {
"description": "Phone lead responsiveness of the account for the past 90 days from current date. This is computed by taking the total number of connected calls from charged phone leads and dividing by the total number of calls received.",
"format": "double",
"type": "number"
},
"previousPeriodChargedLeads": {
"description": "Number of charged leads the account received in previous specified period.",
"format": "int64",
"type": "string"
},
"previousPeriodConnectedPhoneCalls": {
"description": "Number of connected phone calls (duration over 30s) in previous specified period.",
"format": "int64",
"type": "string"
},
"previousPeriodPhoneCalls": {
"description": "Number of phone calls in previous specified period, including both connected and unconnected calls.",
"format": "int64",
"type": "string"
},
"previousPeriodTotalCost": {
"description": "Total cost of the account in previous specified period in the account's specified currency.",
"format": "double",
"type": "number"
},
"totalReview": {
"description": "Total number of reviews the account has up to current date.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GoogleAdsHomeservicesLocalservicesV1AggregatorInfo": {
"description": "Conatiner for aggregator specific information if lead is for an aggregator GLS account.",
"id": "GoogleAdsHomeservicesLocalservicesV1AggregatorInfo",
"properties": {
"aggregatorProviderId": {
"description": "Provider id (listed in aggregator system) which maps to a account id in GLS system.",
"type": "string"
}
},
"type": "object"
},
"GoogleAdsHomeservicesLocalservicesV1BookingLead": {
"description": "Container for booking lead specific information.",
"id": "GoogleAdsHomeservicesLocalservicesV1BookingLead",
"properties": {
"bookingAppointmentTimestamp": {
"description": "Timestamp of when service is provided by advertiser.",
"format": "google-datetime",
"type": "string"
},
"consumerEmail": {
"description": "Consumer email associated with the booking lead.",
"type": "string"
},
"consumerPhoneNumber": {
"description": "Consumer phone number associated with the booking lead.",
"type": "string"
},
"customerName": {
"description": "Name of the customer who created the lead.",
"type": "string"
},
"jobType": {
"description": "The job type of the specified lead.",
"type": "string"
}
},
"type": "object"
},
"GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport": {
"description": "A Detailed Lead Report of a lead identified by their lead id and contains consumer, account, monetization, and lead data.",
"id": "GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport",
"properties": {
"accountId": {
"description": "Identifies account that received the lead.",
"format": "int64",
"type": "string"
},
"aggregatorInfo": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1AggregatorInfo",
"description": "Aggregator specific information related to the lead."
},
"bookingLead": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1BookingLead",
"description": "More information associated to only booking leads."
},
"businessName": {
"description": "Business name associated to the account.",
"type": "string"
},
"chargeStatus": {
"description": "Whether the lead has been charged.",
"enum": [
"CHARGE_STATUS_UNSPECIFIED",
"CHARGED",
"NOT_CHARGED"
],
"enumDescriptions": [
"Not specified.",
"Charged.",
"Not charged."
],
"type": "string"
},
"currencyCode": {
"description": "Currency code.",
"type": "string"
},
"disputeStatus": {
"description": "Dispute status related to the lead.",
"type": "string"
},
"geo": {
"description": "Location of the associated account's home city.",
"type": "string"
},
"googleAdsLeadId": {
"description": "Unique identifier of a Detailed Lead Report.",
"format": "int64",
"type": "string"
},
"leadCategory": {
"description": "Lead category (e.g. hvac, plumber)",
"type": "string"
},
"leadCreationTimestamp": {
"description": "Timestamp of when the lead was created.",
"format": "google-datetime",
"type": "string"
},
"leadId": {
"description": "Deprecated in favor of google_ads_lead_id. Unique identifier of a Detailed Lead Report.",
"format": "int64",
"type": "string"
},
"leadPrice": {
"description": "Price of the lead (available only after it has been charged).",
"format": "double",
"type": "number"
},
"leadType": {
"description": "Lead type.",
"enum": [
"LEAD_TYPE_UNSPECIFIED",
"MESSAGE",
"PHONE_CALL",
"BOOKING"
],
"enumDescriptions": [
"Not specified.",
"Message lead.",
"Phone call lead.",
"Booking lead."
],
"type": "string"
},
"messageLead": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1MessageLead",
"description": "More information associated to only message leads."
},
"phoneLead": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1PhoneLead",
"description": "More information associated to only phone leads."
},
"timezone": {
"$ref": "GoogleTypeTimeZone",
"description": "Timezone of the particular provider associated to a lead."
}
},
"type": "object"
},
"GoogleAdsHomeservicesLocalservicesV1MessageLead": {
"description": "Container for message lead specific information.",
"id": "GoogleAdsHomeservicesLocalservicesV1MessageLead",
"properties": {
"consumerPhoneNumber": {
"description": "Consumer phone number associated with the message lead.",
"type": "string"
},
"customerName": {
"description": "Name of the customer who created the lead.",
"type": "string"
},
"jobType": {
"description": "The job type of the specified lead.",
"type": "string"
},
"postalCode": {
"description": "The postal code of the customer who created the lead.",
"type": "string"
}
},
"type": "object"
},
"GoogleAdsHomeservicesLocalservicesV1PhoneLead": {
"description": "Container for phone lead specific information.",
"id": "GoogleAdsHomeservicesLocalservicesV1PhoneLead",
"properties": {
"chargedCallTimestamp": {
"description": "Timestamp of the phone call which resulted in a charged phone lead.",
"format": "google-datetime",
"type": "string"
},
"chargedConnectedCallDurationSeconds": {
"description": "Duration of the charged phone call in seconds.",
"format": "google-duration",
"type": "string"
},
"consumerPhoneNumber": {
"description": "Consumer phone number associated with the phone lead.",
"type": "string"
}
},
"type": "object"
},
"GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse": {
"description": "A page of the response received from the SearchAccountReports method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.",
"id": "GoogleAdsHomeservicesLocalservicesV1SearchAccountReportsResponse",
"properties": {
"accountReports": {
"description": "List of account reports which maps 1:1 to a particular linked GLS account.",
"items": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1AccountReport"
},
"type": "array"
},
"nextPageToken": {
"description": "Pagination token to retrieve the next page of results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.",
"type": "string"
}
},
"type": "object"
},
"GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse": {
"description": "A page of the response received from the SearchDetailedLeadReports method. A paginated response where more pages are available has `next_page_token` set. This token can be used in a subsequent request to retrieve the next request page.",
"id": "GoogleAdsHomeservicesLocalservicesV1SearchDetailedLeadReportsResponse",
"properties": {
"detailedLeadReports": {
"description": "List of detailed lead reports uniquely identified by external lead id.",
"items": {
"$ref": "GoogleAdsHomeservicesLocalservicesV1DetailedLeadReport"
},
"type": "array"
},
"nextPageToken": {
"description": "Pagination token to retrieve the next page of results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set.",
"type": "string"
}
},
"type": "object"
},
"GoogleTypeTimeZone": {
"description": "Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones).",
"id": "GoogleTypeTimeZone",
"properties": {
"id": {
"description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".",
"type": "string"
},
"version": {
"description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Local Services API",
"version": "v1",
"version_module": true
}