{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Center Scraper: Ads, Text, EU Reach",
    "description": "Every ad a brand runs on Google Search, YouTube, Shopping, Maps & Play. Search by brand, domain or advertiser ID. Ad copy (headline, description), YouTube IDs, EU impressions per country & platform, targeting, only-new-ads alerts. Hard spend limits, no login.",
    "version": "0.1",
    "x-build-id": "JLR0fqtKgmckMyTp8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nat-labs~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nat-labs-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/nat-labs~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nat-labs-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/nat-labs~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nat-labs-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": {
          "queries": {
            "title": "Brands, domains or advertiser IDs",
            "type": "array",
            "description": "What to look up. Each entry can be a brand name (Nike), a domain (nike.com), an advertiser ID (AR16735076323512287233) or a pasted adstransparency.google.com link. Brand names are matched to Google's advertiser accounts (see maxAdvertisersPerQuery).",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Domains (exact)",
            "type": "array",
            "description": "Every advertiser whose ads point at these websites, e.g. hellofresh.com. Same as putting a domain into queries.",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "Google advertiser IDs (AR + digits), from an advertiser's Transparency Center URL. The most exact way to target one account.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Transparency Center URLs",
            "type": "array",
            "description": "Links copied from adstransparency.google.com: advertiser pages, single ads (creative pages) or domain searches. Filters in the link (region, format, platform, dates) are kept for that link.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "resultType": {
            "title": "What to return",
            "enum": [
              "ads",
              "advertisers"
            ],
            "type": "string",
            "description": "ads = every ad creative with its data. advertisers = a cheap ad check: one summary row per advertiser or domain with approximate ad count, latest ad date and the advertiser accounts behind a domain. Rows without ads are free.",
            "default": "ads"
          },
          "region": {
            "title": "Regions",
            "type": "array",
            "description": "Countries where the ads were shown: two-letter codes (US, DE, GB), names (Germany) or EU for all EU/EEA countries. Several regions are searched together. Empty or 'anywhere' = all regions. Impressions per country are published by Google for EU/EEA countries (DSA).",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Only ads shown on these Google platforms. Empty = all. Google records platforms only for ads shown since 2023-09-04.",
            "items": {
              "type": "string",
              "enum": [
                "SEARCH",
                "YOUTUBE",
                "SHOPPING",
                "MAPS",
                "PLAY"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            }
          },
          "adFormat": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Only text, image or video ads. Lowercase works too.",
            "default": "ALL"
          },
          "datePreset": {
            "title": "Shown in the last…",
            "enum": [
              "any",
              "last7",
              "last30",
              "last90",
              "last365"
            ],
            "type": "string",
            "description": "Quick date filter on when the ad was shown. startDate/endDate override it.",
            "default": "any"
          },
          "startDate": {
            "title": "Shown on or after",
            "type": "string",
            "description": "YYYY-MM-DD. Only ads shown on or after this date. Relative values like '30 days' also work."
          },
          "endDate": {
            "title": "Shown on or before",
            "type": "string",
            "description": "YYYY-MM-DD. Only ads shown on or before this date."
          },
          "maxAdsPerSearch": {
            "title": "Max ads per brand/domain/advertiser",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap per target (0 = all). The Actor never delivers or charges more than this, whatever Google returns.",
            "default": 100
          },
          "maxItems": {
            "title": "Max ads in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run across all targets (0 = no total cap; maxAdsPerSearch still applies). Together with the run's maximum cost this makes overspending impossible.",
            "default": 0
          },
          "maxAdvertisersPerQuery": {
            "title": "Advertiser accounts per brand name",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "A brand name can match several advertiser accounts (Nike, Inc.; NIKE SRL …). Exact name matches come first, then the accounts with the most ads.",
            "default": 1
          },
          "includeDetails": {
            "title": "Add details: per-country impressions, targeting, variations",
            "type": "boolean",
            "description": "One extra request per ad: all A/B variations, every country the ad ran in with first/last shown dates, impressions ranges per country and per platform (published for EU/EEA countries), audience targeting categories and Google's topic. Billed per ad as 'ad-details'.",
            "default": false
          },
          "extractAdText": {
            "title": "Extract ad text (headline, description, display URL) and YouTube IDs",
            "type": "boolean",
            "description": "Reads the ad copy: search text ads (archived by Google as images) are read with built-in OCR; HTML, local and video ads are parsed from their preview, which also gives the YouTube video ID and landing page. Billed per ad as 'ad-text' only when text was found.",
            "default": false
          },
          "onlyNewAds": {
            "title": "Only new ads (monitoring)",
            "type": "boolean",
            "description": "For scheduled runs: deliver only ads not delivered by earlier runs with the same monitor name. The first run delivers everything and becomes the baseline. Known ads are skipped free of charge.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate memory per monitor, e.g. one per competitor or schedule.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Parallel targets",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many brands/domains/advertisers are processed at once.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is: Transparency Center requests go through Apify residential proxy (tiny, ~1 KB per ad) and ad media through Apify datacenter proxy, both included in the price. Set proxy groups or your own proxy URLs only if you want to override that.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}