> For the complete documentation index, see [llms.txt](https://mobkoi.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mobkoi.gitbook.io/docs/standalone-tag/mobkoi-tag.md).

# TAG

Before starting the integration, ensure that all of the [prerequisites](/docs/publisher-integrations/readme.md) have been complete,

Below is an example of the Mobkoi Tag, showcasing how it can be implemented with configurable options.

{% tabs %}
{% tab title="Test Tag" %}

```markup
<script>
  (function (cs) {
    
    var options = {};
    
    /* DO NOT TOUCH ANYTHING BELOW */
    cs.parentNode.insertBefore(
      Object.assign(document.createElement('script'), {
        type: 'application/javascript',
        async: 1,
        src:
          `https://tag.mobkoi.com/tag/boot/PLACEMENT_ID?po=` +
          encodeURIComponent(JSON.stringify(options)) +
          '&cb=' +
          Math.random() +
          '&st=' +
          Date.now(),
      }),
      cs,
    );
  })(document.currentScript);
</script>
```

{% endtab %}

{% tab title="Publisher Options" %}

<table data-full-width="false"><thead><tr><th width="200">Key</th><th width="127">Type</th><th>Description</th></tr></thead><tbody><tr><td>passback</td><td>string</td><td>A url to a script to execute as a passback</td></tr><tr><td>passbackFunc</td><td>function</td><td>A reference to a function defined on the pages window object.</td></tr><tr><td>passbackTest</td><td>boolean</td><td>Enables passback testing</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

### Passback Feature

The passback feature enables a fallback mechanism when an ad impression cannot be fulfilled—whether due to a lack of demand, a timeout, or an error during the ad request process. By specifying a passback script URL, the render library will automatically inject and execute the script in the event of a failure, ensuring that the ad slot doesn’t remain empty.

This fallback is commonly used to:

* Load alternative demand sources
* Trigger house ads or direct-sold campaigns
* Maintain visual continuity on the page
* Preserve monetisation opportunities

{% content-ref url="/pages/oQ7uDPD94gqBak0E9zrm" %}
[Inline Passback](/docs/standalone-tag/mobkoi-tag/inline-passback.md)
{% endcontent-ref %}

{% content-ref url="/pages/THjk7taaquoistEij8tt" %}
[Hosted Script Passback](/docs/standalone-tag/mobkoi-tag/hosted-script-passback.md)
{% endcontent-ref %}

{% content-ref url="/pages/BEA0WvYL0d3pLGk2f5IW" %}
[EXAMPLE - GAM Passback](/docs/standalone-tag/mobkoi-tag/example-gam-passback.md)
{% endcontent-ref %}
