스마트 배너
스마트 배너는 다양한 기기에서 화면 크기와 방향에 관계없이 화면 너비의 배너 광고를 렌더링하는 광고 단위입니다. 스마트 배너는 현재 방향에서 기기의 너비를 감지하여 그 크기에 맞춰 광고 뷰를 만듭니다.
일반적으로 iPhone에 표시되는 스마트 배너는 세로 50포인트, 가로 32포인트입니다. iPad의 경우 세로와 가로 모두 높이가 90포인트입니다.
이미지 광고가 할당된 전체 공간을 차지할 만큼 크지 않은 경우에는 이미지가 중앙에 배치되고 양쪽 공간이 채워집니다.

스마트 배너를 사용하려면 광고 크기에 kGADAdSizeSmartBannerPortrait
(세로 방향) 또는 kGADAdSizeSmartBannerLandscape
(가로 방향)를 지정하기만 하면 됩니다.
Swift
let bannerView = GAMBannerView(adSize: kGADAdSizeSmartBannerPortrait)
Objective-C
GAMBannerView *bannerView = [[GAMBannerView alloc]
initWithAdSize:kGADAdSizeSmartBannerPortrait];
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-02-20(UTC)
[null,null,["최종 업데이트: 2025-02-20(UTC)"],[[["Smart 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."],["They display screen-width banner ads, centering smaller image ads and filling the surrounding space."],["Developers can implement Smart Banners using `kGADAdSizeSmartBannerPortrait` for portrait or `kGADAdSizeSmartBannerLandscape` for landscape orientation."],["It is recommended to use adaptive banners instead of Smart Banners for better functionality."]]],["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"]]