{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Center Scraper",
    "description": "Collect Google Ads Transparency Center creatives by domain or advertiser across 237 regions. Export ad formats, dates, previews, and available destinations; pay per delivered creative row.",
    "version": "0.3",
    "x-build-id": "5vrxkh5N6esVyOhAg"
  },
  "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",
        "properties": {
          "targets": {
            "title": "Targets",
            "minItems": 1,
            "type": "array",
            "description": "Each target is an object {searchMode, searchValue, targetLabel?}; a plain URL/domain string is also accepted and read as a domain target.",
            "items": {
              "type": "object",
              "required": [
                "searchMode",
                "searchValue"
              ],
              "properties": {
                "searchMode": {
                  "title": "Search mode",
                  "type": "string",
                  "description": "Choose domain for ads pointing to a website, advertiser for a name or AR ID, or political for an advertiser in a supported political region. Political results do not include spending or impression totals.",
                  "enum": [
                    "domain",
                    "advertiser",
                    "political"
                  ]
                },
                "searchValue": {
                  "title": "Search value",
                  "type": "string",
                  "description": "Domain or URL for domain mode, or an advertiser name or AR ID for advertiser and political modes.",
                  "minLength": 1
                },
                "targetLabel": {
                  "title": "Target label",
                  "type": "string",
                  "description": "Optional reporting label for grouping output rows."
                }
              }
            }
          },
          "region": {
            "title": "Region",
            "pattern": "^(anywhere|[A-Za-z]{2})$",
            "type": "string",
            "description": "Choose one of 237 supported two-letter country or territory codes, or anywhere for ordinary searches. Political searches require US, GB, DE, FR, CA, or AU.",
            "default": "VN"
          },
          "maxResults": {
            "title": "Max results per target",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum delivered and billed creative rows per distinct target, subject to your maximum total charge; an explicit page limit can produce max_pages_reached warnings in the run summary. Free-plan users are limited to 200 rows per run and 10 runs of this Actor."
          },
          "maxCreativesPerTarget": {
            "title": "Max creatives per target",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional smaller row limit for each target. The smaller of this value and maxResults applies."
          },
          "includeCreativeDetails": {
            "title": "Include creative details",
            "type": "boolean",
            "description": "Add creative details and variants for up to maxEnrichments rows per target. Requires enrichDetails to be true.",
            "default": false
          },
          "enrichDetails": {
            "title": "Enrich advertiser and creative details",
            "type": "boolean",
            "description": "Master switch for includeCreativeDetails, includeVariantContent, and includeAdvertiserLookup; false disables all three. When enabled, their lookups apply to at most maxEnrichments rows per target.",
            "default": false
          },
          "includeVariantContent": {
            "title": "Include variant content",
            "type": "boolean",
            "description": "Read available preview text, images, video information, and destination links for up to maxEnrichments rows per target. Requires enrichDetails to be true; political targets skip destination decoding.",
            "default": false
          },
          "includeAdvertiserLookup": {
            "title": "Include advertiser lookup",
            "type": "boolean",
            "description": "Add advertiserCountryRaw, org.country, and org.verified when available for enriched rows. Requires enrichDetails to be true; political targets skip this lookup.",
            "default": false
          },
          "maxEnrichments": {
            "title": "Max enriched rows",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows per target that receive creative details, preview content, and advertiser lookup across the whole collection. Later rows remain billable search rows with enrichment_skipped_budget and null variantCount; increasing maxEnrichments can slow the run.",
            "default": 8
          },
          "includeDunsMapping": {
            "title": "Include DUNS mapping",
            "type": "boolean",
            "description": "Add a D-U-N-S number to org.duns when a matching advertiser record is available. Political targets also attempt this mapping without enabling this option.",
            "default": false
          },
          "includeRawJson": {
            "title": "Include raw JSON",
            "type": "boolean",
            "description": "Keep raw search, creative, and advertiser data on each row. This does not enable additional lookups.",
            "default": false
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 1,
            "maximum": 120,
            "type": "number",
            "description": "Maximum seconds to wait for an individual request. This is separate from the overall run timeout.",
            "default": 30
          },
          "maxPagesPerTarget": {
            "title": "Max pages per target",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Limit search pages per target, with up to 40 creatives per page. If omitted, allow ceil(min(maxResults, maxCreativesPerTarget)/40) + 1 pages, ignoring an unset maxCreativesPerTarget and capped at 50; an explicit limit can cause max_pages_reached in the run summary."
          },
          "creativeFormats": {
            "title": "Creative formats",
            "uniqueItems": true,
            "type": "array",
            "description": "Choose text, image, and/or video ads. Leave empty to include all three formats.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video"
              ],
              "enumTitles": [
                "Text",
                "Image",
                "Video"
              ]
            },
            "default": []
          },
          "platforms": {
            "title": "Ad platforms",
            "uniqueItems": true,
            "type": "array",
            "description": "Choose YouTube, Search, Display, Shopping, Maps, and/or Play. Leave empty to include all six platforms.",
            "items": {
              "type": "string",
              "enum": [
                "youtube",
                "search",
                "display",
                "shopping",
                "maps",
                "play"
              ],
              "enumTitles": [
                "YouTube",
                "Search",
                "Display",
                "Shopping",
                "Maps",
                "Play"
              ]
            },
            "default": []
          },
          "strictErrors": {
            "title": "Strict errors",
            "type": "boolean",
            "description": "Stop on creative, advertiser, or preview lookup errors instead of keeping rows with warnings.",
            "default": false
          },
          "workerBaseUrl": {
            "title": "Developer testing only",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}