{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Center Scraper - Competitor Ads Checker",
    "description": "Check which companies from a list of domains advertise on Google. Google Ads checker from $0.002 a domain: does a company run Google Ads? Set outputMode to \"advertisers\" for has_ads per domain (true if any advertiser's ad shown in your regions, default US, points to it) and Google's ad count range.",
    "version": "0.1",
    "x-build-id": "jfbwkvwtcHQqLX9Nq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/orbots~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-orbots-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/orbots~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-orbots-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/orbots~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-orbots-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": "Advertisers to look up",
            "type": "array",
            "description": "One entry per line: a brand name (Nike), a domain (nike.com) or a Google advertiser ID (AR18378488041124659201). A Transparency Center URL also works. Names are resolved to the best-matching advertiser; domains return every advertiser using that domain. Optional when datasetId is set (integration mode): both lists are combined.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Country codes (ISO 3166-1 alpha-2: US, GB, BR, DE...). Only ads shown in these countries are returned. Leave empty for ads shown anywhere. Case does not matter; UK, USA and common country names (Brazil, Germany) are understood; an unknown code is skipped with a warning when at least one valid code remains.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxAdsPerQuery": {
            "title": "Max ads per query",
            "minimum": 1,
            "type": "integer",
            "description": "Creatives mode only. Hard cap per advertiser, domain or name: the Actor stops a query at this number of ads and never charges beyond it. Default 100; raise it for large advertisers (tens of thousands of creatives). By API, maxAds takes its place when the input has it (below 1, empty or null, maxAds sets no cap), and a lower whole number in maxItems, limit, resultsLimit or maxResults lowers it.",
            "default": 100
          },
          "formats": {
            "title": "Preview types",
            "type": "array",
            "description": "Creatives mode only. Keep only rows whose preview is one of these types (the format field). This is not the format the Center lists the ad under (the ad_format field): many text ads arrive as a picture, and many image and video ads as a rendered preview link, so Video alone can return little or nothing. Rows filtered out are not charged.",
            "items": {
              "type": "string",
              "enum": [
                "image",
                "text",
                "video"
              ],
              "enumTitles": [
                "Picture",
                "Rendered preview link",
                "Video"
              ]
            },
            "default": [
              "image",
              "text",
              "video"
            ]
          },
          "platforms": {
            "title": "Platform",
            "type": "array",
            "description": "Only ads the Transparency Center lists as shown on this Google platform, filtered by the Center itself, in both output modes. Select one platform, as on the Center: search, youtube, shopping, maps or play (two to four stop the run before any request, with no charge). Leave empty for every platform (selecting all five is the same). With a platform selected, the Center only lists ads shown since 2023-09-04.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "search",
                "youtube",
                "shopping",
                "maps",
                "play"
              ],
              "enumTitles": [
                "Google Search",
                "YouTube",
                "Google Shopping",
                "Google Maps",
                "Google Play"
              ]
            }
          },
          "adFormat": {
            "title": "Ad format (as the Center lists it)",
            "type": "string",
            "description": "Only ads the Transparency Center lists under this format (the ad_format field), filtered by the Center itself, in both output modes: all (no filter), text, image or video. Not the same as Preview types (formats), which keeps rows by how the preview arrives: when both are set, a row has to pass both.",
            "default": "all"
          },
          "startDate": {
            "title": "Shown from",
            "type": "string",
            "description": "Only ads the Transparency Center lists as shown on at least one day from this date on, filtered by the Center itself, in both output modes. A date (YYYY-MM-DD) or a relative date such as 30 days, counted back from today. Days follow Pacific time, as on the Center. An ad that started earlier and is still running counts. Leave empty for no start date."
          },
          "endDate": {
            "title": "Shown until",
            "type": "string",
            "description": "Only ads the Transparency Center lists as shown on at least one day up to this date, included, filtered by the Center itself, in both output modes. A date (YYYY-MM-DD) or a relative date such as 1 day (yesterday). Days follow Pacific time. Leave empty for today."
          },
          "includeDetails": {
            "title": "Include creative details (per-country dates, preview variants)",
            "type": "boolean",
            "description": "Creatives mode only. Fetches the detail record of every creative: first and last shown date per country and all preview variations. One extra request per ad, charged as an ad-detail event when the detail comes back with at least one country or one variation.",
            "default": false
          },
          "adText": {
            "title": "Include ad text (headline, description, URLs)",
            "type": "boolean",
            "description": "Creatives mode only. Reads the rendered preview of every row whose format is text and adds ad_headline, ad_description, ad_visible_url and ad_destination_url to that row, as far as the preview shows them (a Shopping ad has a product title and no description). A row whose preview is a picture or a video gets no text fields, and many text ads arrive as a picture (see the ad_format field). One extra request per such row, at no extra charge: the text comes with the ad event of the row.",
            "default": false
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "creatives",
              "advertisers"
            ],
            "type": "string",
            "description": "Creatives = one row per ad. Advertiser check = one row per query saying whether the advertiser runs Google ads, with Google's estimated ad count range; ideal for screening a list of domains. The form starts on Advertiser check; an input without this field (by API, for example) runs Creatives.",
            "default": "creatives"
          },
          "profile": {
            "title": "Add an advertiser profile to each check",
            "type": "boolean",
            "description": "Advertiser check mode only. Adds to each row, from the same page the check already reads (no extra request): ads sampled, ads by preview type (format) and by the format the Center lists (ad_format), oldest and newest first shown dates, latest last shown date, whether any ad was shown in the last 30 days, the longest running ad in days and up to 3 sample previews. Charged as an advertiser-profile event only when the check found ads.",
            "default": false
          },
          "primaryAdvertiser": {
            "title": "Advertiser named for a domain (check mode)",
            "type": "string",
            "description": "Advertiser check mode, domain queries: which advertiser fills advertiser_id and advertiser_name when several advertisers show ads for the domain. latest: the advertiser of the most recent ad (the default, as before). mostAds: the one with the most ads on the page the check reads (20 ads, 100 with profile); a tie goes to the one with the most recent ad. Every advertiser stays in advertisers_found.",
            "default": "latest"
          },
          "onlyNew": {
            "title": "Only ads not delivered in earlier runs",
            "type": "boolean",
            "description": "Creatives mode only. Built for schedules. The Actor remembers the creatives that earlier onlyNew runs delivered for the same query, regions, platforms and adFormat, and delivers only the ones they did not, so a daily run reports new campaigns instead of repeating the whole list and charging for it again. Runs without onlyNew are not remembered. Each delivery is remembered for about 180 days, in your own account.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not required: the Transparency Center answers Apify servers directly, and a query refused on the direct connection is retried once through Apify Proxy (datacenter) on its own (see autoProxyFallback). Configure a proxy here only if you want every request to go through it from the start.",
            "default": {
              "useApifyProxy": false
            }
          },
          "autoProxyFallback": {
            "title": "Retry a refused query through Apify Proxy",
            "type": "boolean",
            "description": "On by default. When the Transparency Center refuses a query on the direct connection even after retries, the Actor retries that query once through Apify Proxy (datacenter) before giving up on it. Turn off to fail fast instead.",
            "default": true
          },
          "datasetId": {
            "title": "Read the queries from a dataset (integration mode)",
            "type": "string",
            "description": "Optional. A dataset whose rows carry the domains, brand names or advertiser IDs to look up, one per row, in the field named in datasetField. Made for running as an integration of another Actor: on its Integrations tab pick this Actor (Add integration, Actor) or a saved task of it (Connect Saved tasks) and set datasetId to {{resource.defaultDatasetId}}: each row of the finished run becomes one query. Any dataset of your account works too. With datasetId, queries is optional; both are combined."
          },
          "datasetField": {
            "title": "Dataset field that holds the query",
            "type": "string",
            "description": "Integration mode only. The field of each dataset row that holds the domain, brand name or advertiser ID: website, domain, url, company_domain. A nested field works with dots (contact.website). A website URL is reduced to its domain, an e-mail address to its domain, duplicates are looked up once, and rows without a usable value are skipped and counted in the log.",
            "default": "website"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}