{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper: Ads, Text, Regions",
    "description": "Google Ads Transparency Center ads (advertiser, format, first and last shown, regions, image) for a brand, domain or advertiser id; $1.80 per 1,000 ads. Details at $4.50 add decoded headline, description, YouTube id and EU impressions. Monitor mode reports new and stopped ads.",
    "version": "0.1",
    "x-build-id": "geF8OOnU7Pe62vcVD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arcadium~google-ads-transparency/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arcadium-google-ads-transparency",
        "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/arcadium~google-ads-transparency/runs": {
      "post": {
        "operationId": "runs-sync-arcadium-google-ads-transparency",
        "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/arcadium~google-ads-transparency/run-sync": {
      "post": {
        "operationId": "run-sync-arcadium-google-ads-transparency",
        "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": {
          "searchTerms": {
            "title": "Brands, domains or advertiser links",
            "type": "array",
            "description": "What to look up, one per line: a brand or company name such as \"Nike\" (matched to Google's verified advertisers, see 'Advertisers per name'), a landing domain such as \"nike.com\" (all advertisers whose ads point there), or an advertiser/creative link from adstransparency.google.com.",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser ids",
            "type": "array",
            "description": "Google advertiser ids (AR followed by digits), for example AR16735076323512287233, or website links such as https://adstransparency.google.com/advertiser/AR16735076323512287233. A creative link (…/creative/CR…) returns that one ad with its details.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Landing domains",
            "type": "array",
            "description": "Exact landing domains, for example zalando.de or booking.com. Returns ads of every advertiser that links there.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to return",
            "enum": [
              "ads",
              "advertisers",
              "monitor"
            ],
            "type": "string",
            "description": "ads = one row per ad creative (default). advertisers = one row per matching advertiser with country and approximate ad count. monitor = only what changed since your last run: new and stopped ads per advertiser, plus one summary row per advertiser."
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Countries where the ads were shown, as two-letter codes, for example [\"US\"] or [\"DE\", \"FR\"]. Empty = anywhere. EU/EEA regions come with impression ranges in the details.",
            "items": {
              "type": "string"
            }
          },
          "creativeFormat": {
            "title": "Ad format",
            "enum": [
              "all",
              "text",
              "image",
              "video"
            ],
            "type": "string",
            "description": "Only text, image or video ads. 'all' keeps every format."
          },
          "adPlatforms": {
            "title": "Google surfaces",
            "type": "array",
            "description": "Only ads served on these Google surfaces. Empty = all surfaces.",
            "items": {
              "type": "string",
              "enum": [
                "search",
                "youtube",
                "shopping",
                "maps",
                "play"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            }
          },
          "startDate": {
            "title": "Shown on or after",
            "type": "string",
            "description": "Only ads shown at some point on or after this date: YYYY-MM-DD such as 2026-01-01, or relative such as -30d (30 days ago)."
          },
          "endDate": {
            "title": "Shown on or before",
            "type": "string",
            "description": "Only ads shown at some point on or before this date: YYYY-MM-DD such as 2026-03-31, or relative such as -1d."
          },
          "topic": {
            "title": "Topic",
            "enum": [
              "all",
              "political"
            ],
            "type": "string",
            "description": "'political' returns election ads only, with spend and impression ranges (available for the regions where Google publishes election ads, e.g. US, EU, IN, BR)."
          },
          "maxAdsPerAdvertiser": {
            "title": "Max ads per advertiser or domain",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Ads to return per advertiser (or per domain), newest 'last shown' first, for example 100. Default 40, up to 10,000."
          },
          "maxAdvertisersPerTerm": {
            "title": "Advertisers per name",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "A brand name usually matches several verified advertisers (one per country entity, plus namesakes). Use this many, for example 3: advertisers whose name contains the text come first, then the ones with the most ads. Default 3."
          },
          "includeDetails": {
            "title": "Ad details and decoded content",
            "type": "boolean",
            "description": "Also read each ad's detail: regions shown with first/last date and impression ranges (EU/EEA and political ads), plus the decoded creative: headline, description, display URL and sitelinks of text ads, product title and store of Shopping ads, image URLs, and the YouTube video id of video ads. 1 to 3 extra requests per ad; charged as 'ad-detail'."
          },
          "maxResults": {
            "title": "Max rows for the whole run",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on charged rows across all inputs, for example 500. Empty = no cap besides the per-advertiser one."
          },
          "activeWithinDays": {
            "title": "Monitor: active = shown in the last N days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "An ad counts as active when Google shows it on one of the last N days, for example 3. It is reported as stopped once it has not been shown for N days. 1 to 30, default 3.",
            "default": 3
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of this watchlist's saved state, for example \"competitors-eu\". Use different names for independent schedules. Letters, digits, - and _ only. Default \"default\"."
          },
          "maxActiveAdsPerAdvertiser": {
            "title": "Monitor: max active ads per advertiser",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "Advanced. Cap on the active ads read per advertiser on each monitor run, for example 2000. When it is hit, new ads are still reported but stopped ones are not (the summary row says complete: false).",
            "default": 2000
          },
          "maxChangesPerAdvertiser": {
            "title": "Monitor: max change rows per advertiser",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Advanced. Change rows returned per advertiser and run, for example 200. The rest are reported on the next run.",
            "default": 500
          },
          "includeErrorRows": {
            "title": "Include error rows",
            "type": "boolean",
            "description": "Add a free row with rowType \"error\" for every input that could not be read, so you can tell \"not found\" from \"blocked\".",
            "default": true
          },
          "maxRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Advanced. Retries for a failed or rate-limited request, 0 to 10, for example 4. Each retry waits 1 to 6 seconds on a new IP.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Advanced. The actor uses Apify's datacenter proxy by default. Your own proxy URLs are honoured; Apify proxy groups are ignored to keep the price low."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}