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

# 已推广广告

> 按广告、帖子、Snap、广告系列或广告账户获取通过 Ayrshare 推广的 Snapchat 广告及其状态和审核。

获取你通过[推广帖子](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md)创建的 Snapchat 广告，以及每个广告的状态和 Snapchat 的审核结果。

<ul>
  <li>发送 `postId`、`socialPostId`、`adId`、`accountId` 或 `campaignId` 之一。如果发送多个，按此顺序使用第一个。</li>
  <li>仅列出通过 Ayrshare 为此资料推广的广告。在 Snapchat Ads Manager 中创建的广告不包括在内。</li>
  <li>`review` 是 Snapchat 对广告的审核：Snapchat 报告的 `status`，例如审核期间为 `PENDING`，通过后为 `APPROVED`；以及包含 Snapchat 说明的 `reasons`。当 Snapchat 未报告审核时，`review` 为 `null`。</li>
  <li>每个广告都列出其 `adSquadId`：在 Snapchat 上，预算和定位设置在 ad squad 上。</li>
  <li>此端点不返回花费或效果数据。实时数据请使用[洞察](https://www.ayrshare.com/docs/apis/ads/snapchat/get-ad-insights.md)，每日花费请使用[历史记录](https://www.ayrshare.com/docs/apis/ads/snapchat/get-ad-history.md)。</li>
  <li>要暂停或恢复广告，请使用[更新广告](https://www.ayrshare.com/docs/apis/ads/snapchat/put-ad-update.md)。</li>
</ul>

## 请求头参数

**Authorization** `string` *required*

[API Key](https://www.ayrshare.com/docs/apis/overview.md#authorization) of the Primary Profile.

Format: `Authorization: Bearer API_KEY`
**Profile-Key** `string`

[Profile Key](https://www.ayrshare.com/docs/apis/overview.md#profile-key-format) of a User Profile.

Format: `Profile-Key: PROFILE_KEY`

## 查询参数

**postId** `string`

你推广的 Ayrshare [帖子 ID](https://www.ayrshare.com/docs/apis/overview.md#ayrshare-post-id)。返回从该帖子推广的广告。

**socialPostId** `string`

你推广的 Snap 的 ID：帖子的 Snapchat 结果中的 `mediaId`。返回从该 Snap 推广的广告。`snapchatSnapId` 也可作为同一参数。

**adId** `string`

Snapchat 广告 ID，即[推广帖子](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md)返回的 `id`。

**accountId** `string`

Snapchat 广告账户 ID。返回你在该账户中推广的广告。

**campaignId** `string`

Snapchat 广告系列 ID，来自推广响应中的 `platformIds.campaignId`。

**status** `string`

仅返回此状态的广告：`active` 或 `paused`。省略则返回所有状态。使用 `adId`、`postId` 或 `socialPostId` 时，即使状态不匹配也可能返回广告，因此请检查其 `adStatus`。

**limit** `number` (default: 25)

要返回的广告数量。最大值为 300；更大的值会被限制为 300。发送 `limit` 时，响应中的广告可能比你发送的数量多一个。

```bash cURL theme={"system"}
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/ads?adId=c3a1e2d4-0000-4000-8000-0000000000ad"
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "ads": [
    {
      "postId": "DE6gpw8kxlonHy6eb7L1",
      "ad": {
        "adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
        "campaignId": "d4c3b2a1-0000-4000-8000-0000000000ca",
        "adSquadId": "e5f6a7b8-0000-4000-8000-0000000000sq",
        "platform": "snapchat",
        "adStatus": "ACTIVE",
        "creativeId": "a1b2c3d4-0000-4000-8000-0000000000cr",
        "created": "2026-11-20T15:04:05.123Z",
        "review": { "status": "APPROVED", "reasons": [] },
        "snapchatSnapId": "6f1c2d3e-0000-4000-8000-00000000000a",
        "socialPostId": "6f1c2d3e-0000-4000-8000-00000000000a"
      }
    }
  ],
  "count": 1,
  "lastUpdated": "2026-11-21T09:30:00.000Z",
  "nextUpdate": "2026-11-21T09:41:00.000Z"
}
```

```json 400: No lookup parameter theme={"system"}
{
  "action": "request",
  "status": "error",
  "code": 101,
  "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
  "details": "At least one of campaignId, accountId, adId, postId, or snapchatSnapId is required."
}
```

```json 400: Not yours theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 400,
  "message": "The ad is not found or not authorized."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.