Skip to content

Native ​

Script: https://koin-ad.click/native/v1/main.js

Element: <x-native>

Global object: native

Shared methods are in the Ad tag API. Native adds the type attribute. type chooses the layout. It does not follow the container size.

Install ​

Give the element a box. The ad fills that box.

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 ​

If type is missing or not in this list, the layout is compact.

typeLayoutCreative it asks for
compactShort row, icon beside the title64×64
detailLarger icon and a description120×120
cardImage across the top430×242
html
<x-native type="card"></x-native>

theme() names ​

NameSelects
nativeThe <x-native> element
cardThe whole card
coverThe image
bodyThe text block
headlineThe title row
brandThe brand line
titleThe title
subtitleThe description
actionThe action
toolsThe tool row
toolOne tool
js
native.theme(`
  card {
    background: #111;
  }
  title {
    color: white;
  }
`);

Traffic, monetized. · User guide for the Koin ad network