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

স্মার্ট ব্যানার ব্যবহার করতে, বিজ্ঞাপনের আকারের জন্য শুধু kGADAdSizeSmartBannerPortrait
(পোর্টেট ওরিয়েন্টেশনের জন্য) বা kGADAdSizeSmartBannerLandscape
(ল্যান্ডস্কেপ ওরিয়েন্টেশনের জন্য) নির্দিষ্ট করুন:
সুইফট
let bannerView = GAMBannerView(adSize: kGADAdSizeSmartBannerPortrait)
উদ্দেশ্য-C
GAMBannerView *bannerView = [[GAMBannerView alloc]
initWithAdSize:kGADAdSizeSmartBannerPortrait];
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-23 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-23 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eSmart Banners automatically adjust to screen width on different devices and orientations, with fixed heights of 50/32 points on iPhones (portrait/landscape) and 90 points on iPads.\u003c/p\u003e\n"],["\u003cp\u003eThey display screen-width banner ads, centering smaller image ads and filling the surrounding space.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can implement Smart Banners using \u003ccode\u003ekGADAdSizeSmartBannerPortrait\u003c/code\u003e for portrait or \u003ccode\u003ekGADAdSizeSmartBannerLandscape\u003c/code\u003e for landscape orientation.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to use adaptive banners instead of Smart Banners for better functionality.\u003c/p\u003e\n"]]],["Smart Banners display screen-width ads, adapting to any device size and orientation. They automatically detect device width and create appropriately sized ad views. On iPhones, banner heights are 50 points in portrait and 32 in landscape; on iPads, they are 90 points in both. Smaller image ads are centered, with surrounding space filled in. To implement, set the ad size to `kGADAdSizeSmartBannerPortrait` or `kGADAdSizeSmartBannerLandscape`. The newer adaptive banners are an alternative.\n"],null,["| Try the newer [adaptive banners](/ad-manager/mobile-ads-sdk/ios/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\nSmart Banners on iPhones have a height of 50 points in portrait and 32 points in\nlandscape. On iPads, height is 90 points in both portrait and landscape.\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, just specify `kGADAdSizeSmartBannerPortrait`\n(for portait orientation) or `kGADAdSizeSmartBannerLandscape` (for landscape\norientation) for the ad size: \n\nSwift \n\n```swift\nlet bannerView = GAMBannerView(adSize: kGADAdSizeSmartBannerPortrait)\n```\n\nObjective-C \n\n```objective-c\nGAMBannerView *bannerView = [[GAMBannerView alloc]\n initWithAdSize:kGADAdSizeSmartBannerPortrait];\n```"]]