# searchAds

**Identifier:** `googleads_searchAds`

**Provider:** [Google Ads](https://kirha.com/providers/googleads.md)

Search for ads by domain in Google's Ads Transparency Center. Use this to discover advertisers and their ads.

## Run it with the CLI

```bash
kirha tools run googleads_searchAds \
  --input '{
    "domain": "tesla.com"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "googleads_searchAds",
  "input": {
    "domain": "tesla.com"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "domain": {
      "description": "Domain name, e.g., 'tesla.com', 'nike.com', 'apple.com'",
      "minLength": 1,
      "type": "string"
    },
    "format": {
      "enum": [
        "text",
        "image",
        "video"
      ],
      "type": "string"
    },
    "numResults": {
      "default": 10,
      "maximum": 100,
      "minimum": 1,
      "type": "number"
    },
    "platform": {
      "enum": [
        "PLAY",
        "MAPS",
        "SEARCH",
        "SHOPPING",
        "YOUTUBE"
      ],
      "type": "string"
    },
    "region": {
      "enum": [
        "anywhere",
        "AR",
        "AU",
        "AT",
        "BE",
        "BR",
        "CA",
        "CL",
        "CN",
        "CO",
        "CZ",
        "DK",
        "EC",
        "EG",
        "FI",
        "FR",
        "DE",
        "GR",
        "HK",
        "HU",
        "IN",
        "ID",
        "IE",
        "IL",
        "IT",
        "JP",
        "KR",
        "MY",
        "MX",
        "NL",
        "NZ",
        "NO",
        "PK",
        "PE",
        "PH",
        "PL",
        "PT",
        "RO",
        "SA",
        "SG",
        "ZA",
        "ES",
        "SE",
        "CH",
        "TW",
        "TH",
        "TR",
        "AE",
        "GB",
        "US",
        "VN"
      ],
      "type": "string"
    }
  },
  "required": [
    "domain"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "ads": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "advertiserId": {
            "type": "string"
          },
          "advertiserName": {
            "type": "string"
          },
          "creativeId": {
            "type": "string"
          },
          "detailsLink": {
            "type": "string"
          },
          "firstShown": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string"
          },
          "lastShown": {
            "type": "string"
          },
          "totalDaysShown": {
            "type": "number"
          }
        },
        "required": [
          "creativeId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "advertiserIds": {
      "description": "For use with getAdsByAdvertiser",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "creativeIds": {
      "description": "For use with getAdDetails",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "ads",
    "advertiserIds",
    "creativeIds"
  ],
  "type": "object"
}
```

## Related tools

Other Google Ads tools that this tool refers to, or that refer to it.

- [`getAdDetails`](https://kirha.com/providers/googleads/getAdDetails.md)
- [`getAdsByAdvertiser`](https://kirha.com/providers/googleads/getAdsByAdvertiser.md)

-----

[All Google Ads tools](https://kirha.com/providers/googleads.md) · [< Back to tools list](https://kirha.com/tools.md)