{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "Every ad a competitor runs on Google Search, YouTube, Shopping, Maps and Play, from the Google Ads Transparency Center ad library: format, dates, days active, preview, advertiser. Search by domain, brand or advertiser id; track new ads on a schedule; check which companies advertise at all. No login.",
    "version": "0.1",
    "x-build-id": "2kQZM89GZSde7uFp7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lightmoon~google-ads-transparency-center-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lightmoon-google-ads-transparency-center-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/lightmoon~google-ads-transparency-center-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lightmoon-google-ads-transparency-center-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/lightmoon~google-ads-transparency-center-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lightmoon-google-ads-transparency-center-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",
        "required": [
          "advertisers"
        ],
        "properties": {
          "advertisers": {
            "title": "Advertisers",
            "type": "array",
            "description": "One per line, mixed freely: a domain (`nike.com`), an advertiser id from the Transparency Center (`AR16735076323512287233`), a Transparency Center link, or a brand name (`Procter & Gamble`). A domain returns every legal entity whose ads lead to it; a name is matched against Google's own suggestions and the entity with the most ads is taken. Up to 500 per run.",
            "items": {
              "type": "string"
            }
          },
          "resultType": {
            "title": "What each row is",
            "enum": [
              "ads",
              "advertisers"
            ],
            "type": "string",
            "description": "`ads` — one row per ad creative, the default. `advertisers` — one row per advertiser behind each domain, with Google's range of how many ads it runs and the newest one: the cheap way to check a list of companies for whether they advertise at all.",
            "default": "ads"
          },
          "regions": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes, one per line: `US`, `GB`, `DE`, `JP`. Leave empty for ads shown anywhere. Several codes run one search each and the rows carry `region`.",
            "items": {
              "type": "string"
            }
          },
          "formats": {
            "title": "Ad formats",
            "type": "array",
            "description": "Leave empty for all three.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video"
              ],
              "enumTitles": [
                "Text",
                "Image",
                "Video"
              ]
            }
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Where the ad was shown. Leave empty for all five.",
            "items": {
              "type": "string",
              "enum": [
                "search",
                "youtube",
                "shopping",
                "maps",
                "play"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Shopping",
                "Maps",
                "Play"
              ]
            }
          },
          "dateFrom": {
            "title": "Shown from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "`YYYY-MM-DD`. Keeps ads that were shown on days inside the window. Give one end and the other is filled in — today for a missing end, about eleven months back for a missing start — and the run says so. The archive reaches back roughly a year; windows older than that return nothing."
          },
          "dateTo": {
            "title": "Shown until",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "`YYYY-MM-DD`."
          },
          "maxAdsPerAdvertiser": {
            "title": "Maximum rows per advertiser",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Ads arrive newest first, forty a page. 0 means no limit.",
            "default": 200
          },
          "maxAds": {
            "title": "Maximum rows in the run",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Across every advertiser. 0 means no limit (up to 50 000). The free trial covers 100.",
            "default": 1000
          },
          "includeDetails": {
            "title": "Fetch creative details",
            "type": "boolean",
            "description": "Off by default. On, every ad is looked up individually for the full list of countries it ran in, every variant of the creative, and — only for ads shown in the EU — the impression range per country and the targeting flags Google publishes. One extra request per ad, charged as a second event; a run with details is roughly ten times slower.",
            "default": false
          },
          "includeAdText": {
            "title": "Fetch the ad's text",
            "type": "boolean",
            "description": "Off by default. On, the rendered preview of each text ad is read for its headline, description, displayed domain, business name and store address. Only ads with a rendered preview carry text — image-only creatives have none, and those rows are not charged for text. About 200 KB per ad; keep runs small.",
            "default": false
          },
          "onlyNewAds": {
            "title": "Only ads not delivered before",
            "type": "boolean",
            "description": "For a schedule. Each run remembers the creative ids it delivered under the watch name below, and the next run stores and charges only ads it has not delivered yet. The first run delivers everything. Ignored when each row is an advertiser.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Which memory of delivered ads to use. Leave empty and one is derived from the advertiser list, so the same list on a schedule keeps meeting the same memory. Name it to share one watch across different lists, or to start afresh."
          },
          "maxAdvertisersPerName": {
            "title": "Advertisers per brand name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "A brand name can match several legal entities — a multinational has one per country. By default the one with the most ads is taken; raise this to read up to ten of them. `RUN_SUMMARY` lists every candidate either way.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}