띠 배너
띠 배너 적용을 위한 연동 가이드 입니다.
1. 띠배너 삽입
띠형태의 배너 광고물로 정의한 위치에 노출됩니다.
TARGETPICK 광고 정책으로 정해져 있는 320x50, 320x100 사이즈입니다.



2. 띠배너 연동 방식
3. 이벤트 구현
4. 띠배너 광고 시작
5. 띠배너 광고 종료
6. 코드 설명
let model = ADMZBannerModel(withPublisherID: 102, withMediaID: 202, withSectionID: 804231, withBannerSize: .init(width: 414.0, height: 40.0), withKeywordParameter: “KeywordTargeting”, withOtherParameter: “BannerAdditionalParameters”, withMediaAgeLevel: .over13Age, withAppID:”appID”, withAppName: “appName”, withStoreURL: “StoreURL”, withSMS: true, withTel: true, withCalendar: true, withStorePicture: true, withInlineVideo: true, withBannerType:.Strip)
요청할 정보를 가지고있는 모델을 생성합니다. - PublisherID : 발급받은 publisherID - MediaID : 발급받은 mediaID - SectionID : 발급받은 sectionID - BannerSize : 배너 사이즈 - KeywordParameter : 키워드 파라미터 - otherParam: 기타 파라미터 - ageLvType: 사용자 연령 대분류 - Appid: 앱 ID - AppName: 앱 이름 - StoreURL: 앱스토어 URL - SMS: 문자 사용 여부 - Tel: 전화번호 사용 여부 - Calendar: 캘린더 추가 여부 - StorePicture: 스토어 이미지 사용 여부 - InlineVideo: 인라인 비디오 사용 여부 - BannerType: 배너 광고 유형(.Strip : 띠배너, .Front: 전면광고)
model.setUserInfo(withGenderType: .Male, withAge: 15, withUserID: “mezzomedia”, withEmail: “[email protected]”, withUserLocationAgree: false)
사용자 정보를 입력합니다(선택사항) - Gender: 성별 - Age: 나이 - UserID: 사용자 아이디 - UserEmail: 사용자 이메일 - UserLocationAgree: 위치정보 사용동의여부
banner?.startBanner()
광고요청을 시작합니다
banner?.setFailHandler(value: { code in }) banner?.setSuccessHandler(value: { code in }) banner?.setOtherHandler(value: { code in })
- 이벤트를 전달하는 코드입니다. FailHandler : 실패시 실패코드를 code 변수로 리턴합니다. SuccessHandler : 성공시 성공코드를 code 변수로 리턴합니다. OtherHandler : 성공 실패 외의 이벤트코드를 code 변수로 리턴합니다. (ex: 광고 선택, 로고 선택 등)
Last updated