# Google Maps Sponsored Listings & Local Ads Tracker (`crawlyth-forge/google-maps-sponsored-listings`) Actor

Track who advertises on Google Maps. Find sponsored cards for any keyword and market, with the advertiser, ad copy, call to action, place ID/CID, rating, address, landing domain and organic rank.

- **URL**: https://apify.com/crawlyth-forge/google-maps-sponsored-listings.md
- **Developed by:** [crawlyth forge](https://apify.com/crawlyth-forge) (community)
- **Categories:** Automation, Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Maps Sponsored Listings & Local Ads Tracker

See who pays to appear in Google Maps results. This actor reads the sponsored cards that Google inserts at the top of a Maps search and returns one structured record per advertiser: business name, ad copy, call to action, landing page, place ID/CID, category, rating, reviews, address, phone, hours, ad-slot position and the business's organic rank when it also appears organically.

Google does not auction a sponsored card on every search. Cards rotate, are frequency-capped and are often withheld from datacenter networks. The actor therefore also reads **Google Local Services Ads** — the Google-verified paid providers shown for home services and legal queries — and can fall back to them automatically. One actor covers both live local-ad formats, with a per-search summary that tells you which source answered and why.

### What you can do with it

- Track which advertisers buy the top Maps slots for a keyword in a city.
- Compare an advertiser's paid position with its organic position.
- Capture the exact ad copy, call to action and landing domain competitors use.
- Monitor legal, home-services, dental, beauty and other local categories across markets.
- Build a daily feed of new advertisers instead of re-downloading the same list.

### Two ad sources

| Source | What it returns | When to use it |
|---|---|---|
| **Google Maps sponsored cards** | The paid cards inside a Maps result feed, with ad copy, CTA, landing URL and organic rank | Live map-pack ad intelligence, creative research and share-of-slot tracking |
| **Google Local Services Ads** | Google-verified paid providers with rating, review history, years in business, service area, phone, services and booking/profile links | Reliable daily coverage, especially when Maps serves no sponsored cards |

Choose `Auto` to try Maps first and use Local Services Ads only when Maps returns no cards for that search. Choose a specific source when you need a pure dataset.

### Inputs

| Input | What it does |
|---|---|
| **Mode** | `Search now` returns everything found in this run. `Only new advertisers since last run` remembers advertisers per query and market and returns only new ones. |
| **Ad source** | `Auto`, `Maps sponsored cards only`, or `Google Local Services Ads only`. |
| **Search keywords** | Commercial keywords or trades, one search per keyword × location. Examples: `personal injury lawyer`, `plumber`, `hair salon manhattan`. |
| **Locations** | Optional city, address or `lat,lng`. Text is appended to the keyword; coordinates set the map camera. Leave empty to search the keyword exactly as written. |
| **Language / Country** | Interface and market. Local Services Ads supports US, CA, GB, IE, DE, FR, IT, ES, AT, BE and CH; other combinations fall back to US/English for that source and say so in the summary. |
| **Repeats per search** | Maps only. Extra requests raise the chance of catching rotating sponsored cards. |
| **Map zoom** | Zoom for coordinate locations. |
| **Minimum rating / reviews** | Keep advertisers at or above the threshold. Records without the field pass through. |
| **Minimum years in business** | Local Services Ads only. |
| **Opening hours** | Local Services Ads only: open now, open 24 hours, or a chosen weekday. |
| **Must have a phone number** | Drops records without a phone. |
| **Fetch provider profile details** | Optional: adds services, service-area details and verification badges from each Local Services profile. |
| **Maximum profile lookups** | Caps the optional profile requests. |
| **Monitor state key** | Namespace for monitor history. Reuse the same key on a schedule to get only new advertisers. |
| **Maximum ad records** | Stops the run after this many advertiser records. Summary rows do not count. |
| **Include per-search summaries** | Adds one summary row per keyword × location. |

### Complete input reference

| Input | Default | Notes |
|---|---|---|
| `mode` | `search` | `search` returns this run's data; `monitor` returns only new advertisers. |
| `adSource` | `auto` | `auto`, `mapsSponsored` or `localServices`. |
| `searchQueries` | – | Required list of keywords or trades. |
| `locations` | – | Optional city, address or `lat,lng`; empty searches the keyword as written. |
| `language` | `en` | Interface/result language. |
| `countryCode` | `US` | Market country. |
| `repeats` | `3` | Maps only; extra requests for rotating cards. |
| `zoom` | `13` | Maps camera zoom for coordinates. |
| `minRating` | `any` | `any`, `2.0`, `2.5`, `3.0`, `3.5`, `4.0` or `4.5`. |
| `minReviews` | `0` | Minimum review count; `0` disables it. |
| `minYearsInBusiness` | `0` | Local Services only; `0` disables it. |
| `hours` | `any` | Local Services only; open now, 24 hours or a weekday. |
| `requirePhone` | `false` | Drop records without a phone. |
| `includeProfileDetails` | `false` | Optional Local Services profile enrichment. |
| `maxProfileLookups` | `20` | Cap on optional profile requests. |
| `monitorStateKey` | `default` | Namespace for monitor history. |
| `maxItems` | `50` | Advertiser-record cap; summaries are excluded. |
| `includeSummaries` | `true` | Add one summary per keyword × location. |

### Output

Every advertiser row has `recordType` set to `sponsoredListing` (Maps) or `localServicesAd` (Local Services), plus `source`, `searchQuery`, `location`, `language`, `countryCode`, `sourceUrl` and `scrapedAt`.

#### Google Maps sponsored-card fields

| Field | Meaning |
|---|---|
| `advertiserName` | Business name on the card |
| `placeId`, `cid`, `featureId` | Google place identity |
| `category`, `categories` | Primary and all listed categories |
| `rating`, `reviewCount` | Card rating and review total |
| `address`, `latitude`, `longitude` | Location |
| `phone`, `hoursSummary`, `isOpenNow` | Contact and live hours |
| `imageUrl` | Card photo, when Google supplies one |
| `adDescription` | The ad's description line, HTML removed |
| `tagline` | Short advertiser tagline, when present |
| `callToAction` | `Visit Site`, `Call`, `Directions`, `Book online`, etc. |
| `displayUrl`, `landingUrl` | Display domain and its https landing URL |
| `adClickUrl` | Google's click-tracking URL for the card |
| `adDisclosure` | Why Google showed the ad, in Google's own wording |
| `adPosition` | Position among the sponsored cards (1 = first) |
| `overallPosition` | Position in the complete result feed |
| `organicRank` | Rank in the organic results when the same business also ranks there |

#### Google Local Services Ads fields

`advertiserName`, `customerId`, `businessId`, `providerId`, `category`, `rating`, `reviewCount`, `reviewHistogram`, `yearsInBusiness`, `openedYear`, `serviceArea`, `serviceAreaDetails`, `address`, `hoursSummary`, `isOpenNow`, `weeklyHours`, `highlights`, `responseTime`, `trustBadge`, `phone`, `phoneRegionCode`, `services`, `serviceGroups`, `discountsAvailable`, `profileUrl`, `bookingUrl`, `messagingUrl`, `imageUrl`, `adPosition`.

#### Search summary fields

`adSource`, `searchQuery`, `location`, `adsAvailable`, `fallbackUsed`, `fallbackReason`, `adSlotsSeen`, `uniqueAdvertisers`, `requestsWithAds`, `firstOrganicResult`, `organicResultsSeen`, `providerCount`, `repeats`, `knownAdvertisers` (monitor mode), `sourceUrl`, `scrapedAt`.

### Example record

```json
{
  "recordType": "sponsoredListing",
  "advertiserName": "Staten Island Accident Lawyers, P.C.",
  "placeId": "ChIJe1HxO8VNwokRe_ZYivhPVmE",
  "featureId": "0x89c24dc53bf1517b:0x61564ff88a58f67b",
  "category": "Personal injury attorney",
  "rating": 5,
  "reviewCount": 32,
  "address": "1110 South Avenue Suite 85, Staten Island, NY 10314",
  "phone": "+1 917-722-0676",
  "hoursSummary": "Open 24 hours",
  "isOpenNow": true,
  "adDescription": "Injured due to negligence? Speak with a Staten Island lawyer for a free consultation.",
  "tagline": "Experienced Injury Lawyers",
  "callToAction": "Visit Site",
  "displayUrl": "staten-island-accident-lawyers.com",
  "landingUrl": "https://staten-island-accident-lawyers.com",
  "adPosition": 1,
  "overallPosition": 1,
  "searchQuery": "personal injury lawyer manhattan",
  "location": "40.758,-73.9855",
  "source": "mapsSponsored"
}
```

### Monitoring new advertisers

Set **Mode** to `Only new advertisers since last run`, pick a **Monitor state key** and schedule the actor. The first run records every advertiser it sees; later runs return only advertisers that were not in the stored history for the same query, market, language and source. The per-search summary reports how many advertisers were already known. Use different state keys for unrelated tasks.

### Coverage and limits

- **Maps sponsored cards are auction-based.** Google can return zero cards for a perfectly commercial query, and the set rotates between requests. `Repeats per search` improves capture; `Auto` falls back to Local Services Ads for that query and the summary says why.
- **Datacenter networks can receive no Maps ads at all.** The parser is verified against real captured cards, but Google decides who sees an auction. The fallback exists for that case.
- **Local Services Ads is market-restricted.** The supported countries and languages are listed above; other combinations fall back to US/English. Google's own page may also return an empty result set for an unsupported trade × city.
- **Organic rank is optional.** Many advertisers do not appear in the organic feed at all, so `organicRank` is omitted rather than guessed.
- **Ad spend, CPC and budget are not public.** The actor reports what Google shows, not what the advertiser pays.
- **Profile details cost extra requests.** Leave `Fetch provider profile details` off for the cheapest runs; the list page already carries ratings, reviews, years, phone, hours and links.

### FAQ

**Does it need a Google account, API key or cookies?** No. It reads public Google Maps and Local Services results and bootstraps only the anonymous preference cookie Google sets for any visitor.

**Why did a run return a summary with zero advertisers?** Google served no sponsored cards and the chosen source was `Maps sponsored cards only`, or the Local Services page had no providers for that trade/city. The summary's `fallbackReason` states which happened.

**Why are there two record types?** Maps sponsored cards and Local Services Ads are different Google ad products with different fields. Keeping `recordType` lets you filter one dataset without mixing the two.

**Can I track several cities in one run?** Yes. List multiple keywords and locations; the actor runs every combination and writes one summary per pair.

**Is this affiliated with Google?** No. It is an independent data tool and is not affiliated with, endorsed by or sponsored by Google LLC.

### Data source

Public Google Maps search responses and public Google Local Services Ads result pages. No login, no paid third-party data provider, and no user-supplied credentials.

# Actor input Schema

## `mode` (type: `string`):

search returns every sponsored card/provider found in this run. monitor remembers advertisers per query and market in a persistent store and returns only new ones.

## `adSource` (type: `string`):

Google Maps sponsored cards are auction-based and rotate, so some searches return none. Auto falls back to Google Local Services Ads providers for that query. Local Services Ads is the reliable daily source.

## `searchQueries` (type: `array`):

Commercial keywords or trades, e.g. "personal injury lawyer", "plumber", "hair salon manhattan". One search runs per keyword x location.

## `locations` (type: `array`):

Optional city, address, or "lat,lng" (e.g. 40.758,-73.9855). Text locations are appended to the keyword; coordinates are used as the map camera. Leave empty to search the keyword exactly as written.

## `language` (type: `string`):

Interface and result language. Local Services Ads supports English, French, German, Italian, Spanish and Dutch; other languages fall back to English for that source.

## `countryCode` (type: `string`):

Market/country for the search. Local Services Ads supports US, CA, GB, IE, DE, FR, IT, ES, AT, BE and CH; other countries fall back to the US for that source.

## `repeats` (type: `integer`):

How many times to request each Maps search when looking for sponsored cards. Three repeats catch most rotating slots; raise it for high-value campaigns.

## `zoom` (type: `integer`):

Zoom level for coordinate locations. 13 is a city-level view; higher values narrow the search area.

## `minRating` (type: `string`):

Keep advertisers at or above this rating. Records without a rating pass through. Also sent to Local Services Ads as its rating filter.

## `minReviews` (type: `integer`):

Keep advertisers with at least this many reviews. 0 disables the filter.

## `minYearsInBusiness` (type: `integer`):

Local Services Ads only: keep providers with at least this many years in business. 0 disables the filter.

## `hours` (type: `string`):

Local Services Ads only: apply Google's opening-hours filter to providers.

## `requirePhone` (type: `boolean`):

Drop advertisers without a phone number.

## `includeProfileDetails` (type: `boolean`):

Open each Local Services provider profile to add services offered, service-area details and Google verification badges. Adds one request per provider.

## `maxProfileLookups` (type: `integer`):

Cap on profile-detail requests per run when profile details are enabled.

## `monitorStateKey` (type: `string`):

Separate monitor history for different tasks. Use the same key on a schedule to see only advertisers new since the previous run.

## `maxItems` (type: `integer`):

Stop after this many advertiser records. Search summaries do not count toward this limit.

## `includeSummaries` (type: `boolean`):

Add one summary row per keyword x location with ad-slot counts, unique advertisers, first organic result and fallback details.

## Actor input object example

```json
{
  "mode": "search",
  "adSource": "localServices",
  "searchQueries": [
    "plumber in austin tx"
  ],
  "locations": [],
  "language": "en",
  "countryCode": "US",
  "repeats": 1,
  "zoom": 13,
  "minRating": "any",
  "minReviews": 0,
  "minYearsInBusiness": 0,
  "hours": "any",
  "requirePhone": false,
  "includeProfileDetails": false,
  "maxProfileLookups": 0,
  "monitorStateKey": "default",
  "maxItems": 3,
  "includeSummaries": true
}
```

# Actor output Schema

## `sponsoredListings` (type: `string`):

Dataset containing the sponsored Google Maps cards, Local Services Ads providers and per-search summaries.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "adSource": "localServices",
    "searchQueries": [
        "plumber in austin tx"
    ],
    "locations": [],
    "language": "en",
    "countryCode": "US",
    "repeats": 1,
    "zoom": 13,
    "minRating": "any",
    "minReviews": 0,
    "minYearsInBusiness": 0,
    "hours": "any",
    "requirePhone": false,
    "includeProfileDetails": false,
    "maxProfileLookups": 0,
    "monitorStateKey": "default",
    "maxItems": 3,
    "includeSummaries": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlyth-forge/google-maps-sponsored-listings").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "adSource": "localServices",
    "searchQueries": ["plumber in austin tx"],
    "locations": [],
    "language": "en",
    "countryCode": "US",
    "repeats": 1,
    "zoom": 13,
    "minRating": "any",
    "minReviews": 0,
    "minYearsInBusiness": 0,
    "hours": "any",
    "requirePhone": False,
    "includeProfileDetails": False,
    "maxProfileLookups": 0,
    "monitorStateKey": "default",
    "maxItems": 3,
    "includeSummaries": True,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlyth-forge/google-maps-sponsored-listings").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "adSource": "localServices",
  "searchQueries": [
    "plumber in austin tx"
  ],
  "locations": [],
  "language": "en",
  "countryCode": "US",
  "repeats": 1,
  "zoom": 13,
  "minRating": "any",
  "minReviews": 0,
  "minYearsInBusiness": 0,
  "hours": "any",
  "requirePhone": false,
  "includeProfileDetails": false,
  "maxProfileLookups": 0,
  "monitorStateKey": "default",
  "maxItems": 3,
  "includeSummaries": true
}' |
apify call crawlyth-forge/google-maps-sponsored-listings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlyth-forge/google-maps-sponsored-listings"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wfa27Zu9uWKI5CDhV/builds/8iH1oKxIQh7Nub935/openapi.json
