{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Ads Transparency Scraper: Ads of an Advertiser",
    "description": "Google Ads Transparency Center ads by advertiser id, name or domain: format, image, dates, legal name, topic, ad text; only-new mode. Direct route only, no proxy: Google refuses some runs, then you get a free blocked/partial status row. Not dependable. USD 0.60 per 1,000 ads.",
    "version": "0.1",
    "x-build-id": "zUEVS4eknI70uKyNV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bardach_technologies~google-ads-transparency-center-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bardach_technologies-google-ads-transparency-center-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/bardach_technologies~google-ads-transparency-center-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bardach_technologies-google-ads-transparency-center-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/bardach_technologies~google-ads-transparency-center-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bardach_technologies-google-ads-transparency-center-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": {
          "advertiserIds": {
            "title": "Advertiser ids",
            "type": "array",
            "description": "Advertiser ids as the Transparency Center shows them (AR followed by about 20 digits), or advertiser page links such as adstransparency.google.com/advertiser/AR.... One per line.",
            "items": {
              "type": "string"
            }
          },
          "advertiserNames": {
            "title": "Advertiser names",
            "type": "array",
            "description": "Advertiser names, looked up in the Transparency Center's advertiser search. By default only advertisers whose name equals yours (ignoring case, spaces and punctuation) are used; see Name match.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Website domains",
            "type": "array",
            "description": "Website domains such as example.com (a full link is accepted; www. is dropped). Gives the ads of every advertiser that the Transparency Center lists for that domain.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Where the ads were shown: anywhere, or a two-letter country code such as US, DE, GB (the Transparency Center's own region filter). Also decides which region record Include ad details reads.",
            "default": "anywhere"
          },
          "dateFrom": {
            "title": "Shown from",
            "type": "string",
            "description": "Only ads shown on or after this day (YYYY-MM-DD). Empty: no limit."
          },
          "dateTo": {
            "title": "Shown until",
            "type": "string",
            "description": "Only ads shown on or before this day (YYYY-MM-DD). Empty: no limit."
          },
          "formats": {
            "title": "Formats",
            "type": "array",
            "description": "Ad formats to keep: text, image, video. One format is filtered by the site itself; two are filtered by this Actor (the third is read but not written or charged).",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "video"
              ]
            },
            "default": [
              "text",
              "image",
              "video"
            ]
          },
          "maxAdsPerInput": {
            "title": "Max ads per input",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The most ads written for one advertiser id, name or domain. At most 1,000; at most 200 with Include ad details or Include rendered ad text, and at most 120 with both (every ad then costs one more request, and Google blocked one address after about 350 requests in 13 minutes).",
            "default": 100
          },
          "maxAdsCheckedPerInput": {
            "title": "Max ads read per input",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "The most ads read for one input before it stops (counts ads skipped as already delivered or filtered). Default: 1,000 or Max ads per input if higher."
          },
          "nameMatch": {
            "title": "Name match",
            "enum": [
              "exact",
              "best"
            ],
            "type": "string",
            "description": "exact: only advertisers whose name equals yours. best: the advertiser search's first results, as the site ranks them.",
            "default": "exact"
          },
          "maxAdvertisersPerName": {
            "title": "Max advertisers per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many advertisers one name may stand for (several companies often share a name; the ones with most ads come first in exact mode). They share Max ads per input.",
            "default": 3
          },
          "includeAdDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Read each written ad's detail record: the regions Google lists for the ad with first and last day (with Region set to a country, that country's record; with anywhere, usually one region only), impressions ranges per region and surface where Google shows them (mainly EU regions), the topic number (with its name where known) and all variations (images and previews). One more request per ad, no extra price.",
            "default": false
          },
          "includeAdContent": {
            "title": "Include rendered ad text",
            "type": "boolean",
            "description": "For ads that the Transparency Center shows as a rendered preview: read the preview and give its visible text lines (headline, text, display link, product title) and, for video ads, the YouTube video. Ads archived as an image have no text lines (use the image link). One more request per such ad, no extra price.",
            "default": false
          },
          "onlyNewAds": {
            "title": "Only new ads (competitor monitor)",
            "type": "boolean",
            "description": "Remember the creative ids delivered for each advertiser id, name or domain in a named key-value store and deliver and charge only creatives not delivered by an earlier run. Schedule it daily or weekly to watch competitors' new ads. Only ads that were actually delivered are remembered, so a refused or partial search never marks unread ads as seen.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory store name",
            "type": "string",
            "description": "Named key-value store that holds the delivered ids in only-new mode. Use one name per monitor.",
            "default": "google-ads-transparency-seen"
          },
          "requestDelaySeconds": {
            "title": "Pause between requests (seconds)",
            "minimum": 3,
            "maximum": 30,
            "type": "number",
            "description": "Pause after each answer before the next request to the same host. At least 3 seconds (never more than one request a second), default 4: with Google's answer time that is about 11 requests a minute, against about 27 a minute at which Google blocked one address on 18.11.2026. A slower pause does not make Google answer more often on Apify's servers: that is not measured.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}