{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "[ 1k / 1$ ] Google Ads Transparency scraper: extract ads from the Google Ads Transparency Center by advertiser name, domain or advertiser ID. Filter by region, platform and format and add per-ad regions, variants, headlines, descriptions and landing pages.",
    "version": "0.1",
    "x-build-id": "kF1Hbfba1t8eUDHVU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-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/alpha-scraper~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-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/alpha-scraper~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-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": "Advertiser Names, Domains or IDs",
            "type": "array",
            "description": "One or more advertisers to look up: an advertiser or brand name (for example 'nike'), a website domain (for example 'nike.com': every ad whose destination is that domain) or an advertiser ID ('AR' followed by digits, taken from an advertiser page URL). The Transparency Center has no free-text ad search, so words that are not advertiser names find nothing useful. Every entry is processed on its own and gets its own 'Max Items Per Query'.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items Per Query",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of ads (creatives) to extract per entry. The Actor keeps loading result pages until this number is reached or the Transparency Center has no more ads. When a name matches several advertisers ('Advertiser Match' = all) the limit covers all of them together.",
            "default": 15
          },
          "region": {
            "title": "Region",
            "enum": [
              "anywhere",
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "BR",
              "MX",
              "IN",
              "JP",
              "KR",
              "CN",
              "RU",
              "ZA",
              "SE",
              "NO",
              "DK",
              "FI",
              "PL",
              "TR",
              "AE",
              "SA",
              "SG",
              "ID",
              "TH",
              "PH",
              "VN",
              "NZ",
              "IE",
              "AT",
              "CH",
              "BE",
              "PT",
              "AR",
              "CL",
              "CO",
              "EG",
              "NG",
              "KE",
              "BD"
            ],
            "type": "string",
            "description": "Where the ads were shown: 'Anywhere' for all regions or one country. The region is also used in the creative and advertiser links of every record.",
            "default": "anywhere"
          },
          "platform": {
            "title": "Ad Platform",
            "enum": [
              "",
              "SEARCH",
              "MAPS",
              "PLAY",
              "SHOPPING",
              "YOUTUBE"
            ],
            "type": "string",
            "description": "Only ads shown on this Google platform. Leave 'Any platform' for all of them."
          },
          "format": {
            "title": "Ad Format",
            "enum": [
              "",
              "text",
              "image",
              "video"
            ],
            "type": "string",
            "description": "Only ads of this creative format. Leave 'Any format' for text, image and video ads."
          },
          "advertiserMatch": {
            "title": "Advertiser Match",
            "enum": [
              "best",
              "all"
            ],
            "type": "string",
            "description": "Only for name queries (domains and advertiser IDs are unaffected). 'Best match' uses the single matching advertiser with the most ads. 'All matching' collects the ads of up to 'Max Advertisers' matching advertisers one after another.",
            "default": "best"
          },
          "maxAdvertisers": {
            "title": "Max Advertisers (when matching all)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many matching advertisers are used when 'Advertiser Match' is 'All matching advertisers' (1-10: Google's suggestion list returns at most 10 candidates per name).",
            "default": 3
          },
          "pageSize": {
            "title": "Ads Per Request",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "How many ads are requested per call (10-100; values outside this range are clamped). The Transparency Center's own web app uses 40.",
            "default": 40
          },
          "fetchDetails": {
            "title": "Fetch Creative Details",
            "type": "boolean",
            "description": "For every ad add each region it ran in with its last-shown date, all ad variants (image URLs and preview scripts), the advertiser's country and approximate ad count and, from the first preview script, the headline, description, visible ad texts, landing-page URL, YouTube video id and images. This is at least 2 extra requests per ad; requests are 3 seconds apart and a block (HTTP 403/429) stops detail fetching for the run. Exact impressions, spend and targeting of commercial ads are not published. Turn off for a much faster run with the list data only.",
            "default": true
          },
          "detailLimit": {
            "title": "Max Ads To Enrich",
            "minimum": 0,
            "type": "integer",
            "description": "Only the first N returned ads get the detail requests; the rest keep their list data and 'detailStatus' says 'skipped: detailLimit=N'. Use 0 to enrich every returned ad. Used only while 'Fetch Creative Details' is on.",
            "default": 0
          },
          "previewScripts": {
            "title": "Preview Scripts Per Ad",
            "minimum": 0,
            "type": "integer",
            "description": "How many of an ad's preview scripts are downloaded and parsed for headline, description, landing page and images (the first fills the main fields, further ones are listed in 'extraPreviews'). 0 skips the script download: fewer requests, but no ad texts. Used only while 'Fetch Creative Details' is on.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}