{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Tracker: New & Stopped Ads",
    "description": "Track competitors' Google ads: each run tells which ads are new and which stopped, alerts Slack, Discord or your webhook, and writes a report per advertiser. Scrapes Google Ads Transparency Center by domain, advertiser or brand, with ad text (OCR included). No login.",
    "version": "0.2",
    "x-build-id": "ZHZY8ShQBE1l4YOh2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ultramarine_freezer~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ultramarine_freezer-google-ads-transparency-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/ultramarine_freezer~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ultramarine_freezer-google-ads-transparency-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/ultramarine_freezer~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ultramarine_freezer-google-ads-transparency-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Advertiser website domains, e.g. nike.com. Lists the ads Google shows for each domain.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Advertiser or brand names, up to 100 characters each. Each term is resolved from Google's suggestions to the advertisers whose name contains the term as a whole word (for nike: 'Nike, Inc.', not 'Nikena'; a domain with a short ending, such as nike.com or nike.com.br, also matches by its name part, while other terms with dots, such as dr.oetker, match only as a whole), verified ones with the most ads first, up to 'Max advertisers per search term'. In ads mode the domain whose name equals the term (nike.com for nike) is listed first when Google suggests it, and only when there is neither such a domain nor a matching name are the closest suggested names listed instead. In advertiser-check mode no domain is used, so whenever no name matches, the rows are the closest suggested names. Matches are by name, so they can be other companies or people with the same name, and what is delivered for them is charged. In ads mode the status message and the run log say what was listed; in advertiser-check mode the rows themselves show which advertisers were used. For exact control, give a domain or an advertiser ID instead.",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "Advertiser IDs as shown in the Transparency Center: AR followed by digits, e.g. AR18378488041124659201.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Transparency Center URLs",
            "type": "array",
            "description": "Links copied from adstransparency.google.com: an advertiser page (/advertiser/AR...), a single ad page (/advertiser/AR.../creative/CR...) or a page with ?domain=...",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "ads",
              "advertiser-check"
            ],
            "type": "string",
            "description": "ads: list the ads of every target. advertiser-check: one row per advertiser found for each search term, domain or advertiser ID, saying whether it advertises (single ad URLs are not supported in this mode).",
            "default": "ads"
          },
          "maxAdsPerTarget": {
            "title": "Max ads per target",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop listing a domain or an advertiser after this many ads. For a search term, it applies to each domain or advertiser the term is resolved to.",
            "default": 200
          },
          "maxAdvertisersPerSearchTerm": {
            "title": "Max advertisers per search term",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many domains and advertisers a search term is resolved to. The domain whose name equals the term, when Google suggests it, counts as one; the rest are the suggested advertisers whose name contains the term as a whole word, verified ones with the most ads first (Google suggests at most 10). A domain or advertiser that another target of the run already lists is not listed again, but still uses one of these places. 'Max ads per target' applies to each one: with the defaults a search term can deliver up to 3 × 200 = 600 ads.",
            "default": 3
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Where the ads were shown: anywhere, a two-letter country code (e.g. US, MX) or an English country name.",
            "default": "anywhere"
          },
          "format": {
            "title": "Ad format",
            "enum": [
              "all",
              "text",
              "image",
              "video"
            ],
            "type": "string",
            "description": "Only ads of this format.",
            "default": "all"
          },
          "dateFrom": {
            "title": "Shown from",
            "type": "string",
            "description": "Only ads shown on or after this date."
          },
          "dateTo": {
            "title": "Shown until",
            "type": "string",
            "description": "Only ads shown on or before this date."
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Only ads shown on these Google platforms. Leave empty for all platforms.",
            "items": {
              "type": "string",
              "enum": [
                "play",
                "maps",
                "search",
                "shopping",
                "youtube"
              ],
              "enumTitles": [
                "Google Play",
                "Google Maps",
                "Google Search",
                "Google Shopping",
                "YouTube"
              ]
            }
          },
          "politicalOnly": {
            "title": "Political ads only",
            "type": "boolean",
            "description": "Only political (election) ads. These rows also carry impressions, spend and the regions where they were shown.",
            "default": false
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Also deliver one ad-detail row per ad: the regions where it was shown with impressions per platform, its variants, EU impressions and topic. One extra request per ad.",
            "default": false
          },
          "downloadAssets": {
            "title": "Download ad files",
            "type": "boolean",
            "description": "Store each ad's image (or its preview script when it has no image) in the run's key-value store and deliver one asset row per stored file.",
            "default": false
          },
          "extractText": {
            "title": "Extract ad text",
            "type": "boolean",
            "description": "Add the text of each ad (headline, description, display URL and all the text read) to its row, read from the ad's preview; a YouTube video ad gets its video ID, link and title. The text ads that Google serves as an image can also be read with OCR.",
            "default": true
          },
          "ocr": {
            "title": "Read text in images (OCR)",
            "type": "boolean",
            "description": "Read the text ads that Google serves as an image (most search ads are) with OCR, inside the run. Image and video ads are not read with OCR. Has no effect when 'Extract ad text' is off.",
            "default": true
          },
          "trackingName": {
            "title": "Tracking name",
            "type": "string",
            "description": "Turn on change tracking and name it, for example nike-watch (1 to 60 characters: letters, digits, spaces, - and _; spaces become -). The run looks only at the ads shown in the last N days ('Tracking window'), so do not set 'Shown from' or 'Shown until'. Each run compares those ads with the previous run of the same name and delivers every ad as new, still_running or stopped; each delivered row is charged as one ad, and there is also one charged report per advertiser. Use the same name, region, format, platforms, political setting and window on every run. Left empty, nothing is tracked. Ads mode only."
          },
          "onlyChanges": {
            "title": "Only changes",
            "type": "boolean",
            "description": "Deliver only the ads that are new, seen for the first time or stopped. Ads still running are not delivered and not charged. Needs a tracking name.",
            "default": false
          },
          "trackingWindowDays": {
            "title": "Tracking window (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "With a tracking name, only ads shown in the last this many days are listed; an ad that no longer shows in that window counts as stopped.",
            "default": 7
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Send a summary of the changes to this Slack incoming webhook (https://hooks.slack.com/...). Needs a tracking name."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Send a summary of the changes to this Discord webhook (https://discord.com/api/webhooks/...). Needs a tracking name."
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "POST a JSON summary of the changes to this https URL (port 443, no credentials in the URL). Needs a tracking name."
          },
          "advertiserReport": {
            "title": "Advertiser report",
            "type": "boolean",
            "description": "Deliver one charged report row per advertiser with its ad counts, formats, Google's ad totals per platform and top ads (and its countries with 'Include ad details'). Always on when a tracking name is set. Ads mode only.",
            "default": false
          },
          "reportTopAds": {
            "title": "Top ads in the report",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many ads each advertiser report lists.",
            "default": 10
          },
          "proxyType": {
            "title": "Proxy",
            "enum": [
              "residential",
              "datacenter",
              "none"
            ],
            "type": "string",
            "description": "residential: a new residential IP for every request (the default). datacenter: in the last test (2026-11-11) Google answered 96% of datacenter attempts with its challenge page. none: no proxy and no retry after Google limits the IP.",
            "default": "residential"
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many targets are processed at the same time.",
            "default": 5
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}