# Google Business Profile

Publish updates, events and offers to a Google Business Profile location with the Zernio API, then manage its reviews, listing details and performance metrics.

import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { PlatformCapabilities } from '@/components/platform-capabilities';

Publish updates, events and offers to Google Business Profile (`googlebusiness`) with `POST /v1/posts` and `platform: "googlebusiness"`.

The same account also serves reviews, listing management (hours, photos, services, menus, verification) and location-level performance metrics.

## Quick reference

<PlatformCapabilities rows={[
  { property: 'Character limit', value: '1,500' },
  { property: 'Images per post', value: '1' },
  { property: 'Videos per post', value: 'Not supported' },
  { property: 'Image formats', value: 'JPEG, PNG only (WebP auto-converted)' },
  { property: 'Image max size', value: '5 MB' },
  { property: 'Image min dimensions', value: '400 x 300 px' },
  { property: 'Post types', value: 'Text, Text+Image, Text+CTA, Event, Offer' },
  { property: 'Scheduling', value: 'Yes' },
  { property: 'Inbox (Reviews)', value: 'Yes' },
  { property: 'Inbox (DMs/Comments)', value: 'No' },
  { property: 'Analytics', value: 'Location-level only (per-post deprecated by Google)' },
]} />

## Before you start

Google Business Profile requires a verified location.

Posts appear in Google Search, Google Maps and the Knowledge Panel rather than in a social feed. They contribute to local search ranking.

A post stays visible for about 7 days before Google archives it, so post at least weekly.

Videos are not supported. A text-only post works but gets less visibility than one with an image or a call-to-action button.

## Connect

Call `GET /v1/connect/googlebusiness` with `profileId` ([Get OAuth connect URL](/connect/get-connect-url)). Send the user's browser to the returned `authUrl`.

After Google's consent screen the user picks which location to connect. Zernio hosts that screen by default.

To build it yourself, pass `headless=true` and use [List locations](/connect/list-google-business-locations) and [Select location](/connect/select-google-business-location).

The [connecting accounts guide](/guides/connecting-accounts#platforms-requiring-secondary-selection) covers both modes and [scopes](/guides/connecting-accounts#scopes). [Account health](/accounts/get-all-accounts-health) reports what a connected account can do.

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
import Zernio from '@zernio/node';

const zernio = new Zernio();

const { data: connect } = await zernio.connect.getConnectUrl({
  path: { platform: 'googlebusiness' },
  query: { profileId: '66a1f0c2a4b9d3e8f1a2b3c4', redirect_url: 'https://myapp.com/callback' }
});
// Send the user's browser to connect.authUrl
```
</Tab>
<Tab value="Python">
```python
from zernio import Zernio

client = Zernio()

connect = client.connect.get_connect_url(
    platform="googlebusiness",
    profile_id="66a1f0c2a4b9d3e8f1a2b3c4",
    redirect_url="https://myapp.com/callback",
)
# Send the user's browser to connect["authUrl"]
```
</Tab>
<Tab value="curl">
```bash
curl "https://zernio.com/api/v1/connect/googlebusiness?profileId=66a1f0c2a4b9d3e8f1a2b3c4&redirect_url=https://myapp.com/callback" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```
</Tab>
</Tabs>

Response (`200`):

```json
{
  "authUrl": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...",
  "state": "..."
}
```

After the location is selected, the user lands on `redirect_url` with these params appended:

```
connected=googlebusiness&profileId=...&accountId=...
```

One account is one location. An account that manages several locations posts to the others with `locationId`; see [Multi-Location Posting](/platforms/google-business/multi-location).

## Publish

A plain post becomes a `STANDARD` update on the connected location. Call `POST /v1/posts` with:

- `content`
- at most one image in `mediaItems`
- a `platforms` entry with `platform: "googlebusiness"`
- `publishNow: true`

```bash
curl -X POST https://zernio.com/api/v1/posts \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Open all holiday weekend. Stop by for the seasonal menu.",
    "mediaItems": [
      {"type": "image", "url": "https://cdn.example.com/holiday-special.jpg"}
    ],
    "platforms": [
      {"platform": "googlebusiness", "accountId": "66b2e19d8c3f5a7e9d0b1c2d"}
    ],
    "publishNow": true
  }'
```

Response (`201`):

```json
{
  "post": {
    "_id": "65f1c0a9e2b5af0012ab34cd",
    "status": "published",
    "platforms": [
      {
        "platform": "googlebusiness",
        "status": "published",
        "platformPostId": "1234567890123456789",
        "platformPostUrl": "https://business.google.com/..."
      }
    ]
  }
}
```

Replace `publishNow` with `scheduledFor` and `timezone` to schedule it.

Call-to-action buttons, text-only posts and edits are on [Posts & Content Types](/platforms/google-business/posts). `topicType: "EVENT"` and `"OFFER"` are on [Event & Offer Posts](/platforms/google-business/events-offers).

## Common errors

| Error | Cause | Fix |
|-------|-------|-----|
| `402` with `code: "PAYMENT_REQUIRED"` on `GET /v1/connect/googlebusiness` | A billing gate stopped the connection before OAuth started, usually no payment method on file. | Send the user to the `dashboard_url` in the response, then call connect again. |
| `500` on `GET /v1/connect/googlebusiness/locations` | Google refused the listing: the token is invalid, or the user lacks permission on the Google Business account. | Restart the connect flow so the user re-authorizes with `business.manage`. |
| `404` on `POST /v1/connect/googlebusiness/select-location` | `locationId` is not one of the locations this connection manages. | Pass an `id` from the [List locations](/connect/list-google-business-locations) response of the same flow. |

The publish-time errors are in [Fields, Media & Limits](/platforms/google-business/reference#common-errors), and [Error handling](/guides/error-handling) covers the envelope.

## In this section

<PlatformPages platform="google-business" />

## Related

- [Connecting accounts](/guides/connecting-accounts): the OAuth flow and the location selection step.
- [Create post](/posts/create-post): every field of the request.
- [Media uploads](/guides/media-uploads): upload images instead of hosting them.
- [Reviews](/reviews/list-inbox-reviews): the inbox API for reviews.
- [Performance metrics](/analytics/get-google-business-performance): daily impressions, clicks, calls, directions and bookings.