{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper & MCP — EU Impressions",
    "description": "Get any advertiser's Google ads (Search, YouTube, Shopping, Maps) from the Ads Transparency Center, with EU DSA impressions per country, targeting and new-ad alerts. MCP-ready.",
    "version": "1.0",
    "x-build-id": "sBnhws3StKWOdVxsZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xsi~google-ads-transparency/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xsi-google-ads-transparency",
        "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/xsi~google-ads-transparency/runs": {
      "post": {
        "operationId": "runs-sync-xsi-google-ads-transparency",
        "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/xsi~google-ads-transparency/run-sync": {
      "post": {
        "operationId": "run-sync-xsi-google-ads-transparency",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "advertiser",
              "details",
              "monitor"
            ],
            "type": "string",
            "description": "search = list ads; advertiser = find advertiser IDs; details = full data for ad URLs; monitor = only ads first shown since the previous run ($0.001 per target checked; the first run stores a baseline and sends no alerts).",
            "default": "search"
          },
          "queries": {
            "title": "Queries",
            "type": "array",
            "description": "Websites (nike.com), advertiser names in any script (Colruyt, בנק), advertiser IDs (AR…), or Ads Transparency URLs (required for details mode).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Countries",
            "type": "array",
            "description": "ISO country codes (BE, FR, DE, NL, ES, IT, US…). Empty = anywhere. EU/EEA countries add official DSA impression ranges in details.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include EU DSA details for each ad",
            "type": "boolean",
            "description": "Adds per-country impressions (EU/EEA), per-platform breakdown, audience-selection criteria, topic and all variants. Billed as 'ad-detail' instead of 'ad'. In monitor mode, new-ad alerts always include these details (included in the alert price).",
            "default": false
          },
          "includeAdText": {
            "title": "Include ad copy & YouTube video ID",
            "type": "boolean",
            "description": "Reads Google's official ad preview: headline, description, visible URL, call-to-action, business name, sitelinks, image URLs, and the YouTube video ID/URL of video ads. Billed as 'ad-text' only when something is found (pure image/HTML5 ads have no copy). Monitor alerts always include it.",
            "default": false
          },
          "downloadMedia": {
            "title": "Download images & video thumbnails",
            "type": "boolean",
            "description": "Saves each ad's image (or rendering), Shopping product images and the YouTube thumbnail of video ads to the run's key-value store and returns public links in <code>media[]</code>. $0.002 per file actually saved (re-used files are free). YouTube video files themselves are not downloaded (YouTube's Terms forbid it): you get the thumbnail + the YouTube link.",
            "default": false
          },
          "maxMediaPerAd": {
            "title": "Max media files per ad",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Upper limit of files saved per ad when downloading media.",
            "default": 3
          },
          "format": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Only this ad format.",
            "default": "ALL"
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "ALL",
              "GOOGLE_SEARCH",
              "YOUTUBE",
              "GOOGLE_SHOPPING",
              "GOOGLE_MAPS",
              "GOOGLE_PLAY"
            ],
            "type": "string",
            "description": "Only ads shown on this Google platform.",
            "default": "ALL"
          },
          "dateFrom": {
            "title": "Shown from (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads shown on or after this date."
          },
          "dateTo": {
            "title": "Shown until (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads shown on or before this date."
          },
          "maxAdsPerQuery": {
            "title": "Max ads per query & country",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Exact cap — the run never returns (or bills) more. In monitor mode: how many most recent ads are scanned per check.",
            "default": 100
          },
          "maxItems": {
            "title": "Max items for the whole run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Hard cap across all queries (together with your 'Max cost per run').",
            "default": 1000
          },
          "maxAdvertisersPerQuery": {
            "title": "Advertisers per name query",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "When a query is a name, how many matching advertisers to include.",
            "default": 3
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Separate memory per watch list, e.g. 'client-a'."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Parallel requests. Keep low; Google rate-limits aggressively.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential (default) is what Google's Transparency Center tolerates; it is used only for the small Transparency Center requests (about 1 KB per ad). Ad previews and media files go through Apify datacenter proxy, so the proxy cost stays tiny. Datacenter-only works too but Google often blocks shared datacenter IPs with CAPTCHA pages.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "assetProxyConfiguration": {
            "title": "Proxy for ad previews & media (advanced)",
            "type": "object",
            "description": "Optional. By default ad previews, images and thumbnails use Apify datacenter proxy when the main proxy is Residential (much cheaper, same data)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}