{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper — Bulk CSV API",
    "description": "Collect supported Google Ads Transparency creatives by query, domain or advertiser, with coverage diagnostics. Bulk export: JSON, CSV, Excel and API. PPE: $2/1K ad creatives; start fee, usage extra.",
    "version": "0.2",
    "x-build-id": "2opjhfcfrT09UsKQD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apivault_labs~google-ads-transparency-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apivault_labs-google-ads-transparency-scraper",
        "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/apivault_labs~google-ads-transparency-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apivault_labs-google-ads-transparency-scraper",
        "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/apivault_labs~google-ads-transparency-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apivault_labs-google-ads-transparency-scraper",
        "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": {
          "searchQueries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Advertiser name suggestions, not ad-copy keyword search. Default exact mode requires a normalized exact advertiser-name match. Ambiguous candidates are recorded in free RESOLUTION. Use a domain or explicit ID for known brands.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Domains",
            "type": "array",
            "description": "Source Google domain filter: ads pointing at this domain (including matching subdomains), potentially multiple advertisers. Does not pick the top advertiser suggestion or verify brand ownership.",
            "items": {
              "type": "string"
            }
          },
          "advertiserIds": {
            "title": "Advertiser IDs",
            "type": "array",
            "description": "AR followed by10–25 digits. Explicit source advertiser identity; example Nike, Inc. Verify the source identity for your use case.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region Filter",
            "type": "string",
            "description": "Supported country code from README, or a numeric Google criterion ID. Empty means anywhere. Unknown country codes fail instead of silently running worldwide."
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum useful creatives per resolved advertiser or domain selector, default5, up to10000. A bulk run may return this many per selector; maxTotalItems and event budget also cap output. Pending work appears in SUMMARY.nextInput.",
            "default": 5
          },
          "includeAdDetails": {
            "title": "Include Ad Details",
            "type": "boolean",
            "description": "Optional per-creative lookup for preview variants and observed region criteria; overlay ad copy when the source supplies it. Missing copy/targeting data is not guessed; unavailable details do not discard a valid paid core creative.",
            "default": true
          },
          "includeAdvertiserInfo": {
            "title": "Include Advertiser Info",
            "type": "boolean",
            "description": "Optional source identity/name/country/verification. A verified advertiser flag does not prove ownership of the domain or authenticate ad claims.",
            "default": true
          },
          "includeDunsNumber": {
            "title": "Include DUNS Number",
            "type": "boolean",
            "description": "Optional full public DUNS mapping request. Often no matching entry for a selected advertiser; source failures are in ERRORS and mapping count in SUMMARY. Not a universal business identity field.",
            "default": false
          },
          "outputFields": {
            "title": "Output Fields",
            "type": "array",
            "description": "Empty returns available fields. Selected fields retain creativeId/advertiserId/sourceUrl/sourceMode/resolutionMethod/detailsStatus for useful identity. Missing optional fields remain absent.",
            "items": {
              "type": "string",
              "enum": [
                "creativeId",
                "advertiserId",
                "advertiserName",
                "advertiserCountry",
                "verifiedName",
                "isVerified",
                "dunsNumber",
                "format",
                "firstShown",
                "lastShown",
                "totalDaysShown",
                "previewUrl",
                "imageUrl",
                "imageWidth",
                "imageHeight",
                "sourceUrl",
                "headline",
                "description",
                "visibleUrl",
                "targetDomain",
                "sitelinks",
                "sellerRating",
                "appExtension",
                "adGroupId",
                "googleAdsCustomerId",
                "previewUrls",
                "variations",
                "region",
                "scrapedAt",
                "sourceAdCountRange",
                "sourceFormatCode",
                "regionCriteriaIds",
                "sourceMode",
                "resolutionMethod",
                "detailsStatus",
                "copySource",
                "versionId"
              ]
            }
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify residential by default: direct cloud requests can be blocked or redirected. Set useApifyProxy=false to try direct HTTP, with source failures reported. Residential traffic adds usage cost; custom proxies are respected, never silently bypassed.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "maxTotalItems": {
            "title": "maxTotalItems",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Total paid-row cap across all selectors.",
            "default": 10000
          },
          "maxAdvertisersPerQuery": {
            "title": "maxAdvertisersPerQuery",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Limit selected source advertiser suggestions per name query.",
            "default": 1
          },
          "maxConcurrency": {
            "title": "maxConcurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Concurrent optional detail lookups.",
            "default": 3
          },
          "maxRetries": {
            "title": "maxRetries",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Retries for source429/5xx or network errors; permanent failures are not retried.",
            "default": 1
          },
          "timeoutSecs": {
            "title": "timeoutSecs",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "Best-effort processing deadline; platform run timeout also applies.",
            "default": 540
          },
          "searchMatchMode": {
            "title": "Advertiser name match",
            "enum": [
              "exact",
              "suggestions"
            ],
            "type": "string",
            "description": "Exact normalized name by default. Suggestions mode selects the first source candidates, without guessing by ad count or claiming independently verified brand identity.",
            "default": "exact"
          },
          "continuation": {
            "title": "Continuation from SUMMARY.nextInput",
            "type": "object",
            "description": "Copy unchanged from nextInput: source selectors/tokens/offset and already-delivered creative IDs. Google results are dynamic; this is best-effort continuation, not a stable snapshot."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}