স্মার্ট ব্যানার
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্ল্যাটফর্ম নির্বাচন করুন: অ্যান্ড্রয়েড আইওএস ইউনিটি স্মার্ট ব্যানার হল বিজ্ঞাপন ইউনিট যা বিভিন্ন ডিভাইস জুড়ে যেকোনও অরিয়েন্টেশনে স্ক্রীন-প্রস্থ ব্যানার বিজ্ঞাপন রেন্ডার করে। স্মার্ট ব্যানারগুলি বর্তমান অভিযোজনে ডিভাইসের প্রস্থ সনাক্ত করে এবং সেই আকারের বিজ্ঞাপন দৃশ্য তৈরি করে।
তিনটি বিজ্ঞাপন উচ্চতা স্মার্ট ব্যানারে প্রয়োগ করা হয়:
বিজ্ঞাপনের উচ্চতা | পর্দার উচ্চতা |
---|
32 ডিপি | ≤ 400 ডিপি |
50 ডিপি | > 400 dp এবং ≤ 720 dp |
90 ডিপি | > 720 ডিপি |
সাধারণত, ফোনে স্মার্ট ব্যানারের পোর্ট্রেটের উচ্চতা 50 ডিপি এবং ল্যান্ডস্কেপে 32 ডিপি। ট্যাবলেটে, উভয় অভিযোজনে উচ্চতা সাধারণত 90 ডিপি হয়।
যখন একটি ইমেজ বিজ্ঞাপন পুরো বরাদ্দ করা জায়গা নেওয়ার জন্য যথেষ্ট বড় না হয়, তখন ছবিটি কেন্দ্রীভূত হবে এবং উভয় পাশের স্থানটি পূরণ করা হবে।

XML-এ স্মার্ট ব্যানার ব্যবহার করতে, বিজ্ঞাপনের আকারের জন্য ধ্রুবক SMART_BANNER
নির্দিষ্ট করুন এবং AdView
এর প্রস্থ match_parent
এ সেট করুন। যেমন:
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="ca-app-pub-3940256099942544/6300978111">
</com.google.android.gms.ads.AdView>
প্রোগ্রামগতভাবে একটি স্মার্ট ব্যানার তৈরি করতে, বিজ্ঞাপনের আকার হিসাবে AdSize.SMART_BANNER
ব্যবহার করুন:
জাভা
AdView adView = new AdView(this);
adView.setAdSize(AdSize.SMART_BANNER);
কোটলিন
val adView = AdView(this)
adView.adSize = AdSize.SMART_BANNER
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-04 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-09-04 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 automatically determine the appropriate ad height (32 dp, 50 dp, or 90 dp) based on the screen height of the device.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to use the newer adaptive banners for better performance and user experience.\u003c/p\u003e\n"],["\u003cp\u003eSmart Banners can be easily implemented in XML by setting the \u003ccode\u003eadSize\u003c/code\u003e to \u003ccode\u003eSMART_BANNER\u003c/code\u003e and the \u003ccode\u003eAdView\u003c/code\u003e width to \u003ccode\u003ematch_parent\u003c/code\u003e, or programmatically by using \u003ccode\u003eAdSize.SMART_BANNER\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/admob/android/banner/smart \"View this page for the Android platform docs.\") [iOS](/admob/ios/banner/smart \"View this page for the iOS platform docs.\") [Unity](/admob/unity/banner/smart \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\n| Try the newer [adaptive banners](/admob/android/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 in XML, specify the constant `SMART_BANNER` for the ad\nsize and set the width of the `AdView` to `match_parent`. For example: \n\n```scdoc\n\u003ccom.google.android.gms.ads.AdView\n xmlns:ads=\"http://schemas.android.com/apk/res-auto\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"wrap_content\"\n ads:adSize=\"SMART_BANNER\"\n ads:adUnitId=\"ca-app-pub-3940256099942544/6300978111\"\u003e\n\u003c/com.google.android.gms.ads.AdView\u003e\n```\n\nTo create a Smart Banner programmatically, use `AdSize.SMART_BANNER` as the ad\nsize: \n\nJava \n\n```java\nAdView adView = new AdView(this);\nadView.setAdSize(AdSize.SMART_BANNER);\n```\n\nKotlin \n\n```kotlin\nval adView = AdView(this)\nadView.adSize = AdSize.SMART_BANNER\n```"]]