{
  "data": {
    "id": "RgWmR0sB6mPWF16bk",
    "actId": "UjvV9uRu8I1KwyYsU",
    "userId": "tnBVjt3CXmcUrEE3L",
    "startedAt": "2026-11-25T04:12:08.675Z",
    "finishedAt": "2026-11-25T04:12:21.895Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "stats": {
      "durationMillis": 13094,
      "runTimeSecs": 13.094,
      "computeUnits": 0.014548888888888889,
      "imageSizeBytes": 319288320
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "F2Aeb3gE2syjqz9xC",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Bing Ad Library Explorer Input\",\n  \"description\": \"Query Microsoft's public Bing Ad Library for EU/EEA ads by keyword, advertiser or ad ID, with optional run dates, impressions and targeting details.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"Pick what to return.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"searchAds\",\n        \"byAdvertiser\",\n        \"searchAdvertisers\",\n        \"byAdIds\"\n      ],\n      \"enumTitles\": [\n        \"Ads by ad-copy keyword\",\n        \"Ads from advertiser names, IDs or URLs\",\n        \"Advertiser directory rows\",\n        \"Direct ad IDs or ad URLs\"\n      ],\n      \"default\": \"searchAds\",\n      \"prefill\": \"searchAds\",\n      \"sectionCaption\": \"Mode and queries\",\n      \"sectionDescription\": \"The same public Ad Library API serves every mode; `queries` changes meaning with the mode.\"\n    },\n    \"queries\": {\n      \"title\": \"Queries\",\n      \"type\": \"array\",\n      \"description\": \"One per line. searchAds: keywords matched in ad copy. byAdvertiser: advertiser name, numeric ID or /advertiser/ URL. searchAdvertisers: advertiser name or ID. byAdIds: ad ID or /ad/ URL.\",\n      \"editor\": \"stringList\",\n      \"default\": [\n        \"nike\"\n      ],\n      \"prefill\": [\n        \"nike\"\n      ]\n    },\n    \"advertiserMatch\": {\n      \"title\": \"Advertiser name matching\",\n      \"type\": \"string\",\n      \"description\": \"How a name query is matched to advertiser accounts in byAdvertiser and searchAdvertisers modes. Whole-word matching avoids brands inside unrelated names.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"word\",\n        \"contains\",\n        \"exact\"\n      ],\n      \"enumTitles\": [\n        \"Every query word appears as a whole word\",\n        \"Name contains the query\",\n        \"Name matches exactly\"\n      ],\n      \"default\": \"word\",\n      \"prefill\": \"word\"\n    },\n    \"maxAdvertisersPerQuery\": {\n      \"title\": \"Advertiser accounts per name\",\n      \"type\": \"integer\",\n      \"description\": \"A brand can have several accounts (per market or agency). Read this many matches per name.\",\n      \"minimum\": 1,\n      \"maximum\": 200,\n      \"default\": 5,\n      \"prefill\": 5\n    },\n    \"countries\": {\n      \"title\": \"EU/EEA markets\",\n      \"type\": \"array\",\n      \"description\": \"Only ads shown in these markets. Empty means all 30 EU/EEA countries. Uses Microsoft's numeric country codes internally.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"AT\",\n          \"BE\",\n          \"BG\",\n          \"HR\",\n          \"CY\",\n          \"CZ\",\n          \"DK\",\n          \"EE\",\n          \"FI\",\n          \"FR\",\n          \"DE\",\n          \"GR\",\n          \"HU\",\n          \"IS\",\n          \"IE\",\n          \"IT\",\n          \"LV\",\n          \"LI\",\n          \"LT\",\n          \"LU\",\n          \"MT\",\n          \"NL\",\n          \"NO\",\n          \"PL\",\n          \"PT\",\n          \"RO\",\n          \"SK\",\n          \"SI\",\n          \"ES\",\n          \"SE\"\n        ],\n        \"enumTitles\": [\n          \"Austria\",\n          \"Belgium\",\n          \"Bulgaria\",\n          \"Croatia\",\n          \"Cyprus\",\n          \"Czechia\",\n          \"Denmark\",\n          \"Estonia\",\n          \"Finland\",\n          \"France\",\n          \"Germany\",\n          \"Greece\",\n          \"Hungary\",\n          \"Iceland\",\n          \"Ireland\",\n          \"Italy\",\n          \"Latvia\",\n          \"Liechtenstein\",\n          \"Lithuania\",\n          \"Luxembourg\",\n          \"Malta\",\n          \"Netherlands\",\n          \"Norway\",\n          \"Poland\",\n          \"Portugal\",\n          \"Romania\",\n          \"Slovakia\",\n          \"Slovenia\",\n          \"Spain\",\n          \"Sweden\"\n        ]\n      },\n      \"default\": [],\n      \"prefill\": [],\n      \"sectionCaption\": \"Filters\",\n      \"sectionDescription\": \"Filters apply to ad searches and to the ads counted in advertiser rows.\"\n    },\n    \"startDate\": {\n      \"title\": \"Shown from (YYYY-MM-DD)\",\n      \"type\": \"string\",\n      \"description\": \"Only ads with an eligible impression on or after this date. The library starts 2023-06-01.\",\n      \"editor\": \"datepicker\"\n    },\n    \"endDate\": {\n      \"title\": \"Shown until (YYYY-MM-DD)\",\n      \"type\": \"string\",\n      \"description\": \"Only ads with an eligible impression on or before this date. Data can lag by 1-3 days.\",\n      \"editor\": \"datepicker\"\n    },\n    \"adFormat\": {\n      \"title\": \"Creative format\",\n      \"type\": \"string\",\n      \"description\": \"Filter list results by the ad's image assets.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"all\",\n        \"text\",\n        \"image\"\n      ],\n      \"enumTitles\": [\n        \"All ads\",\n        \"Text-only ads\",\n        \"Ads with an image\"\n      ],\n      \"default\": \"all\",\n      \"prefill\": \"all\"\n    },\n    \"landingDomains\": {\n      \"title\": \"Landing-page domains\",\n      \"type\": \"array\",\n      \"description\": \"Keep ads whose destination URL is on one of these domains, e.g. nike.com. Ads without a destination URL pass through.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"adKeywordFilter\": {\n      \"title\": \"Ad text filter\",\n      \"type\": \"string\",\n      \"description\": \"Keep ads whose title, description or display URL contains every word here. Useful for narrowing an advertiser's ads to a product or theme.\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"includeDetails\": {\n      \"title\": \"Include ad details\",\n      \"type\": \"boolean\",\n      \"description\": \"Adds first/last shown dates, days active, the EU impression band with numeric bounds, per-country impression share, targeting types with exclusion flags, paid-for-by and any restriction reason. One extra request per ad.\",\n      \"default\": false,\n      \"prefill\": false,\n      \"sectionCaption\": \"Detail enrichment\",\n      \"sectionDescription\": \"Detail calls are rate-limited by Microsoft; leave them off for fast list pulls.\"\n    },\n    \"includeAdvertiserProfile\": {\n      \"title\": \"Add advertiser country and verification\",\n      \"type\": \"boolean\",\n      \"description\": \"Adds the advertiser's registered country and verified flag to each ad. Uses one cached lookup per distinct advertiser, capped by the next field.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"maxAdvertiserProfiles\": {\n      \"title\": \"Advertiser profile lookup cap\",\n      \"type\": \"integer\",\n      \"description\": \"Maximum distinct advertiser profiles to look up per run. 0 means no cap.\",\n      \"minimum\": 0,\n      \"maximum\": 1000,\n      \"default\": 100,\n      \"prefill\": 100\n    },\n    \"rehostImages\": {\n      \"title\": \"Rehost non-Bing images\",\n      \"type\": \"boolean\",\n      \"description\": \"Downloads image assets hosted outside bing.com into this run's key-value store and emits public URLs plus originalUrl. Bing-hosted images stay as they are. Up to 100 images per run.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"deepSearch\": {\n      \"title\": \"Search past the 1,000-ad cap\",\n      \"type\": \"boolean\",\n      \"description\": \"When a query reaches Microsoft's 1,000-result limit, repeat it by country and then by month, deduplicating by ad ID. Slower and uses more requests.\",\n      \"default\": false,\n      \"prefill\": false,\n      \"sectionCaption\": \"Coverage and limits\",\n      \"sectionDescription\": \"Microsoft answers at most 1,000 ads per query and 24 per page. The actor paces requests because anonymous calls are rate-limited.\"\n    },\n    \"maxResults\": {\n      \"title\": \"Max records\",\n      \"type\": \"integer\",\n      \"description\": \"Total records to return: ads in ad modes, advertiser rows in searchAdvertisers mode.\",\n      \"minimum\": 1,\n      \"maximum\": 100000,\n      \"default\": 1000,\n      \"prefill\": 3\n    },\n    \"maxAdsPerQuery\": {\n      \"title\": \"Max ads per query or advertiser\",\n      \"type\": \"integer\",\n      \"description\": \"Per-query cap. 0 uses the remaining global budget, up to Microsoft's 1,000-ad limit per unsliced query.\",\n      \"minimum\": 0,\n      \"maximum\": 10000,\n      \"default\": 0,\n      \"prefill\": 0\n    },\n    \"onlyNewAds\": {\n      \"title\": \"Only ads not seen before\",\n      \"type\": \"boolean\",\n      \"description\": \"Stores delivered ad IDs in a named key-value store and emits only ads this store has not delivered yet. Applies to the three ad modes.\",\n      \"default\": false,\n      \"prefill\": false,\n      \"sectionCaption\": \"Monitoring\",\n      \"sectionDescription\": \"Optional cross-run memory for scheduled competitor checks.\"\n    },\n    \"monitorStoreName\": {\n      \"title\": \"Monitor store name\",\n      \"type\": \"string\",\n      \"description\": \"Key-value store that remembers delivered ad IDs. Use a separate name per schedule. Lowercase letters, digits and hyphens only.\",\n      \"editor\": \"textfield\",\n      \"default\": \"bing-ad-library-monitor\",\n      \"prefill\": \"bing-ad-library-monitor\"\n    }\n  },\n  \"required\": [\n    \"mode\",\n    \"queries\"\n  ]\n}",
    "readme": "# Bing Ad Library Explorer — EU Ad Copy, Reach & Targeting\n\nMicrosoft's Ad Library publishes every ad that received an impression on Bing in the EU/EEA since June 2023. This actor queries that public library and returns analysis-ready ad records: the exact copy, creative assets, landing pages, run dates, impression bands, per-country reach and targeting signals — with no login, cookie or API key.\n\n## What this actor does\n\n- **Four modes:** keyword search, ads by advertiser, advertiser directory rows, and direct ad-ID lookup\n- **All 30 EU/EEA markets:** Austria through Sweden, including Iceland, Liechtenstein and Norway\n- **Date windows** on the ad run period, plus text-only / image creative filters, landing-domain filters and an ad-text keyword filter\n- **Optional detail enrichment:** first and last shown dates, days active, total EU impressions (raw band and numeric minimum/maximum), impression share by country, targeting types with include/exclude flags, paid-for-by and restriction reasons\n- **Deep search:** when a broad keyword reaches Microsoft's 1,000-ad ceiling, the actor slices the query by country and then by month, deduplicating by ad ID\n- **Advertiser summaries:** one row per advertiser account with its country, verified badge, number of matching ads and distinct landing domains\n- **Cross-run memory:** optionally emit only ads a named monitor store has not delivered before (ad modes)\n- **Image assets:** every image asset with its width, height and type; optional rehosting for third-party image hosts\n- **Empty fields are omitted** — no nulls and no placeholder values\n\n## Data source\n\nThe actor reads Microsoft's official public Ad Library API at `adlibrary.api.bingads.microsoft.com`. The library is a transparency record, not a campaign report: it contains ads served inside the EU/EEA, reports impressions in bands rather than exact counts, and can lag real delivery by one to three days. Microsoft keeps an ad for one year after its last eligible impression.\n\n## Modes\n\n| Mode | `queries` means | Returns |\n|---|---|---|\n| `searchAds` | Keywords found in ad copy | One row per ad |\n| `byAdvertiser` | Advertiser name, numeric ID or `/advertiser/` URL | One row per ad from each matching account |\n| `searchAdvertisers` | Advertiser name or numeric ID | One row per advertiser account with ad count and landing domains |\n| `byAdIds` | Ad ID or `/ad/` URL | One row per exact ad |\n\nA name in `byAdvertiser` mode is resolved through Microsoft's advertiser register first, so `Nike` can match `Nike - EMEA`, `Nike Retail B.V.` and other accounts. Use `maxAdvertisersPerQuery` to bound how many accounts one name may resolve to.\n\n## Output per ad\n\n- `adId`, `adLibraryUrl`, `sourceUrl` — the stable ad identity and its public Ad Library page\n- `advertiserId`, `advertiserName`, `advertiserUrl`\n- `headline`, `description`, `displayUrl`, `destinationUrl`, `destinationDomain`\n- `assets[]` — `assetType`, `url`, `width`, `height`, plus `originalUrl` when an image was rehosted\n- `firstShownDate`, `lastShownDate`, `daysActive`\n- `totalImpressionsRange` — Microsoft's raw band, e.g. `100K - 250K`\n- `impressionsMin`, `impressionsMax` — the band parsed to integers, e.g. `100000` and `250000`\n- `impressionsByCountry[]` — `country`, `impressionShare` (e.g. `17.3%`) and `impressionSharePercent`\n- `targetingTypes[]` — `targetType` (`Gender`, `Age`, `Location`, `MicrosoftAudiences`, `AdvertiserAudiences`) and `usedForExclusion`\n- `paidForByName` — present when a media agency or other party paid for the ad\n- `restrictionReason` — present when Microsoft restricted or removed the ad\n- `advertiserCountry`, `advertiserVerified` — when advertiser profile enrichment is on, or when an advertiser query resolved them\n- `detailsFetched` — present when details were requested, so a failed detail call is distinguishable from details left off\n- `searchTerm`, `matchedVia` — how the record was found\n- `recordType: \"ad\"`, `scrapedAt`\n\n## Output per advertiser\n\n- `advertiserId`, `advertiserName`, `advertiserCountry`, `advertiserVerified`\n- `advertiserUrl`, `sourceUrl`\n- `adsFound` — distinct ads matching the run's filters\n- `landingDomains[]` — distinct destination domains, sorted\n- `adsFoundIsLowerBound` — present when a result cap stopped the scan\n- `searchTerm`, `matchedVia`, `recordType: \"advertiser\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | select | `searchAds` | `searchAds` / `byAdvertiser` / `searchAdvertisers` / `byAdIds` |\n| `queries` | array | `[\"nike\"]` | Keywords, advertiser names/IDs/URLs, or ad IDs/URLs depending on mode |\n| `advertiserMatch` | select | `word` | `word`, `contains` or `exact` name matching |\n| `maxAdvertisersPerQuery` | int | `5` | Advertiser accounts read per name (1–200) |\n| `countries` | multi-select | all | EU/EEA markets (30 ISO codes) |\n| `startDate` | date | – | First eligible impression date, `YYYY-MM-DD` |\n| `endDate` | date | – | Last eligible impression date, `YYYY-MM-DD` |\n| `adFormat` | select | `all` | `all`, `text` (no image asset) or `image` |\n| `landingDomains` | array | – | Keep ads whose destination host matches these domains |\n| `adKeywordFilter` | string | – | Keep ads whose title, description or display URL contains every word |\n| `includeDetails` | bool | `false` | Run dates, impressions, targeting, paid-for-by, restriction |\n| `includeAdvertiserProfile` | bool | `false` | Add advertiser country and verified flag to each ad |\n| `maxAdvertiserProfiles` | int | `100` | Distinct profile lookups per run; `0` = no cap |\n| `rehostImages` | bool | `false` | Rehost non-Bing image assets in the run's key-value store |\n| `deepSearch` | bool | `false` | Slice capped queries by country, then month |\n| `maxResults` | int | `1000` | Total records for the run (ads, or advertiser rows in `searchAdvertisers`) |\n| `maxAdsPerQuery` | int | `0` | Per-query/advertiser cap; `0` = remaining global budget |\n| `onlyNewAds` | bool | `false` | Emit only ads not already delivered by the monitor store |\n| `monitorStoreName` | string | `bing-ad-library-monitor` | Key-value store for the cross-run ad-ID memory |\n\n### Example: competitor keyword sweep with details\n\n```json\n{\n  \"mode\": \"searchAds\",\n  \"queries\": [\"meal kit\", \"vpn\"],\n  \"countries\": [\"DE\", \"FR\", \"NL\"],\n  \"startDate\": \"2026-09-01\",\n  \"includeDetails\": true,\n  \"maxAdsPerQuery\": 50,\n  \"maxResults\": 100\n}\n```\n\n### Example: advertiser check\n\n```json\n{\n  \"mode\": \"byAdvertiser\",\n  \"queries\": [\"Booking.com\", \"https://adlibrary.ads.microsoft.com/advertiser/4295007715\"],\n  \"advertiserMatch\": \"word\",\n  \"maxAdvertisersPerQuery\": 5,\n  \"includeDetails\": true,\n  \"maxResults\": 100\n}\n```\n\n### Example: advertiser directory rows\n\n```json\n{\n  \"mode\": \"searchAdvertisers\",\n  \"queries\": [\"nike\", \"adidas\"],\n  \"maxAdvertisersPerQuery\": 10,\n  \"maxAdsPerQuery\": 25,\n  \"maxResults\": 20\n}\n```\n\n### Example: exact ads and a scheduled new-ad monitor\n\n```json\n{\n  \"mode\": \"byAdIds\",\n  \"queries\": [\"71056224111848\", \"https://adlibrary.ads.microsoft.com/ad/73530116422594\"],\n  \"includeDetails\": true\n}\n```\n\n```json\n{\n  \"mode\": \"byAdvertiser\",\n  \"queries\": [\"Nike - EMEA\"],\n  \"onlyNewAds\": true,\n  \"monitorStoreName\": \"nike-emea-watch\",\n  \"includeDetails\": true\n}\n```\n\n## Coverage, caps and pacing\n\nMicrosoft returns at most **24 ads per page** and at most **1,000 ads per query**. The actor follows pagination to the cap. With `deepSearch` on, a capped query is repeated for each selected country and then for each month in the date window, which can surface ads beyond the first 1,000. Deduplication is by `adId`, so overlapping slices do not create duplicate records.\n\nAnonymous API calls are rate-limited. The actor sends one request at a time with a short pause, honours `Retry-After`, and backs off automatically on HTTP 429 and 5xx responses. Detail calls are the slow part: a 1,000-ad run with `includeDetails` can take tens of minutes. Use `maxAdsPerQuery` or a narrower country/date window to keep runs small.\n\nThe actor has an internal request budget so a mistaken input cannot run forever. If the budget is reached, it stops cleanly with the records already collected and says so in the run status.\n\n## Limits and honest caveats\n\n- **EU/EEA only.** The library does not contain ads served outside the EU/EEA.\n- **Since June 2023.** Ads are retained for one year after their last eligible impression.\n- **Impression bands, not exact counts.** Microsoft publishes ranges such as `2.5K - 5K`; `impressionsMin` and `impressionsMax` are parsed from that band. A `<100` band becomes `0`–`99`.\n- **One to three days of lag** is normal for new impressions and edits.\n- **1,000-result ceiling per query.** Deep search works around it with country and month slices, but a very large advertiser can still exceed the request budget. Month slicing without a date window uses the last 12 months; set `startDate`/`endDate` to cover older ads.\n- **Thousands of advertiser accounts share similar names.** The default `word` matching requires every query word as a whole word, which avoids matches inside unrelated names such as \"Kliniken\". Use `exact` or a numeric advertiser ID for the tightest scope.\n- **Some fields are often absent.** `paidForByName` appears only when the payer differs from the advertiser; `restrictionReason` only for restricted or removed ads. Both are omitted rather than filled with placeholders.\n- **Creative assets belong to advertisers.** Most image URLs are Bing-hosted and load directly. A minority sit on third-party CDNs that may block automated requests. `rehostImages` copies fetchable non-Bing images into the run's key-value store; unfetchable third-party URLs are kept as-is.\n- **No proxy or account is required.** The public API answers anonymous calls; the pacing exists because those calls share a strict per-IP limit.\n\n## FAQ\n\n**Why did I get fewer ads than `maxResults`?** The query may have fewer matches, the country/date/format/domain filters may have removed some, or the source hit its 1,000-ad ceiling. Turn on `deepSearch` for a capped broad query, or narrow the filters.\n\n**Why are `firstShownDate` and `lastShownDate` not my campaign dates?** They are the first and last days Microsoft recorded an eligible EU/EEA impression. An ad can have run earlier outside the library's coverage or before June 2023.\n\n**What does `adsFoundIsLowerBound` mean?** The advertiser scan stopped at a result cap, so the advertiser may have more matching ads than the number shown.\n\n**Can I export every ad an advertiser ever ran?** The library retains one year after the last impression and caps each query at 1,000. Deep search plus country and date slices gets the broadest coverage the public API allows.\n\n**Are the image URLs permanent?** Bing-hosted asset URLs are stable CDN links. Third-party advertiser CDNs control their own retention. Enable `rehostImages` if you need copies served from your run's key-value store.\n\n**Does `onlyNewAds` remember ads across different searches?** The memory is per named store. Use one store per scheduled watch, and a different name for a different competitor or market.\n\n**How fresh is the data?** Microsoft updates the library with a one-to-three-day delay after an eligible impression. The actor always queries the live API.\n\n## Use cases\n\n- **Competitive creative research** — pull the exact headlines and descriptions competitors run in each EU market\n- **Ad monitoring** — schedule an advertiser watch and export only newly seen ads\n- **Media and brand intelligence** — compare impression bands and country mixes across advertisers\n- **DSA transparency research** — archive ad copy, payer identity, targeting types and restriction reasons\n- **Landing-page discovery** — collect the domains and URLs advertisers send Bing traffic to\n- **Market entry analysis** — see which brands advertise in a country before launching there\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "bing-ad-library",
      "title": "Bing Ad Library Explorer — EU Ad Copy, Reach & Targeting",
      "description": "Query Microsoft's public Bing Ad Library for EU/EEA ads by keyword, advertiser or ad ID. Export ad copy, landing pages, image creatives, run dates, impression bands, per-country reach, targeting and advertiser identity without a login or API key.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "./Dockerfile",
      "readme": "# Bing Ad Library Explorer — EU Ad Copy, Reach & Targeting\n\nMicrosoft's Ad Library publishes every ad that received an impression on Bing in the EU/EEA since June 2023. This actor queries that public library and returns analysis-ready ad records: the exact copy, creative assets, landing pages, run dates, impression bands, per-country reach and targeting signals — with no login, cookie or API key.\n\n## What this actor does\n\n- **Four modes:** keyword search, ads by advertiser, advertiser directory rows, and direct ad-ID lookup\n- **All 30 EU/EEA markets:** Austria through Sweden, including Iceland, Liechtenstein and Norway\n- **Date windows** on the ad run period, plus text-only / image creative filters, landing-domain filters and an ad-text keyword filter\n- **Optional detail enrichment:** first and last shown dates, days active, total EU impressions (raw band and numeric minimum/maximum), impression share by country, targeting types with include/exclude flags, paid-for-by and restriction reasons\n- **Deep search:** when a broad keyword reaches Microsoft's 1,000-ad ceiling, the actor slices the query by country and then by month, deduplicating by ad ID\n- **Advertiser summaries:** one row per advertiser account with its country, verified badge, number of matching ads and distinct landing domains\n- **Cross-run memory:** optionally emit only ads a named monitor store has not delivered before (ad modes)\n- **Image assets:** every image asset with its width, height and type; optional rehosting for third-party image hosts\n- **Empty fields are omitted** — no nulls and no placeholder values\n\n## Data source\n\nThe actor reads Microsoft's official public Ad Library API at `adlibrary.api.bingads.microsoft.com`. The library is a transparency record, not a campaign report: it contains ads served inside the EU/EEA, reports impressions in bands rather than exact counts, and can lag real delivery by one to three days. Microsoft keeps an ad for one year after its last eligible impression.\n\n## Modes\n\n| Mode | `queries` means | Returns |\n|---|---|---|\n| `searchAds` | Keywords found in ad copy | One row per ad |\n| `byAdvertiser` | Advertiser name, numeric ID or `/advertiser/` URL | One row per ad from each matching account |\n| `searchAdvertisers` | Advertiser name or numeric ID | One row per advertiser account with ad count and landing domains |\n| `byAdIds` | Ad ID or `/ad/` URL | One row per exact ad |\n\nA name in `byAdvertiser` mode is resolved through Microsoft's advertiser register first, so `Nike` can match `Nike - EMEA`, `Nike Retail B.V.` and other accounts. Use `maxAdvertisersPerQuery` to bound how many accounts one name may resolve to.\n\n## Output per ad\n\n- `adId`, `adLibraryUrl`, `sourceUrl` — the stable ad identity and its public Ad Library page\n- `advertiserId`, `advertiserName`, `advertiserUrl`\n- `headline`, `description`, `displayUrl`, `destinationUrl`, `destinationDomain`\n- `assets[]` — `assetType`, `url`, `width`, `height`, plus `originalUrl` when an image was rehosted\n- `firstShownDate`, `lastShownDate`, `daysActive`\n- `totalImpressionsRange` — Microsoft's raw band, e.g. `100K - 250K`\n- `impressionsMin`, `impressionsMax` — the band parsed to integers, e.g. `100000` and `250000`\n- `impressionsByCountry[]` — `country`, `impressionShare` (e.g. `17.3%`) and `impressionSharePercent`\n- `targetingTypes[]` — `targetType` (`Gender`, `Age`, `Location`, `MicrosoftAudiences`, `AdvertiserAudiences`) and `usedForExclusion`\n- `paidForByName` — present when a media agency or other party paid for the ad\n- `restrictionReason` — present when Microsoft restricted or removed the ad\n- `advertiserCountry`, `advertiserVerified` — when advertiser profile enrichment is on, or when an advertiser query resolved them\n- `detailsFetched` — present when details were requested, so a failed detail call is distinguishable from details left off\n- `searchTerm`, `matchedVia` — how the record was found\n- `recordType: \"ad\"`, `scrapedAt`\n\n## Output per advertiser\n\n- `advertiserId`, `advertiserName`, `advertiserCountry`, `advertiserVerified`\n- `advertiserUrl`, `sourceUrl`\n- `adsFound` — distinct ads matching the run's filters\n- `landingDomains[]` — distinct destination domains, sorted\n- `adsFoundIsLowerBound` — present when a result cap stopped the scan\n- `searchTerm`, `matchedVia`, `recordType: \"advertiser\"`, `scrapedAt`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | select | `searchAds` | `searchAds` / `byAdvertiser` / `searchAdvertisers` / `byAdIds` |\n| `queries` | array | `[\"nike\"]` | Keywords, advertiser names/IDs/URLs, or ad IDs/URLs depending on mode |\n| `advertiserMatch` | select | `word` | `word`, `contains` or `exact` name matching |\n| `maxAdvertisersPerQuery` | int | `5` | Advertiser accounts read per name (1–200) |\n| `countries` | multi-select | all | EU/EEA markets (30 ISO codes) |\n| `startDate` | date | – | First eligible impression date, `YYYY-MM-DD` |\n| `endDate` | date | – | Last eligible impression date, `YYYY-MM-DD` |\n| `adFormat` | select | `all` | `all`, `text` (no image asset) or `image` |\n| `landingDomains` | array | – | Keep ads whose destination host matches these domains |\n| `adKeywordFilter` | string | – | Keep ads whose title, description or display URL contains every word |\n| `includeDetails` | bool | `false` | Run dates, impressions, targeting, paid-for-by, restriction |\n| `includeAdvertiserProfile` | bool | `false` | Add advertiser country and verified flag to each ad |\n| `maxAdvertiserProfiles` | int | `100` | Distinct profile lookups per run; `0` = no cap |\n| `rehostImages` | bool | `false` | Rehost non-Bing image assets in the run's key-value store |\n| `deepSearch` | bool | `false` | Slice capped queries by country, then month |\n| `maxResults` | int | `1000` | Total records for the run (ads, or advertiser rows in `searchAdvertisers`) |\n| `maxAdsPerQuery` | int | `0` | Per-query/advertiser cap; `0` = remaining global budget |\n| `onlyNewAds` | bool | `false` | Emit only ads not already delivered by the monitor store |\n| `monitorStoreName` | string | `bing-ad-library-monitor` | Key-value store for the cross-run ad-ID memory |\n\n### Example: competitor keyword sweep with details\n\n```json\n{\n  \"mode\": \"searchAds\",\n  \"queries\": [\"meal kit\", \"vpn\"],\n  \"countries\": [\"DE\", \"FR\", \"NL\"],\n  \"startDate\": \"2026-09-01\",\n  \"includeDetails\": true,\n  \"maxAdsPerQuery\": 50,\n  \"maxResults\": 100\n}\n```\n\n### Example: advertiser check\n\n```json\n{\n  \"mode\": \"byAdvertiser\",\n  \"queries\": [\"Booking.com\", \"https://adlibrary.ads.microsoft.com/advertiser/4295007715\"],\n  \"advertiserMatch\": \"word\",\n  \"maxAdvertisersPerQuery\": 5,\n  \"includeDetails\": true,\n  \"maxResults\": 100\n}\n```\n\n### Example: advertiser directory rows\n\n```json\n{\n  \"mode\": \"searchAdvertisers\",\n  \"queries\": [\"nike\", \"adidas\"],\n  \"maxAdvertisersPerQuery\": 10,\n  \"maxAdsPerQuery\": 25,\n  \"maxResults\": 20\n}\n```\n\n### Example: exact ads and a scheduled new-ad monitor\n\n```json\n{\n  \"mode\": \"byAdIds\",\n  \"queries\": [\"71056224111848\", \"https://adlibrary.ads.microsoft.com/ad/73530116422594\"],\n  \"includeDetails\": true\n}\n```\n\n```json\n{\n  \"mode\": \"byAdvertiser\",\n  \"queries\": [\"Nike - EMEA\"],\n  \"onlyNewAds\": true,\n  \"monitorStoreName\": \"nike-emea-watch\",\n  \"includeDetails\": true\n}\n```\n\n## Coverage, caps and pacing\n\nMicrosoft returns at most **24 ads per page** and at most **1,000 ads per query**. The actor follows pagination to the cap. With `deepSearch` on, a capped query is repeated for each selected country and then for each month in the date window, which can surface ads beyond the first 1,000. Deduplication is by `adId`, so overlapping slices do not create duplicate records.\n\nAnonymous API calls are rate-limited. The actor sends one request at a time with a short pause, honours `Retry-After`, and backs off automatically on HTTP 429 and 5xx responses. Detail calls are the slow part: a 1,000-ad run with `includeDetails` can take tens of minutes. Use `maxAdsPerQuery` or a narrower country/date window to keep runs small.\n\nThe actor has an internal request budget so a mistaken input cannot run forever. If the budget is reached, it stops cleanly with the records already collected and says so in the run status.\n\n## Limits and honest caveats\n\n- **EU/EEA only.** The library does not contain ads served outside the EU/EEA.\n- **Since June 2023.** Ads are retained for one year after their last eligible impression.\n- **Impression bands, not exact counts.** Microsoft publishes ranges such as `2.5K - 5K`; `impressionsMin` and `impressionsMax` are parsed from that band. A `<100` band becomes `0`–`99`.\n- **One to three days of lag** is normal for new impressions and edits.\n- **1,000-result ceiling per query.** Deep search works around it with country and month slices, but a very large advertiser can still exceed the request budget. Month slicing without a date window uses the last 12 months; set `startDate`/`endDate` to cover older ads.\n- **Thousands of advertiser accounts share similar names.** The default `word` matching requires every query word as a whole word, which avoids matches inside unrelated names such as \"Kliniken\". Use `exact` or a numeric advertiser ID for the tightest scope.\n- **Some fields are often absent.** `paidForByName` appears only when the payer differs from the advertiser; `restrictionReason` only for restricted or removed ads. Both are omitted rather than filled with placeholders.\n- **Creative assets belong to advertisers.** Most image URLs are Bing-hosted and load directly. A minority sit on third-party CDNs that may block automated requests. `rehostImages` copies fetchable non-Bing images into the run's key-value store; unfetchable third-party URLs are kept as-is.\n- **No proxy or account is required.** The public API answers anonymous calls; the pacing exists because those calls share a strict per-IP limit.\n\n## FAQ\n\n**Why did I get fewer ads than `maxResults`?** The query may have fewer matches, the country/date/format/domain filters may have removed some, or the source hit its 1,000-ad ceiling. Turn on `deepSearch` for a capped broad query, or narrow the filters.\n\n**Why are `firstShownDate` and `lastShownDate` not my campaign dates?** They are the first and last days Microsoft recorded an eligible EU/EEA impression. An ad can have run earlier outside the library's coverage or before June 2023.\n\n**What does `adsFoundIsLowerBound` mean?** The advertiser scan stopped at a result cap, so the advertiser may have more matching ads than the number shown.\n\n**Can I export every ad an advertiser ever ran?** The library retains one year after the last impression and caps each query at 1,000. Deep search plus country and date slices gets the broadest coverage the public API allows.\n\n**Are the image URLs permanent?** Bing-hosted asset URLs are stable CDN links. Third-party advertiser CDNs control their own retention. Enable `rehostImages` if you need copies served from your run's key-value store.\n\n**Does `onlyNewAds` remember ads across different searches?** The memory is per named store. Use one store per scheduled watch, and a different name for a different competitor or market.\n\n**How fresh is the data?** Microsoft updates the library with a one-to-three-day delay after an eligible impression. The actor always queries the live API.\n\n## Use cases\n\n- **Competitive creative research** — pull the exact headlines and descriptions competitors run in each EU market\n- **Ad monitoring** — schedule an advertiser watch and export only newly seen ads\n- **Media and brand intelligence** — compare impression bands and country mixes across advertisers\n- **DSA transparency research** — archive ad copy, payer identity, targeting types and restriction reasons\n- **Landing-page discovery** — collect the domains and URLs advertisers send Bing traffic to\n- **Market entry analysis** — see which brands advertise in a country before launching there\n",
      "input": {
        "title": "Bing Ad Library Explorer Input",
        "description": "Query Microsoft's public Bing Ad Library for EU/EEA ads by keyword, advertiser or ad ID, with optional run dates, impressions and targeting details.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "Pick what to return.",
            "editor": "select",
            "enum": [
              "searchAds",
              "byAdvertiser",
              "searchAdvertisers",
              "byAdIds"
            ],
            "enumTitles": [
              "Ads by ad-copy keyword",
              "Ads from advertiser names, IDs or URLs",
              "Advertiser directory rows",
              "Direct ad IDs or ad URLs"
            ],
            "default": "searchAds",
            "prefill": "searchAds",
            "sectionCaption": "Mode and queries",
            "sectionDescription": "The same public Ad Library API serves every mode; `queries` changes meaning with the mode."
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "One per line. searchAds: keywords matched in ad copy. byAdvertiser: advertiser name, numeric ID or /advertiser/ URL. searchAdvertisers: advertiser name or ID. byAdIds: ad ID or /ad/ URL.",
            "editor": "stringList",
            "default": [
              "nike"
            ],
            "prefill": [
              "nike"
            ]
          },
          "advertiserMatch": {
            "title": "Advertiser name matching",
            "type": "string",
            "description": "How a name query is matched to advertiser accounts in byAdvertiser and searchAdvertisers modes. Whole-word matching avoids brands inside unrelated names.",
            "editor": "select",
            "enum": [
              "word",
              "contains",
              "exact"
            ],
            "enumTitles": [
              "Every query word appears as a whole word",
              "Name contains the query",
              "Name matches exactly"
            ],
            "default": "word",
            "prefill": "word"
          },
          "maxAdvertisersPerQuery": {
            "title": "Advertiser accounts per name",
            "type": "integer",
            "description": "A brand can have several accounts (per market or agency). Read this many matches per name.",
            "minimum": 1,
            "maximum": 200,
            "default": 5,
            "prefill": 5
          },
          "countries": {
            "title": "EU/EEA markets",
            "type": "array",
            "description": "Only ads shown in these markets. Empty means all 30 EU/EEA countries. Uses Microsoft's numeric country codes internally.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IS",
                "IE",
                "IT",
                "LV",
                "LI",
                "LT",
                "LU",
                "MT",
                "NL",
                "NO",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE"
              ],
              "enumTitles": [
                "Austria",
                "Belgium",
                "Bulgaria",
                "Croatia",
                "Cyprus",
                "Czechia",
                "Denmark",
                "Estonia",
                "Finland",
                "France",
                "Germany",
                "Greece",
                "Hungary",
                "Iceland",
                "Ireland",
                "Italy",
                "Latvia",
                "Liechtenstein",
                "Lithuania",
                "Luxembourg",
                "Malta",
                "Netherlands",
                "Norway",
                "Poland",
                "Portugal",
                "Romania",
                "Slovakia",
                "Slovenia",
                "Spain",
                "Sweden"
              ]
            },
            "default": [],
            "prefill": [],
            "sectionCaption": "Filters",
            "sectionDescription": "Filters apply to ad searches and to the ads counted in advertiser rows."
          },
          "startDate": {
            "title": "Shown from (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads with an eligible impression on or after this date. The library starts 2023-06-01.",
            "editor": "datepicker"
          },
          "endDate": {
            "title": "Shown until (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads with an eligible impression on or before this date. Data can lag by 1-3 days.",
            "editor": "datepicker"
          },
          "adFormat": {
            "title": "Creative format",
            "type": "string",
            "description": "Filter list results by the ad's image assets.",
            "editor": "select",
            "enum": [
              "all",
              "text",
              "image"
            ],
            "enumTitles": [
              "All ads",
              "Text-only ads",
              "Ads with an image"
            ],
            "default": "all",
            "prefill": "all"
          },
          "landingDomains": {
            "title": "Landing-page domains",
            "type": "array",
            "description": "Keep ads whose destination URL is on one of these domains, e.g. nike.com. Ads without a destination URL pass through.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "adKeywordFilter": {
            "title": "Ad text filter",
            "type": "string",
            "description": "Keep ads whose title, description or display URL contains every word here. Useful for narrowing an advertiser's ads to a product or theme.",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Adds first/last shown dates, days active, the EU impression band with numeric bounds, per-country impression share, targeting types with exclusion flags, paid-for-by and any restriction reason. One extra request per ad.",
            "default": false,
            "prefill": false,
            "sectionCaption": "Detail enrichment",
            "sectionDescription": "Detail calls are rate-limited by Microsoft; leave them off for fast list pulls."
          },
          "includeAdvertiserProfile": {
            "title": "Add advertiser country and verification",
            "type": "boolean",
            "description": "Adds the advertiser's registered country and verified flag to each ad. Uses one cached lookup per distinct advertiser, capped by the next field.",
            "default": false,
            "prefill": false
          },
          "maxAdvertiserProfiles": {
            "title": "Advertiser profile lookup cap",
            "type": "integer",
            "description": "Maximum distinct advertiser profiles to look up per run. 0 means no cap.",
            "minimum": 0,
            "maximum": 1000,
            "default": 100,
            "prefill": 100
          },
          "rehostImages": {
            "title": "Rehost non-Bing images",
            "type": "boolean",
            "description": "Downloads image assets hosted outside bing.com into this run's key-value store and emits public URLs plus originalUrl. Bing-hosted images stay as they are. Up to 100 images per run.",
            "default": false,
            "prefill": false
          },
          "deepSearch": {
            "title": "Search past the 1,000-ad cap",
            "type": "boolean",
            "description": "When a query reaches Microsoft's 1,000-result limit, repeat it by country and then by month, deduplicating by ad ID. Slower and uses more requests.",
            "default": false,
            "prefill": false,
            "sectionCaption": "Coverage and limits",
            "sectionDescription": "Microsoft answers at most 1,000 ads per query and 24 per page. The actor paces requests because anonymous calls are rate-limited."
          },
          "maxResults": {
            "title": "Max records",
            "type": "integer",
            "description": "Total records to return: ads in ad modes, advertiser rows in searchAdvertisers mode.",
            "minimum": 1,
            "maximum": 100000,
            "default": 1000,
            "prefill": 3
          },
          "maxAdsPerQuery": {
            "title": "Max ads per query or advertiser",
            "type": "integer",
            "description": "Per-query cap. 0 uses the remaining global budget, up to Microsoft's 1,000-ad limit per unsliced query.",
            "minimum": 0,
            "maximum": 10000,
            "default": 0,
            "prefill": 0
          },
          "onlyNewAds": {
            "title": "Only ads not seen before",
            "type": "boolean",
            "description": "Stores delivered ad IDs in a named key-value store and emits only ads this store has not delivered yet. Applies to the three ad modes.",
            "default": false,
            "prefill": false,
            "sectionCaption": "Monitoring",
            "sectionDescription": "Optional cross-run memory for scheduled competitor checks."
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Key-value store that remembers delivered ad IDs. Use a separate name per schedule. Lowercase letters, digits and hyphens only.",
            "editor": "textfield",
            "default": "bing-ad-library-monitor",
            "prefill": "bing-ad-library-monitor"
          }
        },
        "required": [
          "mode",
          "queries"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Bing Ad Library Explorer Output",
        "description": "Bing EU/EEA ads and advertiser summaries from Microsoft's public Ad Library: ad copy, creatives, landing pages, run dates, impression bands, per-country reach, targeting and verified advertiser identity.",
        "properties": {
          "ads": {
            "type": "string",
            "title": "Bing ads and advertisers",
            "description": "Dataset containing ad records and, in advertiser-directory mode, advertiser summary records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "defaultMemoryMbytes": 512,
      "minMemoryMbytes": 256,
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "ads": {
              "title": "Ads",
              "transformation": {
                "fields": [
                  "advertiserName",
                  "headline",
                  "destinationDomain",
                  "firstShownDate",
                  "lastShownDate",
                  "daysActive",
                  "totalImpressionsRange",
                  "adLibraryUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            },
            "advertisers": {
              "title": "Advertisers",
              "transformation": {
                "fields": [
                  "advertiserName",
                  "advertiserCountry",
                  "advertiserVerified",
                  "adsFound",
                  "landingDomains",
                  "advertiserUrl"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "imageDigest": "de91f9a463a19e5c0235707be46af7650aa942a8d4454663bde925e647508f5d",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.014548888888888889
    }
  }
}