{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper [$0.75/1K 💰] | Ads",
    "description": "Monitor Google Ads Transparency by domain, brand or advertiser ID. Get creatives, copy, formats, regions, dates and new-ad alerts. $0.75 per 1,000 ad rows.",
    "version": "0.1",
    "x-build-id": "jAadWVPlCFtluMOVw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~google-ads-transparency-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-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/ahmed_jasarevic~google-ads-transparency-monitor/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-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/ahmed_jasarevic~google-ads-transparency-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-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",
        "required": [
          "targets"
        ],
        "properties": {
          "targets": {
            "title": "Targets",
            "minItems": 1,
            "type": "array",
            "description": "Domains (nike.com), brand names (Nike) or Google advertiser IDs (AR...). Each target is scraped in the selected mode.",
            "items": {
              "type": "string"
            },
            "default": [
              "nike.com"
            ]
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "scrape",
              "monitor",
              "check"
            ],
            "type": "string",
            "description": "scrape = emit the current snapshot (default). monitor = emit only ads not seen in a previous run. check = one summary row per advertiser. full is accepted as an alias for scrape.",
            "default": "scrape"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter ISO country code used for the Transparency region filter.",
            "default": "US"
          },
          "activeOnly": {
            "title": "Active ads only",
            "type": "boolean",
            "description": "Keep only creatives shown in the last 7 days. Use this for current-competitor creative research; leave it off to include paused ads.",
            "default": false
          },
          "formats": {
            "title": "Formats",
            "type": "array",
            "description": "Optional format filter: image, text or video. Leave empty for all formats.",
            "items": {
              "type": "string"
            }
          },
          "firstShownAfter": {
            "title": "First shown after",
            "type": "string",
            "description": "Optional inclusive date or ISO timestamp. Ads with no first-shown date are excluded when this is set."
          },
          "firstShownBefore": {
            "title": "First shown before",
            "type": "string",
            "description": "Optional inclusive date or ISO timestamp. Ads with no first-shown date are excluded when this is set."
          },
          "maxAdsPerTarget": {
            "title": "Max ads per target",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on emitted ads for one target. Raise it for complete advertiser archives; lower it for fast, cheap snapshots.",
            "default": 200
          },
          "maxPagesPerTarget": {
            "title": "Max pages per target",
            "minimum": 1,
            "maximum": 125,
            "type": "integer",
            "description": "Google returns 40 creatives per page. Five pages cover the default 200-ad limit; raise both limits for a full archive.",
            "default": 5
          },
          "maxAdvertisers": {
            "title": "Max advertisers per brand",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "When a brand name matches several advertisers, follow at most this many. Domains and AR IDs are not affected.",
            "default": 3
          },
          "newAdDefinition": {
            "title": "What counts as new (monitor mode)",
            "enum": [
              "first-shown",
              "first-seen"
            ],
            "type": "string",
            "description": "first-shown = only creatives first shown after the previous run. first-seen = any creative not seen in this watch, even if Google first showed it long ago.",
            "default": "first-shown"
          },
          "watchName": {
            "title": "Watch name (monitor mode)",
            "pattern": "^[A-Za-z0-9._-]+$",
            "type": "string",
            "description": "Separate monitor state per watch. Use a different name for each market or client. Ignored in scrape and check modes.",
            "default": "default"
          },
          "includeAdText": {
            "title": "Include ad text",
            "type": "boolean",
            "description": "Decode search-ad headlines, descriptions and CTAs when Google exposes them in the creative overlay.",
            "default": true
          },
          "includeDetails": {
            "title": "Load creative details",
            "type": "boolean",
            "description": "Fetch Google's per-creative detail to add all variations, region stats, targeting and legal advertiser name. Adds one RPC per emitted ad and triggers the detail-enrichment charge when that event is configured; disable for the fastest/cheapest snapshot.",
            "default": true
          },
          "downloadAssets": {
            "title": "Download image and video assets",
            "type": "boolean",
            "description": "Store images and videos in the run's key-value store and add downloaded URLs to each row. Google-hosted files are size-capped; unsupported or oversized files are skipped.",
            "default": false
          },
          "downloadPreviews": {
            "title": "Download preview images",
            "type": "boolean",
            "description": "Store the primary preview image in the run's key-value store and add its downloaded URL to each row.",
            "default": false
          },
          "maxAssetSizeKb": {
            "title": "Max asset size (KB)",
            "minimum": 1,
            "maximum": 51200,
            "type": "integer",
            "description": "Skip assets larger than this size. Applies only when asset or preview downloads are enabled.",
            "default": 10240
          },
          "webhookUrl": {
            "title": "Webhook URL (monitor mode)",
            "type": "string",
            "description": "Optional. After a non-baseline monitor run, POST a JSON payload with new ads. Failures do not fail the run.",
            "default": ""
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 250,
            "maximum": 5000,
            "type": "integer",
            "description": "Delay between Transparency RPC calls. 250 ms is the fast default; increase it if Google starts returning 429 responses.",
            "default": 250
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Retries for rate limits, network errors and 5xx responses.",
            "default": 4
          },
          "maxRunSeconds": {
            "title": "Max run time (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Stop gracefully and save monitor state after this many seconds.",
            "default": 900
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify residential proxy is enabled by default because Google aggressively challenges datacenter IPs. Challenged requests automatically rotate to a fresh proxy session. Turn it off only for direct/local runs or when using your own proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}