Google Business Profile analytics API: the metrics PubNio reads

Google Business Profile is upcoming on PubNio: no account can connect yet, so PubNio returns no Google Business Profile analytics today. Its adapter is already in the code and declares no post metrics and 3 account metrics, listed below with the Google Business Profile field each one reads.

Google Business Profile: UpcomingView as Markdown

What PubNio returns

MetricPost fieldAccount field
impressionsnot declaredfour BUSINESS_IMPRESSIONS_* series summed
clicksnot declaredWEBSITE_CLICKS + CALL_CLICKS
link_clicksnot declaredWEBSITE_CLICKS

Google Business returns no value for the other keys, reach, views, likes, comments, shares, saves, profile_visits, page_views, follows, followers, follower_gained, follower_lost, watch_time_ms, avg_watch_time_ms, completion_rate, engagement, and engagement_rate: the adapter marks each not_exposed or leaves it out.

“Not declared” means the adapter's capabilities leave the metric out. A post reading then comes back unsupported with reason not_exposed; an account reading comes back pending with reason account_analytics_pending and stays there, because the account sync reads only declared metrics.

How PubNio reads it

  • Google Business Profile analytics are location-level only, from the Business Profile Performance API. Impressions add desktop and mobile Maps and Search impressions, and a day counts only when all four series report it.
  • GET /analytics/capabilities does not list Google Business Profile among its providers, although the adapter is wired into the account sync.

Account metrics are read once a day, each time for the UTC dates from 30 days before the read through the day of the read, and readings count as stale two days after the last read.

Capabilities also declare latencySeconds: 86400, how long the adapter expects Google Business's numbers to take to settle. PubNio publishes the figure; reads are scheduled only by the rules above.

PubNio's Google Business analytics capabilities require these OAuth scopes on the connected account: https://www.googleapis.com/auth/business.manage. When one is missing, the sync marks the metrics permission_missing and lists what is absent in missingScopes.

Example

impressions is declared, and no daily account read has stored it yet, so it is pending with reason not_published until the first read lands. reach and views are metrics Google Business does not supply: each comes back unsupported with its reason. The request answers 200 with one entry per key.

request.http
GET /api/v1/workspaces/4e5f6a7b-8c9d-4e0f-9a1b-2c3d4e5f6a7b/analytics/accounts/7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b?metrics=impressions&metrics=reach&metrics=views
Authorization: Bearer pn_live_***
response-metrics.json
[
  {
    "key": "impressions",
    "value": null,
    "availability": "pending",
    "reason": "not_published"
  },
  {
    "key": "reach",
    "value": null,
    "availability": "unsupported",
    "reason": "not_exposed"
  },
  {
    "key": "views",
    "value": null,
    "availability": "unsupported",
    "reason": "not_exposed"
  }
]

Limits

  • No post analytics: every post metric is unsupported with reason not_exposed. No followers, reach, or engagement for locations.
  • A request covers at most 366 days and 30 metrics, in UTC dates, and defaults to the last 30 days. How far back a daily series reaches depends on the workspace plan, and stored daily points are deleted after 400 days.