{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Center Scraper & API",
    "description": "Google Ads Transparency Center scraper & API: extract ads across Search, YouTube, Shopping, Maps & Play by brand, domain or advertiser ID. No login. Competitor ad intelligence, monitor mode & export JSON/CSV/Excel.",
    "version": "1.0",
    "x-build-id": "XVdL8lD5uVqAJN77c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/insights_data~google-ads-transparency-center-scraper-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-insights_data-google-ads-transparency-center-scraper-api",
        "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/insights_data~google-ads-transparency-center-scraper-api/runs": {
      "post": {
        "operationId": "runs-sync-insights_data-google-ads-transparency-center-scraper-api",
        "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/insights_data~google-ads-transparency-center-scraper-api/run-sync": {
      "post": {
        "operationId": "run-sync-insights_data-google-ads-transparency-center-scraper-api",
        "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": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "🔗 Brands, domains, advertiser IDs or URLs",
            "type": "array",
            "description": "✨ The one field you need. Add one entry per line — the actor auto-detects what each one is: a 🏷️ brand name (e.g. \"Nike\"), a 🌐 exact domain (e.g. \"nike.com\"), an 🆔 advertiser ID (e.g. \"AR16735076323512287233\"), an 🔗 advertiser ID + creative ID pair for a single-ad lookup (e.g. \"AR16735076323512287233/CR09405416287280037889\"), or a 📋 pasted Transparency Center URL (advertiser / creative / domain / search page). Supports bulk paste — add as many as you like.",
            "items": {
              "type": "string"
            }
          },
          "resultType": {
            "title": "🎯 What to scrape",
            "enum": [
              "ads",
              "advertisers"
            ],
            "type": "string",
            "description": "📰 \"Ad creatives\" returns individual ads. 📋 \"Advertiser summaries\" returns one row per advertiser with approximate ad counts — perfect for a quick \"does this company run Google Ads?\" check across many brands.",
            "default": "ads"
          },
          "region": {
            "title": "🌍 Region",
            "pattern": "^([A-Za-z]{2}|ANYWHERE)$",
            "type": "string",
            "description": "Two-letter ISO 3166-1 country code (e.g. \"US\", \"GB\", \"DE\", \"NL\") to scope results, or \"ANYWHERE\" to search every region at once.",
            "default": "US"
          },
          "platforms": {
            "title": "📱 Platforms",
            "type": "array",
            "description": "Restrict to ads served on specific Google surfaces. Leave empty for all. Only applies to ads shown on/after 2023-09-04.",
            "items": {
              "type": "string",
              "enum": [
                "SEARCH",
                "YOUTUBE",
                "SHOPPING",
                "MAPS",
                "PLAY"
              ],
              "enumTitles": [
                "🔍 Google Search",
                "📺 YouTube",
                "🛍️ Shopping",
                "🗺️ Maps",
                "🎮 Play"
              ]
            },
            "default": []
          },
          "adFormat": {
            "title": "🖼️ Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Filter by creative format.",
            "default": "ALL"
          },
          "startDate": {
            "title": "📅 Shown after",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only ads shown on or after this date."
          },
          "endDate": {
            "title": "📅 Shown before",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only ads shown before this date."
          },
          "political": {
            "title": "🗳️ Political/election ads only",
            "type": "boolean",
            "description": "Filter to political & election ads. Unlocks spend ranges and per-region political reach data that ordinary commercial ads don't have.",
            "default": false
          },
          "impressionRanges": {
            "title": "📊 Impression range filter",
            "type": "array",
            "description": "Only return ads/advertisers whose (mostly political) impressions fall in these bucketed ranges. Leave empty for no filter.",
            "items": {
              "type": "string",
              "enum": [
                "RANGE_0_TO_1K",
                "RANGE_1K_TO_10K",
                "RANGE_10K_TO_50K",
                "RANGE_50K_TO_100K",
                "RANGE_100K_TO_250K",
                "RANGE_250K_TO_500K",
                "RANGE_500K_TO_1M",
                "RANGE_1M_TO_2500K",
                "RANGE_2500K_TO_5M",
                "RANGE_5M_TO_10M",
                "RANGE_10M_AND_ABOVE"
              ],
              "enumTitles": [
                "0 – 1K",
                "1K – 10K",
                "10K – 50K",
                "50K – 100K",
                "100K – 250K",
                "250K – 500K",
                "500K – 1M",
                "1M – 2.5M",
                "2.5M – 5M",
                "5M – 10M",
                "10M+"
              ]
            },
            "default": []
          },
          "candidateNameKeyword": {
            "title": "🧑‍💼 Political candidate name",
            "type": "string",
            "description": "Only used together with 'Political/election ads only' — filters to ads mentioning this candidate's name."
          },
          "maxAdsPerSearch": {
            "title": "📦 Max ads per target",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum ad creatives to collect for each resolved target (advertiser/domain).",
            "default": 10
          },
          "maxAdvertisersPerQuery": {
            "title": "🏢 Max advertisers per brand query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "When a brand name (not an exact domain/ID) resolves to several matching advertisers, how many of the top matches to scrape.",
            "default": 5
          },
          "pageToken": {
            "title": "⏭️ Resume page token",
            "type": "string",
            "description": "Paste a previous run's 'meta' record nextPageToken here to resume pagination for a single target instead of starting over. Leave empty for a normal first-page run."
          },
          "sortBy": {
            "title": "↕️ Sort ads by",
            "enum": [
              "LAST_ACTIVITY_DATE",
              "REVENUE",
              "IMPRESSIONS"
            ],
            "type": "string",
            "description": "How returned ads are ordered.",
            "default": "LAST_ACTIVITY_DATE"
          },
          "sortDescending": {
            "title": "🔽 Sort descending",
            "type": "boolean",
            "description": "Newest/highest first when checked.",
            "default": true
          },
          "advertiserSortBy": {
            "title": "↕️ Sort advertisers by",
            "enum": [
              "IMPRESSIONS",
              "REVENUE",
              "NAME",
              "CREATIVE_COUNT"
            ],
            "type": "string",
            "description": "Only used in 'Advertiser summaries' mode.",
            "default": "IMPRESSIONS"
          },
          "includeDetails": {
            "title": "🔬 Fetch full creative details",
            "type": "boolean",
            "description": "Adds one extra request per ad to include every A/B creative variation plus 'regionsShown' — the full list of countries the ad ran in with per-country last-shown dates. Slower, and billed per ad via a separate event.",
            "default": false
          },
          "detailConcurrency": {
            "title": "⚡ Detail fetch concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many per-ad detail requests run in parallel when 'Fetch full creative details' is on. Higher = faster but more aggressive. No effect otherwise.",
            "default": 6
          },
          "includeDisapprovedAds": {
            "title": "🧯 Also fetch disapproved ads feed",
            "type": "boolean",
            "description": "Pulls Google's site-wide, rolling feed of recently policy-rejected ad creatives (not scoped to your targets) into its own output section.",
            "default": false
          },
          "onlyNewAds": {
            "title": "👁️ Monitor mode: only new ads",
            "type": "boolean",
            "description": "Output only ads not seen in previous runs. The actor remembers every ad it has seen in a named key-value store, so a scheduled (daily/weekly) run returns just newly-launched ads. The first run seeds the memory and returns everything.",
            "default": false
          },
          "monitorStoreName": {
            "title": "🗂️ Monitor store name",
            "type": "string",
            "description": "Name of the store that remembers seen ad IDs across runs. Use a distinct name per monitored target so histories don't mix.",
            "default": "ads-transparency-monitor"
          },
          "urlsFromFile": {
            "title": "📁 Import more URLs from a file or sheet",
            "type": "string",
            "description": "Paste extra URLs (one per line), OR a link to a .txt/.csv file or Google Sheet containing them — merged in on top of the 'urls' field above."
          },
          "includeRawData": {
            "title": "🐛 Include raw API payload",
            "type": "boolean",
            "description": "Attaches the raw decoded upstream data to each result for debugging. Off by default to keep records lean.",
            "default": false
          },
          "legacyKeyAliases": {
            "title": "🔁 Include snake_case aliases",
            "type": "boolean",
            "description": "Also emit snake_case field aliases (creative_id, advertiser_name, image_url, ...) alongside the primary camelCase fields, for drop-in compatibility with tools built against that shape.",
            "default": true
          },
          "includeMeta": {
            "title": "📑 Include pagination bookkeeping rows",
            "type": "boolean",
            "description": "Emits one extra 'meta' row per target with pagination/match-count bookkeeping (visible in its own 'Pagination & Stats' output view).",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "⏱️ Request timeout (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "How long to wait for a single upstream response before treating it as failed.",
            "default": 30
          },
          "maxRetries": {
            "title": "🔁 Max retries per request",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a single failed request is retried (with backoff) before giving up on it.",
            "default": 3
          },
          "concurrency": {
            "title": "🧵 Targets processed in parallel",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many targets (advertisers/domains/brand queries) are scraped at the same time.",
            "default": 5
          },
          "httpMaxConcurrency": {
            "title": "🚦 Global in-flight request cap",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of HTTP requests in flight at once across the whole run, regardless of target concurrency.",
            "default": 8
          },
          "requestDelay": {
            "title": "🐢 Minimum delay between requests (seconds)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "A real global minimum pace shared by every concurrent request — raise this if you see rate-limit warnings in the log.",
            "default": 0.2
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy configuration",
            "type": "object",
            "description": "🚦 Default is NO proxy — the actor talks to Google directly. If a request ever gets rejected or blocked, it automatically escalates step-by-step: 🚫 no proxy → 🖥️ datacenter proxy → 🏠 residential proxy (retrying up to 3× on residential), and then sticks with residential for the rest of the run. Every escalation is logged clearly. Force a tier yourself here if you already know what a target needs.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}