स्मार्ट बैनर
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
स्मार्ट बैनर, विज्ञापन यूनिट हैं. ये किसी भी स्क्रीन साइज़ पर, स्क्रीन की चौड़ाई के हिसाब से बैनर विज्ञापन दिखाते हैं. साथ ही, ये अलग-अलग डिवाइसों पर, किसी भी ओरिएंटेशन में काम करते हैं. स्मार्ट बैनर, डिवाइस के मौजूदा ओरिएंटेशन में उसकी चौड़ाई का पता लगाते हैं और उसी साइज़ का विज्ञापन व्यू बनाते हैं.
स्मार्ट बैनर में विज्ञापन की तीन ऊंचाई लागू की जाती हैं:
विज्ञापन की लंबाई |
स्क्रीन की ऊंचाई |
32 dp |
400 डीपी से कम |
50 dp |
400 dp से ज़्यादा और 720 dp से कम |
90 dp |
> 720 dp |
आम तौर पर, फ़ोन पर स्मार्ट बैनर की ऊंचाई, पोर्ट्रेट में 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-02-20 (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-02-20 (UTC) को अपडेट किया गया."],[[["Smart Banners are responsive ad units that adjust their size to fit the screen width of various devices and orientations."],["They utilize three ad heights (32 dp, 50 dp, 90 dp) based on the screen height of the device."],["Developers should use `AdSize.SmartBanner` when creating a `BannerView` to implement Smart Banners in their apps."],["Consider using adaptive banners as a newer alternative to Smart Banners for improved ad performance and flexibility."]]],["Smart Banners render screen-width ads, adapting to any device size and orientation. They detect device width and create an ad view accordingly, using heights of 32 dp (≤ 400 dp screen height), 50 dp (\u003e 400 dp and ≤ 720 dp), or 90 dp (\u003e 720 dp). Image ads are centered when they don't fill the space. To implement, specify `AdSize.SmartBanner` when creating a `BannerView`, such as `new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top)`.\n"]]