हमारे प्रॉडक्ट के बारे में चर्चा करने और सुझाव/राय देने के लिए, Google विज्ञापन और मेज़रमेंट कम्यूनिटी सर्वर में Ad Manager के आधिकारिक Discord चैनल से जुड़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
IMA SDK टूल, विज्ञापनों का अनुरोध करने, विज्ञापन दिखने से जुड़े आंकड़े मेज़र करने, और विज्ञापन इंप्रेशन की रिपोर्ट करने के लिए डिपेंडेंसी लोड करता है. विज्ञापन अनुरोध करने से पहले IMA को शुरू करने से, विज्ञापन चलाने से पहले IMA की डिपेंडेंसी लोड होने में ज़्यादा समय लगता है. इस पेज पर, आपके ऐप्लिकेशन में IMA को लोड होने में लगने वाले समय को मैनेज करने का तरीका बताया गया है.
ImaSdkFactory.initialize() को कॉल करें
ImaSdkFactory.initialize()
मेथड, पहले विज्ञापन अनुरोध से पहले ही SDK टूल के संसाधनों को प्रीलोड करना शुरू कर देता है. initialize() का इस्तेमाल करने के लिए, आपके पास IMA का वर्शन 3.35.1 या इसके बाद का वर्शन होना चाहिए.
ऐप्लिकेशन शुरू होने पर या ऐप्लिकेशन के लाइफ़साइकल में जितनी जल्दी हो सके, ImaSdkFactory.initialize() को कॉल करें. ऐसा तब करें, जब आपके ऐप्लिकेशन का स्ट्रक्चर इसकी अनुमति देता हो. initialize() कॉल
इन पैरामीटर का इस्तेमाल करता है:
context: यह ऐप्लिकेशन के कॉन्टेक्स्ट का इस्तेमाल करता है. यह ऐप्लिकेशन के लाइफ़साइकल के दौरान हमेशा उपलब्ध रहता है.
settings: ImaSdkSettings ऑब्जेक्ट को उसकी सेट की गई वैल्यू के साथ पास करें. initialize() कॉल में इस्तेमाल की गई IMA सेटिंग, createAdsLoader() कॉल में इस्तेमाल की गई सेटिंग वैल्यू के बराबर होनी चाहिए. IMA SDK, इन सेटिंग का इस्तेमाल करता है. खास तौर पर, कैश मेमोरी की कुंजी के लिए भाषा की सेटिंग का इस्तेमाल करता है. हमारा सुझाव है कि initialize() तरीके के कॉल में इस्तेमाल की गई सेटिंग के लिए, टेस्ट या नकली वैल्यू का इस्तेमाल न करें. ऐसा इसलिए, क्योंकि इससे कैश मेमोरी में मौजूद डेटा नहीं मिल सकता और विज्ञापन लोड होने में ज़्यादा समय लग सकता है.
AdsLoader इंस्टेंस का फिर से इस्तेमाल करना
हमारा सुझाव है कि IMA को लोड होने में लगने वाले समय को कम करने के लिए, एक ही AdsLoader इंस्टेंस का फिर से इस्तेमाल करें. AdsLoader इंटरफ़ेस, विज्ञापन या स्ट्रीम के कई अनुरोधों को मैनेज कर सकता है.
हर अनुरोध के लिए, नया AdsLoader इंस्टेंस बनाने से बचें. नया AdsLoader इंस्टेंस बनाने में समय लगता है. साथ ही, इसके लिए डिवाइस के अतिरिक्त संसाधनों का इस्तेमाल होता है.
वीडियो चलाने से पहले ही विज्ञापन का अनुरोध करना
अगर आपके पास विज्ञापन चलाने से पहले AdsLoader इंस्टेंस का ऐक्सेस है, तो AdsLoader.requestAds() तरीके को पहले भी कॉल किया जा सकता है. इस कॉल को करने से, वीडियो शुरू होने से पहले दिखने वाले विज्ञापन लोड होने लगते हैं. जब उपयोगकर्ता कॉन्टेंट का प्लेबैक शुरू करने के लिए तैयार हो जाए, तब AdsManager.init() तरीके को कॉल करें और विज्ञापन दिखाने के लिए LOADED इवेंट का इंतज़ार करें.
[[["समझने में आसान है","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-09-05 (UTC) को अपडेट किया गया."],[],[],null,["# Improve IMA load time\n\nThe IMA SDK loads dependencies to request ads, measure viewability and\nreport ad impressions. By initializing IMA before you make an ad request, you\nmaximize the time to load IMA dependencies before ad playback. This page covers\nhow to handling IMA load times in your app.\n\nCall `ImaSdkFactory.initialize()`\n---------------------------------\n\nThe\n[`ImaSdkFactory.initialize()`](/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/ImaSdkFactory#initialize(android.content.Context,com.google.ads.interactivemedia.v3.api.ImaSdkSettings))\nmethod starts to preload SDK resources in advance of the first ad request. To\nuse `initialize()`, you need IMA version 3.35.1 or higher.\n\nCall `ImaSdkFactory.initialize()` on application startup, or as early in the\napplication's lifecycle as your app structure allows. The `initialize()` call\ntakes the following parameters:\n\n- **`context`**: Uses the application context, which is always available during the lifecycle of the application.\n- **`settings`** : Pass the an [`ImaSdkSettings`](/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/ImaSdkSettings) object with its values set. The IMA settings used in the `initialize()` call must be the same as the settings values used in the `createAdsLoader()` call. The IMA SDK utilizes these settings, particularly the language setting, for cache key. We don't recommend using test or fake values for the settings used in the `initialize()` method call, as cache misses might occur and increase ad load time.\n\nReuse the `AdsLoader` instance\n------------------------------\n\nTo improve IMA load time, we recommend you reuse the same\n[`AdsLoader`](/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdsLoader)\ninstance. The `AdsLoader` interface can handle multiple ad or stream requests.\nAvoid creating a new `AdsLoader` instance for each request. Creating a new\n`AdsLoader` instance requires a load time, and uses additional device resources.\n\nRequest ads in advance of playback\n----------------------------------\n\nIf you have access to the `AdsLoader` instance prior to starting ad playback,\nyou can also call the\n[`AdsLoader.requestAds()`](/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdsLoader#requestAds(com.google.ads.interactivemedia.v3.api.AdsRequest))\nmethod early. Making this call starts loading pre-roll ads. When the user\nis ready to start content playback, call the\n[`AdsManager.init()`](/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/BaseManager#init())\nmethod and wait for the `LOADED` event to play ads."]]