{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads scraper",
    "description": "Google Ads Scraper extracts structured ad data from the Google Ads Transparency Center for advertiser and domain searches. It returns advertiser names, creative IDs, ad formats, first/last seen dates, detail URLs, and preview links for competitor research, ad monitoring, and market analysis.",
    "version": "0.1",
    "x-build-id": "Xvpmgt071BAP9GnMT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~google-ads-transparency-center-vn/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-google-ads-transparency-center-vn",
        "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/lentic_clockss~google-ads-transparency-center-vn/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-google-ads-transparency-center-vn",
        "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/lentic_clockss~google-ads-transparency-center-vn/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-google-ads-transparency-center-vn",
        "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": {
          "runMode": {
            "title": "Run mode",
            "enum": [
              "fixture",
              "real"
            ],
            "type": "string",
            "description": "Choose fixture mode for the deterministic smoke path or real mode for live Google Ads Transparency Center requests.",
            "default": "fixture"
          },
          "region": {
            "title": "Region",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country code used for Google Ads Transparency Center region targeting. Defaults to VN but supports multi-region inputs such as US, DE, JP, and SG.",
            "default": "VN"
          },
          "targets": {
            "title": "Targets",
            "minItems": 1,
            "type": "array",
            "description": "One or more Transparency Center targets. Stage one only supports domain and advertiser searches.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "searchMode",
                "searchValue"
              ],
              "properties": {
                "searchMode": {
                  "title": "Search mode",
                  "type": "string",
                  "description": "Only domain and advertiser targets are supported in stage one.",
                  "enum": [
                    "domain",
                    "advertiser"
                  ]
                },
                "searchValue": {
                  "title": "Search value",
                  "type": "string",
                  "description": "The domain or advertiser value sent to Transparency Center.",
                  "minLength": 1
                },
                "targetLabel": {
                  "title": "Target label",
                  "type": "string",
                  "description": "Optional reporting label for grouping output rows."
                }
              }
            }
          },
          "maxCreativesPerTarget": {
            "title": "Max creatives per target",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Upper bound for creatives emitted per target.",
            "default": 30
          },
          "includeCreativeDetails": {
            "title": "Include creative details",
            "type": "boolean",
            "description": "When true, fetch and merge GetCreativeById detail payloads.",
            "default": true
          },
          "includeVariantContent": {
            "title": "Include variant content",
            "type": "boolean",
            "description": "When true, fetch and parse variant content payloads.",
            "default": true
          },
          "includeRawJson": {
            "title": "Include raw JSON",
            "type": "boolean",
            "description": "When true, preserve raw RPC payload fragments in nullable dataset fields.",
            "default": false
          },
          "fixtures": {
            "title": "Fixture bundle",
            "type": "object",
            "description": "Optional in fixture mode. When omitted, the Actor auto-loads its built-in deterministic smoke fixtures.",
            "default": {
              "searchCreatives": "fixtures/rpc/search_creatives_domain_vn.json",
              "creativeById": {
                "crt-900": "fixtures/rpc/get_creative_by_id_crt-900.json",
                "crt-901": "fixtures/rpc/get_creative_by_id_crt-901.json"
              },
              "advertiserById": {
                "adv-100": "fixtures/rpc/get_advertiser_by_id_adv-100.json",
                "adv-101": "fixtures/rpc/get_advertiser_by_id_adv-101.json"
              }
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Official Apify proxy input. Prefer useApifyProxy/apifyProxyGroups/apifyProxyCountry for Apify residential routing; proxyUrls is kept for custom proxies.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "type": "boolean",
                "description": "When true, use Apify Proxy instead of custom proxy URLs."
              },
              "apifyProxyGroups": {
                "title": "Apify Proxy groups",
                "description": "Optional Apify Proxy groups such as RESIDENTIAL.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "proxyUrls": {
                "title": "Custom proxy URLs",
                "description": "Optional custom proxy URLs. For Apify residential routing inside Actors, prefer useApifyProxy + apifyProxyGroups + apifyProxyCountry instead of passing Apify proxy URLs manually.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "apifyProxyCountry": {
                "title": "Apify Proxy country",
                "description": "Two-letter country code for Apify Proxy geo targeting.",
                "type": "string",
                "pattern": "^[A-Za-z]{2}$"
              }
            },
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "session": {
            "title": "Session bootstrap",
            "type": "object",
            "description": "Optional live-mode session material such as cookies, headers, and user agent."
          },
          "rpcIds": {
            "title": "RPC overrides",
            "type": "object",
            "description": "Optional rpcids overrides for search_creatives, get_creative_by_id, and get_advertiser_by_id."
          },
          "baseUrl": {
            "title": "Base URL override",
            "type": "string",
            "description": "Optional override for the Transparency Center origin. Leave empty for production.",
            "default": "https://adstransparency.google.com"
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 1,
            "maximum": 120,
            "type": "number",
            "description": "HTTP timeout for live-mode requests.",
            "default": 30
          },
          "debug": {
            "title": "Debug",
            "type": "boolean",
            "description": "Enable extra debug logging for local and remote troubleshooting.",
            "default": false
          },
          "keepDebugArtifacts": {
            "title": "Keep debug artifacts",
            "type": "boolean",
            "description": "Keep intermediate artifacts instead of cleaning them after the run.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}