{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper — Ads & New-Ad Monitor",
    "description": "Export every ad a company runs on Google (Search, YouTube, Shopping, Maps, Play) from the Ads Transparency Center by brand, domain or advertiser ID, or monitor a watchlist and get only new and stopped ads on each run. No login.",
    "version": "0.1",
    "x-build-id": "TizfjpjXAaCJvzAin"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muira_datamasters~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muira_datamasters-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/muira_datamasters~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-muira_datamasters-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/muira_datamasters~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-muira_datamasters-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",
        "required": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Advertisers to read",
            "type": "array",
            "description": "One per line: a brand name (e.g. <code>HubSpot</code>), a website (<code>hubspot.com</code>: every ad that points to it, from any advertiser), an advertiser ID (<code>AR10072600183532683265</code>) or a link copied from adstransparency.google.com (its region, format and platform filters are used for that line).",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "export",
              "monitor",
              "advertisers"
            ],
            "type": "string",
            "description": "<b>Export</b> returns every matching ad. <b>Monitor</b> remembers what it saw for each watchlist: the first run outputs every ad as <code>baseline</code>, later runs only <code>new</code> and <code>stopped</code> ads. Schedule it daily or weekly. <b>Advertisers</b> returns the advertiser accounts behind each line, with legal name, country, verification and ad count.",
            "default": "export"
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Only ads shown in this country: a two-letter code such as <code>US</code>, <code>DE</code> or <code>GB</code>, or <code>anywhere</code>.",
            "default": "anywhere"
          },
          "dateFrom": {
            "title": "Shown from",
            "type": "string",
            "description": "Export mode: only ads shown on or after this date. <code>YYYY-MM-DD</code> or a relative value like <code>30 days</code>. Google keeps about the last 12 months."
          },
          "dateTo": {
            "title": "Shown until",
            "type": "string",
            "description": "Export mode: only ads shown on or before this date (<code>YYYY-MM-DD</code>)."
          },
          "formats": {
            "title": "Ad formats",
            "type": "array",
            "description": "Leave empty for all formats.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video"
              ],
              "enumTitles": [
                "Text",
                "Image",
                "Video"
              ]
            }
          },
          "platforms": {
            "title": "Google platforms",
            "type": "array",
            "description": "Leave empty for all platforms.",
            "items": {
              "type": "string",
              "enum": [
                "search",
                "youtube",
                "shopping",
                "maps",
                "play"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            }
          },
          "includeDetails": {
            "title": "Include creative details",
            "type": "boolean",
            "description": "Adds every variation, the countries each ad ran in with dates, and for ads shown in the EU how many times it was shown (per country and platform) and which audience criteria were used. Also adds the advertiser's legal name, country and verification. One extra request per ad, charged as <code>ad-detail</code> only when Google returns the detail.",
            "default": false
          },
          "includeAdText": {
            "title": "Include ad text",
            "type": "boolean",
            "description": "Adds headline, description, display URL, landing page, call to action and the YouTube video ID where Google's preview holds them as text. Charged as <code>ad-text</code> only when text is found. Ads archived as a picture have their words in the image and get no text.",
            "default": false
          },
          "monitorName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Monitor mode keeps one saved state per name. Use a different name for each watchlist (e.g. <code>competitors-us</code>).",
            "default": "default"
          },
          "stoppedAfterDays": {
            "title": "Stopped after (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "An ad seen before counts as <code>stopped</code> once Google has not shown it for this many days (also when it has dropped off Google's list). Reported once.",
            "default": 7
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Monitor mode: post a summary of new and stopped ads to this Slack incoming webhook (<code>https://hooks.slack.com/...</code>)."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Monitor mode: send the summary with this Telegram bot (also set the chat ID)."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "The chat, group or channel the bot posts to."
          },
          "alertWhenNoChanges": {
            "title": "Alert when nothing changed",
            "type": "boolean",
            "description": "Also send a message on runs with no new or stopped ads.",
            "default": false
          },
          "maxAdsPerTarget": {
            "title": "Max ads per line",
            "minimum": 1,
            "type": "integer",
            "description": "Stop reading a line after this many ads (newest first). In monitor mode, raise it to cover every ad of large advertisers: a line that is not read to the end never reports stopped ads.",
            "default": 200
          },
          "maxTotalAds": {
            "title": "Max ads per run",
            "minimum": 1,
            "type": "integer",
            "description": "Cap on the rows of the whole run. In monitor mode, a first run larger than this is continued by the next runs. Empty = no cap. The run's maximum charge is always honoured too."
          },
          "maxAdvertisersPerName": {
            "title": "Max advertisers per brand name",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "A brand name can match several advertiser accounts (e.g. regional entities). The best-matching and largest ones are used, and every row names its advertiser.",
            "default": 3
          },
          "maxConcurrency": {
            "title": "Parallel sessions",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Proxy sessions (IPs) used in parallel. Each sends at most one request per second, which keeps Google from rate-limiting.",
            "default": 5
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Rarely needs changing. With the default, rate-limited sessions are retired and the Actor switches to residential proxies after repeated blocks.",
            "default": {
              "useApifyProxy": true
            }
          },
          "healthCheck": {
            "title": "Health check",
            "type": "boolean",
            "description": "For scheduled canary runs: fail the run when fewer than 20 ads come back or core fields are missing.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}