Skip to content

네이티브 ​

스크립트: https://koin-ad.click/native/v1/main.js

요소: <x-native>

전역 객체: native

공통 메서드는 광고 태그 API에 있습니다. 네이티브는 type 특성을 더합니다. type이 레이아웃을 고릅니다. 컨테이너 크기를 따르지 않습니다.

설치 ​

요소에 상자를 주세요. 광고가 그 상자를 채웁니다.

html
<div style="width: 360px; height: 120px">
  <script
    async
    src="https://koin-ad.click/native/v1/main.js?id=UNIT_ID"
  ></script>
  <x-native type="detail"></x-native>
</div>

type ​

type이 없거나 이 목록에 없으면 레이아웃은 compact입니다.

type레이아웃요청하는 소재
compact짧은 줄. 아이콘은 제목 옆64×64
detail더 큰 아이콘과 설명120×120
card이미지가 위쪽을 가로지름430×242
html
<x-native type="card"></x-native>

theme() 이름 ​

이름선택 대상
native<x-native> 요소
card카드 전체
cover이미지
body글 영역
headline제목 줄
brand브랜드 줄
title제목
subtitle설명
action동작
tools도구 줄
tool도구 하나
js
native.theme(`
  card {
    background: #111;
  }
  title {
    color: white;
  }
`);

트래픽을 화폐로. · Koin 광고 네트워크 사용자 가이드