Logo

What are you looking for?

Get help straight from our team...

Calling ads dynamically

General Questions

Calling ads dynamically

Last updated on 06 Jan, 2026

Standard implementations of the Sulvo ad server require ad tags to be placed in the html, as part of the static content of the page. Once loaded, our platform automatically displays all the ads that were found. Some implementations require flexibility and may need to add Sulvo ads dynamically, for example as part of an ajax new content load.
In addition to the automatic display of the Sulvo ads, you can tell your site when an ad should be displayed.

Note: the below applies to the body tag configuration ONLY.  The head tag must always load statically or ad serving will be impacted.

 

How to

There are 2 types of dynamic calls:

  1. Displaying ads dynamically: use displayAd to initialize a new Sulvo ad

  2. Refreshing ads dynamically: use  refreshAd to get a new impression for an already initialized Sulvo ad

 

Display ad

Please see this article: https://help.sulvo.com/help/dynamically-displaying-ads

 

RefreshAd

Please see this article: https://help.sulvo.com/help/refreshing-ads

Did you find this article helpful?
Previous

Dynamically displaying ads

Next