# Google My Business

**Before you start**

You need:

- **A Google account that is an Owner or Manager** of each Google Business Profile (https://www.google.com/business/) you want to read. To see which ones it can access, visit business.google.com/locations (https://business.google.com/locations).

What each tab needs:

- **Prompt tab:** Kai, the **Kai Agent** button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai (/kai/getting-started/).
- **UI tab:** a browser.
- **CLI / API tab:** kbagent (/cli/getting-started/), connected to your project. The checks only read.

## Configuration
[Create a new configuration](https://help.keboola.com/components/configurations/#create-a-configuration) of the **Google My Business** connector.
Then click **Authorize Account** to [authorize the configuration](https://help.keboola.com/components/authorization/). 

Next, specify the endpoints from which you want to fetch data.

For daily metrics, you also have an option to specify a date range for fetching data. 

Lastly, in the Destination options, you can select a full load or an incremental load.
The destination table is overwritten for every run of a full load. In contrast, data are upserted into the destination table for an incremental load. 

Save the configuration and click **Run Component**.

**Check:**

### Prompt

```text title="Prompt" wrap
Did the latest job of my Google My Business configuration succeed, and did it load the accounts and locations tables, and which others? Give their row counts.
```

Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.

### UI

The job ends with status **Success** and Storage has the `accounts` and `locations` tables, plus a table for each endpoint you
selected.

### CLI / API

```bash
kbagent job list --component-id kds-team.ex-google-my-business --config-id 123456789 --limit 1
kbagent storage tables --bucket-id in.c-kds-team-ex-google-my-business-123456789
```

Replace `123456789` with your configuration ID: `status` shows whether the job succeeded, and `id` and `rows_count` list the tables it loaded.

---
