> ## 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.

# 已推廣廣告

> 依廣告、貼文、廣告帳戶或活動，取得您透過 Ayrshare 推廣的 Reddit 廣告，包含其狀態和 Reddit 的審核結果。

取得您透過[推廣貼文](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md)建立的 Reddit 廣告。如需花費和成效資料，請使用[洞察](https://www.ayrshare.com/docs/apis/ads/reddit/get-ad-insights.md)或[歷史記錄](https://www.ayrshare.com/docs/apis/ads/reddit/get-ad-history.md)。

<ul>
  <li>請傳送 `adId`、`postId`、`socialPostId`、`accountId` 或 `campaignId` 其中之一。若未傳送任何一個，將返回 `code: 101`。若傳送多個，則依以下順序採用第一個適用的參數：`postId` 或 `socialPostId`，然後是 `adId`，接著是 `accountId`，最後是 `campaignId`。</li>
  <li>`adId` 必須是此個人檔案透過 Ayrshare 推廣的廣告，否則將返回 `code: 400`。`postId`、`socialPostId` 和 `accountId` 會尋找此個人檔案的推廣，若沒有任何推廣，則返回空的 `ads` 清單。</li>
  <li>`campaignId` 和 `accountId` 會列出所讀取活動中的每一則廣告，因此當某個活動中也包含在 Ayrshare 以外建立的廣告時，結果可能包含這些廣告。若只想取得您自己的推廣，請依 `postId`、`socialPostId` 或 `adId` 查詢。</li>
  <li>`postId` 是 Ayrshare 貼文 ID。當推廣的貼文沒有 Ayrshare 貼文 ID 時，此欄位會被省略。</li>
  <li>`adId`、`accountId` 和 `campaignId` 必須是 Reddit ID（字母、數字和 `_`），否則將返回 `code: 101`。</li>
  <li>`summaryStatus` 是 Reddit 對該廣告的投放狀態。`review.status` 會重複此值，若 Reddit 拒絕了廣告，`review.reasons` 會包含 Reddit 的拒絕原因。</li>
  <li>已刪除的廣告會在 Reddit 上封存，因此會顯示為 `adStatus: "ARCHIVED"`。</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`

## 查詢參數

**adId** `string`

依 Reddit 廣告 ID 取得一則廣告，例如 `2707300000000000001`。

**postId** `string`

取得從某個 Ayrshare [貼文 ID](https://www.ayrshare.com/docs/apis/overview.md#ayrshare-post-id) 推廣的廣告。

**socialPostId** `string`

依 Reddit 貼文 ID（可包含或不包含 `t3_`，例如 `1abc27`）取得推廣該貼文的廣告。`redditPostId` 也會被視為同一個欄位。

**accountId** `string`

取得您在某個 Reddit 廣告帳戶中推廣的廣告，例如 `a2_abc123`。

**campaignId** `string`

取得某個 Reddit 活動中的廣告。

**status** `string`

只返回此狀態的廣告：`active`、`paused` 或 `archived`。省略則返回所有狀態。使用 `adId` 時，無論廣告狀態為何都可能返回該廣告，因此請檢查其 `adStatus`。使用 `postId`、`socialPostId` 或 `accountId` 時，若要尋找您已刪除的廣告，請使用 `status=deleted`，而不是 `archived`，即使該廣告顯示為 `adStatus: "ARCHIVED"`。

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

每次查詢要讀取的廣告數量。超過 300 的值會被限制為 300。這不是嚴格的上限：結果中的廣告數量可能多於 `limit`，使用 `accountId` 時尤其如此，因為它會分別讀取該帳戶的每個活動。

```bash cURL theme={"system"}
curl \
  -H "Authorization: Bearer API_KEY" \
  -X GET "https://api.ayrshare.com/api/ads/reddit/ads?adId=2707300000000000001"
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "ads": [
    {
      "postId": "DE6gpw8kxlonHy6eb721",
      "ad": {
        "adId": "2707300000000000001",
        "campaignId": "2707100000000000001",
        "adGroupId": "2707200000000000001",
        "accountId": "a2_abc123",
        "platform": "reddit",
        "adStatus": "ACTIVE",
        "summaryStatus": "PENDING_APPROVAL",
        "socialPostId": "1abc27",
        "created": "2026-11-20T14:03:11Z",
        "review": { "status": "PENDING_APPROVAL", "reasons": [] },
        "redditPostId": "1abc27"
      }
    }
  ],
  "count": 1,
  "lastUpdated": "2026-12-02T10:15:00.000Z",
  "nextUpdate": "2026-12-02T10:26:00.000Z"
}
```

```json 400: No lookup key 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 redditPostId is required."
}
```

```json 400: Ad not found 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.