고정 크기 배너 광고
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Google 모바일 광고 SDK는 적응형 배너 광고가 필요에 맞지 않는 상황에서 고정 광고 크기를 지원합니다.
다음 표에는 표준 배너 크기가 나와 있습니다.
크기(dp)(폭x높이) |
설명 |
가용성 |
AdSize 상수 |
320x50 |
배너 |
휴대전화 및 태블릿 |
GADAdSizeBanner |
320x100 |
대형 배너 |
휴대전화 및 태블릿 |
GADAdSizeLargeBanner |
300x250 |
IAB 중간 직사각형 |
휴대전화 및 태블릿 |
GADAdSizeMediumRectangle |
468x60 |
IAB 전체 크기 배너 |
태블릿 |
GADAdSizeFullBanner |
728x90 |
IAB 리더보드 |
태블릿 |
GADAdSizeLeaderboard |
맞춤 배너 크기를 정의하려면 GADAdSizeFromCGSize
를 사용하여 크기를 설정하세요.
Swift
let adSize = adSizeFor(cgSize: CGSize(width: 250, height: 250))
Objective-C
GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(250, 250));
고정 크기 배너 광고 예
Swift
Objective-C
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-22(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-22(UTC)"],[[["\u003cp\u003eThe Google Mobile Ads SDK offers fixed ad sizes as an alternative to adaptive banners.\u003c/p\u003e\n"],["\u003cp\u003eStandard banner sizes include Banner (320x50), Large Banner (320x100), IAB medium rectangle (300x250), IAB full-size banner (468x60), and IAB leaderboard (728x90), each with specified availability for phones and/or tablets.\u003c/p\u003e\n"],["\u003cp\u003eCustom banner sizes can be defined using \u003ccode\u003eGADAdSizeFromCGSize\u003c/code\u003e by providing the desired width and height.\u003c/p\u003e\n"],["\u003cp\u003eCode examples for implementing fixed size banner ads are available in both Swift and Objective-C.\u003c/p\u003e\n"]]],["The Google Mobile Ads SDK supports fixed-size banner ads with standard sizes for phones and tablets. Available sizes include 320x50 (Banner), 320x100 (Large banner), 300x250 (IAB medium rectangle), 468x60 (IAB full-size banner), and 728x90 (IAB leaderboard), each with a corresponding `GADAdSize` constant. Custom sizes can be set using `GADAdSizeFromCGSize`, demonstrated in Swift and Objective-C examples provided in the documentation.\n"],null,["Select platform: [Android](/admob/android/banner/fixed-size \"View this page for the Android platform docs.\") [iOS](/admob/ios/banner/fixed-size \"View this page for the iOS platform docs.\") [Flutter](/admob/flutter/banner/fixed-size \"View this page for the Flutter platform docs.\")\n\n\u003cbr /\u003e\n\nThe Google Mobile Ads SDK supports fixed ad sizes for situations where adaptive\nbanners ads don't meet your needs.\n\nThe following table lists the standard banner sizes.\n\n| Size in dp (WxH) | Description | Availability | AdSize constant |\n|------------------|----------------------|--------------------|----------------------------|\n| 320x50 | Banner | Phones and tablets | `GADAdSizeBanner` |\n| 320x100 | Large banner | Phones and tablets | `GADAdSizeLargeBanner` |\n| 300x250 | IAB medium rectangle | Phones and tablets | `GADAdSizeMediumRectangle` |\n| 468x60 | IAB full-size banner | Tablets | `GADAdSizeFullBanner` |\n| 728x90 | IAB leaderboard | Tablets | `GADAdSizeLeaderboard` |\n\nTo define a custom banner size, set your size using [`GADAdSizeFromCGSize`](/admob/ios/api/reference/Functions): \n\nSwift \n\n let adSize = adSizeFor(cgSize: CGSize(width: 250, height: 250))\n\nObjective-C \n\n GADAdSize size = GADAdSizeFromCGSize(CGSizeMake(250, 250));\n\nFixed size banner ads example\n\n[Swift](//github.com/googleads/googleads-mobile-ios-examples/blob/main/Swift/advanced/APIDemo/APIDemo/AdMobBannerSizesViewController.swift)\n[Objective-C](//github.com/googleads/googleads-mobile-ios-examples/blob/main/Objective-C/advanced/APIDemo/APIDemo/AdMobBannerSizesViewController.m)"]]