تبلیغات بنری با اندازه ثابت
با مجموعهها، منظم بمانید
ذخیره و دستهبندی محتوا براساس اولویتهای شما.
Google Mobile Ads SDK از اندازههای ثابت تبلیغات برای موقعیتهایی پشتیبانی میکند که تبلیغات بنرهای تطبیقی نیازهای شما را برآورده نمیکنند.
جدول زیر اندازه استاندارد بنرها را فهرست می کند.
اندازه بر حسب dp (WxH) | توضیحات | در دسترس بودن | AdSize ثابت |
---|
320x50 | بنر | گوشی و تبلت | GADAdSizeBanner |
320x100 | بنر بزرگ | گوشی و تبلت | GADAdSizeLargeBanner |
300x250 | مستطیل متوسط IAB | گوشی و تبلت | GADAdSizeMediumRectangle |
468x60 | بنر سایز کامل IAB | قرص | GADAdSizeFullBanner |
728x90 | تابلوی امتیازات IAB | قرص | GADAdSizeLeaderboard |
برای تعریف اندازه بنر سفارشی، اندازه خود را با استفاده از GADAdSizeFromCGSize
تنظیم کنید:
سویفت
let adSize = GADAdSizeFromCGSize(CGSize(width: 250, height: 250))
هدف-C
GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(250, 250));
نمونه تبلیغات بنری با اندازه ثابت
Swift Objective-C
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-03-01 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-03-01 بهوقت ساعت هماهنگ جهانی."],[[["The Google Mobile Ads SDK offers fixed ad sizes as an alternative to adaptive banners."],["Standard banner sizes include Banner (320x50), Large Banner (320x100), IAB medium rectangle (300x250), IAB full-size banner (468x60), and IAB leaderboard (728x90), each with specified availability for phones and/or tablets."],["Custom banner sizes can be defined using `GADAdSizeFromCGSize` by providing the desired width and height."],["Code examples for implementing fixed size banner ads are available in both Swift and Objective-C."]]],["The Google Mobile Ads SDK supports fixed-size banner ads with standard sizes for phones and tablets. Available sizes include 320x50 (Banner), 320x100 (Large banner), 300x250 (IAB medium rectangle), 468x60 (IAB full-size banner), and 728x90 (IAB leaderboard), each with a corresponding `GADAdSize` constant. Custom sizes can be set using `GADAdSizeFromCGSize`, demonstrated in Swift and Objective-C examples provided in the documentation.\n"]]