# Search creatives

Resolves a brand, advertiser name, or domain and returns that advertiser's creative records. Optional source-qualified delivery country (US/DE), creative format (TEXT/IMAGE/VIDEO) and delivery platform (SEARCH/YOUTUBE) filters. Google positional fields are preserved.

- Platform: [Google Ads Transparency](https://docs.upscrape.com/docs/platforms/google-adstransparency)
- Capability ID: `google-adstransparency.creative.search`
- Cost: 1 credit per request
- Maximum runtime: 120 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 5,
    "query": "nike"
  },
  "capability": "google-adstransparency.creative.search"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `creative_format` | `string` | No | Google's source-labelled creative format. Omit for all formats; raw positional format field 4 remains in each record. Allowed values: `TEXT`, `IMAGE`, `VIDEO`. |
| `cursor` | `string` | No | Opaque next_cursor from this capability with the same query, delivery_country, creative_format and delivery_platform. The first page's advertiser identity is retained. |
| `delivery_country` | `string` | No | Country where Google reports the ad was shown. US and DE are source-qualified; omit for worldwide. The retired region key remains invalid. Allowed values: `US`, `DE`. |
| `delivery_platform` | `string` | No | Platform where Google reports the ad was shown. SEARCH and YOUTUBE are source-qualified. Platform-filtered searches exclude ads shown before 2023-09-04. Allowed values: `SEARCH`, `YOUTUBE`. |
| `limit` | `integer` | No | Maximum number of creatives to return. From 1 to 200. Default: `50`. |
| `query` | `string` | Yes | Non-empty advertiser name, brand, or domain (maximum 200 characters). |

### Example input

```json
{
  "limit": 5,
  "query": "nike"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "items": [
    {
      "1": "AR06641858037806006273",
      "12": "Nike",
      "13": 1,
      "16": true,
      "2": "CR01337117954554200065",
      "3": {
        "1": {
          "4": "https://displayads-formats.googleusercontent.com/ads/preview/content.js?client=ads-integrity-transparency&obfuscatedCustomerId=1080290255&creativeId=820530709149&uiFeatures=12,54&adGroupId=197483738565&assets=%[redacted:token]&sig=[redacted:credential]&htmlParentId=fletch-render-13449322881836186056&responseCallback=fletchCallback13449322881836186056"
        }
      },
      "4": 3,
      "6": {
        "1": "1786463663",
        "2": 258279000
      },
      "7": {
        "1": "1786464444",
        "2": 649285000
      }
    }
  ],
  "total_items": 1
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `items` | `array` | 1 items |
| `items` | `array` | 1 items |
| `total_items` | `integer` | 1 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
