{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper: New & Stopped Competitor Ads",
    "description": "Google Ads scraper for the Ads Transparency Center, Google's ad library. Paste competitor names, domains or links; get every ad with dates, regions, images, video and ad copy where Google shows it. Schedule it for only new, changed, stopped and proven ads. $2 per 1,000 ads, less on paid plans.",
    "version": "0.1",
    "x-build-id": "9iElL95wJvgwJXwq0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/waffle-iron~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-waffle-iron-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/waffle-iron~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-waffle-iron-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/waffle-iron~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-waffle-iron-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": "Advertiser names",
            "type": "array",
            "description": "Advertiser names as Google shows them, e.g. `Nike, Inc.` (not keywords). Exact match by default; see `exactMatch`.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Websites",
            "type": "array",
            "description": "Websites, e.g. `nike.com`: every ad that links there, from any advertiser account (resellers and affiliates included).",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser ids",
            "type": "array",
            "description": "Google advertiser ids (`AR` and 20 digits), from a Transparency Center link.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Transparency Center links",
            "type": "array",
            "description": "Links to an advertiser, a single ad, or a website search on adstransparency.google.com.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Countries",
            "type": "array",
            "description": "Only ads shown in these countries (ISO codes, e.g. `US`, `DE`). Empty means anywhere. An advertiser with no ads in a country returns nothing for it.",
            "items": {
              "type": "string"
            }
          },
          "formats": {
            "title": "Formats",
            "type": "array",
            "description": "Only `TEXT`, `IMAGE` or `VIDEO` ads. Empty means all.",
            "items": {
              "enum": [
                "TEXT",
                "IMAGE",
                "VIDEO"
              ],
              "type": "string"
            }
          },
          "shownWithinDays": {
            "title": "Shown within days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only ads shown in the last N days."
          },
          "maxAdsPerAdvertiser": {
            "title": "Max ads per advertiser",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many ads from one advertiser (most recently shown first). 0 means no limit. On a feed's first run for an advertiser or website, the other ads read are remembered as seen and never charged, unless another of your inputs (say, the advertiser's website) returns it within its own limit.",
            "default": 0
          },
          "maxAds": {
            "title": "Max ads",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many ads in the run. 0 means no limit.",
            "default": 0
          },
          "includeAdText": {
            "title": "Include ad text",
            "type": "boolean",
            "description": "Read the headline, body, landing page and YouTube id where Google publishes them as text, and the product photo of Shopping and dynamic product ads. Charged per ad only when text is found.",
            "default": false
          },
          "onlyChanges": {
            "title": "Only changes (feed)",
            "type": "boolean",
            "description": "Return only ads that are new, changed, stopped or proven since the last run with the same input or `memoryName`. Stopped ads are free.",
            "default": false
          },
          "memoryName": {
            "title": "Feed memory name",
            "type": "string",
            "description": "Name for the feed's memory, so editing the advertiser list does not reset it."
          },
          "stoppedAfterDays": {
            "title": "Stopped after days",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "An ad not shown for this many days counts as stopped.",
            "default": 3
          },
          "exactMatch": {
            "title": "Exact name match",
            "type": "boolean",
            "description": "Match advertiser names exactly (case and punctuation ignored). Off: take Google's top suggestion.",
            "default": true
          },
          "nameCountry": {
            "title": "Advertiser country",
            "type": "string",
            "description": "Only match advertisers registered in this country (ISO code), e.g. `US`."
          },
          "maxAdvertisersPerName": {
            "title": "Advertisers per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many accounts to read when several match one name (the largest first).",
            "default": 1
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy by default: Google blocks datacenter addresses often."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}