{
  "data": {
    "id": "8iH1oKxIQh7Nub935",
    "actId": "wfa27Zu9uWKI5CDhV",
    "userId": "4BicJNfmk8uEe3GtT",
    "startedAt": "2026-11-24T13:29:06.907Z",
    "finishedAt": "2026-11-24T13:29:08.654Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "stats": {
      "durationMillis": 1625,
      "runTimeSecs": 1.625,
      "computeUnits": 0.0018055555555555555,
      "imageSizeBytes": 364481024
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "chIfRjofLtMMYtdFe",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Google Maps Sponsored Listings & Local Ads Input\",\n  \"description\": \"Choose what to search, where, and which ad source to use. Google Maps sponsored cards rotate, so the actor can also return Google Local Services Ads providers as a fallback.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"sectionCaption\": \"Search setup\",\n      \"sectionDescription\": \"Run a fresh search now or return only advertisers that were not seen in previous monitor runs.\",\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"monitor\"\n      ],\n      \"enumTitles\": [\n        \"Search now\",\n        \"Only new advertisers since last run\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\",\n      \"description\": \"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.\"\n    },\n    \"adSource\": {\n      \"title\": \"Ad source\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"auto\",\n        \"mapsSponsored\",\n        \"localServices\"\n      ],\n      \"enumTitles\": [\n        \"Auto: Maps sponsored cards, then Local Services Ads\",\n        \"Maps sponsored cards only\",\n        \"Google Local Services Ads providers only\"\n      ],\n      \"default\": \"auto\",\n      \"prefill\": \"localServices\",\n      \"description\": \"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.\"\n    },\n    \"searchQueries\": {\n      \"title\": \"Search keywords\",\n      \"type\": \"array\",\n      \"editor\": \"stringList\",\n      \"description\": \"Commercial keywords or trades, e.g. \\\"personal injury lawyer\\\", \\\"plumber\\\", \\\"hair salon manhattan\\\". One search runs per keyword x location.\",\n      \"prefill\": [\n        \"plumber in austin tx\"\n      ],\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"locations\": {\n      \"title\": \"Locations\",\n      \"type\": \"array\",\n      \"editor\": \"stringList\",\n      \"description\": \"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.\",\n      \"prefill\": [],\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"language\": {\n      \"sectionCaption\": \"Market and language\",\n      \"title\": \"Language\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"en\",\n        \"es\",\n        \"fr\",\n        \"de\",\n        \"it\",\n        \"pt\",\n        \"nl\",\n        \"pl\",\n        \"sv\",\n        \"da\",\n        \"no\",\n        \"fi\",\n        \"cs\",\n        \"ro\",\n        \"tr\",\n        \"ru\",\n        \"uk\",\n        \"ar\",\n        \"he\",\n        \"hi\",\n        \"bn\",\n        \"ta\",\n        \"te\",\n        \"th\",\n        \"vi\",\n        \"id\",\n        \"ms\",\n        \"ja\",\n        \"ko\",\n        \"zh-CN\",\n        \"zh-TW\"\n      ],\n      \"enumTitles\": [\n        \"English\",\n        \"Spanish\",\n        \"French\",\n        \"German\",\n        \"Italian\",\n        \"Portuguese\",\n        \"Dutch\",\n        \"Polish\",\n        \"Swedish\",\n        \"Danish\",\n        \"Norwegian\",\n        \"Finnish\",\n        \"Czech\",\n        \"Romanian\",\n        \"Turkish\",\n        \"Russian\",\n        \"Ukrainian\",\n        \"Arabic\",\n        \"Hebrew\",\n        \"Hindi\",\n        \"Bengali\",\n        \"Tamil\",\n        \"Telugu\",\n        \"Thai\",\n        \"Vietnamese\",\n        \"Indonesian\",\n        \"Malay\",\n        \"Japanese\",\n        \"Korean\",\n        \"Chinese (Simplified)\",\n        \"Chinese (Traditional)\"\n      ],\n      \"default\": \"en\",\n      \"prefill\": \"en\",\n      \"description\": \"Interface and result language. Local Services Ads supports English, French, German, Italian, Spanish and Dutch; other languages fall back to English for that source.\"\n    },\n    \"countryCode\": {\n      \"title\": \"Country\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"US\",\n        \"CA\",\n        \"GB\",\n        \"IE\",\n        \"AU\",\n        \"NZ\",\n        \"DE\",\n        \"FR\",\n        \"IT\",\n        \"ES\",\n        \"AT\",\n        \"BE\",\n        \"CH\",\n        \"NL\",\n        \"PT\",\n        \"SE\",\n        \"DK\",\n        \"NO\",\n        \"FI\",\n        \"PL\",\n        \"CZ\",\n        \"RO\",\n        \"TR\",\n        \"AE\",\n        \"SA\",\n        \"IN\",\n        \"PK\",\n        \"SG\",\n        \"MY\",\n        \"ID\",\n        \"TH\",\n        \"VN\",\n        \"PH\",\n        \"JP\",\n        \"KR\",\n        \"BR\",\n        \"MX\",\n        \"AR\",\n        \"CL\",\n        \"CO\",\n        \"ZA\",\n        \"NG\",\n        \"EG\"\n      ],\n      \"enumTitles\": [\n        \"United States\",\n        \"Canada\",\n        \"United Kingdom\",\n        \"Ireland\",\n        \"Australia\",\n        \"New Zealand\",\n        \"Germany\",\n        \"France\",\n        \"Italy\",\n        \"Spain\",\n        \"Austria\",\n        \"Belgium\",\n        \"Switzerland\",\n        \"Netherlands\",\n        \"Portugal\",\n        \"Sweden\",\n        \"Denmark\",\n        \"Norway\",\n        \"Finland\",\n        \"Poland\",\n        \"Czechia\",\n        \"Romania\",\n        \"Türkiye\",\n        \"United Arab Emirates\",\n        \"Saudi Arabia\",\n        \"India\",\n        \"Pakistan\",\n        \"Singapore\",\n        \"Malaysia\",\n        \"Indonesia\",\n        \"Thailand\",\n        \"Vietnam\",\n        \"Philippines\",\n        \"Japan\",\n        \"South Korea\",\n        \"Brazil\",\n        \"Mexico\",\n        \"Argentina\",\n        \"Chile\",\n        \"Colombia\",\n        \"South Africa\",\n        \"Nigeria\",\n        \"Egypt\"\n      ],\n      \"default\": \"US\",\n      \"prefill\": \"US\",\n      \"description\": \"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.\"\n    },\n    \"repeats\": {\n      \"sectionCaption\": \"Sponsored-card capture (Google Maps)\",\n      \"sectionDescription\": \"Maps sponsored cards rotate and are not served on every request. Repeats raise the chance of catching them.\",\n      \"title\": \"Repeats per search\",\n      \"type\": \"integer\",\n      \"editor\": \"number\",\n      \"minimum\": 1,\n      \"maximum\": 20,\n      \"default\": 3,\n      \"prefill\": 1,\n      \"description\": \"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.\"\n    },\n    \"zoom\": {\n      \"title\": \"Map zoom\",\n      \"type\": \"integer\",\n      \"editor\": \"number\",\n      \"minimum\": 3,\n      \"maximum\": 21,\n      \"default\": 13,\n      \"prefill\": 13,\n      \"description\": \"Zoom level for coordinate locations. 13 is a city-level view; higher values narrow the search area.\"\n    },\n    \"minRating\": {\n      \"sectionCaption\": \"Filters\",\n      \"title\": \"Minimum rating\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"2.0\",\n        \"2.5\",\n        \"3.0\",\n        \"3.5\",\n        \"4.0\",\n        \"4.5\"\n      ],\n      \"enumTitles\": [\n        \"Any rating\",\n        \"2.0+\",\n        \"2.5+\",\n        \"3.0+\",\n        \"3.5+\",\n        \"4.0+\",\n        \"4.5+\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\",\n      \"description\": \"Keep advertisers at or above this rating. Records without a rating pass through. Also sent to Local Services Ads as its rating filter.\"\n    },\n    \"minReviews\": {\n      \"title\": \"Minimum reviews\",\n      \"type\": \"integer\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 1000000,\n      \"default\": 0,\n      \"prefill\": 0,\n      \"description\": \"Keep advertisers with at least this many reviews. 0 disables the filter.\"\n    },\n    \"minYearsInBusiness\": {\n      \"title\": \"Minimum years in business\",\n      \"type\": \"integer\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 200,\n      \"default\": 0,\n      \"prefill\": 0,\n      \"description\": \"Local Services Ads only: keep providers with at least this many years in business. 0 disables the filter.\"\n    },\n    \"hours\": {\n      \"title\": \"Opening hours\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"any\",\n        \"openNow\",\n        \"open24Hours\",\n        \"monday\",\n        \"tuesday\",\n        \"wednesday\",\n        \"thursday\",\n        \"friday\",\n        \"saturday\",\n        \"sunday\"\n      ],\n      \"enumTitles\": [\n        \"Any hours\",\n        \"Open now\",\n        \"Open 24 hours\",\n        \"Open Monday\",\n        \"Open Tuesday\",\n        \"Open Wednesday\",\n        \"Open Thursday\",\n        \"Open Friday\",\n        \"Open Saturday\",\n        \"Open Sunday\"\n      ],\n      \"default\": \"any\",\n      \"prefill\": \"any\",\n      \"description\": \"Local Services Ads only: apply Google's opening-hours filter to providers.\"\n    },\n    \"requirePhone\": {\n      \"title\": \"Must have a phone number\",\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"prefill\": false,\n      \"description\": \"Drop advertisers without a phone number.\"\n    },\n    \"includeProfileDetails\": {\n      \"sectionCaption\": \"Local Services Ads details\",\n      \"sectionDescription\": \"Optional extra requests enrich each provider with services, service area and verification details.\",\n      \"title\": \"Fetch provider profile details\",\n      \"type\": \"boolean\",\n      \"default\": false,\n      \"prefill\": false,\n      \"description\": \"Open each Local Services provider profile to add services offered, service-area details and Google verification badges. Adds one request per provider.\"\n    },\n    \"maxProfileLookups\": {\n      \"title\": \"Maximum profile lookups\",\n      \"type\": \"integer\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 100,\n      \"default\": 20,\n      \"prefill\": 0,\n      \"description\": \"Cap on profile-detail requests per run when profile details are enabled.\"\n    },\n    \"monitorStateKey\": {\n      \"sectionCaption\": \"Monitoring\",\n      \"title\": \"Monitor state key\",\n      \"type\": \"string\",\n      \"editor\": \"textfield\",\n      \"default\": \"default\",\n      \"prefill\": \"default\",\n      \"description\": \"Separate monitor history for different tasks. Use the same key on a schedule to see only advertisers new since the previous run.\"\n    },\n    \"maxItems\": {\n      \"sectionCaption\": \"Output\",\n      \"title\": \"Maximum ad records\",\n      \"type\": \"integer\",\n      \"editor\": \"number\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 50,\n      \"prefill\": 3,\n      \"description\": \"Stop after this many advertiser records. Search summaries do not count toward this limit.\"\n    },\n    \"includeSummaries\": {\n      \"title\": \"Include per-search summaries\",\n      \"type\": \"boolean\",\n      \"default\": true,\n      \"prefill\": true,\n      \"description\": \"Add one summary row per keyword x location with ad-slot counts, unique advertisers, first organic result and fallback details.\"\n    }\n  },\n  \"required\": [\n    \"searchQueries\"\n  ]\n}",
    "readme": "# Google Maps Sponsored Listings & Local Ads Tracker\n\nSee 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.\n\nGoogle 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.\n\n## What you can do with it\n\n- Track which advertisers buy the top Maps slots for a keyword in a city.\n- Compare an advertiser's paid position with its organic position.\n- Capture the exact ad copy, call to action and landing domain competitors use.\n- Monitor legal, home-services, dental, beauty and other local categories across markets.\n- Build a daily feed of new advertisers instead of re-downloading the same list.\n\n## Two ad sources\n\n| Source | What it returns | When to use it |\n|---|---|---|\n| **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 |\n| **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 |\n\nChoose `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.\n\n## Inputs\n\n| Input | What it does |\n|---|---|\n| **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. |\n| **Ad source** | `Auto`, `Maps sponsored cards only`, or `Google Local Services Ads only`. |\n| **Search keywords** | Commercial keywords or trades, one search per keyword × location. Examples: `personal injury lawyer`, `plumber`, `hair salon manhattan`. |\n| **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. |\n| **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. |\n| **Repeats per search** | Maps only. Extra requests raise the chance of catching rotating sponsored cards. |\n| **Map zoom** | Zoom for coordinate locations. |\n| **Minimum rating / reviews** | Keep advertisers at or above the threshold. Records without the field pass through. |\n| **Minimum years in business** | Local Services Ads only. |\n| **Opening hours** | Local Services Ads only: open now, open 24 hours, or a chosen weekday. |\n| **Must have a phone number** | Drops records without a phone. |\n| **Fetch provider profile details** | Optional: adds services, service-area details and verification badges from each Local Services profile. |\n| **Maximum profile lookups** | Caps the optional profile requests. |\n| **Monitor state key** | Namespace for monitor history. Reuse the same key on a schedule to get only new advertisers. |\n| **Maximum ad records** | Stops the run after this many advertiser records. Summary rows do not count. |\n| **Include per-search summaries** | Adds one summary row per keyword × location. |\n\n## Complete input reference\n\n| Input | Default | Notes |\n|---|---|---|\n| `mode` | `search` | `search` returns this run's data; `monitor` returns only new advertisers. |\n| `adSource` | `auto` | `auto`, `mapsSponsored` or `localServices`. |\n| `searchQueries` | – | Required list of keywords or trades. |\n| `locations` | – | Optional city, address or `lat,lng`; empty searches the keyword as written. |\n| `language` | `en` | Interface/result language. |\n| `countryCode` | `US` | Market country. |\n| `repeats` | `3` | Maps only; extra requests for rotating cards. |\n| `zoom` | `13` | Maps camera zoom for coordinates. |\n| `minRating` | `any` | `any`, `2.0`, `2.5`, `3.0`, `3.5`, `4.0` or `4.5`. |\n| `minReviews` | `0` | Minimum review count; `0` disables it. |\n| `minYearsInBusiness` | `0` | Local Services only; `0` disables it. |\n| `hours` | `any` | Local Services only; open now, 24 hours or a weekday. |\n| `requirePhone` | `false` | Drop records without a phone. |\n| `includeProfileDetails` | `false` | Optional Local Services profile enrichment. |\n| `maxProfileLookups` | `20` | Cap on optional profile requests. |\n| `monitorStateKey` | `default` | Namespace for monitor history. |\n| `maxItems` | `50` | Advertiser-record cap; summaries are excluded. |\n| `includeSummaries` | `true` | Add one summary per keyword × location. |\n\n## Output\n\nEvery advertiser row has `recordType` set to `sponsoredListing` (Maps) or `localServicesAd` (Local Services), plus `source`, `searchQuery`, `location`, `language`, `countryCode`, `sourceUrl` and `scrapedAt`.\n\n### Google Maps sponsored-card fields\n\n| Field | Meaning |\n|---|---|\n| `advertiserName` | Business name on the card |\n| `placeId`, `cid`, `featureId` | Google place identity |\n| `category`, `categories` | Primary and all listed categories |\n| `rating`, `reviewCount` | Card rating and review total |\n| `address`, `latitude`, `longitude` | Location |\n| `phone`, `hoursSummary`, `isOpenNow` | Contact and live hours |\n| `imageUrl` | Card photo, when Google supplies one |\n| `adDescription` | The ad's description line, HTML removed |\n| `tagline` | Short advertiser tagline, when present |\n| `callToAction` | `Visit Site`, `Call`, `Directions`, `Book online`, etc. |\n| `displayUrl`, `landingUrl` | Display domain and its https landing URL |\n| `adClickUrl` | Google's click-tracking URL for the card |\n| `adDisclosure` | Why Google showed the ad, in Google's own wording |\n| `adPosition` | Position among the sponsored cards (1 = first) |\n| `overallPosition` | Position in the complete result feed |\n| `organicRank` | Rank in the organic results when the same business also ranks there |\n\n### Google Local Services Ads fields\n\n`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`.\n\n### Search summary fields\n\n`adSource`, `searchQuery`, `location`, `adsAvailable`, `fallbackUsed`, `fallbackReason`, `adSlotsSeen`, `uniqueAdvertisers`, `requestsWithAds`, `firstOrganicResult`, `organicResultsSeen`, `providerCount`, `repeats`, `knownAdvertisers` (monitor mode), `sourceUrl`, `scrapedAt`.\n\n## Example record\n\n```json\n{\n  \"recordType\": \"sponsoredListing\",\n  \"advertiserName\": \"Staten Island Accident Lawyers, P.C.\",\n  \"placeId\": \"ChIJe1HxO8VNwokRe_ZYivhPVmE\",\n  \"featureId\": \"0x89c24dc53bf1517b:0x61564ff88a58f67b\",\n  \"category\": \"Personal injury attorney\",\n  \"rating\": 5,\n  \"reviewCount\": 32,\n  \"address\": \"1110 South Avenue Suite 85, Staten Island, NY 10314\",\n  \"phone\": \"+1 917-722-0676\",\n  \"hoursSummary\": \"Open 24 hours\",\n  \"isOpenNow\": true,\n  \"adDescription\": \"Injured due to negligence? Speak with a Staten Island lawyer for a free consultation.\",\n  \"tagline\": \"Experienced Injury Lawyers\",\n  \"callToAction\": \"Visit Site\",\n  \"displayUrl\": \"staten-island-accident-lawyers.com\",\n  \"landingUrl\": \"https://staten-island-accident-lawyers.com\",\n  \"adPosition\": 1,\n  \"overallPosition\": 1,\n  \"searchQuery\": \"personal injury lawyer manhattan\",\n  \"location\": \"40.758,-73.9855\",\n  \"source\": \"mapsSponsored\"\n}\n```\n\n## Monitoring new advertisers\n\nSet **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.\n\n## Coverage and limits\n\n- **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.\n- **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.\n- **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.\n- **Organic rank is optional.** Many advertisers do not appear in the organic feed at all, so `organicRank` is omitted rather than guessed.\n- **Ad spend, CPC and budget are not public.** The actor reports what Google shows, not what the advertiser pays.\n- **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.\n\n## FAQ\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**Is this affiliated with Google?** No. It is an independent data tool and is not affiliated with, endorsed by or sponsored by Google LLC.\n\n## Data source\n\nPublic 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.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "google-maps-sponsored-listings",
      "title": "Google Maps Sponsored Listings & Local Ads Tracker",
      "description": "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.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# Google Maps Sponsored Listings & Local Ads Tracker\n\nSee 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.\n\nGoogle 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.\n\n## What you can do with it\n\n- Track which advertisers buy the top Maps slots for a keyword in a city.\n- Compare an advertiser's paid position with its organic position.\n- Capture the exact ad copy, call to action and landing domain competitors use.\n- Monitor legal, home-services, dental, beauty and other local categories across markets.\n- Build a daily feed of new advertisers instead of re-downloading the same list.\n\n## Two ad sources\n\n| Source | What it returns | When to use it |\n|---|---|---|\n| **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 |\n| **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 |\n\nChoose `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.\n\n## Inputs\n\n| Input | What it does |\n|---|---|\n| **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. |\n| **Ad source** | `Auto`, `Maps sponsored cards only`, or `Google Local Services Ads only`. |\n| **Search keywords** | Commercial keywords or trades, one search per keyword × location. Examples: `personal injury lawyer`, `plumber`, `hair salon manhattan`. |\n| **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. |\n| **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. |\n| **Repeats per search** | Maps only. Extra requests raise the chance of catching rotating sponsored cards. |\n| **Map zoom** | Zoom for coordinate locations. |\n| **Minimum rating / reviews** | Keep advertisers at or above the threshold. Records without the field pass through. |\n| **Minimum years in business** | Local Services Ads only. |\n| **Opening hours** | Local Services Ads only: open now, open 24 hours, or a chosen weekday. |\n| **Must have a phone number** | Drops records without a phone. |\n| **Fetch provider profile details** | Optional: adds services, service-area details and verification badges from each Local Services profile. |\n| **Maximum profile lookups** | Caps the optional profile requests. |\n| **Monitor state key** | Namespace for monitor history. Reuse the same key on a schedule to get only new advertisers. |\n| **Maximum ad records** | Stops the run after this many advertiser records. Summary rows do not count. |\n| **Include per-search summaries** | Adds one summary row per keyword × location. |\n\n## Complete input reference\n\n| Input | Default | Notes |\n|---|---|---|\n| `mode` | `search` | `search` returns this run's data; `monitor` returns only new advertisers. |\n| `adSource` | `auto` | `auto`, `mapsSponsored` or `localServices`. |\n| `searchQueries` | – | Required list of keywords or trades. |\n| `locations` | – | Optional city, address or `lat,lng`; empty searches the keyword as written. |\n| `language` | `en` | Interface/result language. |\n| `countryCode` | `US` | Market country. |\n| `repeats` | `3` | Maps only; extra requests for rotating cards. |\n| `zoom` | `13` | Maps camera zoom for coordinates. |\n| `minRating` | `any` | `any`, `2.0`, `2.5`, `3.0`, `3.5`, `4.0` or `4.5`. |\n| `minReviews` | `0` | Minimum review count; `0` disables it. |\n| `minYearsInBusiness` | `0` | Local Services only; `0` disables it. |\n| `hours` | `any` | Local Services only; open now, 24 hours or a weekday. |\n| `requirePhone` | `false` | Drop records without a phone. |\n| `includeProfileDetails` | `false` | Optional Local Services profile enrichment. |\n| `maxProfileLookups` | `20` | Cap on optional profile requests. |\n| `monitorStateKey` | `default` | Namespace for monitor history. |\n| `maxItems` | `50` | Advertiser-record cap; summaries are excluded. |\n| `includeSummaries` | `true` | Add one summary per keyword × location. |\n\n## Output\n\nEvery advertiser row has `recordType` set to `sponsoredListing` (Maps) or `localServicesAd` (Local Services), plus `source`, `searchQuery`, `location`, `language`, `countryCode`, `sourceUrl` and `scrapedAt`.\n\n### Google Maps sponsored-card fields\n\n| Field | Meaning |\n|---|---|\n| `advertiserName` | Business name on the card |\n| `placeId`, `cid`, `featureId` | Google place identity |\n| `category`, `categories` | Primary and all listed categories |\n| `rating`, `reviewCount` | Card rating and review total |\n| `address`, `latitude`, `longitude` | Location |\n| `phone`, `hoursSummary`, `isOpenNow` | Contact and live hours |\n| `imageUrl` | Card photo, when Google supplies one |\n| `adDescription` | The ad's description line, HTML removed |\n| `tagline` | Short advertiser tagline, when present |\n| `callToAction` | `Visit Site`, `Call`, `Directions`, `Book online`, etc. |\n| `displayUrl`, `landingUrl` | Display domain and its https landing URL |\n| `adClickUrl` | Google's click-tracking URL for the card |\n| `adDisclosure` | Why Google showed the ad, in Google's own wording |\n| `adPosition` | Position among the sponsored cards (1 = first) |\n| `overallPosition` | Position in the complete result feed |\n| `organicRank` | Rank in the organic results when the same business also ranks there |\n\n### Google Local Services Ads fields\n\n`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`.\n\n### Search summary fields\n\n`adSource`, `searchQuery`, `location`, `adsAvailable`, `fallbackUsed`, `fallbackReason`, `adSlotsSeen`, `uniqueAdvertisers`, `requestsWithAds`, `firstOrganicResult`, `organicResultsSeen`, `providerCount`, `repeats`, `knownAdvertisers` (monitor mode), `sourceUrl`, `scrapedAt`.\n\n## Example record\n\n```json\n{\n  \"recordType\": \"sponsoredListing\",\n  \"advertiserName\": \"Staten Island Accident Lawyers, P.C.\",\n  \"placeId\": \"ChIJe1HxO8VNwokRe_ZYivhPVmE\",\n  \"featureId\": \"0x89c24dc53bf1517b:0x61564ff88a58f67b\",\n  \"category\": \"Personal injury attorney\",\n  \"rating\": 5,\n  \"reviewCount\": 32,\n  \"address\": \"1110 South Avenue Suite 85, Staten Island, NY 10314\",\n  \"phone\": \"+1 917-722-0676\",\n  \"hoursSummary\": \"Open 24 hours\",\n  \"isOpenNow\": true,\n  \"adDescription\": \"Injured due to negligence? Speak with a Staten Island lawyer for a free consultation.\",\n  \"tagline\": \"Experienced Injury Lawyers\",\n  \"callToAction\": \"Visit Site\",\n  \"displayUrl\": \"staten-island-accident-lawyers.com\",\n  \"landingUrl\": \"https://staten-island-accident-lawyers.com\",\n  \"adPosition\": 1,\n  \"overallPosition\": 1,\n  \"searchQuery\": \"personal injury lawyer manhattan\",\n  \"location\": \"40.758,-73.9855\",\n  \"source\": \"mapsSponsored\"\n}\n```\n\n## Monitoring new advertisers\n\nSet **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.\n\n## Coverage and limits\n\n- **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.\n- **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.\n- **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.\n- **Organic rank is optional.** Many advertisers do not appear in the organic feed at all, so `organicRank` is omitted rather than guessed.\n- **Ad spend, CPC and budget are not public.** The actor reports what Google shows, not what the advertiser pays.\n- **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.\n\n## FAQ\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**Is this affiliated with Google?** No. It is an independent data tool and is not affiliated with, endorsed by or sponsored by Google LLC.\n\n## Data source\n\nPublic 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.\n",
      "input": {
        "title": "Google Maps Sponsored Listings & Local Ads Input",
        "description": "Choose what to search, where, and which ad source to use. Google Maps sponsored cards rotate, so the actor can also return Google Local Services Ads providers as a fallback.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "sectionCaption": "Search setup",
            "sectionDescription": "Run a fresh search now or return only advertisers that were not seen in previous monitor runs.",
            "title": "Mode",
            "type": "string",
            "editor": "select",
            "enum": [
              "search",
              "monitor"
            ],
            "enumTitles": [
              "Search now",
              "Only new advertisers since last run"
            ],
            "default": "search",
            "prefill": "search",
            "description": "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": {
            "title": "Ad source",
            "type": "string",
            "editor": "select",
            "enum": [
              "auto",
              "mapsSponsored",
              "localServices"
            ],
            "enumTitles": [
              "Auto: Maps sponsored cards, then Local Services Ads",
              "Maps sponsored cards only",
              "Google Local Services Ads providers only"
            ],
            "default": "auto",
            "prefill": "localServices",
            "description": "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": {
            "title": "Search keywords",
            "type": "array",
            "editor": "stringList",
            "description": "Commercial keywords or trades, e.g. \"personal injury lawyer\", \"plumber\", \"hair salon manhattan\". One search runs per keyword x location.",
            "prefill": [
              "plumber in austin tx"
            ],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "editor": "stringList",
            "description": "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.",
            "prefill": [],
            "items": {
              "type": "string"
            }
          },
          "language": {
            "sectionCaption": "Market and language",
            "title": "Language",
            "type": "string",
            "editor": "select",
            "enum": [
              "en",
              "es",
              "fr",
              "de",
              "it",
              "pt",
              "nl",
              "pl",
              "sv",
              "da",
              "no",
              "fi",
              "cs",
              "ro",
              "tr",
              "ru",
              "uk",
              "ar",
              "he",
              "hi",
              "bn",
              "ta",
              "te",
              "th",
              "vi",
              "id",
              "ms",
              "ja",
              "ko",
              "zh-CN",
              "zh-TW"
            ],
            "enumTitles": [
              "English",
              "Spanish",
              "French",
              "German",
              "Italian",
              "Portuguese",
              "Dutch",
              "Polish",
              "Swedish",
              "Danish",
              "Norwegian",
              "Finnish",
              "Czech",
              "Romanian",
              "Turkish",
              "Russian",
              "Ukrainian",
              "Arabic",
              "Hebrew",
              "Hindi",
              "Bengali",
              "Tamil",
              "Telugu",
              "Thai",
              "Vietnamese",
              "Indonesian",
              "Malay",
              "Japanese",
              "Korean",
              "Chinese (Simplified)",
              "Chinese (Traditional)"
            ],
            "default": "en",
            "prefill": "en",
            "description": "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": {
            "title": "Country",
            "type": "string",
            "editor": "select",
            "enum": [
              "US",
              "CA",
              "GB",
              "IE",
              "AU",
              "NZ",
              "DE",
              "FR",
              "IT",
              "ES",
              "AT",
              "BE",
              "CH",
              "NL",
              "PT",
              "SE",
              "DK",
              "NO",
              "FI",
              "PL",
              "CZ",
              "RO",
              "TR",
              "AE",
              "SA",
              "IN",
              "PK",
              "SG",
              "MY",
              "ID",
              "TH",
              "VN",
              "PH",
              "JP",
              "KR",
              "BR",
              "MX",
              "AR",
              "CL",
              "CO",
              "ZA",
              "NG",
              "EG"
            ],
            "enumTitles": [
              "United States",
              "Canada",
              "United Kingdom",
              "Ireland",
              "Australia",
              "New Zealand",
              "Germany",
              "France",
              "Italy",
              "Spain",
              "Austria",
              "Belgium",
              "Switzerland",
              "Netherlands",
              "Portugal",
              "Sweden",
              "Denmark",
              "Norway",
              "Finland",
              "Poland",
              "Czechia",
              "Romania",
              "Türkiye",
              "United Arab Emirates",
              "Saudi Arabia",
              "India",
              "Pakistan",
              "Singapore",
              "Malaysia",
              "Indonesia",
              "Thailand",
              "Vietnam",
              "Philippines",
              "Japan",
              "South Korea",
              "Brazil",
              "Mexico",
              "Argentina",
              "Chile",
              "Colombia",
              "South Africa",
              "Nigeria",
              "Egypt"
            ],
            "default": "US",
            "prefill": "US",
            "description": "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": {
            "sectionCaption": "Sponsored-card capture (Google Maps)",
            "sectionDescription": "Maps sponsored cards rotate and are not served on every request. Repeats raise the chance of catching them.",
            "title": "Repeats per search",
            "type": "integer",
            "editor": "number",
            "minimum": 1,
            "maximum": 20,
            "default": 3,
            "prefill": 1,
            "description": "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": {
            "title": "Map zoom",
            "type": "integer",
            "editor": "number",
            "minimum": 3,
            "maximum": 21,
            "default": 13,
            "prefill": 13,
            "description": "Zoom level for coordinate locations. 13 is a city-level view; higher values narrow the search area."
          },
          "minRating": {
            "sectionCaption": "Filters",
            "title": "Minimum rating",
            "type": "string",
            "editor": "select",
            "enum": [
              "any",
              "2.0",
              "2.5",
              "3.0",
              "3.5",
              "4.0",
              "4.5"
            ],
            "enumTitles": [
              "Any rating",
              "2.0+",
              "2.5+",
              "3.0+",
              "3.5+",
              "4.0+",
              "4.5+"
            ],
            "default": "any",
            "prefill": "any",
            "description": "Keep advertisers at or above this rating. Records without a rating pass through. Also sent to Local Services Ads as its rating filter."
          },
          "minReviews": {
            "title": "Minimum reviews",
            "type": "integer",
            "editor": "number",
            "minimum": 0,
            "maximum": 1000000,
            "default": 0,
            "prefill": 0,
            "description": "Keep advertisers with at least this many reviews. 0 disables the filter."
          },
          "minYearsInBusiness": {
            "title": "Minimum years in business",
            "type": "integer",
            "editor": "number",
            "minimum": 0,
            "maximum": 200,
            "default": 0,
            "prefill": 0,
            "description": "Local Services Ads only: keep providers with at least this many years in business. 0 disables the filter."
          },
          "hours": {
            "title": "Opening hours",
            "type": "string",
            "editor": "select",
            "enum": [
              "any",
              "openNow",
              "open24Hours",
              "monday",
              "tuesday",
              "wednesday",
              "thursday",
              "friday",
              "saturday",
              "sunday"
            ],
            "enumTitles": [
              "Any hours",
              "Open now",
              "Open 24 hours",
              "Open Monday",
              "Open Tuesday",
              "Open Wednesday",
              "Open Thursday",
              "Open Friday",
              "Open Saturday",
              "Open Sunday"
            ],
            "default": "any",
            "prefill": "any",
            "description": "Local Services Ads only: apply Google's opening-hours filter to providers."
          },
          "requirePhone": {
            "title": "Must have a phone number",
            "type": "boolean",
            "default": false,
            "prefill": false,
            "description": "Drop advertisers without a phone number."
          },
          "includeProfileDetails": {
            "sectionCaption": "Local Services Ads details",
            "sectionDescription": "Optional extra requests enrich each provider with services, service area and verification details.",
            "title": "Fetch provider profile details",
            "type": "boolean",
            "default": false,
            "prefill": false,
            "description": "Open each Local Services provider profile to add services offered, service-area details and Google verification badges. Adds one request per provider."
          },
          "maxProfileLookups": {
            "title": "Maximum profile lookups",
            "type": "integer",
            "editor": "number",
            "minimum": 0,
            "maximum": 100,
            "default": 20,
            "prefill": 0,
            "description": "Cap on profile-detail requests per run when profile details are enabled."
          },
          "monitorStateKey": {
            "sectionCaption": "Monitoring",
            "title": "Monitor state key",
            "type": "string",
            "editor": "textfield",
            "default": "default",
            "prefill": "default",
            "description": "Separate monitor history for different tasks. Use the same key on a schedule to see only advertisers new since the previous run."
          },
          "maxItems": {
            "sectionCaption": "Output",
            "title": "Maximum ad records",
            "type": "integer",
            "editor": "number",
            "minimum": 1,
            "maximum": 1000,
            "default": 50,
            "prefill": 3,
            "description": "Stop after this many advertiser records. Search summaries do not count toward this limit."
          },
          "includeSummaries": {
            "title": "Include per-search summaries",
            "type": "boolean",
            "default": true,
            "prefill": true,
            "description": "Add one summary row per keyword x location with ad-slot counts, unique advertisers, first organic result and fallback details."
          }
        },
        "required": [
          "searchQueries"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Google Maps Sponsored Listings & Local Ads Tracker Output",
        "description": "Google Maps sponsored cards and Google Local Services Ads providers with advertiser, ad copy, call to action, place identity, rating, address, landing URL and organic rank, plus per-search summaries.",
        "properties": {
          "sponsoredListings": {
            "type": "string",
            "title": "Sponsored listings",
            "description": "Dataset containing the sponsored Google Maps cards, Local Services Ads providers and per-search summaries.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Google Maps Sponsored Listings",
              "transformation": {
                "fields": [
                  "recordType",
                  "advertiserName",
                  "searchQuery",
                  "location",
                  "adPosition",
                  "callToAction",
                  "displayUrl",
                  "rating",
                  "reviewCount",
                  "organicRank",
                  "placeId"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.8",
    "imageDigest": "23d4f4ebfe5f4f82d140bc42dda1261b3072d3ff0c65cbcf2d4153dfb9ae4f86",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.0018055555555555555
    }
  }
}