{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Scraper — Competitor Ads & Change Monitor",
    "description": "Discover Google ads by company, domain, or advertiser ID. Export creatives, copy, dates, impressions, landing pages, emails, phones, and reviews. Monitor NEW, CHANGED, and STOPPED competitor ads.",
    "version": "0.1",
    "x-build-id": "GSrTjPaSzJRN0uwaG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trakk~google-ads-competitor-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trakk-google-ads-competitor-intelligence",
        "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/trakk~google-ads-competitor-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-trakk-google-ads-competitor-intelligence",
        "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/trakk~google-ads-competitor-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-trakk-google-ads-competitor-intelligence",
        "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",
        "required": [
          "workflow",
          "targets"
        ],
        "properties": {
          "workflow": {
            "title": "🎯 Workflow",
            "enum": [
              "quick_scan",
              "deep_creative",
              "monitor_compare"
            ],
            "type": "string",
            "description": "Quick Scan finds ads fast. Deep Creative opens every creative for richer fields. Monitor & Compare saves a snapshot and classifies changes on later runs.",
            "default": "quick_scan"
          },
          "targets": {
            "title": "🏢 Companies, domains, or advertiser URLs",
            "minItems": 1,
            "type": "array",
            "description": "One target per line. A domain such as example.com is the easiest and most reliable choice. Company names, AR advertiser IDs, and Transparency Center advertiser URLs are also accepted.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "region": {
            "title": "🌍 Region",
            "enum": [
              "anywhere",
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "BR",
              "MX",
              "IN",
              "JP",
              "KR",
              "SG",
              "AE"
            ],
            "type": "string",
            "description": "Where the ads were shown. Anywhere gives the broadest discovery.",
            "default": "anywhere"
          },
          "maxResultsPerTarget": {
            "title": "💯 Ads per target",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum ads saved for each company or domain.",
            "default": 50
          },
          "adFormat": {
            "title": "🎨 Ad format",
            "enum": [
              "all",
              "image",
              "text",
              "video"
            ],
            "type": "string",
            "description": "Keep every format, or focus on image, text, or video ads.",
            "default": "all"
          },
          "dateFrom": {
            "title": "Active on or after",
            "type": "string",
            "description": "Optional YYYY-MM-DD date. Keeps ads whose last-seen date reaches this date.",
            "default": ""
          },
          "dateTo": {
            "title": "Started on or before",
            "type": "string",
            "description": "Optional YYYY-MM-DD date. Keeps ads first seen by this date.",
            "default": ""
          },
          "includeCreativeDetails": {
            "title": "🧩 Open creative details",
            "type": "boolean",
            "description": "Adds creative variants, copy when exposed, asset URLs, impression ranges, regional delivery, and landing-page fields. Always enabled by Deep Creative.",
            "default": false
          },
          "enrichContacts": {
            "title": "📇 Public website contacts",
            "type": "boolean",
            "description": "Visits each unique advertiser website and extracts public emails, phones, contact pages, and social profiles.",
            "default": false
          },
          "enrichBusiness": {
            "title": "📍 Business profile",
            "type": "boolean",
            "description": "Adds a phone, address, rating, and review count only when a Google Maps business match is confident and unambiguous.",
            "default": false
          },
          "maxReviewsPerAdvertiser": {
            "title": "⭐ Review texts per advertiser",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Fetch up to five public Google Maps review texts for a confident single-location match. Set 0 to skip reviews.",
            "default": 0
          },
          "monitorName": {
            "title": "🔔 Monitor name",
            "type": "string",
            "description": "Stable name for this competitor set. Used only by Monitor & Compare to keep snapshots separate.",
            "default": "default"
          },
          "includeUnchanged": {
            "title": "Include unchanged ads",
            "type": "boolean",
            "description": "Off by default so recurring monitor datasets contain only useful changes.",
            "default": false
          },
          "maxContactPages": {
            "title": "Website pages per advertiser",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Homepage plus likely contact/about/support pages inspected for public contacts.",
            "default": 2
          },
          "maxAdvertisersPerTarget": {
            "title": "Company-name matches",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum advertiser identities followed when a company name, rather than a domain or AR ID, is entered.",
            "default": 3
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Parallel detail and enrichment requests. The default is tuned for 1 GB runs.",
            "default": 16
          },
          "geoCriteriaId": {
            "title": "Custom Google geo criterion ID",
            "minimum": 1,
            "type": "integer",
            "description": "Optional advanced override for a country/region/city ID from Google Ads geo target constants."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Connection settings for larger or repeated runs.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}