{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "Track any advertiser's Google ads: real headline, description, CTA and the landing page they send traffic to, impressions by country, and how long each ad has run. Search by brand name — no login. Flags what's new since your last run.",
    "version": "1.0",
    "x-build-id": "Bx9yPVOMntSuoJqyx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brilliant_gum~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brilliant_gum-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/brilliant_gum~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-brilliant_gum-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/brilliant_gum~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-brilliant_gum-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": {
          "advertiserNames": {
            "title": "Brand / advertiser names",
            "type": "array",
            "description": "Search by brand name, e.g. [\"Nike\", \"Booking.com\"]. Names are resolved to Google advertiser IDs automatically — no need to look anything up first. When several advertisers share a name, the one running the most ads is used.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Search by advertiser domain, e.g. [\"nike.com\"]. Useful when a brand name is ambiguous.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "Google advertiser IDs, e.g. [\"AR02934798844673654785\"]. Visible in the URL on adstransparency.google.com. Fastest option — skips name resolution.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "adFormat": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "TEXT = search ads. IMAGE = display/banner. VIDEO = YouTube. Text and video ads carry readable copy and a landing page URL; image ads have their text painted into the picture, so for those you get the image plus full statistics. Switch to \"All formats\" once you know which you need.",
            "default": "ALL"
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "ALL",
              "GOOGLE_SEARCH",
              "YOUTUBE",
              "GOOGLE_DISPLAY",
              "GOOGLE_MAPS",
              "GOOGLE_PLAY",
              "GOOGLE_SHOPPING"
            ],
            "type": "string",
            "description": "Where the ad was shown.",
            "default": "ALL"
          },
          "region": {
            "title": "Country",
            "type": "string",
            "description": "ISO 2-letter country code to restrict ads by where they ran, e.g. \"US\", \"DE\". Leave blank for all countries.",
            "default": ""
          },
          "dateFrom": {
            "title": "First shown from",
            "type": "string",
            "description": "Only ads first shown on or after this date (YYYY-MM-DD).",
            "default": ""
          },
          "dateTo": {
            "title": "First shown until",
            "type": "string",
            "description": "Only ads first shown on or before this date (YYYY-MM-DD).",
            "default": ""
          },
          "maxAdsPerAdvertiser": {
            "title": "Max ads per advertiser",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Large brands run millions of creatives — this caps what you pay for. Ads are returned newest first.",
            "default": 100
          },
          "fetchAdCopy": {
            "title": "Extract ad copy and landing pages",
            "type": "boolean",
            "description": "Pulls the actual headline, description, call-to-action, display URL and the real landing page URL for each ad. Adds about a second per ad. This is what makes the output useful — keep it on unless you only need IDs.",
            "default": true
          },
          "fetchDetails": {
            "title": "Extract impressions and country breakdown",
            "type": "boolean",
            "description": "Pulls the payer name, estimated impression range, and per-country impressions with first/last shown dates. Adds about a second per ad.",
            "default": true
          },
          "trackChanges": {
            "title": "Track changes between runs",
            "type": "boolean",
            "description": "Remembers which creatives were seen last time, then marks each ad as new or unchanged and logs which ads stopped running. Ideal for scheduled competitor monitoring.",
            "default": true
          },
          "activeOnly": {
            "title": "Only currently running ads",
            "type": "boolean",
            "description": "Keep only ads with an impression in the last 7 days. Google's data lags a day or two, so the window is deliberately generous.",
            "default": false
          },
          "minDaysRunning": {
            "title": "Minimum days running",
            "minimum": 0,
            "type": "integer",
            "description": "Advertisers keep paying only for ads that work, so a long run is the closest thing to a performance signal. Try 90 to see a competitor's proven winners."
          },
          "maxDaysRunning": {
            "title": "Maximum days running",
            "minimum": 0,
            "type": "integer",
            "description": "Use a small value to catch fresh experiments, e.g. 14."
          },
          "minImpressions": {
            "title": "Minimum impressions",
            "minimum": 0,
            "type": "integer",
            "description": "Keep ads whose estimated impression range reaches at least this number. Requires impressions extraction."
          },
          "maxImpressions": {
            "title": "Maximum impressions",
            "minimum": 0,
            "type": "integer",
            "description": "Keep ads below this estimated impression level."
          },
          "keywords": {
            "title": "Must contain any of these words",
            "type": "array",
            "description": "Keep ads whose copy, brand or landing URL contains at least one of these. Case-insensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude ads containing",
            "type": "array",
            "description": "Drop ads matching any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Only ads shown in these countries",
            "type": "array",
            "description": "ISO 2-letter codes. Applied to the per-country impression breakdown, so it needs impressions extraction enabled.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "requireAdCopy": {
            "title": "Only ads with readable copy",
            "type": "boolean",
            "description": "Drop creatives that carry no headline or description — a few pure-video placements have none.",
            "default": false
          },
          "requireLandingPage": {
            "title": "Only ads with a landing page",
            "type": "boolean",
            "description": "Drop creatives whose destination URL could not be recovered.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Proxies are included and configured automatically — leave this empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}