Skip to content

List a contact's Local Services leads

GET
/api/v1/ads/local-services/leads
curl --request GET \
--url 'https://digize.com/api/v1/ads/local-services/leads?contactId=example' \
--header 'x-api-key: <x-api-key>'

The leads Google Local Services ads brought from a contact, the newest first, with whether each is rated.

Needs the crm:read permission.

contactId
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
data
required
Array<object>
object
id
required

Google’s id for the lead.

string
type
required

PHONE_CALL, MESSAGE, BOOKING or COUPON.

string
category
required
string | null
service
required
string | null
status
required

Google’s, such as NEW, ACTIVE or BOOKED.

string
charged
required

Whether Google charged for it.

boolean
creditState
required
string | null
trackingPhone
required

Google’s tracking number with its extension, when the person’s own isn’t shared.

string | null
campaignName
required
string | null
rated
required
boolean
rating
required
Any of:
string
Allowed values: VERY_SATISFIED SATISFIED NEUTRAL DISSATISFIED VERY_DISSATISFIED
ratingReason
required
string | null
ratedBy
required
string | null
ratedAt
required
Any of:
string format: date-time
createdAt
required
string format: date-time

Example

{
"data": [
{
"rating": "VERY_SATISFIED"
}
]
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}