Ad Wizard

Documentation  •  Changelog


Embedding your ads

You have two Twig tags available to you...

Show a single, specific ad

Specify the ad by its ID number:

{{ craft.adWizard.displayAd(99) }}

Or if you're already working with an existing AdModel:

{{ ad.displayAd() }}

displayAd was previously known as "ad"

Random ad from a specific group

Specify the group by its handle:

{{ craft.adWizard.randomizeAdGroup('rightSidebar') }}

randomizeAdGroup was previously known as "position"

Both methods will only show valid ads.

It's also possible to retrieve ads via an Element Query.