Skip to content

How to use banner templates #21

Answered by giuliopons
giuliopons asked this question in Q&A
Discussion options

You must be logged in to vote

Banner templates allows a developer to create custom banner files. For example: overlay banners, window footer attached banner, overlay banner.

It's HTML code which can include Javascript and CSS, and you can bind it to click behaviour.

For example this is a 2 images responsive banner template:

<a href="[CLICKTAG]" target="[TARGET]"><picture>
<source srcset="[IMG1]" media="(min-width: 1024px)">
<source srcset="[IMG0]">
<img src="[IMG0]" >
</picture></a>

At runtime some elements are replaced at runtime by the AdAdmin engine:

  • [CLICKTAG] will be replaced with the link that tracks the click on the banner
  • [IMG0] will be replaced with the url of the first image in the media section of the banner

Replies: 1 comment

Comment options

giuliopons
Nov 1, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by giuliopons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #10 on October 19, 2022 21:13.