स्मार्ट बैनर
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
प्लैटफ़ॉर्म चुनें:
Android
iOS
Unity
स्मार्ट बैनर, विज्ञापन यूनिट होते हैं. ये अलग-अलग डिवाइसों पर, स्क्रीन की चौड़ाई के हिसाब से बैनर विज्ञापन रेंडर करते हैं. ये विज्ञापन, स्क्रीन के किसी भी साइज़ और ओरिएंटेशन में दिख सकते हैं. स्मार्ट बैनर, डिवाइस की मौजूदा ओरिएंटेशन के हिसाब से उसकी चौड़ाई का पता लगाते हैं. इसके बाद, उस साइज़ का विज्ञापन व्यू बनाते हैं.
स्मार्ट बैनर में, विज्ञापन की तीन तरह की ऊंचाई लागू की जाती हैं:
विज्ञापन की लंबाई |
स्क्रीन की ऊंचाई |
32 डीपी |
≤ 400 डीपी |
50 डीपी |
> 400 dp और ≤ 720 dp |
90 डीपी |
> 720 डीपी |
आम तौर पर, फ़ोन पर स्मार्ट बैनर की ऊंचाई पोर्ट्रेट मोड में 50 dp और लैंडस्केप मोड में 32 dp होती है. टैबलेट पर, दोनों ओरिएंटेशन में ऊंचाई आम तौर पर 90 डीपी होती है.
अगर इमेज वाला कोई विज्ञापन, तय किए गए पूरे स्पेस को नहीं भरता है, तो इमेज को बीच में रखा जाएगा और दोनों तरफ़ की जगह को भर दिया जाएगा.

स्मार्ट बैनर का इस्तेमाल करने के लिए, BannerView
बनाते समय विज्ञापन के साइज़ के लिए AdSize.SmartBanner
तय करें. उदाहरण के लिए:
// Create a Smart Banner at the top of the screen.
BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eSmart Banners are responsive ad units that adjust their size to fit the width of the device screen across various devices and orientations.\u003c/p\u003e\n"],["\u003cp\u003eThey utilize three ad heights (32 dp, 50 dp, 90 dp) based on the screen height to ensure optimal display.\u003c/p\u003e\n"],["\u003cp\u003eOn phones, Smart Banners typically have a height of 50 dp in portrait and 32 dp in landscape, while on tablets, they are usually 90 dp in both orientations.\u003c/p\u003e\n"],["\u003cp\u003eWhen using Smart Banners, developers need to specify \u003ccode\u003eAdSize.SmartBanner\u003c/code\u003e when creating a \u003ccode\u003eBannerView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eConsider using adaptive banners as a newer alternative for enhanced ad experiences.\u003c/p\u003e\n"]]],[],null,["# Smart Banners\n\nSelect platform: [Android](/ad-manager/mobile-ads-sdk/android/banner/smart \"View this page for the Android platform docs.\") [iOS](/ad-manager/mobile-ads-sdk/ios/banner/smart \"View this page for the iOS platform docs.\") [Unity](/ad-manager/mobile-ads-sdk/unity/banner/smart \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\n| **Tip:** Try the newer [adaptive banners](/ad-manager/mobile-ads-sdk/unity/banner/anchored-adaptive) instead.\n\nSmart Banners are ad units that render screen-width banner ads on any screen\nsize across different devices in either orientation. Smart Banners detect the\nwidth of the device in its current orientation and create the ad view that size.\n\nThree ad heights are implemented in smart banners:\n\n| Ad height | Screen height |\n|-----------|------------------------|\n| 32 dp | ≤ 400 dp |\n| 50 dp | \\\u003e 400 dp and ≤ 720 dp |\n| 90 dp | \\\u003e 720 dp |\n\nTypically, Smart Banners on phones have a height of 50 dp in portrait and 32 dp\nin landscape. On tablets, height is normally 90 dp in both orientations.\n\nWhen an image ad isn't large enough to take up the entire allotted space, the\nimage will be centered, and the space on either side will be filled in.\n\nTo use Smart Banners, specify the `AdSize.SmartBanner` for the ad size when\ncreating a `BannerView`. For example: \n\n // Create a Smart Banner at the top of the screen.\n BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);"]]