스마트 배너
스마트 배너는 다양한 기기에서 화면 크기와 방향에 관계없이 화면 너비의 배너 광고를 렌더링하는 광고 단위입니다. 스마트 배너는 현재 방향에서 기기의 너비를 감지하여 그 크기에 맞춰 광고 뷰를 만듭니다.
스마트 배너에서는 3가지 광고 높이가 구현됩니다.
광고 높이 |
화면 높이 |
32 dp |
≤ 400 dp |
50 dp |
> 400dp 및 ≤ 720dp |
90 dp |
> 720 dp |
일반적으로 휴대전화의 스마트 배너는 세로 50dp, 가로 32dp입니다. 태블릿의 경우 일반적으로 높이는 두 방향 모두에서 90dp입니다.
이미지 광고가 할당된 전체 공간을 차지할 만큼 크지 않은 경우에는 이미지가 중앙에 배치되고 양쪽 공간이 채워집니다.
![](https://developers.google.cn/static/admob/images/smartfill.png?authuser=0&hl=ko)
스마트 배너를 사용하려면 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 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-12-02(UTC)
[null,null,["최종 업데이트: 2024-12-02(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."]]],[]]