다운로드한 네트워크 어댑터/SDK를 Xcode에 추가합니다. 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 project에 파일 추가를 클릭합니다.
Zucks에 필요한 프레임워크, 컴파일러 플래그 또는 링커 플래그를 포함합니다. 추가 코드를 작성할 필요가 없습니다. 미디에이션은 필요에 따라 Zucks 어댑터와 SDK를 호출하여 광고를 만듭니다.
이벤트 알림 설정
노출과 같은 광고 수명 주기 이벤트에 대한 알림을 받으려면 GADBannerViewDelegate를 구현하면 됩니다. 미디에이션을 사용하는 경우 이 대리자는 Zucks의 이벤트를 자동으로 알림받습니다. 예를 들어 모든 광고 네트워크의 노출수는 GADBannerViewDelegate의 adViewDidReceiveAd: 메서드를 통해 보고됩니다.
adNetworkClassName의 값 확인하기
선택적으로 GAMBannerView에서 adNetworkClassName 속성을 확인할 수 있습니다. 이 속성은 adViewDidReceiveAd 콜백이 호출되면 현재 배너를 가져온 광고 네트워크의 광고 네트워크 클래스 이름을 반환합니다.
Swift
funcadViewDidReceiveAd(_bannerView:GAMBannerView){print("Banner adapter class name: \(bannerView.adNetworkClassName)")}
Objective-C
-(void)adViewDidReceiveAd:(GAMBannerView*)bannerView{NSLog(@"Banner adapter class name: %@",bannerView.adNetworkClassName);}
마찬가지로 전면 광고의 경우 interstitialDidReceiveAd 내의 GAMInterstitialAd에서 adNetworkClassName 속성을 확인합니다.
Swift
funcinterstitialDidReceiveAd(_ad:GAMInterstitialAd){print("Interstitial adapter class name: \(ad.adNetworkClassName)")}
Objective-C
-(void)interstitialDidReceiveAd:(GAMInterstitialAd*)interstitial{NSLog(@"Interstitial adapter class name: %@",interstitial.adNetworkClassName);}
맞춤 이벤트를 통해 가져온 광고의 경우 GADMAdapterCustomEvents를 반환합니다.
[[["이해하기 쉬움","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-09-10(UTC)"],[[["\u003cp\u003eThis guide helps publishers integrate Zucks ads into their iOS apps using Google Mobile Ads mediation.\u003c/p\u003e\n"],["\u003cp\u003eYou need a Google Ad Manager account and an iOS app with the Google Mobile Ads SDK to get started.\u003c/p\u003e\n"],["\u003cp\u003eThe integration process involves adding the Zucks adapter and SDK to your Xcode project and configuring mediation settings.\u003c/p\u003e\n"],["\u003cp\u003eYou can receive ad lifecycle event notifications by implementing a \u003ccode\u003eGADBannerViewDelegate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadNetworkClassName\u003c/code\u003e property can be used to identify the ad network that served the current ad.\u003c/p\u003e\n"]]],["Publishers integrating Google Mobile Ads mediation with Zucks should download the Zucks adapter and SDK from the provided resources. Integrate these into their iOS app via Xcode, adding necessary frameworks and flags. No extra code is needed; mediation will use the Zucks adapter and SDK. To receive ad lifecycle event notifications, implement `GADBannerViewDelegate`. Check `adNetworkClassName` on `GAMBannerView` or `GAMInterstitialAd` to identify the ad network after ad reception.\n"],null,[]]