스마트 배너
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
스마트 배너는 다양한 기기에서 화면 크기와 방향에 관계없이
화면 너비에 꽉 차는 배너 광고를 렌더링하는 광고 단위입니다. 스마트 배너를 이용하면
사용 중인 기기의 방향에서 기기의 너비를 감지하여 그 크기에 맞춰 광고 뷰를 만들 수 있습니다.
일반적으로 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-08-25(UTC)
[null,null,["최종 업데이트: 2025-08-25(UTC)"],[],["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,[]]