{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper & Competitor Ad Monitor",
    "description": "Scrape the Google Ads Transparency Center for every ad of any competitor (Search, YouTube, Shopping, Maps, Play): ad text, images, YouTube videos, first/last shown, days running, impressions per country. No login. Monitoring mode returns only new ads. HTML report included.",
    "version": "1.0",
    "x-build-id": "WYMDZMIetFudii8Xn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stumadethat~google-ads-transparency-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stumadethat-google-ads-transparency-monitor",
        "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/stumadethat~google-ads-transparency-monitor/runs": {
      "post": {
        "operationId": "runs-sync-stumadethat-google-ads-transparency-monitor",
        "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/stumadethat~google-ads-transparency-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-stumadethat-google-ads-transparency-monitor",
        "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": "Competitor websites (domains)",
            "type": "array",
            "description": "Websites whose ads you want, e.g. nike.com, decathlon.fr. Google matches every advertiser account that points ads to this domain.",
            "items": {
              "type": "string"
            }
          },
          "advertisers": {
            "title": "Advertiser names, IDs or Transparency Center URLs",
            "type": "array",
            "description": "Advertiser names (e.g. 'Nike'), advertiser IDs (AR…) or advertiser URLs copied from adstransparency.google.com.",
            "items": {
              "type": "string"
            }
          },
          "advertiserNameMatch": {
            "title": "How to match advertiser names",
            "enum": [
              "contains",
              "exact",
              "top"
            ],
            "type": "string",
            "description": "'contains': every advertiser account whose name contains your text (all countries). 'exact': only exact name matches. 'top': only Google's first suggestion.",
            "default": "contains"
          },
          "region": {
            "title": "Country where ads were shown",
            "type": "string",
            "description": "ISO country code (FR, US, GB, DE, ES…) or 'anywhere'.",
            "default": "anywhere"
          },
          "platform": {
            "title": "Google platform",
            "enum": [
              "ALL",
              "GOOGLE_SEARCH",
              "YOUTUBE",
              "GOOGLE_SHOPPING",
              "GOOGLE_MAPS",
              "GOOGLE_PLAY"
            ],
            "type": "string",
            "description": "Only ads shown on this Google surface.",
            "default": "ALL"
          },
          "adFormat": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "TEXT",
              "IMAGE",
              "VIDEO"
            ],
            "type": "string",
            "description": "Only ads of this format.",
            "default": "ALL"
          },
          "maxAdsPerTarget": {
            "title": "Max ads per domain / advertiser",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Newest ads come first. Big brands can have 30,000+ ads.",
            "default": 100
          },
          "lastSeenWithinDays": {
            "title": "Only ads shown in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit. Example: 7 = ads still running this week.",
            "default": 0
          },
          "firstSeenWithinDays": {
            "title": "Only ads launched in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit. Example: 30 = creatives the competitor started this month.",
            "default": 0
          },
          "includeDetails": {
            "title": "Include details (impressions, countries, platforms, ad text, YouTube video)",
            "type": "boolean",
            "description": "Adds impression ranges per country and platform, first/last shown per country, ad copy text, YouTube video link and all creative variations. Charged as an extra event per ad.",
            "default": false
          },
          "extractAdText": {
            "title": "Extract ad copy text (with details)",
            "type": "boolean",
            "description": "Reads headlines and descriptions from Google's ad preview. Only used when details are on.",
            "default": true
          },
          "onlyNewAds": {
            "title": "Monitoring: return only ads not seen in previous runs",
            "type": "boolean",
            "description": "Schedule this Actor (daily/weekly) with this option on to get only the competitor's NEW ads. The first run stores a baseline.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitoring store name",
            "type": "string",
            "description": "Name of the key-value store that remembers ads already seen. Change it to reset the history.",
            "default": "google-ads-monitor"
          },
          "includeAdvertiserSummary": {
            "title": "Advertiser summary & HTML report",
            "type": "boolean",
            "description": "Per advertiser: ads collected, active ads, new ads in 7/30 days, formats, longest-running ad, top countries. Saved as SUMMARY (JSON) and REPORT (HTML) in the key-value store.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Parallel requests for details. Lower it if you see rate limits.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy is recommended.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}