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

> TikTok वीडियो को Spark Ad के रूप में promote करें। Ayrshare आपके TikTok ad अकाउंट में campaign, ad group और ad बनाता है, आपके goal, बजट और targeting के साथ।

किसी TikTok वीडियो को Spark Ad के रूप में promote करें। ad वीडियो को जैसा है वैसा ही, उसके creator के अकाउंट के तहत चलाता है, और वीडियो के likes, comments और follows बने रहते हैं। Ayrshare आपके TikTok ad अकाउंट में एक campaign, एक ad group और एक ad बनाता है।

<ul>
  <li>TikTok लिंक करें, फिर dashboard से एक TikTok ad अकाउंट कनेक्ट करें। ad उसी ad अकाउंट से चलता है।</li>
  <li>आपके लिंक किए गए TikTok अकाउंट के वीडियो के लिए आपको किसी code की ज़रूरत नहीं है। अगर वह TikTok अकाउंट TikTok में आपके ad अकाउंट से लिंक है, तो ad उसी अकाउंट के रूप में चलता है। अन्यथा Ayrshare आपके लिए Spark Ads code बनाता है।</li>
  <li>किसी दूसरे creator के वीडियो के लिए, creator TikTok ऐप में एक Spark Ads code बनाकर आपको देता है। इसे `platformOptions.tiktok.sparkAuthCode` में भेजें। code उसी वीडियो का होना चाहिए जिसे आप boost कर रहे हैं, अन्यथा उत्तर `code: 101` होता है।</li>
  <li>बजट ad group पर, आपके ad अकाउंट की मुद्रा में सेट होता है। `budget.currency` या `budget.level: "campaign"` न भेजें।</li>
  <li>सबसे छोटा बजट आपके ad अकाउंट की मुद्रा में प्रतिदिन 20 है। lifetime बजट हर निर्धारित दिन के लिए कम से कम 20 होता है।</li>
  <li>ad चलने के दौरान वीडियो creator की प्रोफ़ाइल पर बना रहता है। इसे केवल ad के रूप में दिखाने के लिए `platformOptions.tiktok.adsOnly: true` भेजें।</li>
  <li>अगर आप TikTok की अनुमति से तेज़ अनुरोध भेजते हैं, तो उत्तर `code: 364` होता है, HTTP 429 के साथ और `details` में TikTok का संदेश होता है। एक मिनट रुकें और नई `idempotencyKey` के साथ पुनः प्रयास करें।</li>
  <li>Ads, Premium Plan, Business Plan और Enterprise Plan में शामिल हैं, जैसा कि [Ads overview](https://www.ayrshare.com/docs/hi/apis/ads/overview.md) में बताया गया है। किसी दूसरे plan पर उत्तर `code: 169` होता है।</li>
  <li>अगर TikTok आपके ad अकाउंट से Ayrshare का एक्सेस हटा देता है, तो उत्तर `code: 420` होता है, HTTP 401 के साथ, और `ads` webhook `accountRevoked` भेजता है। dashboard से TikTok ad अकाउंट को फिर से कनेक्ट करें।</li>
  <li>TikTok ads हर अकाउंट के लिए अलग से चालू किए जाते हैं। इन्हें चालू करवाने के लिए हमसे संपर्क करें।</li>
</ul>

### TikTok क्या सपोर्ट करता है

| विकल्प | TikTok |
| - | - |
| Goals | `brand_awareness`, `video_views`, `traffic` |
| बजट | `daily` या `lifetime`, ad group पर |
| Targeting | देश, क्षेत्र और शहर, आयु वर्ग, लिंग, रुचियाँ |
| सपोर्ट नहीं है | `targeting.keywords`, `targeting.audiences`, `targeting.excludedLocations`, `attachTo`, मैसेजिंग बटन |
| Ad status अपडेट | `ACTIVE`, `PAUSED`, `DELETED` |

### Ad Goals

<ul>
  <li>`brand_awareness`: वीडियो को जितना संभव हो उतने लोगों को दिखाएँ।</li>
  <li>`video_views`: वीडियो के ज़्यादा views पाएँ।</li>
  <li>`traffic`: लोगों को अपनी वेबसाइट पर भेजें। link के साथ `callToAction` ज़रूरी है।</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

**accountId** `string` *required*

आपकी TikTok ad अकाउंट (advertiser) ID, उदाहरण के लिए `7100000000000000001`। यह वही ad अकाउंट होना चाहिए जिसे आपने कनेक्ट किया है।

**postId** `string`

boost करने के लिए Ayrshare post ID। `postId` या `socialPostId` भेजें।

**socialPostId** `string`

boost करने के लिए TikTok वीडियो ID।

**goal** `string` *required*

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

**budget** `object` *required*

**उप-गुण**

**amount** `number` *required*

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

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

`daily` या `lifetime`। lifetime बजट के लिए `schedule.end` ज़रूरी है।

**schedule** `object`

**उप-गुण**

**start** `string`

ad शुरू होने की ISO तारीख-समय। डिफ़ॉल्ट रूप से अभी।

**end** `string`

ad रुकने की ISO तारीख-समय। इसे छोड़ दें ताकि ad तब तक चले जब तक आप उसे pause न करें।

**targeting** `object` *required*

**उप-गुण**

**locations** `object` *required*

ad कहाँ दिखाना है: `countries` में दो अक्षरों वाले देश कोड, या `regions` या `cities` में `GET /ads/tiktok/regions?search=<term>` से मिली location IDs।

```json theme={"system"}
{ "countries": ["US"], "regions": [{ "key": "5332921" }] }
```

**ageMin** `number`

TikTok के किसी आयु वर्ग की शुरुआत: 18, 25, 35, 45 या 55।

**ageMax** `number`

TikTok के किसी आयु वर्ग का अंत: 24, 34, 44, 54, या 55 और उससे अधिक के लिए 65।

**genders** `string`

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

**interests** `array`

`GET /ads/tiktok/interests?search=<term>` से मिली interest category IDs।

**callToAction** `object`

`traffic` goal के लिए ज़रूरी।

**उप-गुण**

**type** `string` *required*

`LEARN_MORE`, `SHOP_NOW`, `SIGN_UP`, `CONTACT_US`, `APPLY_NOW`, `BOOK_NOW`, `DOWNLOAD_NOW`, `GET_QUOTE`, `ORDER_NOW`, `SUBSCRIBE`, `WATCH_NOW` या `READ_MORE`।

**link** `string`

खुलने वाला पेज। `traffic` goal के लिए ज़रूरी।

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

`active` या `paused`।

**idempotencyKey** `string`

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

**platformOptions.tiktok** `object`

**उप-गुण**

**sparkAuthCode** `string`

वह Spark Ads code जो वीडियो के creator ने इस वीडियो के लिए TikTok ऐप में बनाया है। ऐसे वीडियो के लिए ज़रूरी है जो आपके लिंक किए गए TikTok अकाउंट का नहीं है।

**adsOnly** `boolean` (default: false)

`true` वीडियो को केवल ad के रूप में दिखाता है, creator की प्रोफ़ाइल पर नहीं।

```bash cURL theme={"system"}
curl -X POST https://api.ayrshare.com/api/ads/tiktok/boost \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "7100000000000000001",
    "socialPostId": "7400000000000000001",
    "goal": "brand_awareness",
    "budget": { "amount": 20, "type": "daily" },
    "targeting": { "locations": { "countries": ["US"] } },
    "platformOptions": { "tiktok": { "sparkAuthCode": "#AbCdEf123" } }
  }'
```

```json 200: Video Boosted theme={"system"}
{
  "status": "success",
  "id": "1800000000000000003",
  "platform": "tiktok",
  "adStatus": "ACTIVE",
  "budget": { "amount": 20, "type": "daily", "level": "adSet", "currency": "USD" },
  "schedule": { "start": 1792584000000 },
  "platformIds": {
    "campaignId": "1800000000000000001",
    "adGroupId": "1800000000000000002",
    "adId": "1800000000000000003"
  }
}
```

```json 400: Code for another video 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.tiktok.sparkAuthCode is for TikTok video 7400000000000000002, not the boosted post 7400000000000000001."
}
```

```json 400: Budget too small 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": "budget.amount on tiktok is at least 20 in the ad account's currency."
}
```

```json 401: Ad account access removed theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 420,
  "message": "Ads permissions missing for this social account. Please unlink the account and relink it in the social account linking page, granting all ads permissions.",
  "details": "Relink tiktok and grant the ads permissions to use ads on tiktok."
}
```

```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. Please retry in some time."
}
```


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