# अभियान और मीडिया बनाना

[Orbito Ads · हिन्दी · HTML](https://orbitoads.pro/hi/docs/api/create-campaigns/)

स्रोत जाँच की तिथि · 2026-11-27

### दस्तावेज़ों के विषय



[सभी दस्तावेज़](/hi/docs/) 
शुरुआत करें

- [API की शुरुआत](/hi/docs/api/)
- [कुंजियाँ और खाता अनुमतियाँ](/hi/docs/api/authentication/)
- [AI असिस्टेंट के लिए API संदर्भ](/hi/docs/api/ai-assistants/)

मूल बातें

- [API त्रुटियाँ समझना](/hi/docs/api/errors/)
- [अनुरोध और इवेंट सीमाएँ](/hi/docs/api/rate-limits/)
- [एक ही कार्रवाई दोहराना](/hi/docs/api/idempotency/)
- [कतारबद्ध कार्रवाई की निगरानी](/hi/docs/api/tasks/)
- [अभियान के पेज पढ़ना](/hi/docs/api/pagination/)

API संदर्भ

- [उपलब्ध विज्ञापन खाते](/hi/docs/api/accounts/)
- [अभियान की जानकारी देखना](/hi/docs/api/campaigns/)
- [अभियान और मीडिया बनाना](/hi/docs/api/create-campaigns/)
- [मौजूदा अभियान बदलना](/hi/docs/api/manage-campaigns/)
- [अभियान और खाते के आँकड़े](/hi/docs/api/stats/)
- [टार्गेटिंग शब्दकोश और समूह](/hi/docs/api/targeting/)

एकीकरण

- [अभियान के इवेंट प्राप्त करना](/hi/docs/api/webhooks/)
- [पुष्ट रूपांतरण भेजना](/hi/docs/api/conversions/)
- [API संस्करण और बदलाव](/hi/docs/api/changelog/)

फ़ाइलें और स्कीमा

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/hi/docs/llms.txt)
- [llms-full.txt](/hi/docs/llms-full.txt)



[सभी दस्तावेज़](/hi/docs/) 
शुरुआत करें

- [API की शुरुआत](/hi/docs/api/)
- [कुंजियाँ और खाता अनुमतियाँ](/hi/docs/api/authentication/)
- [AI असिस्टेंट के लिए API संदर्भ](/hi/docs/api/ai-assistants/)

मूल बातें

- [API त्रुटियाँ समझना](/hi/docs/api/errors/)
- [अनुरोध और इवेंट सीमाएँ](/hi/docs/api/rate-limits/)
- [एक ही कार्रवाई दोहराना](/hi/docs/api/idempotency/)
- [कतारबद्ध कार्रवाई की निगरानी](/hi/docs/api/tasks/)
- [अभियान के पेज पढ़ना](/hi/docs/api/pagination/)

API संदर्भ

- [उपलब्ध विज्ञापन खाते](/hi/docs/api/accounts/)
- [अभियान की जानकारी देखना](/hi/docs/api/campaigns/)
- [अभियान और मीडिया बनाना](/hi/docs/api/create-campaigns/)
- [मौजूदा अभियान बदलना](/hi/docs/api/manage-campaigns/)
- [अभियान और खाते के आँकड़े](/hi/docs/api/stats/)
- [टार्गेटिंग शब्दकोश और समूह](/hi/docs/api/targeting/)

एकीकरण

- [अभियान के इवेंट प्राप्त करना](/hi/docs/api/webhooks/)
- [पुष्ट रूपांतरण भेजना](/hi/docs/api/conversions/)
- [API संस्करण और बदलाव](/hi/docs/api/changelog/)

फ़ाइलें और स्कीमा

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/hi/docs/llms.txt)
- [llms-full.txt](/hi/docs/llms-full.txt)



[Orbito Ads](/hi/) [दस्तावेज़](/hi/docs/) [API](/hi/docs/api/)



एक अनुरोध एक खाते में 100 अभियान स्वीकार करता है। चैनल, बॉट, खोज या दर्शक चुनें, नई ऑपरेशन कुंजी दें और टास्क देखें। आवश्यक मीडिया पहले अपलोड करें।


[Markdown](/hi/docs/api/create-campaigns.md)



`POST /v1/campaigns` एक खाते में अभियान बनाता है। अभियान प्रबंधन की अनुमति वाली कुंजी और `Idempotency-Key` हेडर चाहिए। `202` जवाब में टास्क मिलता है। उसके पूरा होने पर अभियान दिखते हैं। [कार्य](/hi/docs/api/tasks/)



## अभियान बनाने का उदाहरण

उदाहरण

```
curl -s -X POST https://orbitoads.pro/api/v1/campaigns \
  -H "X-API-Key: $ORBITO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "account_id": 53,
    "title": "Crypto channels — notes",
    "text": "Daily market notes in 3 minutes. No noise.",
    "promote_url": "https://t.me/yourchannel",
    "cpm": 1.5,
    "budget": 20,
    "target_type": "channels",
    "channels": ["@durov", "t.me/telegram"]
  }'
```

उदाहरण

```
{ "success": true, "data": { "id": 81234, "type": "create", "status": "pending", "account_id": 53, "total": 1, "ad_ids": [] } }
```



## एक साथ कई अभियान बनाना



अभियानों को शामिल करें `campaigns` (और 100 तक) `account_id` और समूह के क्षेत्र शीर्ष स्तर पर रहते हैं और उन सभी के लिए लागू होते हैं।


उदाहरण

```
{
  "account_id": 53,
  "new_group_name": "October test",
  "campaigns": [
    { "title": "A", "text": "Variant A", "promote_url": "https://t.me/yourchannel", "cpm": 1.5, "budget": 10,
      "target_type": "channels", "channels": ["@durov"] },
    { "title": "B", "text": "Variant B", "promote_url": "https://t.me/yourchannel", "cpm": 1.5, "budget": 10,
      "target_type": "channels", "channels": ["@telegram"] }
  ]
}
```


अभियानों को एक-एक करके बनाया जाता है. यदि पहला विफल हो जाता है, तो कार्य बंद हो जाता है — उसी त्रुटि को 100 बार दोहराने के बजाय इनपुट को ठीक करें. प्रत्येक विफलता आपके क्रम में `index` के साथ `errors` में सूचीबद्ध होती है.



## फ़ील्ड


| फ़ील्ड | आवश्यक | अर्थ |
| --- | --- | --- |
| `title` | हाँ | आंतरिक नाम, पैनल में दिखाया गया है। |
| `text` | हाँ | विज्ञापन पाठ लोग देखते हैं. Telegram के अपने लंबाई और सामग्री नियम लागू होते हैं — एक अस्वीकृति कार्य के `errors` में वापस आती है. |
| `promote_url` | हाँ | क्या विज्ञापन खुलता है: `https://t.me/channel`, `t.me/bot?start=ref`, `@channel` या एक वेबसाइट URL । |
| `cpm` | हाँ | कैबिनेट की मुद्रा में 1,000 दृश्यों के लिए योगदान, 0. लक्ष्य के लिए बहुत कम → Telegram 's न्यूनतम त्रुटि में वापस आता है। |
| `budget` | हाँ | पैसे कैबिनेट के संतुलन से अभियान में स्थानांतरित किए गए हैं: `0` , या कम से कम कैबिनेट का `min_budget` ( [विज्ञापन खाता](/hi/docs/api/accounts/) ). `0` के साथ विज्ञापन बनाया जाता है लेकिन बजट जोड़ने तक चला नहीं जा सकता है। |
| `target_type` | हाँ | `channels`, `bots`, `search` या `users` – नीचे देखें। |
| `active` | नहीं | `false` इसे स्विच कर देता है डिफ़ॉल्ट `true` । |
| `daily_budget` | नहीं | दैनिक भुगतान कैप्सूल |
| `views_per_user` | नहीं | एक व्यक्ति विज्ञापन को कितनी बार देख सकता है, 1-4। |
| `media` | नहीं | [`POST /v1/media`](/hi/docs/api/create-campaigns/#doc-note-upload-media) से छवि या वीडियो टोकन। |
| `picture` | नहीं | `true` विज्ञापन में प्रोत्साहित किए गए चैनल के एवाटर को दिखाता है। |
| `button` | नहीं | Ad के नीचे बटन: `subscribe`, `view`, `read`, `learn_more`, `download`, `open`, `sign_up`, `buy`, `order`, `play`, `try`, `leave_request`. जहां विज्ञापन का खाता है `features.ad_button` है `true`. |
| `website_name` | नहीं | ब्रांड नाम एक वेबसाइट विज्ञापन के ऊपर दिखाया गया है। |
| `schedule` | नहीं | विज्ञापन केवल चुने हुए सप्ताह के दिनों और घंटों पर दिखाएं, e.g . सप्ताह के दिन 9:00-18:00. प्रारूप: [कार्यक्रम](/hi/docs/api/manage-campaigns/#doc-note-schedule) . इसके बिना विज्ञापन घड़ी के चारों ओर चलता है। |


शीर्ष स्तर केवल: `account_id` (कुछ कैबिनेट तक पहुंचने पर आवश्यक), `group_id` (एक मौजूदा [समूह](/hi/docs/api/targeting/#doc-note-groups)) या `new_group_name` (समूह बनाता है, या उस नाम के साथ एक को फिर से उपयोग करता है)।



`400 VALIDATION_ERROR` के साथ अज्ञात फ़ील्डों को अस्वीकार कर दिया जाता है और फ़ील्ड नाम `param` में होता है - एक टाइप कभी भी चुपचाप एक सेटिंग नहीं छोड़ता है।



## टार्गेटिंग



### `channels` — विशिष्ट चैनलों में विज्ञापन दिखाएं


उदाहरण

```
{ "target_type": "channels", "channels": ["@durov", "t.me/telegram"],
  "languages": ["en"], "topics": [7, 26], "exclude_topics": [2], "add_similar_channels": true }
```

| फ़ील्ड | अर्थ |
| --- | --- |
| `channels` | 1-100 सार्वजनिक चैनलों: `@name`, `name` या `t.me/name`। |
| `languages`, `topics`, `exclude_topics` | चैनल भाषा और विषय के अनुसार संकीर्ण ( [कोड](/hi/docs/api/targeting/) )। |
| `add_similar_channels` | इसके साथ ही इसी तरह के चैनलों को भी जोड़ें। |


### `bots` — बॉट में विज्ञापन दिखाएं


उदाहरण

```
{ "target_type": "bots", "bots": ["@somebot"] }
```


`bots` : 1-100 सार्वजनिक बॉट।



### `search` — Telegram खोज प्रश्नों के लिए विज्ञापन दिखाएं


उदाहरण

```
{ "target_type": "search", "search_keywords": ["crypto wallet", "bitcoin"] }
```


`search_keywords` : 1-100 वाक्यांश, 64 अक्षरों तक प्रत्येक।



### `users` - एक दर्शक को विज्ञापन दिखाएं


उदाहरण

```
{ "target_type": "users", "countries": ["DE", "AT"], "languages": ["de"],
  "topics": [26], "exclude_topics": [2], "audience_channels": ["@somechannel"] }
```

| फ़ील्ड | अर्थ |
| --- | --- |
| `countries` | ISO देश कोड। |
| `languages` | भाषा कोड |
| `topics`, `exclude_topics` | विषय ID के बारे में टिप्पणियाँ |
| `audience_channels` | जो लोग इन चैनलों को पढ़ते हैं। |


इनमें से कम से कम एक आवश्यक है. कोड: [लक्ष्य कोड](/hi/docs/api/targeting/) .



चैनलों, बोटों और कीवर्डों को Telegram के स्वयं के आईडी के लिए हल किया जाता है जब कार्य चलता है. Telegram नहीं मिलता है कि कटौती कर रहे हैं; यदि कोई नहीं मिलता, तो यह अभियान विफल हो जाता है - `No targets found: …` चैनलों और बोटों के लिए, `No valid search queries found` कीवर्ड के लिए - और कार्य के `errors` कहते हैं।



## अभियान बनाने के बाद



1. पॉल [`GET /v1/tasks/{id}`](/hi/docs/api/tasks/) से `completed` तक . `ad_ids` नए अभियानों को पकड़ता है।
2. Telegram हर नए विज्ञापन की समीक्षा करता है: यह शुरू होता है `In Review`फिर बनने के लिए `Active` (और `Declined`). A [Webhook के बारे में](/hi/docs/api/webhooks/) आपको बताते हैं कब।
3. उन्हें [अभियानों का प्रबंधन](/hi/docs/api/manage-campaigns/) के साथ बदलें, धन या रुकें।



## मीडिया अपलोड करना



`POST /v1/media` एक कैबिनेट में एक छवि या वीडियो अपलोड करता है और `POST /v1/campaigns` , `PATCH` और प्रति के लिए एक `media` टोकन वापस करता है।


उदाहरण

```
curl -s -X POST "https://orbitoads.pro/api/v1/media?account_id=53" \
  -H "X-API-Key: $ORBITO_API_KEY" \
  -F "file=@banner.jpg"
```

उदाहरण

```
{ "success": true, "data": { "media": "BQACAgIAAx0…", "account_id": 53 } }
```


- JPG, PNG, GIF, WEBP या MP4, 10 MB तक, फ़ील्ड `file` में `multipart/form-data` के रूप में भेजा गया।
- कुछ कैबिनेट केवल 16:9 छवियों को स्वीकार करते हैं कम से कम 640 पीएक्स चौड़ा; यदि एक फ़ाइल फिट नहीं है, तो Telegram का कारण `error` में वापस आता है।



## त्रुटियाँ


| कोड | जब |
| --- | --- |
| `VALIDATION_ERROR` | एक फ़ील्ड गलत प्रकार की अनुपस्थित है, अज्ञात है, या इस `target_type` - `param` में शामिल नहीं है जो कहता है। |
| `IDEMPOTENCY_KEY_REQUIRED` | `Idempotency-Key` के बारे में |
| `ACCOUNT_ID_REQUIRED` / `ACCOUNT_NOT_FOUND` | बताओ कि कौन सा कैबिनेट / यह कैबिनेट उपलब्ध नहीं है। |
| `VIEW_ONLY_ACCESS` | आपके पास इस कैबिनेट के लिए Viewer एक्सेस है। |
| `QUEUE_FULL` | 5 पहले से ही इस विज्ञापन खाते में क्यूएड बनाते हैं। |
| `CABINET_LOCKED`, `SUBSCRIPTION_REQUIRED` | वर्तमान में मैन्युअल परिवर्तन नहीं किए जा सकते हैं। |


व्यक्तिगत अभियान विफलताओं (Telegram एक पाठ, एक प्रस्ताव, एक लिंक को अस्वीकार कर दिया) अनुरोध विफल नहीं होता है - वे कार्य के `errors` में दिखाई देते हैं।



## API संदर्भ

पूर्ण विज्ञापन अनुबंध के लिए इस वर्कस्पेस का समर्पित प्रदाता क्रेडेंशियल चाहिए। क्लाइंट कॉल में अपनी Orbito API कुंजी दें। अकाउंट ऑर्डर, जारी करना और बाहरी बिलिंग अलग प्रक्रियाएँ हैं।

## POST `/api/v1/campaigns`

एक अकाउंट में एक या अधिकतम 100 अभियान बनाने का काम कतार में डालें।

| पैरामीटर | स्थान | प्रारूप | अनिवार्य |
| --- | --- | --- | --- |
| `Idempotency-Key` | header | `string` | हाँ |
| `X-API-Key` | header | `string` | हाँ |

cURL

```
curl -X POST https://orbitoads.pro/api/v1/campaigns \
  -H 'X-API-Key: YOUR_ORBITO_KEY' \
  -H 'Idempotency-Key: 2033d50c-b32b-44aa-8e40-3e236c474805' \
  -H 'Content-Type: application/json' \
  --data '{
  "title": "November club · draft",
  "text": "Explore this month’s language club schedule.",
  "promote_url": "https://school.example/club",
  "cpm": 1.25,
  "budget": 0,
  "active": false,
  "target_type": "users",
  "countries": [
    "GB"
  ],
  "languages": [
    "en"
  ],
  "account_id": 7401,
  "group_id": 516
}'
```

HTTP 202

```
{
  "success": true,
  "data": {
    "id": 96203,
    "type": "create",
    "status": "pending",
    "account_id": 7401,
    "total": 1,
    "ad_ids": []
  }
}
```

### अनुरोध की संरचना

JSON Schema

```
{
  "oneOf": [
    {
      "properties": {
        "account_id": {
          "type": "integer"
        },
        "active": {
          "default": true,
          "type": "boolean"
        },
        "add_similar_channels": {
          "type": "boolean"
        },
        "audience_channels": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "bots": {
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        },
        "budget": {
          "minimum": 0,
          "type": "number"
        },
        "button": {
          "enum": [
            "subscribe",
            "view",
            "read",
            "learn_more",
            "download",
            "open",
            "sign_up",
            "buy",
            "order",
            "play",
            "try",
            "leave_request"
          ],
          "type": "string"
        },
        "channels": {
          "items": {
            "type": "string"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        },
        "countries": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "cpm": {
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "daily_budget": {
          "minimum": 0,
          "type": "number"
        },
        "exclude_topics": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "group_id": {
          "type": "integer"
        },
        "languages": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "media": {
          "type": "string"
        },
        "new_group_name": {
          "maxLength": 100,
          "type": "string"
        },
        "picture": {
          "type": "boolean"
        },
        "promote_url": {
          "maxLength": 2048,
          "type": "string"
        },
        "schedule": {
          "additionalProperties": false,
          "properties": {
            "days": {
              "additionalProperties": false,
              "properties": {
                "fri": {
                  "items": {
                    "maximum": 23,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 24,
                  "type": "array"
                },
                "mon": {
                  "items": {
                    "maximum": 23,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 24,
                  "type": "array"
                },
                "sat": {
                  "items": {
                    "maximum": 23,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 24,
                  "type": "array"
                },
                "sun": {
                  "items": {
                    "maximum": 23,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 24,
                  "type": "array"
                },
                "thu": {
                  "items": {
                    "maximum": 23,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 24,
                  "type": "array"
                },
                "tue": {
                  "items": {
                    "maximum": 23,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 24,
                  "type": "array"
                },
                "wed": {
                  "items": {
                    "maximum": 23,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "maxItems": 24,
                  "type": "array"
                }
              },
              "type": "object"
            },
            "timezone": {
              "type": "string"
            }
          },
          "required": [
            "days",
            "timezone"
          ],
          "type": [
            "object",
            "null"
          ]
        },
        "search_keywords": {
          "items": {
            "maxLength": 64,
            "type": "string"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        },
        "target_type": {
          "enum": [
            "channels",
            "bots",
            "search",
            "users"
          ],
          "type": "string"
        },
        "text": {
          "maxLength": 4096,
          "type": "string"
        },
        "title": {
          "maxLength": 255,
          "type": "string"
        },
        "topics": {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "views_per_user": {
          "maximum": 4,
          "minimum": 1,
          "type": "integer"
        },
        "website_name": {
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "title",
        "text",
        "promote_url",
        "cpm",
        "budget",
        "target_type"
      ],
      "type": "object"
    },
    {
      "properties": {
        "account_id": {
          "type": "integer"
        },
        "campaigns": {
          "items": {
            "properties": {
              "active": {
                "default": true,
                "type": "boolean"
              },
              "add_similar_channels": {
                "type": "boolean"
              },
              "audience_channels": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "bots": {
                "items": {
                  "type": "string"
                },
                "maxItems": 100,
                "minItems": 1,
                "type": "array"
              },
              "budget": {
                "minimum": 0,
                "type": "number"
              },
              "button": {
                "enum": [
                  "subscribe",
                  "view",
                  "read",
                  "learn_more",
                  "download",
                  "open",
                  "sign_up",
                  "buy",
                  "order",
                  "play",
                  "try",
                  "leave_request"
                ],
                "type": "string"
              },
              "channels": {
                "items": {
                  "type": "string"
                },
                "maxItems": 100,
                "minItems": 1,
                "type": "array"
              },
              "countries": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "cpm": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "daily_budget": {
                "minimum": 0,
                "type": "number"
              },
              "exclude_topics": {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              "languages": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "media": {
                "type": "string"
              },
              "picture": {
                "type": "boolean"
              },
              "promote_url": {
                "maxLength": 2048,
                "type": "string"
              },
              "schedule": {
                "additionalProperties": false,
                "properties": {
                  "days": {
                    "additionalProperties": false,
                    "properties": {
                      "fri": {
                        "items": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 24,
                        "type": "array"
                      },
                      "mon": {
                        "items": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 24,
                        "type": "array"
                      },
                      "sat": {
                        "items": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 24,
                        "type": "array"
                      },
                      "sun": {
                        "items": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 24,
                        "type": "array"
                      },
                      "thu": {
                        "items": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 24,
                        "type": "array"
                      },
                      "tue": {
                        "items": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 24,
                        "type": "array"
                      },
                      "wed": {
                        "items": {
                          "maximum": 23,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "maxItems": 24,
                        "type": "array"
                      }
                    },
                    "type": "object"
                  },
                  "timezone": {
                    "type": "string"
                  }
                },
                "required": [
                  "days",
                  "timezone"
                ],
                "type": [
                  "object",
                  "null"
                ]
              },
              "search_keywords": {
                "items": {
                  "maxLength": 64,
                  "type": "string"
                },
                "maxItems": 100,
                "minItems": 1,
                "type": "array"
              },
              "target_type": {
                "enum": [
                  "channels",
                  "bots",
                  "search",
                  "users"
                ],
                "type": "string"
              },
              "text": {
                "maxLength": 4096,
                "type": "string"
              },
              "title": {
                "maxLength": 255,
                "type": "string"
              },
              "topics": {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              "views_per_user": {
                "maximum": 4,
                "minimum": 1,
                "type": "integer"
              },
              "website_name": {
                "maxLength": 255,
                "type": "string"
              }
            },
            "required": [
              "title",
              "text",
              "promote_url",
              "cpm",
              "budget",
              "target_type"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        },
        "group_id": {
          "type": "integer"
        },
        "new_group_name": {
          "maxLength": 100,
          "type": "string"
        }
      },
      "required": [
        "campaigns"
      ],
      "type": "object"
    }
  ]
}
```

अनुरोध परिणाम और उत्तर फ़ील्ड

| API | HTTP | अर्थ |
| --- | --- | --- |
| VALIDATION_ERROR | 400 | दोबारा भेजने से पहले फ़ील्ड जाँचें और अमान्य मान ठीक करें। |
| IDEMPOTENCY_KEY_REQUIRED | 400 | लिखने के अनुरोध में आवश्यक Idempotency-Key हेडर भेजें। |
| VIEW_ONLY_ACCESS | 403 | Viewer खाता देख सकता है। बदलाव के लिए खाते पर लिखने की अनुमति चाहिए। |
| QUEUE_FULL | 429 | इस खाते की कतार में पाँच निर्माण कार्य हैं। जगह खाली होने की प्रतीक्षा करें। |

[API त्रुटियाँ समझना](/hi/docs/api/errors/)

## POST `/api/v1/media`

मीडिया अपलोड कर चुने हुए अकाउंट का फ़ाइल टोकन लें।

| पैरामीटर | स्थान | प्रारूप | अनिवार्य |
| --- | --- | --- | --- |
| `account_id` | query | `integer` | — |
| `X-API-Key` | header | `string` | हाँ |
| `Idempotency-Key` | header | `string` | — |

cURL

```
curl -X POST 'https://orbitoads.pro/api/v1/media?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY' \
  -F file=@./club-cover.png
```

HTTP 200

```
{
  "success": true,
  "data": {
    "media": "example-media-718",
    "account_id": 7401
  }
}
```

### अनुरोध की संरचना

JSON Schema

```
{
  "properties": {
    "account_id": {
      "type": "integer"
    },
    "file": {
      "format": "binary",
      "type": "string"
    }
  },
  "required": [
    "file"
  ],
  "type": "object"
}
```

उदाहरण · JSON

```
{
  "account_id": 7401,
  "new_group_name": "Language club variants",
  "campaigns": [
    {
      "title": "November club · draft",
      "text": "Explore this month’s language club schedule.",
      "promote_url": "https://school.example/club",
      "cpm": 1.25,
      "budget": 0,
      "active": false,
      "target_type": "users",
      "countries": [
        "GB"
      ],
      "languages": [
        "en"
      ]
    },
    {
      "title": "Conversation club · second draft",
      "text": "Explore this month’s language club schedule.",
      "promote_url": "https://school.example/club?from=variant2",
      "cpm": 1.25,
      "budget": 0,
      "active": false,
      "target_type": "users",
      "countries": [
        "GB"
      ],
      "languages": [
        "en"
      ]
    }
  ]
}
```



## कार्यान्वयन संबंधी नोट्स

## एक अभियान या बैच

एकल अनुरोध में title, text, promote_url, cpm, budget और target_type मूल में दें। बैच में campaigns के 1–100 आइटम और मूल में साझा अकाउंट व समूह दें। बजट शून्य या कम से कम min_budget रखें।



## लक्ष्यीकरण और फ़ाइल

channels, bots, search या users चुनें। चैनल, बॉट और खोज में 1–100 प्रविष्टियाँ, हर खोज वाक्य अधिकतम 64 अक्षर। ऑडियंस को एक फ़िल्टर चाहिए। अधिकतम 10 MB JPG, PNG, GIF, WebP और MP4 अपलोड वाले अकाउंट से बँधे हैं।



## स्वीकृति और पूर्णता

बनाने, कॉपी और बल्क अनुरोध HTTP 202 तथा काम का id देते हैं। Retry-After के अनुसार GET /api/v1/tasks/{id} जाँचें। completed पर भी failed और errors पढ़ें।



## कार्रवाइयाँ और फ़ील्ड

POST /api/v1/campaigns POST /api/v1/media channels bots search users



- POST /api/v1/campaigns
- POST /api/v1/media
- channels
- bots
- search
- users



## अनुरोध का उदाहरण

GET /api/v1/targeting HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}



## स्कीमा फ़ील्ड और सीमाएँ

तालिका सार्वजनिक v1 अनुबंध पर आधारित है। फ़ील्ड और पैरामीटर नाम केस-संवेदी हैं। HTTP कोड हर ऑपरेशन में सफलता, इनपुट सत्यापन और पहुँच जाँच अलग करते हैं। लिंक किए गए विनिर्देश में पूरे अनुरोध और प्रतिक्रिया की बनावट है।



## दर्शक परीक्षण सेटिंग

अभियान स्कीमा चार टार्गेटिंग मोड अलग करता है। चैनल channels में, बॉट नाम bots में और खोज शब्द search_keywords में जाते हैं। देश, भाषा और विषय उपयोगकर्ता दर्शक समूह को बताते हैं। परीक्षण से पहले खाते की क्षमताएँ देखें।



## प्रोटोकॉल संदर्भ

| मेथड | पथ | पैरामीटर | अनुरोध सामग्री | उत्तर कोड |
| --- | --- | --- | --- | --- |
| POST | /api/v1/campaigns | Idempotency-Key | application/json · CreateSingleRequest \| CreateBatchRequest | 202, 400, 401, 403, 404, 409, 422, 429, 503 |
| POST | /api/v1/media | account_id | multipart/form-data · file, account_id | 200, 400, 401, 403, 413 |
| GET | /api/v1/targeting | — | — | 200, 401 |
| GET | /api/v1/tasks/{id} | id | — | 200, 400, 401, 404 |


स्रोत · [डेटा स्रोत](https://adsly.pro/docs/api/openapi.yaml)

## स्कीमा फ़ील्ड और सीमाएँ · अभियान और मीडिया बनाना

| फ़ील्ड | दस्तावेज़ में मान |
| --- | --- |
| target_type | channels \| bots \| search \| users |
| campaigns[] | 1 … 100 |
| active = | true |
| views_per_user | 1 … 4 |
| budget | ≥ 0 |
| Idempotency-Key | UUID |


स्रोत · [डेटा स्रोत](https://adsly.pro/docs/api/create-campaigns/)

## CampaignInput

| फ़ील्ड | फ़ील्ड प्रकार |
| --- | --- |
| title | string |
| text | string |
| promote_url | string |
| cpm | number |
| daily_budget | number · 0 … ∞ |
| views_per_user | integer · 1 … 4 |
| media | string |
| picture | boolean |
| button | subscribe \| view \| read \| learn_more \| download \| open \| sign_up \| buy \| order \| play \| try \| leave_request |
| website_name | string |
| schedule | Schedule |
| budget | number · 0 … ∞ |
| active | boolean · = true |
| target_type | channels \| bots \| search \| users |
| channels | array · [string] · 1 … 100 |
| bots | array · [string] · 1 … 100 |
| search_keywords | array · [string] · 1 … 100 |
| countries | array · [string] |
| languages | array · [string] |
| topics | array · [integer] |
| exclude_topics | array · [integer] |
| audience_channels | array · [string] |
| add_similar_channels | boolean |


स्रोत · [डेटा स्रोत](https://adsly.pro/docs/api/openapi.yaml)

## CreateBatchRequest

| फ़ील्ड | फ़ील्ड प्रकार |
| --- | --- |
| account_id | integer |
| group_id | integer |
| new_group_name | string |
| campaigns | array · [CampaignInput] · 1 … 100 |


स्रोत · [डेटा स्रोत](https://adsly.pro/docs/api/openapi.yaml)

## CreativeFields

| फ़ील्ड | फ़ील्ड प्रकार |
| --- | --- |
| title | string |
| text | string |
| promote_url | string |
| cpm | number |
| daily_budget | number · 0 … ∞ |
| views_per_user | integer · 1 … 4 |
| media | string |
| picture | boolean |
| button | subscribe \| view \| read \| learn_more \| download \| open \| sign_up \| buy \| order \| play \| try \| leave_request |
| website_name | string |
| schedule | Schedule |


स्रोत · [डेटा स्रोत](https://adsly.pro/docs/api/openapi.yaml)



## संबंधित गाइड

[उपलब्ध विज्ञापन खाते](/hi/docs/api/accounts/)[अभियान की जानकारी देखना](/hi/docs/api/campaigns/)[मौजूदा अभियान बदलना](/hi/docs/api/manage-campaigns/)[अभियान और खाते के आँकड़े](/hi/docs/api/stats/)[टार्गेटिंग शब्दकोश और समूह](/hi/docs/api/targeting/)



संदर्भ अपडेट की तारीख 2026-10-08



[पिछला विषय**अभियान की जानकारी देखना**](/hi/docs/api/campaigns/)[अगला विषय**मौजूदा अभियान बदलना**](/hi/docs/api/manage-campaigns/)

## स्रोत और डेटा

- [openapi.yaml](https://orbitoads.pro/docs/api/openapi.yaml)
- [openapi.json](https://orbitoads.pro/docs/api/openapi.json)
