> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Post to Google Business Profile

> What a Google Business Profile location takes through the API: updates, events and offers, buttons, gallery photos and videos, text and media limits, deletes, reviews and analytics.

A Google Business Profile account is one location, with `platform` `google_business`. It takes local posts (updates, events and offers) and photos or videos for the location's gallery.

## Connect a location

Use a [connect link](https://docs.postsyncer.com/api-reference/accounts/connect-link.md) with `provider` `google_business`, or **Accounts** in the app. The person signs in with Google, then picks the locations to connect. Each location is its own account. [Get an account](https://docs.postsyncer.com/api-reference/accounts/get.md) shows its `location`: address, `verified`, `can_post` and its Maps link.

## What you can post

`settings.post_type` picks what the post is.

| `post_type` | What it is |
| - | - |
| `POST` (the default) | A local post on the location, with text, up to 1 photo and a button. `topic_type` makes it an update, an event or an offer. |
| `GALLERY` | One photo or one video added to the location's gallery. The post's text is its description. |

| `topic_type` | What it needs |
| - | - |
| `STANDARD` (the default) | An update. Only an update can repeat. |
| `EVENT` | `event.title` (up to 58 characters), and a start and an end, each a date and a time. The end must come after the start. |
| `OFFER` | The same as an event, plus `offer.coupon_code`, `offer.redeem_url` and `offer.terms` if you want them. An offer has no button. |

A post that's missing one of these is refused with `422` when it's saved, drafts included:

* `Google Business events and offers need a title of up to 58 characters.`
* `Google Business events and offers need a start and an end, and the end must come after the start.`
* `This Google Business button needs a link.`
* `Google Business events and offers can't repeat: their dates are fixed.`

### Locations that can't post

PostSyncer counts a location as able to post when Google reports it as verified. When Google reported that a location can't post, a `POST` answers `422` with `Reviews, stats and gallery only: Google doesn't allow posts for this business`. Gallery items, reviews and the location's analytics still work.

The account's `location.can_post` is `false` for such a location. It's also `false` when Google hasn't said either way, and a `POST` from that location isn't refused.

## Settings

Every key is optional. [Create a post](https://docs.postsyncer.com/api-reference/posts/create.md#platform-specific-settings) has the full list.

| Key | What it does |
| - | - |
| `post_type` | `POST` or `GALLERY`, as above. |
| `topic_type` | `STANDARD`, `EVENT` or `OFFER`, as above. |
| `text` | Google's own text, instead of the post's text. |
| `call_to_action` | A button: `action_type` (`BOOK`, `ORDER`, `SHOP`, `LEARN_MORE`, `SIGN_UP` or `CALL`) and `url`. A `CALL` button takes no link: it calls the location's phone number. Every other button needs an `http` or `https` link. |
| `event` | `title`, `start_date` and `end_date` (`YYYY-MM-DD`), `start_time` and `end_time` (`HH:MM`, 24-hour). |
| `offer` | `coupon_code`, `redeem_url` and `terms`. |
| `gallery_category` | Where a gallery photo goes: `COVER`, `PROFILE`, `LOGO`, `EXTERIOR`, `INTERIOR`, `PRODUCT`, `AT_WORK`, `FOOD_AND_DRINK`, `MENU`, `COMMON_AREA`, `ROOMS`, `TEAMS` or `ADDITIONAL` (the default). A gallery video always goes under `ADDITIONAL`. |
| `media` | This account's own media library ids, instead of the post's media. |

## Text

* A post takes 1,500 characters. A longer `settings.text`, or a longer first item when there's no `settings.text`, is refused with `422` when the post is saved, drafts included.
* The post goes out in the workspace's language, or English when none is set.

## Media

| | A post | A gallery item |
| - | - | - |
| Files | 0 or 1 photo, no video | Exactly 1 photo or 1 video |
| Photo | JPG or PNG, up to 5 MB | JPG or PNG, up to 5 MB |
| Video | None | MP4 or MOV, up to 30 seconds, up to 75 MB, at least 720 pixels tall |

* A gallery item needs its file when it's scheduled or published. A draft can wait without it.
* A photo of another type is refused with `422`.

## More than one item

Google Business Profile has no threads and no first comment. The items are joined into one text, with blank lines between them, and the joined text is cut to 1,500 characters when it's sent. A first comment item is left out: Google has nowhere to put it.

## Delete a post

Deleting the post in PostSyncer asks Google to delete the local post, or the gallery photo or video. [Test safely](https://docs.postsyncer.com/test-safely.md#what-cant-be-undone) says what happens when Google refuses.

## Comments and reviews

Local posts have no comments that PostSyncer reads. Hide answers `422` with `Google Business Profile can't hide comments.` A comment delete answers `200` and changes nothing on Google. A location's Google reviews come in instead: [Answer Google reviews](https://docs.postsyncer.com/guides/reviews.md) shows how to read and reply to them.

## Analytics

Google gives no numbers for each post, so every location's `analytics_unavailable.reason` is `google_business_no_post_stats`. [Account analytics](https://docs.postsyncer.com/api-reference/analytics/account.md) for the location adds `google_business`: its views on Search and Maps, direction requests, calls, website clicks and more. See [Read analytics](https://docs.postsyncer.com/guides/analytics.md#google-business-profile-locations) and [When numbers can't be read](https://docs.postsyncer.com/guides/analytics.md#when-numbers-cant-be-read).

## Example

A draft event with a button:

```json theme={null}
{
  "workspace_id": 4815,
  "schedule_type": "draft",
  "content": [
    {
      "text": "Latte art night at Halden Coffee: watch the baristas pour, then try it yourself.",
      "media": ["https://cdn.postsyncer.com/examples/latte-art.jpg"]
    }
  ],
  "accounts": [
    {
      "id": 16240,
      "settings": {
        "post_type": "POST",
        "topic_type": "EVENT",
        "event": {
          "title": "Latte art night",
          "start_date": "2030-04-18",
          "start_time": "18:00",
          "end_date": "2030-04-18",
          "end_time": "21:00"
        },
        "call_to_action": {
          "action_type": "LEARN_MORE",
          "url": "https://haldencoffee.example/events"
        }
      }
    }
  ]
}
```

## Related

> [card] [Answer Google reviews](https://docs.postsyncer.com/guides/reviews.md)
>
> Read reviews and reply as the location's owner.

> [card] [Compare the 12 networks](https://docs.postsyncer.com/platforms/overview.md)
>
> How Google Business Profile differs from the other networks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.