प्लेसमेंट प्रकार
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
adBreak()
पर किए जाने वाले सभी कॉल को प्लेसमेंट का प्रकार तय करना होगा. यह एक स्ट्रिंग होती है, जो विज्ञापन दिखाए जाने के समय से
आपके गेम की स्थिति के बारे में बताती है. क्या आपका गेम अभी
लोड हो रहा है? क्या खिलाड़ी ने गेम खेलने पर रोक लगा दी है? या क्या वे आपके गेम के किसी ऐसे पॉइंट पर पहुंच गए हैं जहां उन्हें इनाम दिया जा सकता है?
आप जिस तरह का इस्तेमाल करते हैं वह अहम होता है. इससे सीधे तौर पर दिखाए जाने वाले विज्ञापन अनुभव पर असर पड़ सकता है (पेज पर अचानक दिखने वाले विज्ञापन बनाम इनाम वाले विज्ञापन). हालांकि, एपीआई के व्यवहार पर इसके कम असर भी पड़ सकते हैं. यह ज़रूरी है कि आप सही तरह से प्लेसमेंट टाइप बताएं, ताकि एपीआई सही तरीके से काम कर सके.
प्लेसमेंट प्रकार |
ब्यौरा |
'preroll' |
आपके गेम का UI लोड नहीं हुआ है और वह आवाज़ नहीं चला रहा है. हर गेम के लोड होने पर, आपके गेम में सिर्फ़ एक 'प्रीरोल' प्लेसमेंट हो सकता है.
उदाहरण: गेम कैटलॉग में खिलाड़ी आपके गेम पर क्लिक करता है. गेम कैनवस दिखाया जाता है. इससे पहले, आपका गेम अपने यूज़र इंटरफ़ेस (यूआई) को रेंडर करता है या आवाज़ दिखाने की सुविधा चालू करता है. प्लेयर, विज्ञापन पर क्लिक कर सकता है या उसे खारिज कर सकता है. इसके बाद, गेम शुरू हो जाएगा. |
'start' |
आपका गेम लोड हो गया है, यूज़र इंटरफ़ेस (यूआई) दिख रहा है और आवाज़ चालू है, प्लेयर गेम से इंटरैक्ट कर सकता है, लेकिन गेम अभी तक शुरू नहीं हुआ है.
उदाहरण: आप कुछ समय के लिए कॉन्टेंट लोड हो रहे हैं और कोटेशन लोड कर रहे हैं..." और पेज पर अचानक दिखने वाला विज्ञापन दिख रहा है. प्लेयर, विज्ञापन पर क्लिक करके या उसे खारिज करके गेम जारी रख सकता है.
ध्यान दें: किसी start प्लेसमेंट के मुकाबले, preroll आपके लिए काफ़ी ज़्यादा काम करता है. preroll में, एपीआई के विज्ञापनों के शुरू होने और अपने-आप लोड होने का इंतज़ार किया जाता है. गेम रेंडर होने के दौरान, यूज़र इंटरफ़ेस (यूआई) रेंडर होने से पहले दिखाए जाने वाले पहले विज्ञापन के लिए, आपको start के बजाय preroll का इस्तेमाल करना चाहिए. जब आपका यूज़र इंटरफ़ेस (यूआई) रेंडर हो जाता है और खिलाड़ी गेम के साथ इंटरैक्ट कर पाता है, तो start बेहतर प्लेसमेंट होता है.
start का इस्तेमाल गेम के रीस्टार्ट होने पर भी किया जा सकता है—हर पेज लोड होने पर एक से ज़्यादा start प्लेसमेंट हो सकते हैं. अगर start प्लेसमेंट आपके गेम में सबसे पहला प्लेसमेंट है (यानी कि आप preroll प्लेसमेंट का इस्तेमाल नहीं करते, तो आपको मैन्युअल तौर पर अनुरोध करना पड़ सकता है कि विज्ञापन पहले से लोड किए गए हैं. |
'pause' |
इसके बाद, खिलाड़ी गेम को रोक देता है.
उदाहरण: खिलाड़ी गेम को रोक देता है और पेज पर अचानक दिखने वाला विज्ञापन दिखता है. विज्ञापन स्क्रीन पर तब तक बना रहता है, जब तक प्लेयर उसे खारिज न कर दे. जब वह व्यक्ति गेम लौटता है, तब भी गेम रुक जाता है. इसके बाद, खिलाड़ी गेम फिर से शुरू कर सकता है और खेलना जारी रख सकता है. |
'next' |
खिलाड़ी अगले लेवल पर जाता है.
उदाहरण: खिलाड़ी ने अभी-अभी एक लेवल पूरा किया है. वह किसी बटन पर टैप करता है और अगला लेवल..." पेज पर अचानक दिखने वाला विज्ञापन दिखाया जाता है. वे विज्ञापन को देखते हैं, उसे खारिज करते हैं, और अगले लेवल पर जाते हैं. |
'browse' |
खिलाड़ी, गेमप्ले से बाहर के विकल्पों को एक्सप्लोर करता है.
उदाहरण: खिलाड़ी अपने किरदार का स्टाइल बदलना चाहता है. वे बटन और कोट;विकल्प..." पर टैप करते हैं; तो पेज पर अचानक दिखने वाला विज्ञापन दिखाया जाता है. वे विज्ञापन देखते हैं, उसे खारिज करते हैं, और कैरेक्टर एडिटर पर जाते हैं. |
'reward' |
इन गेम में खिलाड़ी, पॉइंट के ज़रिए खेल सकता है. उसे इनाम दिया जा सकता है.
उदाहरण: खिलाड़ी की अभी-अभी मौत हो गई है और वह खत्म हो चुका है. अगर दर्शक विज्ञापन देखते हैं, तो उन्हें बोनस के तौर पर कुछ समय का मौका मिलता है. विज्ञापन प्लेसमेंट एपीआई, प्लेयर को इनाम देने के लिए आपके कोड को कॉल करता है. वे इनाम बटन पर टैप करते हैं और पूरा वीडियो विज्ञापन देखते हैं. इसके बाद, उन्हें एक नई ज़िंदगी मिलती है और वे खेलना जारी रखते हैं. |
ध्यान दें: प्लेसमेंट टाइप का यह सेट,
चालू डेवलपमेंट का एक हिस्सा है.
अगर आपके गेम में ऐसे प्लेसमेंट हैं जो इनमें से किसी भी कैटगरी में नहीं आते, तो अपने Google खाता मैनेजर को बताएं. हम समय के साथ इस कैटगरी का इस्तेमाल करेंगे.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eAll calls to \u003ccode\u003eadBreak()\u003c/code\u003e require a placement type string describing the game's state when the ad is shown (e.g., loading, paused, reward offered).\u003c/p\u003e\n"],["\u003cp\u003eThe placement type impacts the ad experience (interstitial or rewarded) and the API's behavior, so accurate specification is crucial for optimal performance.\u003c/p\u003e\n"],["\u003cp\u003ePlacement types include \u003ccode\u003epreroll\u003c/code\u003e (before UI loads), \u003ccode\u003estart\u003c/code\u003e (after UI loads), \u003ccode\u003epause\u003c/code\u003e, \u003ccode\u003enext\u003c/code\u003e, \u003ccode\u003ebrowse\u003c/code\u003e, and \u003ccode\u003ereward\u003c/code\u003e, each with specific use cases.\u003c/p\u003e\n"],["\u003cp\u003eWhile the current placement types cover common scenarios, developers with unique placements should inform their Google Account Manager for potential refinements to the categories.\u003c/p\u003e\n"]]],["The `adBreak()` function requires a placement type string, which defines the game's state when an ad appears. Placement types include `'preroll'` (game loading, before UI), `'start'` (game loaded, UI visible), `'pause'` (game paused), `'next'` (level transition), `'browse'` (exploring non-gameplay options), and `'reward'` (player offered an in-game reward for watching an ad). The selected placement directly impacts ad type and API behavior. `'preroll'` preloads ads and is preferable for the first ad.\n"],null,["# Placement types\n\nAll calls to `adBreak()` must specify a placement type. This is a string that\ndescribes the state of your game when the ad will be shown. Is your game just\nloading? Has the player paused the game play? Or have they reached a point in\nyour game where they could be offered a reward?\n\nThe precise type that you use is important. As it can directly affect the kind\nof ad experience that will be shown (an interstitial versus a rewarded ad). But\nit can also have other less visible effects on behaviour of the API. It's\nimportant that you specify the placement type correctly so the API can work\noptimally.\n\n| Placement type | Description |\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `'preroll'` | Your game has not loaded its UI and is not playing sound. There can only be one 'preroll' placement in your game for each page load. **Example:** a player clicks on your game within a game catalogue. The game canvas is displayed, and before your game renders its UI or enables sound an ad is shown. The player can click on the ad or dismiss it at which point the game will start. |\n| `'start'` | Your game has loaded, the UI is visible and sound is enabled, the player can interact with the game, but the game play has not started yet. **Example:** You display a brief loading screen \"Loading...\" and an interstitial ad is shown. The player can click on the ad or dismiss it to continue to the game. **NOTE:** A `preroll` does quite a bit more work for you than a `start` placement. `preroll` waits for the API to initialise and automatically preloads ads. You should use `preroll` instead of `start` for the very first ad that's shown while your game is loading, before the UI has rendered. `start` is a better placement once your UI has rendered and the player is able to interact with the game. `start` can also be used when the game restarts---there can be multiple `start` placements per page load. If a `start` placement is the very first placement in your game (i.e. you don't use the `preroll` placement), you may need to [manually request that ads are preloaded](/ad-placement/docs/preload-ads). |\n| `'pause'` | The player pauses the game. **Example:** the player pauses the game and an interstitial ad is shown. The ad remains on the screen until the player dismisses it. When they return the game is still paused. The player can then resume the game and keep playing. |\n| `'next'` | The player navigates to the next level. **Example:** The player has just completed a level. They tap a button \"Next level...\" an interstitial ad is shown. They view the ad, dismiss it, and proceed to the next level. |\n| `'browse'` | The player explores options outside of the gameplay. **Example:** The player wants to alter the style of their character. They tap the button \"Options...\" an interstitial ad is shown. They view the ad, dismiss it, and proceed to the character editor. |\n| `'reward'` | The player reaches a point in the game where they can be offered a reward. **Example:** The player has just died and run out of lives. They are offered a bonus life at this point if they watch an ad. The Ad Placement API calls your code to offer the reward to the player. They tap the reward button and watch all of a video ad. They then receive a new life and keep playing. |\n\n**Note**: this set of placement types is an\narea of active development.\n\nIf you have placements in your game that don't naturally fit into one of\nthese categories, let your Google Account Manager know, and we will use this\nfeedback over time to refine these categories."]]