On a schedule
Monthly Business Profile search keywords in Google Sheets
On the 3rd of each month, the search terms people used to find the Business Profile last month are written to a Keywords tab with impressions.
- Runs
- On a schedule
- Apps
- Google Business Profile, Google Sheets
- AI
- Not needed
- Access
- business.manage; Google Sheets read+write
Send this to your assistant
Create a ClickRuntime automation: on the 3rd of each month at 8am, add last month's Google Business Profile search keywords and their impressions for my location to the Keywords tab of my sheet.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Google Business Profile shows which searches led people to your listing, but only month by month in the profile screen, with no easy way to keep a history or compare locations.
This automation saves the full keyword list into a sheet each month, so you can see which terms are growing, which are new, and which matter most for calls and visits.
Local businesses and the agencies that manage their listings use it to choose words for posts, services and website pages.
What you get out of it
A keyword history that lasts
Each month's terms stay in the sheet to compare over a year.
Find new phrases customers use
Terms you have never targeted often show up and can be added to your profile or site.
Seasonal patterns
Spot which searches rise before holidays or in summer.
Low-volume terms kept
Rare terms are recorded with Google's threshold rather than dropped.
Ready for client reports
Agencies can chart top terms per client without logging into each profile.
How it works
What happens, step by step
On the 3rd of each month ClickRuntime asks Google for the search terms that showed your profile last month.
It collects every keyword with its impression count.
Rows with the month, keyword and impressions are added to your Keywords tab, highest first.
Before it runs live
- Connect Google Business Profile
- Connect your Google Sheets account and pick the spreadsheets it may use
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Google Business Profile and Google Sheets steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from datetime import date, timedelta
from clickruntime import on_trigger, credentials, http
LOCATION_ID = "9876543210"
SHEET_ID = "your-spreadsheet-id"
@on_trigger
def run(event):
last = date.today().replace(day=1) - timedelta(days=1)
params = {"monthlyRange.startMonth.year": last.year, "monthlyRange.startMonth.month": last.month,
"monthlyRange.endMonth.year": last.year, "monthlyRange.endMonth.month": last.month, "pageSize": 100}
url = f"https://businessprofileperformance.googleapis.com/v1/locations/{LOCATION_ID}/searchkeywords/impressions/monthly"
auth = {"Authorization": f"Bearer {credentials.connection('google', 'work')}"}
found = []
while True:
data = http.get(url, params=params, headers=auth).json()
for k in data.get("searchKeywordsCounts", []):
v = k["insightsValue"]
found.append((k["searchKeyword"], int(v["value"]) if "value" in v else None, v.get("threshold")))
if not data.get("nextPageToken"):
break
params["pageToken"] = data["nextPageToken"]
found.sort(key=lambda k: k[1] or 0, reverse=True)
month = f"{last:%Y-%m}"
rows = [[month, kw, n if n is not None else f"under {t}"] for kw, n, t in found]
if rows:
build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False) \
.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Keywords!A:C", valueInputOption="RAW",
body={"values": rows}).execute()
return {"month": month, "keywords": len(rows)}FAQ
Common questions
Why does it run on the 3rd and not the 1st?
What does "under 15" mean?
Can it cover several locations?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Track your Business Profile numbers in a sheet every week
Each Monday last week's profile views, calls, website clicks and direction requests are added to your sheet, with a short note on what changed.
See how it worksPublish a Business Profile post each week from a topic sheet
Each week the next topic in your sheet becomes a short post on your Google Business Profile, and the row is marked as posted.
See how it worksCopy new Google reviews to Google Sheets
New Google reviews for each listed location are added to a Reviews tab with stars, text, reviewer and whether it has a reply.
See how it worksKeep exploring
Set up “Monthly Business Profile search keywords in Google Sheets” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.