Method: advertisers.campaigns.create
नया कैंपेन बनाता है. कामयाब होने पर नया कैंपेन दिखाता है.
एचटीटीपी अनुरोध
POST https://displayvideo.googleapis.com/v2/advertisers/{campaign.advertiserId}/campaigns
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
campaign.advertiserId |
string (int64 format)
सिर्फ़ आउटपुट के लिए. कैंपेन से जुड़े विज्ञापन देने वाले व्यक्ति या कंपनी का यूनीक आईडी.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में Campaign
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब होने पर, जवाब के मुख्य हिस्से में Campaign
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
इनमें से किसी एक OAuth दायरों की ज़रूरत होती है:
https://www.googleapis.com/auth/display-video
https://www.googleapis.com/auth/display-video-mediaplanning
ज़्यादा जानकारी के लिए, OAuth 2.0 की खास जानकारी देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-06-11 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-06-11 (UTC) को अपडेट किया गया."],[[["Display & Video 360 API v2 has been sunset and this documentation details how to create a new campaign using the API."],["The API endpoint to create a new campaign is `POST https://displayvideo.googleapis.com/v2/advertisers/{campaign.advertiserId}/campaigns` and uses gRPC Transcoding syntax."],["The request body should contain a Campaign object and a successful response will return the newly created Campaign object."],["To authorize the request, you need one of the following OAuth scopes: `https://www.googleapis.com/auth/display-video` or `https://www.googleapis.com/auth/display-video-mediaplanning`."]]],["The content describes the process of creating a new campaign using the Display & Video 360 API. The `POST` request is sent to a specific URL, requiring the advertiser's ID as a path parameter. The request body contains campaign details, and a successful response returns the newly created campaign. Access requires specific OAuth scopes, either `display-video` or `display-video-mediaplanning`, and follows gRPC Transcoding syntax. The v2 has sunset.\n"]]