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

अभियान के पेज पढ़ना

खाली cursor से शुरू करें। फ़िल्टर बदले बिना meta.next_cursor को null आने तक इस्तेमाल करें। एक पेज में अधिकतम 500 अभियान हैं।

Markdown

केवल GET /v1/campaigns की सूची में पृष्ठांकन होता है। इसके दो तरीके हैं।

कर्सर आधारित पेजिनेशन

पहले अनुरोध में cursor= खाली भेजें। उसके बाद meta.next_cursor के मान से आगे बढ़ें, जब तक null न मिले।

उदाहरण
curl -s "https://orbitoads.pro/api/v1/campaigns?limit=500&cursor=" -H "X-API-Key: $ORBITO_API_KEY"
उदाहरण
{
  "success": true,
  "data": [ { "ad_id": 90412, "account_id": 53, "…": "…" } ],
  "meta": { "limit": 500, "cursor": null, "next_cursor": "eyJhIjo1MywiaSI6OTAzMTB9", "hasMore": true }
}
उदाहरण
def all_campaigns():
    cursor = ""
    while True:
        r = requests.get("https://orbitoads.pro/api/v1/campaigns",
                         params={"limit": 500, "cursor": cursor},
                         headers={"X-API-Key": API_KEY}, timeout=60).json()
        yield from r["data"]
        cursor = r["meta"]["next_cursor"]
        if not cursor:
            break
  • क्यूसर को अंधेरे के रूप में व्यवहार करें. यह केवल एक ही फ़िल्टर के साथ वैध है.
  • आदेश निश्चित है (कैबिनेट, फिर नवीनतम ad_id पहले), इसलिए पृष्ठ स्थिर रहते हैं जबकि अभियानों को जोड़ा जाता है।
  • कोई ऊपरी सीमा नहीं - यह है कि आप 100,000 अभियानों के साथ एक कैबिनेट पढ़ते हैं।
  • फ़िल्टर bot_username, promote_domain और type हमेशा क्यूसर मोड का उपयोग करते हैं।
  • पाठ्यक्रम मोड कुछ भारी फ़ील्ड छोड़ देता है (टर्मिंग सारांश, मीडिया, अंतिम कार्रवाई) एक अभियान के पूर्ण रिकॉर्ड के लिए GET /v1/campaigns/{ad_id} का उपयोग करें।

छोटे खातों के लिए ऑफ़सेट पेजिनेशन

cursor के बिना, limit और offset के साथ अंतिम बिंदु पृष्ठों को वर्गीकृत किया जा सकता है ( sortBy, sortOrder ). यह अधिकतम 500 विज्ञापनों के लिए प्रति अभियान पर पढ़ता है : पिछले कि meta.truncated true और meta.next_step आपको क्यूसर मोड में स्विच करने के लिए कहता है।

उदाहरण
"meta": { "total": 1240, "limit": 100, "offset": 0, "hasMore": true, "truncated": true,
          "next_step": "Use ?cursor= for full traversal beyond 500 campaigns per cabinet" }

पृष्ठ का आकार

limit से प्रति पृष्ठ 1–500 परिणाम माँग सकते हैं। डिफ़ॉल्ट 100 है।

API संदर्भ

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

उदाहरण · cURL
curl -X GET 'https://orbitoads.pro/api/v1/campaigns?account_id=7401&status=Active%2COn+Hold&limit=25&cursor=' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
उदाहरण · cURL
curl -X GET 'https://orbitoads.pro/api/v1/campaigns?account_id=7401&status=Active%2COn+Hold&limit=25&cursor=OPAQUE_NEXT_CURSOR' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'

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

बड़ी सूची पढ़ना

GET /api/v1/campaigns में cursor= और फ़िल्टर दें। अगली बार वही फ़िल्टर और ज्यों का त्यों meta.next_cursor दें। null पर रुकें। limit 1–500, डिफ़ॉल्ट 100 है।

क्रम और ऑफ़सेट सीमा

कर्सर अकाउंट और घटते ad_id से क्रम बनाता है। bot_username, promote_domain, type यह मोड चुनते हैं। ऑफ़सेट में sortBy, sortOrder और प्रति अकाउंट 500 अभियान तक हैं। meta.truncated पर कर्सर लें।

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

GET /api/v1/campaigns cursor meta.next_cursor limit offset

  • GET /api/v1/campaigns
  • cursor
  • meta.next_cursor
  • limit
  • offset

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

GET /api/v1/campaigns?limit=500&cursor= HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}

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

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

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

मेथडपथपैरामीटरअनुरोध सामग्रीउत्तर कोड
GET/api/v1/campaignsaccount_id, status, title, bot_username, promote_domain, promote_domain_mode, type, limit, cursor, offset, sortBy, sortOrder—200, 400, 401, 404, 429

स्रोत · डेटा स्रोत

स्कीमा फ़ील्ड और सीमाएँ · अभियान के पेज पढ़ना

फ़ील्डदस्तावेज़ में मान
limit1 … 500
limit =100
cursorstring
meta.next_cursorstring | null
sortBy =date
sortOrder =DESC

स्रोत · डेटा स्रोत

CampaignListItem

फ़ील्डफ़ील्ड प्रकार
ad_idinteger
account_idinteger
titlestring
textstring | null
statusCampaignStatus
tme_pathstring | null
promote_urlstring | null
viewsinteger
opensinteger
clicksinteger
actionsinteger
spentMoney
budgetMoney
cpmMoney
cpcMoney
cpaMoney
ctrstring | null
cvrstring | null
datestring | null
group_idinteger | null
status_changed_atstring | null · date-time

स्रोत · डेटा स्रोत

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

Pro Panel
Pro Panel