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

# Boost Post

> Reddit community post को promoted post के रूप में boost करें। Ayrshare campaign, ad group और ad बनाता है, ad goals, budget और custom audience targeting के साथ।

किसी मौजूदा Reddit post को boost करें। Ayrshare आपके Reddit ad account में एक campaign, एक ad group और एक ad बनाता है जो आपकी post को promote करता है।

### सीमाएँ

<ul>
  <li>Reddit ads प्रति account चालू किए जाते हैं। इन्हें सक्षम करने के लिए हमसे संपर्क करें।</li>
  <li>**केवल community posts।** आप किसी community (एक subreddit) में की गई post को boost कर सकते हैं। आपकी अपनी profile (`r/u_<username>`) पर की गई post को boost नहीं किया जा सकता और उस पर `code: 101` लौटाया जाता है।</li>
  <li>**Conversion pixel आवश्यक है।** Goal चाहे जो भी हो, Reddit इसके बिना कोई ad नहीं चलाता। अपनी pixel ID `platformOptions.reddit.pixelId` में भेजें, अन्यथा boost पर `code: 101` लौटाया जाता है। इसे Reddit Ads Events Manager में खोजें।</li>
</ul>

<ul>
  <li>Reddit को लिंक करें और ads अनुमतियाँ (`adsread`, `adsedit`, `adsconversions`) प्रदान करें। अगर Reddit लिंक नहीं है, तो `code: 156` लौटाया जाता है। अगर ads अनुमतियाँ नहीं हैं, या Reddit अब लिंक स्वीकार नहीं करता, तो `code: 420` लौटाया जाता है: Reddit को फिर से लिंक करें और अनुमतियाँ प्रदान करें।</li>
  <li>Budget आपके ad account की currency में होता है। `budget.currency` न भेजें: इसे भेजने पर `code: 101` लौटाया जाता है।</li>
  <li>Budget ad group पर रहता है। `budget.level: "campaign"` पर `code: 101` लौटाया जाता है।</li>
  <li>आपके ad account में एक funding instrument होना आवश्यक है। अगर कोई नहीं है, तो boost पर `code: 101` लौटाया जाता है: Reddit Ads में कोई payment method जोड़ें। यदि एक से अधिक हों, तो उसे `platformOptions.reddit.fundingInstrumentId` में निर्दिष्ट करें।</li>
  <li>Reddit पर `callToAction`, `attachTo`, `targeting.excludedLocations`, age targeting, `targeting.locations.regions` और `targeting.locations.cities` स्वीकार नहीं किए जाते। इन्हें भेजने पर `code: 101` लौटाया जाता है।</li>
  <li>Reddit हर नए ad की समीक्षा करता है। अनुमोदित होने तक, ad `review.status: "PENDING_APPROVAL"` दिखाता है।</li>
  <li>यदि Reddit किसी नए ad को चालू करने में विफल रहता है, तो boost फिर भी बनाया जाता है, और प्रतिक्रिया में एक `warning` शामिल होती है। आमतौर पर ad paused (`adStatus: "PAUSED"`) रहता है, और आप [status update](https://www.ayrshare.com/docs/apis/ads/reddit/put-ad-update.md) के माध्यम से इसे फिर से शुरू करते हैं। यदि Reddit यह पुष्टि नहीं कर पाता कि ad paused है, तो प्रतिक्रिया में `adStatus: "ACTIVE"` होता है और चेतावनी दी जाती है कि ad live हो सकता है और खर्च कर रहा हो सकता है। इसकी जाँच करें, और आवश्यकता होने पर status update के माध्यम से इसे pause करें।</li>
  <li>यदि `active` पर status update विफल हो जाता है और Reddit यह पुष्टि नहीं कर पाता कि ad फिर से रुक गया है, तो error में एक `warning` होती है कि ad live हो सकता है और खर्च कर रहा हो सकता है, और ad में `adStatus: "ACTIVE"` दिखता है। इसकी जाँच करें, और आवश्यकता होने पर status update के माध्यम से इसे pause करें।</li>
  <li>यदि आप Reddit की अनुमति से अधिक तेज़ी से requests भेजते हैं, तो HTTP 429 के साथ `code: 364` लौटाया जाता है। `details` में Reddit का संदेश होता है और, यदि Reddit बताता है, तो यह भी कि आप कितने seconds बाद पुनः प्रयास कर सकते हैं।</li>
  <li>Insights में खर्च आपके ad account की currency में दिखाया जाता है। `spendUsd` केवल तभी सेट होता है जब वह currency USD हो, अन्यथा यह `null` होता है।</li>
</ul>

### Ad Goals

<ul>
  <li>`brand_awareness`: post को अधिक से अधिक लोगों को दिखाएँ।</li>
  <li>`website_visits`: अपनी website पर clicks प्राप्त करें।</li>
  <li>`leads`: आपके pixel द्वारा track किए गए sign-ups या leads प्राप्त करें।</li>
  <li>`sales`: आपके pixel द्वारा track की गई purchases प्राप्त करें।</li>
</ul>

## Custom audiences को target करें

अपनी Reddit custom audiences के लोगों तक पहुँचने, या उन्हें बाहर रखने के लिए, `targeting.audiences` और `targeting.excludedAudiences` भेजें। हर एक [Audiences](https://www.ayrshare.com/docs/apis/ads/reddit/get-audiences.md) से audience IDs की सूची है: आपकी customer lists, website visitors और ad account की कोई भी अन्य audience। इन्हें [Audience बनाएँ](https://www.ayrshare.com/docs/apis/ads/reddit/create-audience.md) से या Reddit Ads Manager में बनाएँ।

```json theme={"system"}
{
  "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" } }
}
```

<ul>
  <li>`targeting.audiences`: ad इनमें से किसी भी audience के लोगों तक पहुँचता है, आपकी बाकी targeting के भीतर।</li>
  <li>`targeting.excludedAudiences`: इनमें से किसी भी audience के लोग ad कभी नहीं देखते।</li>
  <li>जो audience अभी भर रही है (`status.ready: false`), उस पर ad तब तक deliver नहीं हो सकता जब तक Reddit कम से कम 1,000 लोगों का मिलान न कर ले।</li>
  <li>`targeting.locations` अब भी आवश्यक है।</li>
  <li>हर सूची में कम से कम एक ID होनी चाहिए; खाली सूची भेजने के बजाय field को छोड़ दें। खाली सूची, या ऐसी ID जो Reddit audience ID नहीं है, कुछ भी बनाए जाने से पहले `code: 101` वाला `400` लौटाती है।</li>
</ul>

## Header Parameters

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

## Body Parameters

**idempotencyKey** `string`

इस boost अनुरोध के लिए एक unique, non-empty key। डुप्लिकेट ad बनने से बचने के लिए उसी payload को उसी key के साथ retry करें। किसी अलग payload के साथ key का पुन: उपयोग करने पर HTTP 409 लौटाया जाता है। यह key केवल इसी platform के लिए है: किसी दूसरे platform पर वही key एक अलग boost शुरू करती है। अभी भी प्रगति में चल रहा अनुरोध भी 409 लौटाता है; अनुपलब्ध reservation बिना कोई ad बनाए 503 लौटाता है।

**accountId** `string` *required*

आपके Reddit ad account की ID, उदाहरण के लिए `a2_abc123`।

**postId** `string`

Boost करने के लिए Ayrshare post ID। `postId` या `socialPostId` भेजें। यदि आप दोनों भेजते हैं, तो `postId` आपकी अपनी पोस्ट में से एक होना चाहिए, अन्यथा boost `code: 369` के साथ विफल हो जाता है।

**socialPostId** `string`

Reddit post ID, `t3_` के साथ या उसके बिना, उदाहरण के लिए `1abc27`। Post किसी community में होनी चाहिए। ऐसी ID जिसे Reddit नहीं जानता, `code: 369` लौटाती है।

**goal** `string` *required*

[ad goals](#ad-goals) में से एक।

**budget** `object` *required*

**उप-गुण**

**amount** `number` *required*

खर्च की जाने वाली राशि, अधिकतम दो दशमलव स्थानों तक।

**type** `string` (default: daily)

`daily` या `lifetime`। Lifetime budget के लिए `schedule.end` आवश्यक है।

**schedule** `object`

**उप-गुण**

**start** `string`

ISO date-time जब ad शुरू होता है। डिफ़ॉल्ट रूप से वर्तमान समय। अतीत का start देने पर ad अभी शुरू हो जाता है।

**end** `string`

ISO date-time जब ad रुकता है। इसे छोड़ दें ताकि ad तब तक चले जब तक आप इसे pause न करें। यह `start` के बाद होना चाहिए। कोई भी तारीख 10 साल से ज़्यादा आगे की नहीं हो सकती। इनमें से कोई भी नियम टूटने पर `code: 101` लौटाया जाता है।

**targeting** `object` *required*

**उप-गुण**

**locations** `object` *required*

Ad कहाँ दिखाना है: `countries` के अंतर्गत कम से कम एक upper-case, दो-अक्षर वाला country code। `"us"` जैसे lower-case codes पर `code: 101` लौटाया जाता है।

```json theme={"system"}
{ "countries": ["US", "CA"] }
```

**genders** `string`

`all`, `male` या `female`।

**interests** `array`

[रुचियाँ](https://www.ayrshare.com/docs/apis/ads/reddit/get-ad-interests.md) से प्राप्त interest IDs।

**keywords** `array`

वे search terms जिनके लिए ad दिखाना है, प्रत्येक अधिकतम 100 characters।

**audiences** `array`

जिन custom audiences तक पहुँचना है उनकी IDs, [Audiences](https://www.ayrshare.com/docs/apis/ads/reddit/get-audiences.md) से, कम से कम एक। [Custom audiences को target करें](#audiences) देखें।

**excludedAudiences** `array`

उन custom audiences की IDs जिनके लोग ad कभी नहीं देखते, कम से कम एक। [Custom audiences को target करें](#audiences) देखें।

**status** `string` (default: active)

`active` या `paused`।

**platformOptions.reddit** `object` *required*

**उप-गुण**

**pixelId** `string` *required*

आपकी Reddit conversion pixel ID।

**fundingInstrumentId** `string`

वह funding instrument जो ad का भुगतान करता है। तब आवश्यक है जब आपके ad account में एक से अधिक हों।

**communities** `array`

वे communities जिनमें ad दिखाना है, `r/` के बिना नाम से, उदाहरण के लिए `["gardening"]`। हर नाम 2 से 21 अक्षरों, अंकों या underscores का होता है। खाली सूची भेजने के बजाय इसे छोड़ दें।

**adName** `string`

Campaign, ad group और ad का नाम, अधिकतम 255 characters। डिफ़ॉल्ट रूप से आपकी company का नाम, post और समय। अगर आप `idempotencyKey` भेजते हैं, तो डिफ़ॉल्ट नाम के अंत में एक छोटा request reference भी जुड़ता है, जो उस key के लिए एक जैसा रहता है।

```bash cURL theme={"system"}
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" } }
  }'
```

```json 200: Post Boosted theme={"system"}
{
  "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"
  }
}
```

```json 400: No pixel 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": "platformOptions.reddit.pixelId is required on reddit: Reddit runs no ad without a conversion pixel. Find it in Reddit Ads Events Manager."
}
```

```json 400: Profile post 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": "Post 1abc27 is on a Reddit profile (r/u_example). reddit boosts posts in communities only."
}
```

```json 429: Rate limited theme={"system"}
{
  "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."
}
```


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