Logo

What are you looking for?

Stop losing ad revenue...

Dynamically displaying ads

General Questions

Dynamically displaying ads

Last updated on 17 May, 2021

Using Display ad

This is used to initialize a Sulvo tag, that should be placed on the HTML before the call. 

 

Use cases

You need to dynamically insert ad. For example, when implementing content with Infinite Scroll. To do this, add the regular Sulvo ad tag, with an inline initialization script below it, like the following (assuming your ad is named "example.com_300x250"): 

<div data-ad="example.com_300x250" data-devices="m:0,t:1,d:1" class="demand-supply"></div>
<script>window.demandSupply && demandSupply.surge && demandSupply.surge.displayAd('example.com_300x250')</script>

 

 

Did you find this article helpful?
Previous

What is vCPM and why is it important?

Next