스마트 배너
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
스마트 배너는 다양한 기기에서 화면 크기 및 방향과 관계없이 화면 폭에 꽉 차는 배너 광고를 렌더링하는 광고 단위입니다. 스마트 배너를 이용하면 사용 중인 기기의 방향에서 기기의 너비를 감지하여 그 크기에 맞춰 광고를 만들 수 있습니다.
스마트 배너에서는 3가지 광고 높이가 구현됩니다.
광고 높이 |
화면 높이 |
32dp |
≤ 400dp |
50dp |
> 400dp 및 ≤ 720dp |
90dp |
> 720dp |
일반적으로 휴대전화에 표시되는 스마트 배너의 높이는 세로 모드에서 50dp, 가로 모드에서 32dp입니다. 태블릿의 경우 일반적으로 높이는 두 방향 모두에서 90dp입니다.
이미지 광고가 할당된 전체 공간을 차지할 만큼 크지 않은 경우에는
이미지가 중앙에 배치되고 양쪽 공간이 채워집니다.

XML에서 스마트 배너를 사용하려면 광고 크기에 SMART_BANNER
상수를 지정하고
AdView
의 너비를 match_parent
로 설정하세요. 예를 들면 다음과 같습니다.
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="ca-app-pub-3940256099942544/6300978111">
</com.google.android.gms.ads.AdView>
스마트 배너를 프로그래매틱 방식으로 만들려면 AdSize.SMART_BANNER
를 광고 크기로
사용하세요.
Java
AdView adView = new AdView(this);
adView.setAdSize(AdSize.SMART_BANNER);
Kotlin
val adView = AdView(this)
adView.adSize = AdSize.SMART_BANNER
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-25(UTC)
[[["이해하기 쉬움","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-08-25(UTC)"],[[["\u003cp\u003eSmart Banners are responsive ad units that adjust their size to fit the width of the device screen across various devices and orientations.\u003c/p\u003e\n"],["\u003cp\u003eThey automatically determine the appropriate ad height (32 dp, 50 dp, or 90 dp) based on the screen height of the device.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to use the newer adaptive banners for better performance and user experience.\u003c/p\u003e\n"],["\u003cp\u003eSmart Banners can be easily implemented in XML by setting the \u003ccode\u003eadSize\u003c/code\u003e to \u003ccode\u003eSMART_BANNER\u003c/code\u003e and the \u003ccode\u003eAdView\u003c/code\u003e width to \u003ccode\u003ematch_parent\u003c/code\u003e, or programmatically by using \u003ccode\u003eAdSize.SMART_BANNER\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/admob/android/banner/smart \"View this page for the Android platform docs.\") [iOS](/admob/ios/banner/smart \"View this page for the iOS platform docs.\") [Unity](/admob/unity/banner/smart \"View this page for the Unity platform docs.\")\n\n\u003cbr /\u003e\n\n| Try the newer [adaptive banners](/admob/android/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\nThree ad heights are implemented in smart banners:\n\n| Ad height | Screen height |\n|-----------|------------------------|\n| 32 dp | ≤ 400 dp |\n| 50 dp | \\\u003e 400 dp and ≤ 720 dp |\n| 90 dp | \\\u003e 720 dp |\n\nTypically, Smart Banners on phones have a height of 50 dp in portrait and 32 dp\nin landscape. On tablets, height is normally 90 dp in both orientations.\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 in XML, specify the constant `SMART_BANNER` for the ad\nsize and set the width of the `AdView` to `match_parent`. For example: \n\n```scdoc\n\u003ccom.google.android.gms.ads.AdView\n xmlns:ads=\"http://schemas.android.com/apk/res-auto\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"wrap_content\"\n ads:adSize=\"SMART_BANNER\"\n ads:adUnitId=\"ca-app-pub-3940256099942544/6300978111\"\u003e\n\u003c/com.google.android.gms.ads.AdView\u003e\n```\n\nTo create a Smart Banner programmatically, use `AdSize.SMART_BANNER` as the ad\nsize: \n\nJava \n\n```java\nAdView adView = new AdView(this);\nadView.setAdSize(AdSize.SMART_BANNER);\n```\n\nKotlin \n\n```kotlin\nval adView = AdView(this)\nadView.adSize = AdSize.SMART_BANNER\n```"]]