admin
lsa-admin

Google Lsa Leads

Fetch an org's LSA leads straight from Google over the last lookback_days and, when reconcile is set (default), diff them against leads.lead by external id.

The read that separates "Google delivered no leads" from "we dropped leads Google delivered": each account reports google_count vs missing_from_db_count (the dropped set), and db_window_count for the reverse case (Google dry now, we ingested earlier). Authenticates via the account's MCC manager credential where one is mapped, so it reads even when the org's own Google Ads credential is dead. Read-only; one Google Ads op per account. Pass reconcile=false for the raw Google fetch with no DB comparison.

get/admin/lsa/leads

Request

  • Base URL
    https://api-docs.upsmith.com (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Query parameters

organization_idstring required
lookback_daysinteger
google_customer_idstring nullable
reconcileboolean

Headers

organization-idstring nullable
timezonestring
x-user-idstring nullable
x-actor-emailstring nullable
x-request-sourcestring nullable
x-operation-idstring nullable
x-commit-messagestring nullable
x-confirmation-idstring nullable
x-chat-idstring nullable

Response

Successful Response

organization_idstring required
sincestring date-time required

Lower bound (UTC) on lead received_at that was queried.

lookback_daysinteger required
reconciledboolean required

Whether results were diffed against leads.lead. False = raw Google fetch only.

Changes

No recorded changes to this operation across all 1 revision of this API.