---
title: "Read one ad with its creative and metrics"
description: "PubNio API ads.getAd: read one ad with its creative and metrics. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read one ad with its creative and metrics

Read one ad with its creative and metrics with [`GET /api/v1/ads/ads/{adId}`](https://pubnio.com/api/v1/docs#tag/ads/GET/api/v1/ads/ads/{adId}). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

Cross-workspace IDs return 404. The metrics window defaults to the last seven completed account days.

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `adId`        | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

## Response

- HTTP 200: `Ad` with `id`, `accountId`, `campaignId`, `adGroupId`, `creativeId`, `provider`, `externalId`, `name`, `format`, `status`, `providerStatus`, `revision`, `providerSettings`, `syncedAt`, `creative`, `insights`.
  - `provider`: `meta_ads`, `google_ads`, `reddit_ads`, `pinterest_ads`, `tiktok_ads`, `linkedin_ads`, `snapchat_ads`, `amazon_ads`, `openai_ads`
  - `status`: `draft`, `paused`, `activating`, `active`, `pending_review`, `rejected`, `completed`, `archived`, `unknown`

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const ad = await workspace.ads.ad(adId);
```

### Python

```python
ad = workspace.ads.get_ad(ad_id)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/ads/ads/$AD_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio ads get-ad "$AD_ID"
```

### MCP execute

```js
async () => {
  const adId = "<adId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/ads/ads/${adId}`,
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [every Ads operation](https://pubnio.com/docs/reference/#ads) and [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Ads operations](https://pubnio.com/docs/reference/#ads)

Source: https://pubnio.com/docs/reference/ads-get-ad/index.mdx
