{
  "openapi": "3.0.1",
  "info": {
    "title": "Ads Spend Signals - Who Is Advertising on Google Ads ?",
    "description": "Find out which companies are advertising on Google Ads right now. Paste company websites and get each verified advertiser from the Google Ads Transparency Center: active ads, new ads, formats, countries and a 0-100 ad activity score. A B2B buying signal, not a raw ad dump.",
    "version": "0.0",
    "x-build-id": "4fudwpCileceo2AoM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/upadhyay.labs~ads-spend-signals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-upadhyay.labs-ads-spend-signals",
        "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/upadhyay.labs~ads-spend-signals/runs": {
      "post": {
        "operationId": "runs-sync-upadhyay.labs-ads-spend-signals",
        "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/upadhyay.labs~ads-spend-signals/run-sync": {
      "post": {
        "operationId": "run-sync-upadhyay.labs-ads-spend-signals",
        "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": {
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "One company per line: a website (ramp.com), a company name (Palo Alto Networks) or \"Name, domain\" (Acme Inc, acme.io). Websites give the most accurate results.",
            "items": {
              "type": "string"
            }
          },
          "sourceDataset": {
            "title": "Companies from a dataset",
            "type": "string",
            "description": "Optional. Read companies from another Actor's results, for example ATS Hiring Signals, LinkedIn Hiring Signals or a Google Maps leads scraper."
          },
          "sourceDatasetField": {
            "title": "Dataset field with the company",
            "type": "string",
            "description": "Dot path to the website, domain or company name in each dataset item, e.g. \"company.domain\". Leave empty to detect it automatically (website, domain, url, company name...)."
          },
          "platforms": {
            "title": "Ad platforms",
            "type": "array",
            "description": "Which ad libraries to read. Today: the Google Ads Transparency Center (Search, YouTube, Display and other Google ads). More libraries are planned.",
            "items": {
              "type": "string",
              "enum": [
                "google"
              ],
              "enumTitles": [
                "Google Ads Transparency Center"
              ]
            },
            "default": [
              "google"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Only count ads shown in these countries (two-letter codes such as US, GB, DE). Leave empty for worldwide.",
            "items": {
              "type": "string"
            }
          },
          "formats": {
            "title": "Ad formats",
            "type": "array",
            "description": "Only count these ad formats. Leave empty for all formats.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video"
              ],
              "enumTitles": [
                "Text (search) ads",
                "Image ads",
                "Video ads"
              ]
            }
          },
          "activeWithinDays": {
            "title": "Active means shown in the last (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "An ad counts as active when it was shown within this many days.",
            "default": 30
          },
          "newAdsWithinDays": {
            "title": "New means first shown in the last (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "An ad counts as new when it first appeared within this many days.",
            "default": 7
          },
          "minActiveAds": {
            "title": "Minimum active ads",
            "minimum": 0,
            "type": "integer",
            "description": "Skip companies with fewer active ads than this (no row, no charge). 0 reports every company that has an advertiser account, including dormant ones.",
            "default": 0
          },
          "minConfidence": {
            "title": "Minimum match confidence",
            "enum": [
              "medium",
              "high"
            ],
            "type": "string",
            "description": "How sure we must be that an advertiser account belongs to the company. \"High\": the account's name matches the company and its ads link to the company's website. \"Medium\" also accepts an account that owns nearly all ads for the website, or an exact name match. Weaker matches are never used.",
            "default": "medium"
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "companies",
              "ads",
              "both"
            ],
            "type": "string",
            "description": "One row per company with the ad activity score, one row per ad, or both.",
            "default": "companies"
          },
          "monitorMode": {
            "title": "Monitor mode (new ads only)",
            "type": "boolean",
            "description": "Remember the ads of each company between runs. The first run is a baseline; later runs return only companies with new ads (and only the new ads), plus how many stopped. Schedule it weekly.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Use different names to keep separate histories for separate schedules. By default the history depends on your filters."
          },
          "maxAdsPerCompany": {
            "title": "Max ads read per company",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many ads to read for each company (newest first). Counts of active ads come from Google's published ranges and do not depend on this number.",
            "default": 100
          },
          "maxCompanies": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Safety cap on the number of companies processed in one run.",
            "default": 1000
          },
          "countryBreakdown": {
            "title": "Show ads per country",
            "type": "boolean",
            "description": "Adds the number of active ads in your selected countries (or in 12 major markets if none are selected). Uses extra requests, so runs are slower.",
            "default": false
          },
          "detailSample": {
            "title": "Ads checked for countries",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Looks up this many of each company's newest ads one by one to see in which countries they ran (countryMix) and, for ads shown in the EU, the \"times shown\" lower bound. Google publishes impressions for the EU only. Each lookup is one extra request. 0 turns it off.",
            "default": 3
          },
          "refreshAdvertisers": {
            "title": "Re-match advertisers",
            "type": "boolean",
            "description": "Ignore the advertiser matches remembered from earlier runs (kept for 30 days) and match every company again.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Companies in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many companies are processed at the same time.",
            "default": 5
          },
          "requestsPerSecond": {
            "title": "Requests per second",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Overall request rate to the ad library. 2 per second is tested on residential proxies. Lower it to 1 without a proxy: Google blocks an IP address that sends too many requests.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxies, on by default. Google blocks datacenter IP addresses almost immediately, so this Actor always uses Apify's RESIDENTIAL group (or your own proxy URLs). A blocked or dropped IP is swapped for a fresh one automatically. Turn off only for very small lists.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}