{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Center Scraper: Ads, Text, Video",
    "description": "Scrape every ad an advertiser, brand or website runs on Google Search, YouTube, Shopping, Maps and Play from the Ads Transparency Center: format, first and last shown, countries, image, video and landing URLs, ad text. No login.",
    "version": "1.0",
    "x-build-id": "7O8y1ogRT3tuq7mKg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zhtech~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zhtech-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/zhtech~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zhtech-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/zhtech~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zhtech-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": {
          "searchTerms": {
            "title": "Advertisers, brands or websites",
            "type": "array",
            "description": "One per line. A website (nike.com) returns every ad that points to that domain, from any advertiser account. A brand or company name (Nike) is matched to advertiser accounts through the Transparency Center's own search (see \"Advertisers per name\"). An advertiser ID (AR followed by about 20 digits) or a Transparency Center URL also works here.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Websites (exact domain)",
            "type": "array",
            "description": "Optional. Domains such as shopify.com or https://www.shopify.com/. Every ad that leads to the domain is returned, whichever advertiser account runs it.",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "Optional. Advertiser IDs from the address of an advertiser page, for example AR16735076323512287233 (https://adstransparency.google.com/advertiser/AR16735076323512287233).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Transparency Center URLs",
            "type": "array",
            "description": "Optional. Paste URLs copied from adstransparency.google.com: advertiser pages, single ad (creative) pages, or domain searches. Filters in the URL (region, format, platform, dates) are used for that URL instead of the filters below.",
            "items": {
              "type": "string"
            }
          },
          "resultType": {
            "title": "Result type",
            "enum": [
              "ads",
              "advertisers",
              "both"
            ],
            "type": "string",
            "description": "Ads: one row per ad creative. Advertisers: one row per advertiser account (name, legal name, country, verification, number of matching ads), a fast way to check which companies run Google Ads. Both: ad rows plus one advertiser row per advertiser found.",
            "default": "ads"
          },
          "maxAdsPerTarget": {
            "title": "Max ads per target",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of ads for each website, advertiser ID or URL, and for each advertiser a name matches. Large advertisers have tens of thousands of ads.",
            "default": 50
          },
          "maxAdvertisersPerTerm": {
            "title": "Advertisers per name",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many advertiser accounts a brand or company name may match. Exact name matches come first, then names containing the term, each ordered by number of ads. Use a website or advertiser ID when you need one exact account.",
            "default": 3
          },
          "region": {
            "title": "Region (where the ad was shown)",
            "type": "string",
            "description": "A 2 letter country code (US, GB, DE, IN, BR ...), an English country name, or \"anywhere\" for all countries.",
            "default": "anywhere"
          },
          "adFormat": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Only ads of this format.",
            "default": "ALL"
          },
          "platforms": {
            "title": "Google platforms",
            "type": "array",
            "description": "Only ads shown on these Google surfaces. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "SEARCH",
                "YOUTUBE",
                "SHOPPING",
                "MAPS",
                "PLAY"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            },
            "default": []
          },
          "shownInLastDays": {
            "title": "Shown in the last N days",
            "minimum": 0,
            "maximum": 4000,
            "type": "integer",
            "description": "Only ads shown at least once in the last N days (30 = the past month). 0 means no limit. Replaces the start and end dates when set.",
            "default": 0
          },
          "startDate": {
            "title": "Shown on or after (start date)",
            "type": "string",
            "description": "Optional, YYYY-MM-DD. Only ads shown at least once between the start and end date. Google keeps ad activity for a limited period (roughly the last 12 months for most ads), so older ranges can be empty."
          },
          "endDate": {
            "title": "Shown on or before (end date)",
            "type": "string",
            "description": "Optional, YYYY-MM-DD. Defaults to today when only a start date is set."
          },
          "includeDetails": {
            "title": "Countries, reach and variations",
            "type": "boolean",
            "description": "Adds every country the ad ran in with its own first and last shown dates, impression ranges and platforms where Google publishes them (EU and some other countries), the EU audience targeting used, the number of ad variations with their images, and who paid for the ad. One small extra request per ad. Included in the ad price.",
            "default": true
          },
          "includeAdContent": {
            "title": "Ad text, video and landing pages",
            "type": "boolean",
            "description": "Reads the public ad preview to add the headline, description, call to action, display URL, landing page URLs, YouTube video ID, link, thumbnail, duration and channel. Many text ads are published only as a picture of the ad: those rows have the picture in imageUrl and no text. One extra request per ad that has a preview. Included in the ad price.",
            "default": true
          },
          "includeNoAdsRows": {
            "title": "Ad check rows for targets without ads (free)",
            "type": "boolean",
            "description": "Adds one free row (type noAds, isAdvertising false) for every website, name or advertiser that has no ads for your filters, so a list of companies gets one answer per company. These rows are never charged. Turn off to get only paid rows.",
            "default": true
          },
          "saveReport": {
            "title": "Competitor report (free)",
            "type": "boolean",
            "description": "Saves a summary per target in the key-value store: active ads, formats, platforms, top countries, landing domains, UTM campaigns, newest and longest running ads. REPORT is JSON, REPORT_HTML is a page you can open or share. Not charged.",
            "default": true
          },
          "onlyNewAds": {
            "title": "Only new ads (monitor mode)",
            "type": "boolean",
            "description": "Saves only ads that earlier runs with the same monitor store have not saved yet, so a scheduled run returns just the newly launched ads. Ads skipped this way are not charged.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Name of the key-value store (in your account) that remembers seen ads for monitor mode. Use one name per competitor or schedule so histories do not mix.",
            "default": "google-ads-transparency-monitor"
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on charged rows for the whole run, a safety limit on cost. 0 means no cap besides your max charge.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many requests run at the same time. The default is fast and polite; higher values can make Google slow the run down.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "On by default with Apify datacenter proxy, because Google often shows its CAPTCHA page to shared server IPs. Datacenter is enough; residential is not used. You can turn it off if your runs work without it.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}