{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper: Ads, Creatives, Regions",
    "description": "Ads of any advertiser from the Google Ads Transparency Center: text, image and video creatives with copy, landing URL, media, first/last shown dates, regions and impression ranges. Filter by country, format, platform and date; watch mode returns only new ads.",
    "version": "0.1",
    "x-build-id": "Ca0Ux1gvNzMfw5Rg1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shelfdata~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shelfdata-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/shelfdata~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-shelfdata-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/shelfdata~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-shelfdata-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": {
          "searchQuery": {
            "title": "Advertiser domain or ID",
            "type": "string",
            "description": "The advertiser's **domain** (e.g. `temu.com`, `nike.com`) or **advertiser ID** (e.g. `AR13288476527828631553`); the type is detected. The Transparency Center has no advertiser-name search, so a name with spaces is rejected and a bare word like `nike` is not guessed: give the domain. Leave empty to use the lists or Transparency Center URLs."
          },
          "domains": {
            "title": "Advertiser domains",
            "type": "array",
            "description": "Several advertiser domains in one run (e.g. `temu.com`, `nike.com`). Combined with the single field and the ID list.",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "Several `AR…` advertiser IDs in one run (the ID in an advertiser page URL, `adstransparency.google.com/advertiser/AR…`).",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "enum": [
              "anywhere",
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "BE",
              "SE",
              "NO",
              "DK",
              "FI",
              "PL",
              "PT",
              "IE",
              "AT",
              "CH",
              "CZ",
              "GR",
              "HU",
              "RO",
              "BG",
              "HR",
              "SK",
              "SI",
              "LT",
              "LV",
              "EE",
              "BR",
              "MX",
              "AR",
              "CL",
              "CO",
              "PE",
              "JP",
              "KR",
              "CN",
              "TW",
              "HK",
              "SG",
              "IN",
              "ID",
              "TH",
              "VN",
              "PH",
              "MY",
              "PK",
              "BD",
              "AE",
              "SA",
              "IL",
              "TR",
              "EG",
              "ZA",
              "NG",
              "KE",
              "MA",
              "NZ",
              "RU",
              "UA",
              "BA",
              "RS",
              "AL",
              "MK",
              "ME"
            ],
            "type": "string",
            "description": "Country the ads were shown in. `Anywhere` returns ads from all regions.",
            "default": "anywhere"
          },
          "format": {
            "title": "Format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Only ads of this format. `All formats` includes text, image and video ads.",
            "default": "ALL"
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "ALL",
              "SEARCH",
              "YOUTUBE",
              "MAPS",
              "PLAY",
              "SHOPPING"
            ],
            "type": "string",
            "description": "Only ads shown on this Google surface. `All platforms` includes every surface.",
            "default": "ALL"
          },
          "dateFrom": {
            "title": "Shown from",
            "type": "string",
            "description": "Only ads first shown on or after this date (YYYY-MM-DD). Empty: no lower bound."
          },
          "dateTo": {
            "title": "Shown until",
            "type": "string",
            "description": "Only ads last shown on or before this date (YYYY-MM-DD). Empty: no upper bound."
          },
          "startUrls": {
            "title": "Transparency Center URLs",
            "maxItems": 50,
            "type": "array",
            "description": "Instead of the fields above: `adstransparency.google.com` URLs copied from your browser. Search URLs (`/?region=US&domain=temu.com&format=VIDEO&platform=YOUTUBE&start-date=…&end-date=…`), advertiser pages (`/advertiser/AR…`) and single ads (`/advertiser/AR…/creative/CR…`). When given, they replace the advertiser, region, format, platform and date fields.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum ads",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on ads returned in this run (you pay per ad). Always set it: a large advertiser has thousands of ads.",
            "default": 100
          },
          "onlyNewAds": {
            "title": "Only new ads since the last run",
            "type": "boolean",
            "description": "Watch mode: remembers the ads already returned (in a key-value store named `google-ads-transparency-state` in your account) and skips them on later runs, so each scheduled run returns, and charges, only ads you have not received yet. The first run is the baseline.",
            "default": false
          },
          "monitorStateName": {
            "title": "Watch name",
            "maxLength": 60,
            "type": "string",
            "description": "Keeps separate memories for different watches (e.g. `temu-us` and `nike-de`) when **Only new ads** is on. Empty: `default`."
          },
          "advertiserCheck": {
            "title": "Verify advertiser IDs first",
            "type": "boolean",
            "description": "For `AR…` IDs, look the advertiser up before searching; an ID that does not exist ends with zero ads and a note in `OUTPUT`.",
            "default": false
          },
          "minDelay": {
            "title": "Min delay between requests (s)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum seconds between Transparency Center requests (one search page of 40 ads, or one ad's details). Lower is faster; Google may refuse requests that come too fast.",
            "default": 5
          },
          "maxDelay": {
            "title": "Max delay between requests (s)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum seconds between Transparency Center requests. Each delay is random between the minimum and this.",
            "default": 10
          },
          "proxySource": {
            "title": "Proxy",
            "enum": [
              "owner",
              "apify_residential",
              "custom_pool"
            ],
            "type": "string",
            "description": "Built-in works for the Transparency Center. Residential uses your own Apify Residential traffic.",
            "default": "owner"
          },
          "apifyProxyCountry": {
            "title": "Residential proxy country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country for `My Apify Residential proxies`.",
            "default": "US"
          },
          "apifyProxySessions": {
            "title": "Apify proxy sessions",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Sticky sessions (exits) to rotate over when one is refused.",
            "default": 3
          },
          "customProxyUrls": {
            "title": "My custom proxy list (secret)",
            "type": "string",
            "description": "For `My custom proxy list`: one http(s)://user:password@host:port per line (semicolons or a JSON array also work)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}