{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper & API: Ads, Video, Shopping",
    "description": "Scrape Google Ads Transparency Center ads by domain, advertiser ID or name. No login. Get format, image, shown dates, video and shopping details. Includes video channel and duration, shopping product and merchant, verified flag. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "e4r9SfY3eMhSmlgCa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataizi-srl~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataizi-srl-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/dataizi-srl~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataizi-srl-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/dataizi-srl~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataizi-srl-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": {
          "domains": {
            "title": "Domains",
            "uniqueItems": true,
            "type": "array",
            "description": "Advertiser websites, one per line, for example `nike.com`. Links and `www.` are cleaned up for you. The scraper returns the ads of the advertisers that use each domain.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs or links",
            "uniqueItems": true,
            "type": "array",
            "description": "Google advertiser IDs (they start with `AR`) or links to an advertiser or an ad on adstransparency.google.com. A link to one ad returns all ads of that ad's advertiser, not only that ad. Anything else is skipped and the log says so.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "advertiserNames": {
            "title": "Advertiser names",
            "uniqueItems": true,
            "type": "array",
            "description": "Names such as `Nike`, one per line. Each name is looked up in the site's own search and the advertisers it finds are scraped. Use a domain or an ID when you need one exact advertiser.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "nameMatch": {
            "title": "Name matching",
            "enum": [
              "exact",
              "top"
            ],
            "type": "string",
            "description": "`exact` uses the advertisers whose name equals your text, and falls back to the top result when none does. `top` uses the first results the site returns.",
            "default": "exact"
          },
          "maxAdvertisersPerName": {
            "title": "Maximum advertisers per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many advertisers one name may resolve to, from 1 to 10. It limits the advertisers when Name matching is `top`, and the ties when it is `exact`.",
            "default": 3
          },
          "adFormat": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Keep only text, image or video ads. All returns every format.",
            "default": "ALL"
          },
          "regions": {
            "title": "Countries",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep ads that were shown in these countries. Leave empty for anywhere.",
            "items": {
              "type": "string",
              "enum": [
                "AR",
                "AU",
                "AT",
                "BD",
                "BE",
                "BR",
                "BG",
                "CA",
                "CL",
                "CN",
                "CO",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EG",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HK",
                "HU",
                "IS",
                "IN",
                "ID",
                "IE",
                "IL",
                "IT",
                "JP",
                "KE",
                "KW",
                "LV",
                "LT",
                "LU",
                "MY",
                "MT",
                "MX",
                "MA",
                "NL",
                "NZ",
                "NG",
                "NO",
                "PK",
                "PE",
                "PH",
                "PL",
                "PT",
                "QA",
                "RO",
                "SA",
                "RS",
                "SG",
                "SK",
                "SI",
                "ZA",
                "KR",
                "ES",
                "LK",
                "SE",
                "CH",
                "TW",
                "TH",
                "TR",
                "UA",
                "AE",
                "GB",
                "US",
                "VN"
              ],
              "enumTitles": [
                "Argentina",
                "Australia",
                "Austria",
                "Bangladesh",
                "Belgium",
                "Brazil",
                "Bulgaria",
                "Canada",
                "Chile",
                "China",
                "Colombia",
                "Croatia",
                "Cyprus",
                "Czechia",
                "Denmark",
                "Egypt",
                "Estonia",
                "Finland",
                "France",
                "Germany",
                "Greece",
                "Hong Kong",
                "Hungary",
                "Iceland",
                "India",
                "Indonesia",
                "Ireland",
                "Israel",
                "Italy",
                "Japan",
                "Kenya",
                "Kuwait",
                "Latvia",
                "Lithuania",
                "Luxembourg",
                "Malaysia",
                "Malta",
                "Mexico",
                "Morocco",
                "Netherlands",
                "New Zealand",
                "Nigeria",
                "Norway",
                "Pakistan",
                "Peru",
                "Philippines",
                "Poland",
                "Portugal",
                "Qatar",
                "Romania",
                "Saudi Arabia",
                "Serbia",
                "Singapore",
                "Slovakia",
                "Slovenia",
                "South Africa",
                "South Korea",
                "Spain",
                "Sri Lanka",
                "Sweden",
                "Switzerland",
                "Taiwan",
                "Thailand",
                "Türkiye",
                "Ukraine",
                "United Arab Emirates",
                "United Kingdom",
                "United States",
                "Vietnam"
              ]
            }
          },
          "platform": {
            "title": "Platform",
            "enum": [
              "ALL",
              "SEARCH",
              "YOUTUBE",
              "SHOPPING",
              "MAPS",
              "PLAY"
            ],
            "type": "string",
            "description": "Keep ads shown on one Google surface: Search, YouTube, Shopping, Maps or Play. All returns every surface.",
            "default": "ALL"
          },
          "dateFrom": {
            "title": "Shown from",
            "type": "string",
            "description": "Keep ads whose shown period overlaps the window that starts on this date (YYYY-MM-DD). The window is checked after the ads are read."
          },
          "dateTo": {
            "title": "Shown to",
            "type": "string",
            "description": "End of the window (YYYY-MM-DD). A narrow window on a big advertiser reads several pages, so the run stops with a message if it would read too many. Narrow the domain or raise the limits instead."
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops after this many rows in total. Advertiser rows count too, because they are charged as results. The default is 20, which is also the sample run: raise it for bigger jobs.",
            "default": 20
          },
          "maxItemsPerQuery": {
            "title": "Maximum results per query",
            "minimum": 20,
            "type": "integer",
            "description": "Stops each domain, advertiser ID or name after this many ads. The minimum is 20. Leave empty for no limit per query."
          },
          "includeAdvertisers": {
            "title": "Include advertisers",
            "type": "boolean",
            "description": "Adds one row for every advertiser a name resolved to, with its country, ad count and verification, and, with Include advertiser profile, for every advertiser ID you give. These rows are charged as results. Turn off to get ads only (the profile is then not read).",
            "default": true
          },
          "includeAdvertiserProfile": {
            "title": "Include advertiser profile",
            "type": "boolean",
            "description": "Adds the legal name and the country the advertiser is based in to each advertiser row. For an advertiser ID it adds that advertiser's row, charged as a result. Needs Include advertisers. One extra request per advertiser. Off by default.",
            "default": false
          },
          "includeAdContent": {
            "title": "Include ad content",
            "type": "boolean",
            "description": "Reads each ad's preview for the headline, description, call to action, displayed URL, and the video and shopping details. One extra request per ad, so runs take longer. Text ads have no copy fields: the actor does not extract their words. Off by default.",
            "default": false
          },
          "includeCreativeDetails": {
            "title": "Include creative details",
            "type": "boolean",
            "description": "Reads each ad's detail page for the countries it was shown in, impression ranges, per-country dates, audience targeting, topic, variations and who paid. One extra request per ad, billed as the \"Creative details\" event for each ad that was read. Without Apify Proxy Google lets roughly the first 20 requests through per run, so switch on Apify Proxy for more. Off by default.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "No proxy by default, which is enough for small and medium runs. Switch on Apify Proxy for big domains, many names or Creative details. Your own proxy addresses are not accepted.",
            "default": {
              "useApifyProxy": false
            }
          },
          "_fixtureDir": {
            "title": "Test replay folder",
            "type": "string",
            "description": "For automated tests only. Ignored on the Apify platform. Leave empty."
          },
          "_rpcPaceMs": {
            "title": "Test pace",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "For automated tests only: pause between requests to Google, in milliseconds. Leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}