{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "Fetch ads from Google Ads Transparency Center by domain, company name, or advertiser ID. Returns ad copy, images, unlisted YouTube video URLs, active dates, legal entities, and EU impression numbers.",
    "version": "1.1",
    "x-build-id": "vZQtbyqIIIfYlpseB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gutacker~google-ads-transparency/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gutacker-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/gutacker~google-ads-transparency/runs": {
      "post": {
        "operationId": "runs-sync-gutacker-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/gutacker~google-ads-transparency/run-sync": {
      "post": {
        "operationId": "run-sync-gutacker-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": {
          "queries": {
            "title": "Domains, Company Names, Advertiser IDs, or URLs",
            "type": "array",
            "description": "Domains like 'zalando.de' or 'hubspot.com', brand names like 'Shopify' (matched to advertisers by exact name only, ignoring case, punctuation and legal forms such as Inc./GmbH/SE; no similarity matching, so an unmatched brand returns nothing and the log lists Google's suggestions: then use the Advertiser ID or the exact name), Advertiser IDs ('AR15589870916631265281'), or adstransparency.google.com URLs (single-field 'query', 'domain', or 'url' is also accepted).",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Country / Region",
            "type": "string",
            "description": "Set 'ANYWHERE' for all regions or use a 2-letter ISO country code such as 'US', 'DE', 'GB', 'FR', 'ES', 'NL', or 'AT'. EU countries include DSA impression numbers when detail fetching is enabled.",
            "default": "ANYWHERE"
          },
          "adFormat": {
            "title": "Ad Format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Filter results by creative format.",
            "default": "ALL"
          },
          "platform": {
            "title": "Google Placement",
            "enum": [
              "ALL",
              "SEARCH",
              "YOUTUBE",
              "SHOPPING",
              "MAPS",
              "PLAY"
            ],
            "type": "string",
            "description": "Filter by the Google property where the ad ran. Google's own platform filter is not strict, so with Fetch Creative Details the Actor additionally removes creatives whose detail data shows no impressions on that placement in the selected region. Without detail data the filter is best-effort and some ads from other placements can appear. Direct creative URLs ignore this setting (you asked for that exact creative).",
            "default": "ALL"
          },
          "maxAdsPerQuery": {
            "title": "Max Ads per Query",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum creatives returned per entry in queries.",
            "default": 50
          },
          "fetchCreativeDetails": {
            "title": "Fetch Creative Details & EU Impressions",
            "type": "boolean",
            "description": "Queries the detail endpoint for each creative to pull YouTube watch URLs, text copy, asset variations, legal entity country, and EU impression ranges. Billed via the 'creative-detail' event for every creative delivered with detail data. A direct creative URL (adstransparency.google.com/advertiser/AR.../creative/CR...) always needs the detail endpoint, so it is delivered with detail data and charged 'creative-detail' even when this option is off.",
            "default": false
          },
          "minDaysActive": {
            "title": "Minimum Days Active",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only ads whose daysActive (the number of days Google reports the ad was served, not the calendar span between first and last shown date) is at least this value (for example 30 or 90). Set 0 to return all ads. Filtering happens after Google returns the ads, so the Actor stops after inspecting 10 x maxAdsPerQuery creatives per query and may return fewer ads than requested.",
            "default": 0
          },
          "startDate": {
            "title": "Start Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Earliest served date, e.g. '2026-01-01'. Leave empty for no start limit.",
            "default": ""
          },
          "endDate": {
            "title": "End Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Latest served date, e.g. '2026-12-31'. Leave empty for today.",
            "default": ""
          },
          "concurrency": {
            "title": "Parallel Detail Requests",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Concurrent HTTP requests used when Fetch Creative Details is active.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Leave empty (recommended): the Actor connects directly and switches to an Apify proxy automatically, only if Google blocks the connection (redirect to a captcha page), first datacenter, then residential; that proxy traffic is billed to the Actor owner, not to you. Set a proxy here to use it from the start of the run; the automatic fallback is then not applied. Local runs never use a proxy unless you set one here."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}