Web

Integration

1. Insert the script to load the intowow ad.

<script>
    var script = document.createElement("script");
    script.src = "https://d1e0ih91r2lgbn.cloudfront.net/cdn/assets/webview/" + window.cesdk.info().support_version + "/script.js";
    script.async = true;
    document.getElementsByTagName("head")[0].appendChild(script);
</script>

2. Put the ad in the place you want to show.

<body>
    <div>
        <ins class="adsbyintowow" 
            data-ce-placement="Obtain from your Intowow account manager"
            data-on-ad-loaded="ceload">
        </ins>

        <script>
            var adsbyintowow = window.adsbyintowow;
            if (adsbyintowow && adsbyintowow.c) adsbyintowow.c();
        </script>
    </div>
</body>

Parameter reference

Parameter

Format and Example:

data-ce-placement

Placement for the web ad.

"IN_FEED"

data-ce-ad-icon

If the ad needs to hide the AD icon or not. The default value is false.

"false"

data-ce-countdown

If the ad needs to hide the countdown or not. The default value is true.

"true"

data-ce-silent-start

If the ad needs to auto silent play or not. The default value is true.

"true"

data-ce-auto-replay

If the ad needs to auto repeat or not. The default value is true.

"true"

data-ce-timeout

Set the ad load timeout. The default value is 6 sec.

"6.0"

data-ce-targeting

Set the ad targeting with the key-value pair. For example: data-ce-targeting="age:25"

"age:25"

data-on-ad-loaded

Set the callback method when the ad is loaded

"celoaded"

Constants

data-ce-placement

String data-ce-placement

Placement for the web ad.

data-ce-ad-icon

boolean data-ce-ad-icon

If the ad needs to hide the AD icon or not. The default value is false.

data-ce-countdown

boolean data-ce-countdown

If the ad needs to hide the countdown or not. The default value is true.

data-ce-silent-start

boolean data-ce-silent-start

If the ad needs to auto silent play or not. The default value is true.

data-ce-auto-replay

boolean data-ce-auto-replay

If the ad needs to auto repeat or not. The default value is true.

data-ce-timeout

float data-ce-timeout

Set the ad load timeout. The default value is 6 second.

data-ce-targeting

String data-ce-targeting

Set the ad targeting for the key-value pair. For example: data-ce-targeting="age:25"

You can do the multiple targeting dividing by semicolon.

For example:data-ce-targeting="age:25;gender:M"

data-on-ad-loaded

String data-on-ad-loaded

Set the callback method when the ad is loaded. You may modify the ad view after the ad is loaded. The specific method would be triggered. For example: data-on-ad-loaded="ceload"

Last updated