> ## 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`にその理由が入ります。</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で1件の広告を取得します。例: `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`で削除した広告を検索するには、`adStatus: "ARCHIVED"`と表示される場合でも、`archived`ではなく`status=deleted`を指定してください。

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