인라인 적응형 배너
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
적응형 배너를 사용하면 광고 너비를 지정하여 최적의 광고 크기를 결정할
수 있습니다. 또한 적응형 배너는 기기별로
광고 크기를 최적화하여 실적을 극대화합니다. 이에 따라 실적이
향상될 수 있습니다.
인라인 적응형 배너는 앵커 적응형 배너와 비교할 때 더 크고, 더 높으며, 고정된 높이 대신 가변적인 높이를 사용합니다. 인라인 적응형 배너 높이는 가변적이므로 화면 전체를 가득 차지하거나 지정된 최대 높이까지 커질 수 있습니다.
스크롤되는 콘텐츠에 인라인 적응형 배너를 배치합니다. 예를 들면 다음과 같습니다.

시작하기 전에
계속하기 전에 다음 항목이 준비되어 있는지 확인해 주세요.
적응형 배너 구현하기
앵커 적응형 배너와 달리 인라인 어댑터 배너는 인라인 적응형 배너 크기를 사용하여 로드됩니다. 인라인 적응형 광고 크기를 만들려면 다음 단계를 완료하세요.
사용 중인 기기의 너비를 가져오세요. 화면의 전체 너비를 사용하지 않으려는 경우에는 너비를 직접 설정하세요.
GADCurrentOrientationInlineBannerAdSizeWithWidth(CGFloat width)
같은 광고 크기 클래스에 적절한 정적 메서드를 사용하여
선택한
방향에 맞는 인라인 적응형 광고 크기 객체를 가져옵니다.
Swift
// Step 1: Create an inline adaptive banner ad size. This size is used to
// request your adaptive banner. You can pass in the width of the device, or
// set your own width. This example sets a static width.
let adSize = GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(320)
// Step 2: Create banner with the inline size and set ad unit ID.
let bannerView = GADBannerView(adSize: adSize)
bannerView.adUnitID = "AD_UNIT_ID"
bannerView.rootViewController = self
// Step 3: Load an ad.
let request = Request()
bannerView.load(request)
// TODO: Insert banner view in table view or scroll view, etc.
Objective-C
// Step 1: Create an inline adaptive banner ad size. This size is used to
// request your adaptive banner. You can pass in the width of the device, or set
// your own width. This example sets a static width.
GADAdSize adSize = GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(320);
// Step 2: Create banner with the inline size and set ad unit ID.
GADBannerView bannerView = [[GADBannerView alloc] initWithAdSize:adSize];
bannerView.adUnitID = @"AD_UNIT_ID";
bannerView.rootViewController = self;
// Step 3: Load an ad.
GADRequest *request = [GADRequest request];
[bannerView loadRequest:request];
// TODO: Insert banner view in table view or scroll view, etc.
앱에서 적응형 배너를 구현하는 경우 다음 사항에 유의하세요.
- 인라인 적응형 배너 크기는 가능한 너비를 모두 사용할 때 가장 효과적으로 작동합니다. 대부분의 경우 사용 중인 기기 화면의 전체 너비 또는 배너가 게재된 웹페이지의 콘텐츠 전체 너비입니다. 광고를 게재할 뷰의 너비, 기기 너비, 상위 콘텐츠 너비, 적용되는 안전 영역을 파악해야 합니다.
인라인 적응형 배너 크기 방향 지정하기
특정 방향의 인라인 적응형 배너 광고를 미리 로드하려면 다음 메서드를 사용하세요.
앱이 세로 모드 및 가로 모드의 뷰를 모두 지원하고 현재 방향으로 적응형 배너 광고를 미리 로드하려면 GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(CGFloat width)
를 사용하세요. 이 메서드는 현재 방향으로 광고를 로드합니다.
인라인 적응형 배너 높이 제한
기본적으로 maxHeight
값 없이 인스턴스화된 인라인 적응형 배너의 maxHeight
는 기기 높이와 같습니다. 인라인 적응형 배너의 높이를 제한하려면 GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight(CGFloat width, CGFloat maxHeight)
메서드를 사용하세요.
추가 리소스
GitHub의 예
샘플 애플리케이션을 다운로드하여 인라인 적응형 배너가 어떻게 작동하는지 확인하세요.
Swift
Objective-C
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-31(UTC)
[null,null,["최종 업데이트: 2025-08-31(UTC)"],[[["\u003cp\u003eInline adaptive banners are larger and taller than anchored adaptive banners, using variable heights to maximize screen space within scrolling content.\u003c/p\u003e\n"],["\u003cp\u003eTo implement inline adaptive banners, you'll need the Google Mobile Ads SDK 8.10.0 or higher and to have completed the Banner Ads getting started guide.\u003c/p\u003e\n"],["\u003cp\u003eThese banners are created using an inline adaptive banner size, determined by the device width or a custom width, and can have a maximum height set if desired.\u003c/p\u003e\n"],["\u003cp\u003eWhen using inline adaptive banners, ensure you're using the full available width and are aware of device, parent content, and safe area dimensions for optimal placement.\u003c/p\u003e\n"],["\u003cp\u003eInline adaptive banner ads can be preloaded for specific orientations or the current orientation, and their height can be limited using designated methods.\u003c/p\u003e\n"]]],["Inline adaptive banners, which are larger and use variable heights, optimize ad size for each device and are placed in scrolling content. Implementation involves determining the ad's width and using methods like `GADCurrentOrientationInlineBannerAdSizeWithWidth` or `GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight`. To use you must first create a size object, then the banner with the size object and ad id. Lastly, load the ad. These banners can be preloaded for specific or current orientations and may have a max height.\n"],null,["Select platform: [Android](/admob/android/banner/inline-adaptive \"View this page for the Android platform docs.\") [iOS](/admob/ios/banner/inline-adaptive \"View this page for the iOS platform docs.\") [Flutter](/admob/flutter/banner/inline-adaptive \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nAdaptive banners let you specify the width of an ad to determine the optimal\nad size. Adaptive banners also maximize performance by optimizing the ad size\nfor each device. This approach results in opportunities for\nimproved performance.\n\nCompared to anchored adaptive banners, inline adaptive banners are larger,\ntaller, and use variable instead of fixed heights. Inline adaptive banners are\nof variable height, and might encompass the entire screen or a maximum height\nthat you specify.\n\nYou place inline adaptive banners in scrolling content, for example:\n\nBefore you begin\n\nBefore continuing, make sure you have the following:\n\n- Completed the getting started guide, [Banner Ads](/admob/ios/banner).\n\nImplement adaptive banners\n\nUnlike anchored adaptive banners, inline adapter banners load using an inline\nadaptive banner size. To create an inline adaptive ad size, complete the\nfollowing:\n\n1. Get the width of the device in use, or set your own width if you don't want\n to use the full width of the screen.\n\n2. Use the appropriate static methods on the ad size class, such as\n\n `GADCurrentOrientationInlineBannerAdSizeWithWidth(CGFloat width)`\n\n to get an inline adaptive ad size object for the chosen orientation.\n\n \u003cbr /\u003e\n\n Swift \n\n // Step 1: Create an inline adaptive banner ad size. This size is used to\n // request your adaptive banner. You can pass in the width of the device, or\n // set your own width. This example sets a static width.\n let adSize = GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(320)\n // Step 2: Create banner with the inline size and set ad unit ID.\n let bannerView = GADBannerView(adSize: adSize)\n bannerView.adUnitID = \"\u003cvar class=\"readonly\" translate=\"no\"\u003eAD_UNIT_ID\u003c/var\u003e\"\n bannerView.rootViewController = self\n\n // Step 3: Load an ad.\n let request = Request()\n bannerView.load(request)\n // TODO: Insert banner view in table view or scroll view, etc.\n\n Objective-C \n\n // Step 1: Create an inline adaptive banner ad size. This size is used to\n // request your adaptive banner. You can pass in the width of the device, or set\n // your own width. This example sets a static width.\n GADAdSize adSize = GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(320);\n // Step 2: Create banner with the inline size and set ad unit ID.\n GADBannerView bannerView = [[GADBannerView alloc] initWithAdSize:adSize];\n bannerView.adUnitID = @\"\u003cvar class=\"readonly\" translate=\"no\"\u003eAD_UNIT_ID\u003c/var\u003e\";\n bannerView.rootViewController = self;\n\n // Step 3: Load an ad.\n GADRequest *request = [GADRequest request];\n [bannerView loadRequest:request];\n // TODO: Insert banner view in table view or scroll view, etc.\n\n When implementing adaptive banners in your app, note these points:\n - The inline adaptive banner sizes work best when using the full available width. In most cases, this size is the full width of the device screen in use, or the full width of the banner's parent content. You must know the width of the view to place in the ad, the device width, the parent content width, and applicable safe areas.\n\n Orient inline adaptive banner size\n\n To preload an inline adaptive banner ad for a specific orientation, use the\n following methods:\n - [`GADPortraitInlineAdaptiveBannerAdSizeWithWidth(CGFloat width)`](/admob/ios/api/reference/Functions#gadportraitinlineadaptivebanneradsizewithwidth)\n\n - [`GADLandscapeInlineAdaptiveBannerAdSizeWithWidth(CGFloat width)`](/admob/ios/api/reference/Functions#gadlandscapeinlineadaptivebanneradsizewithwidth)\n\n If your app supports both portrait and landscape views, and you want to preload\n an adaptive banner ad in the current orientation, use\n\n [`GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(CGFloat width)`](/admob/ios/api/reference/Functions#gadcurrentorientationinlineadaptivebanneradsizewithwidth)\n\n This method loads an ad in the current orientation.\n\n Limit inline adaptive banner height\n\n By default, inline adaptive banners instantiated without a `maxHeight` value\n have a `maxHeight` equal to the device height. To limit the inline adaptive\n banner height, use the\n\n [`GADInlineAdaptiveBannerAdSizeWithWidthAndMaxHeight(CGFloat width, CGFloat maxHeight)`](/admob/ios/api/reference/Functions#gadinlineadaptivebanneradsizewithwidthandmaxheight)\n\n method.\n\n Additional resources\n\n Examples on GitHub\n\n Download the sample application to see inline adaptive banners in action.\n\n [Swift](//github.com/googleads/googleads-mobile-ios-examples/tree/main/Swift/advanced/InlineAdaptiveBannerExample)\n [Objective-C](//github.com/googleads/googleads-mobile-ios-examples/tree/main/Objective-C/advanced/InlineAdaptiveBannerExample)"]]