{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper — Creatives & Run Dates",
    "description": "Scrape Google Ads Transparency Center ads by domain or advertiser name, with advertiser, ad ID, format, preview image, regions and first and last shown dates. Works with Apify MCP and the API.",
    "version": "1.6",
    "x-build-id": "l4dhgn5jN69VIYMYj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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 Name",
            "type": "string",
            "description": "One domain (e.g. 'nike.com') or one brand name (e.g. 'Nike'; set searchType to advertiserName). For several targets use the lists below. Optional when you fill domains, advertiserIds, advertiserNames or startUrls. A placeholder domain such as example.com ends the run as INVALID_INPUT with no charge."
          },
          "searchType": {
            "title": "Search By",
            "enum": [
              "domain",
              "advertiserName"
            ],
            "type": "string",
            "description": "Use 'domain' when searchQuery is a website domain like 'example.com'. Use 'advertiserName' when searchQuery is a brand name like 'Nike'. Domain search is more precise; name search is broader.",
            "default": "domain"
          },
          "domains": {
            "title": "Domains (several at once)",
            "type": "array",
            "description": "List of advertiser domains to search in one run, for example nike.com and adidas.com. Each domain is searched in turn. Use this instead of searchQuery when you have more than one.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "List of Google advertiser IDs (AR followed by digits, from an advertiser page URL). Gets that exact advertiser's ads, with no name matching.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "advertiserNames": {
            "title": "Brand / advertiser names",
            "type": "array",
            "description": "List of brand or company names, for example Nike and HelloFresh. Each name is matched to Google's advertiser list (best match by ad count first). Use maxAdvertisersPerName to take more than one match.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countryCode": {
            "title": "Country / Region",
            "type": "string",
            "description": "Filter ads shown in this country. Uses ISO 2-letter country codes. Default is 'US'. Use 'ANY' to see ads from all regions.",
            "default": "US"
          },
          "adFormat": {
            "title": "Ad Format Filter",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Filter by ad creative format. 'ALL' returns every format. 'TEXT' returns text-only search ads. 'IMAGE' returns display/banner ads. 'VIDEO' returns YouTube video ads.",
            "default": "ALL"
          },
          "platforms": {
            "title": "Platforms (optional)",
            "type": "array",
            "description": "Only ads shown on these Google platforms: SEARCH, YOUTUBE, SHOPPING, MAPS, PLAY. Leave empty for all platforms. When exactly one platform is chosen, each row's platforms column names it.",
            "items": {
              "type": "string",
              "enum": [
                "SEARCH",
                "YOUTUBE",
                "SHOPPING",
                "MAPS",
                "PLAY"
              ],
              "enumTitles": [
                "Search",
                "YouTube",
                "Shopping",
                "Maps",
                "Play"
              ]
            },
            "default": []
          },
          "startDate": {
            "title": "Shown after (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads that were showing at some point inside the window that starts on this date. Written YYYY-MM-DD. If you give only this, the window ends today. Google keeps about 12 months of ad dates."
          },
          "endDate": {
            "title": "Shown before (YYYY-MM-DD)",
            "type": "string",
            "description": "Only ads that were showing at some point inside the window that ends on this date. Written YYYY-MM-DD. If you give only this, the window starts 365 days earlier."
          },
          "resultType": {
            "title": "What to return",
            "enum": [
              "ads",
              "advertisers"
            ],
            "type": "string",
            "description": "ads = one row per ad creative (default). advertisers = one summary row per advertiser matched by advertiserNames (name, ID, country and Google's ad-count range), a cheap way to check which companies advertise. Both are billed per row.",
            "default": "ads"
          },
          "maxResults": {
            "title": "Max Ads to Scrape",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows for the whole run, across all targets. Each ad (or advertiser summary row) is one billable result at $0.003. Use 50 for a quick snapshot, 200+ for a full study.",
            "default": 50
          },
          "maxAdsPerTarget": {
            "title": "Max ads per target (optional)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on ads taken from each domain or advertiser, so one big brand cannot use the whole limit. Leave empty for no per-target cap (maxResults still applies)."
          },
          "maxAdvertisersPerName": {
            "title": "Advertisers per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many matching advertisers to use for each brand name (best match by ad count first). Default 1 for ads, 5 for advertiser summaries."
          },
          "onlyNewAds": {
            "title": "Monitor mode: only new ads",
            "type": "boolean",
            "description": "Return only ads this monitor has not returned before, and remember them in a named storage in your account. Schedule the run (daily, weekly) to watch competitors. The first run returns everything up to your limit; later runs return only what is new. Applies to resultType ads. Only ads actually saved are remembered.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor storage name",
            "type": "string",
            "description": "Name of the storage that remembers which ads were already returned. Lower-case letters, digits and hyphens. Use a different name for each separate watch list.",
            "default": "google-ads-transparency-monitor"
          },
          "startUrls": {
            "title": "Direct Advertiser URLs (Optional)",
            "type": "array",
            "description": "Use this field instead of searchQuery when you have specific Google Ads Transparency Center URLs for known advertisers (e.g. https://adstransparency.google.com/advertiser/AR12345). Leave empty to use the searchQuery field instead.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "enrichDetails": {
            "title": "Enrich with detail-page fields",
            "type": "boolean",
            "description": "Look up each creative's own detail record to add the regions where Google shows it (the browser route reads the creative page instead). First and last shown dates come with every ad when Google reports them. Missing source fields stay absent; no headline, body copy, landing URL or media is invented.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}