{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper",
    "description": "Google Ads Transparency Scraper: all ads of any brand, website or advertiser ID from the Ads Transparency Center (Google ad library), with ad words and landing pages (OCR for text ads), EU reach, political spend and Google's own ad count per target.",
    "version": "0.1",
    "x-build-id": "VsDXHjYpbklqISwOt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pumpkinapi~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pumpkinapi-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/pumpkinapi~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pumpkinapi-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/pumpkinapi~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pumpkinapi-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": {
          "queries": {
            "title": "Brand names or websites",
            "type": "array",
            "description": "Brand or company names (for example Nike) or websites (for example nike.com). A name is matched to the advertiser accounts Google lists for it, biggest first; a website returns every ad that points to it, from any account. One name per line; websites may also share a line. The Transparency Center searches advertiser names and websites, not the words inside ads.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Websites",
            "type": "array",
            "description": "Websites whose ads to collect, such as hellofresh.com: one per line, or several on a line with commas or spaces between them. Full links work too. Every advertiser account with ads pointing to the site is included.",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "Google advertiser IDs, which start with AR, for example AR16735076323512287233. You find them in the URL of an advertiser page on the Transparency Center; the whole URL works here too.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Transparency Center URLs",
            "type": "array",
            "description": "Paste URLs copied from adstransparency.google.com: an advertiser page, a single ad, a website search or the political ads of a country. A URL keeps the filters written in it (region, platform, format, dates, topic); a filter it does not have comes from the fields below. A linked list works too: a text, CSV or JSON file, or a Google Sheets, Drive, Dropbox or GitHub share link. Its websites, URLs and advertiser IDs are searched; other cells are skipped with one notice.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "resultType": {
            "title": "Result type",
            "type": "string",
            "description": "\"Ads\" returns one row per ad. \"Advertisers\" returns one row per advertiser account behind each name or website, with Google's ad count and the newest ad: a quick check of who runs Google Ads.",
            "default": "ads"
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Country where the ads were shown, as a two-letter code (US, DE) or an English name such as Germany. \"anywhere\" covers all countries. One run searches one country."
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Only ads shown on these Google platforms. Leave empty for all. Google tracks platforms for ads shown since 4 September 2023.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "SEARCH",
                "YOUTUBE",
                "SHOPPING",
                "MAPS",
                "PLAY"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            }
          },
          "adFormat": {
            "title": "Ad format",
            "type": "string",
            "description": "Only ads of this format. Google archives text ads as pictures of the ad; turn on \"Ad words and landing page\" to get their words."
          },
          "startDate": {
            "title": "Shown on or after",
            "type": "string",
            "description": "Only ads shown at least once on or after this date: a date such as 2026-01-31, or a period back from today such as \"30 days\" or \"3 months\". Google counts days in Pacific time, and so does this filter. With a start and no end the window runs to today."
          },
          "endDate": {
            "title": "Shown on or before",
            "type": "string",
            "description": "Only ads shown at least once on or before this date, the day itself included. Written the same way as above. With an end and no start the window covers the year before it; Google keeps about 12 months of dates."
          },
          "topic": {
            "title": "Topic",
            "type": "string",
            "description": "\"Political\" searches election ads, which come with Google's times-shown and spend ranges. With political and a region but no other target, the run collects all political ads of that country.",
            "default": "all"
          },
          "maxAdsPerTarget": {
            "title": "Maximum ads per name, website or advertiser",
            "minimum": 0,
            "type": "integer",
            "description": "Stops each target after this many ads. 0 means all the ads Google has. Without a value the run takes 100."
          },
          "maxAdvertisersPerQuery": {
            "title": "Advertiser accounts per brand name",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many of the accounts Google matches to a brand name to search, biggest first. Only accounts whose name has the brand as a whole word are searched; when none has it, the biggest of the accounts Google lists for the name. Without a value the run takes 5."
          },
          "maxItems": {
            "title": "Maximum results in total",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on paid rows for the whole run. Leave empty, or set 0, for no cap besides the per-target limit and your maximum cost per run."
          },
          "includeAdText": {
            "title": "Ad words and landing page",
            "type": "boolean",
            "description": "Adds what the ad says, read from Google's own preview: headline, description, display URL, button text, landing page, business or app name, sitelinks, Shopping product and YouTube link. Works for text, local, Shopping, image, app and video ads. A text ad that Google keeps only as a picture is read from the picture. Charged per ad where words or a landing page are found.",
            "default": false
          },
          "includeDetails": {
            "title": "Reach, countries and variations",
            "type": "boolean",
            "description": "Adds every country the ad ran in with its last date there (and its first date for EU countries and political ads), the dates for the country you searched, Google's times-shown ranges per country and platform (for ads shown in the EU and political ads), the audience criteria used and every variation of the creative. One more request per ad, charged per ad.",
            "default": false
          },
          "downloadAssets": {
            "title": "Save ad pictures and videos",
            "type": "boolean",
            "description": "Copies the ad's picture where Google keeps one as a file (text ads kept as pictures, image banners, Shopping product pictures) and the video file where Google's preview names one into the run's key-value store, because Google's links expire. storedImageUrl and storedVideoUrl point to the copies; YouTube video ads also get youtubeUrl. A file Google refuses is left out and not charged. Charged per saved file.",
            "default": false
          },
          "includeSummaryRows": {
            "title": "One summary row per target",
            "type": "boolean",
            "description": "Adds a free row per name, website or advertiser: Google's ad count, how many ads the run delivered, and whether it read everything, stopped at your limit, found no ads or was rate-limited. Filter rows by dataType.",
            "default": true
          },
          "onlyNewAds": {
            "title": "Only new ads",
            "type": "boolean",
            "description": "Returns only ads that earlier runs with this setting have not delivered. The first run returns up to the limit, as any run does, and reads on through the ads of the past week, at most 10,000 more, to learn what already runs; when the run's maximum results or cost ends it sooner, the rest is only learned. Later runs read the ads Google showed since the previous run, up to 30,000 per target, and are billed only for new ads. An ad URL is delivered once. A watch keeps its memory when its dates are relative, such as \"7 days\". Use it with a schedule for competitor alerts, and do not let two runs of one watch overlap: both would deliver and charge the same new ads.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the store that remembers delivered ads. Each target keeps its own memory inside it; use a different name for an independent watch."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The run starts without a proxy and switches to this one the moment Google rate-limits it. Residential proxies are included in the price.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}