विज्ञापन के लिए ब्रेक का तरीका
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
break(
o: {
type: '<type>',
name: '<name>',
beforeAd: () => {},
afterAd: () => {},
beforeReward: (showAdFn) => {},
adDismissed: () => {},
adViewed: () => {},
adBreakDone: (placementInfo) => {},
}
): void;
आपके गेम में पेज पर अचानक दिखने वाले विज्ञापन और इनाम वाले विज्ञापन दिखाता है.
यह तरीका, विज्ञापन प्लेसमेंट एपीआई से adBreak
को रैप करता है और उसी पैरामीटर के साथ काम करता है.
o
एक ऐसा ऑब्जेक्ट होना चाहिए जिसमें adBreak
के पैरामीटर शामिल हों.
ज़्यादा जानकारी के लिए, Ad Placement API का दस्तावेज़ देखें
नोट
beforeReward
, adDismissed
, adViewed
जैसे पैरामीटर सिर्फ़ इनाम वाले विज्ञापनों के लिए हैं.
आपके गेम में adsbygoogle.js को इंजेक्ट नहीं किया जाना चाहिए या सीधे तौर पर Ad Placement API का इस्तेमाल नहीं किया जाना चाहिए.
ज़रूरी शर्तें
कमाई करने से जुड़ी ज़रूरी शर्तें देखें.
उदाहरण
लेवल के बीच में अचानक दिखने वाला (इंटरस्टीशियल) विज्ञापन:
GameSnacks.ad.break({type: 'next', ...});
इनाम वाला विज्ञापन:
GameSnacks.ad.break({type: 'reward', ...});
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-09 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-09 (UTC) को अपडेट किया गया."],[[["`GameSnacks.ad.break()` is used to integrate interstitial and rewarded ads into your game, utilizing the Ad Placement API."],["This method accepts an object with parameters specifying the ad type and related callbacks for various ad events like display, dismissal, and reward."],["Direct usage of the Ad Placement API or manual injection of adbygoogle.js is discouraged; GameSnacks handles these aspects."],["Implementing ads requires adherence to the GameSnacks monetization requirements to ensure proper integration and functionality."],["Examples demonstrate using `GameSnacks.ad.break()` for displaying ads between levels (interstitial) and offering rewarded ads."]]],[]]