{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper · Creatives & Impression Ranges",
    "description": "Scrape Google Ads Transparency Center by brand, domain, advertiser ID or URL. Export Search copy, images, YouTube IDs, plus who paid, impression ranges and platforms when Google publishes them",
    "version": "0.3",
    "x-build-id": "kWZ3GyIvs5gnxlQh9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/corent1robert~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-corent1robert-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/corent1robert~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-corent1robert-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/corent1robert~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-corent1robert-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": [
          "query"
        ],
        "properties": {
          "query": {
            "title": "Query",
            "type": "string",
            "description": "**Brand** (`Qonto`), **domain** (`qonto.com`), **advertiser ID** (`AR…`), or a full Transparency **advertiser / creative URL** (`adstransparency.google.com/…`).\n\nAds Manager URLs (`ads.google.com`) are rejected. A creative ID (`CR…`) alone is not enough — paste the full Transparency URL."
          },
          "outputMode": {
            "title": "What to export",
            "enum": [
              "creatives",
              "advertisers"
            ],
            "type": "string",
            "description": "**Creatives (default):** one row per ad (swipe file + who paid when Google publishes it).\n\n**Unique advertisers:** one row per advertiser — legal `paidForBy`, Transparency URL, sample creative. Same idea as Shopify / Play unique publishers. Google does **not** publish an advertiser sitemap; you still start from a brand / domain / AR… query.",
            "default": "creatives"
          },
          "region": {
            "title": "Region",
            "enum": [
              "anywhere",
              "FR",
              "US",
              "GB",
              "DE",
              "ES",
              "IT",
              "NL",
              "BE",
              "CH",
              "CA",
              "AU",
              "BR",
              "IN",
              "JP",
              "MX"
            ],
            "type": "string",
            "description": "Transparency region. **Anywhere** is worldwide. A `?region=` value on a pasted Transparency URL overrides this field.",
            "default": "anywhere"
          },
          "adFormats": {
            "title": "Ad formats",
            "type": "array",
            "description": "Which creative formats to keep. If **All formats** is selected, other values are ignored.",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "TEXT",
                "IMAGE",
                "VIDEO"
              ],
              "enumTitles": [
                "All formats",
                "Text",
                "Image",
                "Video"
              ]
            },
            "default": [
              "ALL"
            ]
          },
          "dateRange": {
            "title": "Date range",
            "enum": [
              "ANY",
              "LAST_7_DAYS",
              "LAST_30_DAYS",
              "LAST_90_DAYS",
              "LAST_365_DAYS"
            ],
            "type": "string",
            "description": "Keep creatives whose **last shown** date falls in this window. Applied client-side. Creatives with a missing last-shown date are kept.",
            "default": "ANY"
          },
          "maxAdvertisers": {
            "title": "Max advertisers",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "When resolving a **name or domain**, how many advertisers to scrape (Google suggestion order). Ignored for a direct advertiser ID or URL. In **Unique advertisers** mode this is how many leads you try (still capped by Max ads).",
            "default": 3
          },
          "maxAds": {
            "title": "Max ads",
            "minimum": 0,
            "type": "integer",
            "description": "**Global** cap for the whole run (all advertisers combined). **0** = unlimited. Counted after format and date filters. Default **20** keeps first runs cheap.",
            "default": 20
          },
          "enrichMediaBuyerData": {
            "title": "Include who paid & impression ranges",
            "type": "boolean",
            "description": "**On (default):** each row adds `paidForBy`, impression ranges, countries, and Search / Display / Maps **when Google publishes them**. Empty fields mean Google did not expose the data — not a failed scrape.\n\n**Off:** swipe file only (slightly fewer requests).",
            "default": true
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Keep creatives that ran on these surfaces. **All** = no extra filter. Uses the lookup above (forced on if you filter). Surface names are inferred — treat as best-effort.",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "SEARCH",
                "DISPLAY",
                "MAPS"
              ],
              "enumTitles": [
                "All surfaces",
                "Search",
                "Display",
                "Maps"
              ]
            },
            "default": [
              "ALL"
            ]
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Forced to Apify Proxy RESIDENTIAL. Hidden in Console — the Transparency Center captchas other IPs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel HTTP requests for creative enrichment. Keep low to avoid captchas.",
            "default": 2
          },
          "minDelayMs": {
            "title": "Min delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum pause between every HTTP request (RPC and enrichment).",
            "default": 800
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retries on 429, captcha, or 5xx. Each retry rotates the proxy session.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}