Sponsored Display SDK
Embed this SDK script in your HTML or use a tag manager to start running ads on your website.
Find the UUID, Hostname, and Ad Placement ID
Locate your marketplace's UUID, the hostname of the website where ads will run, and the ID of the ad placement where these ads will appear.
Modify the Script
Replace YOUR_UUID_HERE, YOUR_HOSTNAME_HERE, and YOUR_PLACEMENT_ID_HERE in the script below.
<script type="text/javascript">
(function () {
if (!window.top.document.getElementById("retail-ads-library")) {
var e = document.createElement("script");
e.type = "text/javascript";
e.defer = true;
e.id = "retail-ads-library";
e.src = "https://sdk.gowit.com/index.js";
window.top.document.getElementsByTagName("head")[0].appendChild(e);
}
(window.top.retail_ads = window.top.retail_ads || []).push({
ad_type: "banner",
api_url: "YOUR_HOSTNAME_HERE",
marketplace_id: "YOUR_UUID_HERE",
page_number: 1,
placements: [{ placement_id: YOUR_PLACEMENT_ID_HERE }],
adFailed: function () {
console.log("Ad Failed To Load");
},
adLoaded: function () {
console.log("Ad Loaded");
},
});
})();
</script>
Add the Script to the HTML Page
Add the edited script to the bottom of the element on the pages where you would like ads to be displayed.
If you have any questions, encounter any issues, or need further assistance, please don't hesitate to contact us.
Updated 24 days ago