curl -X POST https://api.ayrshare.com/api/ads/reddit/boost \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "a2_abc123",
"socialPostId": "1abc27",
"goal": "website_visits",
"budget": { "amount": 50, "type": "daily" },
"targeting": { "locations": { "countries": ["US"] } },
"platformOptions": { "reddit": { "pixelId": "YOUR_PIXEL_ID" } }
}'
{
"status": "success",
"id": "2707300000000000001",
"platform": "reddit",
"adStatus": "ACTIVE",
"budget": { "amount": 50, "type": "daily", "level": "adSet", "currency": "USD" },
"schedule": { "start": 1791892800000 },
"platformIds": {
"campaignId": "2707100000000000001",
"adGroupId": "2707200000000000001",
"adId": "2707300000000000001"
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "platformOptions.reddit.pixelId is required on reddit: Reddit runs no ad without a conversion pixel. Find it in Reddit Ads Events Manager."
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Post 1abc27 is on a Reddit profile (r/u_example). reddit boosts posts in communities only."
}
{
"action": "rate limit",
"status": "error",
"code": 364,
"message": "You are making too many requests. Please reduce the number of requests.",
"details": "Too many requests Retry in 30 seconds."
}
Reddit Ads
投稿をブースト
Reddit のコミュニティ投稿をブースト。Ayrshare がキャンペーン、広告グループ、広告を作成し、目標・予算・カスタムオーディエンスを設定。
POST
/
ads
/
reddit
/
boost
curl -X POST https://api.ayrshare.com/api/ads/reddit/boost \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "a2_abc123",
"socialPostId": "1abc27",
"goal": "website_visits",
"budget": { "amount": 50, "type": "daily" },
"targeting": { "locations": { "countries": ["US"] } },
"platformOptions": { "reddit": { "pixelId": "YOUR_PIXEL_ID" } }
}'
{
"status": "success",
"id": "2707300000000000001",
"platform": "reddit",
"adStatus": "ACTIVE",
"budget": { "amount": 50, "type": "daily", "level": "adSet", "currency": "USD" },
"schedule": { "start": 1791892800000 },
"platformIds": {
"campaignId": "2707100000000000001",
"adGroupId": "2707200000000000001",
"adId": "2707300000000000001"
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "platformOptions.reddit.pixelId is required on reddit: Reddit runs no ad without a conversion pixel. Find it in Reddit Ads Events Manager."
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Post 1abc27 is on a Reddit profile (r/u_example). reddit boosts posts in communities only."
}
{
"action": "rate limit",
"status": "error",
"code": 364,
"message": "You are making too many requests. Please reduce the number of requests.",
"details": "Too many requests Retry in 30 seconds."
}
既存のReddit投稿をブーストします。Ayrshareは、Reddit広告アカウント内に、投稿をプロモーションするキャンペーン、広告グループ、広告を作成します。
制限事項
- Reddit広告はアカウントごとに有効化されます。有効化するには、お問い合わせください。
- コミュニティ投稿のみ。 ブーストできるのはコミュニティ(subreddit)内の投稿です。自分のプロフィール(
r/u_<username>)上の投稿はブーストできず、code: 101が返されます。 - コンバージョンピクセルが必要です。 目標にかかわらず、Redditはピクセルがない広告を配信しません。ピクセルIDを
platformOptions.reddit.pixelIdで送信してください。送信しない場合、ブーストに対してcode: 101が返されます。ピクセルIDはReddit Ads Events Managerで確認できます。
- Redditを連携し、広告の権限(
adsread、adsedit、adsconversions)を付与してください。Redditが連携されていない場合はcode: 156が返されます。広告の権限が不足している場合、またはRedditが連携を受け付けなくなった場合はcode: 420が返されます。Redditを再連携し、権限を付与してください。 - 予算は広告アカウントの通貨で指定します。
budget.currencyは送信しないでください。送信するとcode: 101が返されます。 - 予算は広告グループに設定されます。
budget.level: "campaign"を指定するとcode: 101が返されます。 - 広告アカウントには支払い方法が必要です。支払い方法がない場合、ブーストに対して
code: 101が返されます。Reddit Adsで支払い方法を追加してください。複数ある場合は、platformOptions.reddit.fundingInstrumentIdで指定してください。 - Redditでは
callToAction、attachTo、targeting.excludedLocations、年齢ターゲティング、targeting.locations.regions、targeting.locations.citiesは受け付けられません。これらを送信するとcode: 101が返されます。 - Redditはすべての新しい広告を審査します。承認されるまで、広告には
review.status: "PENDING_APPROVAL"が表示されます。 - Redditが新しい広告を有効にできなかった場合でも、ブーストは作成され、レスポンスに
warningが含まれます。通常、広告は一時停止(adStatus: "PAUSED")の状態となり、ステータスの更新により再開できます。Redditが広告の一時停止を確認できない場合、レスポンスはadStatus: "ACTIVE"となり、広告が配信中で費用が発生している可能性があることを警告します。広告を確認し、必要に応じてステータスの更新により一時停止してください。 - ステータスを
activeに更新できず、Redditが広告の再停止を確認できない場合、エラーにwarningが含まれ、広告が配信中で費用が発生している可能性があることを警告します。広告はadStatus: "ACTIVE"と表示されます。広告を確認し、必要に応じてステータスの更新により一時停止してください。 - Redditが許可する頻度を超えてリクエストを送信すると、HTTP 429とともに
code: 364が返されます。detailsにはRedditのメッセージと、Redditから提示された場合は再試行できるまでの秒数が含まれます。 - インサイトでは、費用は広告アカウントの通貨で表示されます。
spendUsdはその通貨がUSDの場合にのみ設定され、それ以外の場合はnullになります。
広告の目標
brand_awareness: できるだけ多くの人に投稿を表示します。website_visits: ウェブサイトへのクリックを獲得します。leads: ピクセルで計測される登録やリードを獲得します。sales: ピクセルで計測される購入を獲得します。
カスタムオーディエンスをターゲットにする
Redditのカスタムオーディエンスに含まれる人に広告を届ける、または除外するには、targeting.audiencesとtargeting.excludedAudiencesを送信します。それぞれオーディエンスで取得したオーディエンスIDのリストです。顧客リスト、サイト訪問者、その他広告アカウント上のあらゆるオーディエンスを指定できます。オーディエンスはオーディエンスを作成またはReddit Ads Managerで作成します。
{
"accountId": "a2_abc123",
"socialPostId": "1abc27",
"goal": "website_visits",
"budget": { "amount": 20, "type": "daily" },
"targeting": {
"locations": { "countries": ["US"] },
"audiences": ["ca.129482487242828"],
"excludedAudiences": ["ca.129482487242999"]
},
"platformOptions": { "reddit": { "pixelId": "t2_pixel123" } }
}
targeting.audiences: 設定した他のターゲティングの範囲内で、これらのいずれかのオーディエンスに含まれる人に広告が届きます。targeting.excludedAudiences: これらのいずれかのオーディエンスに含まれる人には、広告が表示されません。- 作成中のオーディエンス(
status.ready: false)は、Redditが1,000人以上をマッチングするまで配信されない場合があります。 targeting.locationsは引き続き必須です。- 各リストには1つ以上のIDが必要です。空のリストを送信する代わりに、フィールドを省略してください。空のリスト、またはRedditのオーディエンスIDではないIDを送信すると、何も作成される前に
code: 101付きの400が返されます。
ヘッダーパラメータ
ボディパラメータ
このブーストリクエストの一意で空でないキー。同じキーで同じペイロードを再試行すると、重複した広告の作成を回避できます。異なるペイロードでキーを再利用すると、HTTP 409が返されます。キーはこのプラットフォームでのみ有効で、他のプラットフォームで同じキーを使うと別のブーストが作成されます。処理中のリクエストも409を返します。予約が利用できない場合は、広告を作成せずに503が返されます。
ブーストするAyrshare投稿ID。
postIdまたはsocialPostIdを送信してください。両方を送信する場合、postId は自分の投稿のいずれかである必要があります。そうでない場合、ブーストは code: 369 で失敗します。広告の目標のいずれか。
表示 子属性
表示 子属性
広告を表示する場所。
countriesの下に、大文字2文字の国コードを1つ以上指定します。"us"のような小文字のコードにはcode: 101が返されます。{ "countries": ["US", "CA"] }
興味関心で取得した興味関心のID。
広告を届けるカスタムオーディエンスのID。オーディエンスから取得し、1つ以上指定します。カスタムオーディエンスをターゲットにするを参照してください。
広告を表示しない人のカスタムオーディエンスのID。1つ以上指定します。カスタムオーディエンスをターゲットにするを参照してください。
表示 子属性
表示 子属性
curl -X POST https://api.ayrshare.com/api/ads/reddit/boost \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{
"accountId": "a2_abc123",
"socialPostId": "1abc27",
"goal": "website_visits",
"budget": { "amount": 50, "type": "daily" },
"targeting": { "locations": { "countries": ["US"] } },
"platformOptions": { "reddit": { "pixelId": "YOUR_PIXEL_ID" } }
}'
{
"status": "success",
"id": "2707300000000000001",
"platform": "reddit",
"adStatus": "ACTIVE",
"budget": { "amount": 50, "type": "daily", "level": "adSet", "currency": "USD" },
"schedule": { "start": 1791892800000 },
"platformIds": {
"campaignId": "2707100000000000001",
"adGroupId": "2707200000000000001",
"adId": "2707300000000000001"
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "platformOptions.reddit.pixelId is required on reddit: Reddit runs no ad without a conversion pixel. Find it in Reddit Ads Events Manager."
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Post 1abc27 is on a Reddit profile (r/u_example). reddit boosts posts in communities only."
}
{
"action": "rate limit",
"status": "error",
"code": 364,
"message": "You are making too many requests. Please reduce the number of requests.",
"details": "Too many requests Retry in 30 seconds."
}