Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added row for {img_url_prefix} macro



Substituted by the click tracking URL for the delivered ad
example: https://…/delivery/ck.php?oaparams=2__bannerid=…

Note: starting with version 5.1.0, the click tracking URL has been changed. The file is now cl.php and the parameters now follow the usual conventions with ampersands. See the release notes for more information.


This is a URL encoded version of the clickurl macro.
{clickurl_html}This is an HTML version of the clickurl macro.

Substituted by the parameters which would be passed to the {clickurl}
example: 2__bannerid=X__zoneid=Y__source=cat123/cat456__cb=0d9139d879__maxdest=

Note: this macro has been removed from the application with the release of v5.1.0 on January 19, 2021. See the release notes for more information.

{timestamp}Substituted by a decimal string based on the current timestamp
example: 1185290310.72
{random}Substituted by a 10 character alpha-numeric random string value
example: b616f31e72
{logurl} *Substituted by an impression logging URL
example: https://…/delivery/lg.php?bannerid=…
{logurl_enc} *Substituted by the url-encoded impression logging URL
example: https%3A%2F%2F…%2Fdelivery%2Flg.php%3Fbannerid%3D…
{target}Substituted by the target value for the selected banner
example: _blank
{url_prefix}Substituted by the base delivery URI of installation
example: https://.../www/delivery


Substituted by the base banner images URI of the installation

example: https://..//www/images

{bannerid}Substituted by the ID of the selected banner
example: 123
{zoneid}Substituted by the ID of the selected zone
example: 456
{source}Substituted by the value of “source=” as passed into the ad-request from the site tags
example: source=cat123/cat456…
{pageurl}Substituted by the URL of the page the ad was requested on (url encoded)
example: https%3A%2F%2Flocalhost%2Fmagic_macros%2Ftest.html
{referer}Substituted by the referrer of the page the ad was requested on (url encoded)
example: https%3A%2F%2Flocalhost%2Fmagic_macros%2F
{width}Substituted by the width (in pixels) of the selected ad
example: 468
{height}Substituted by the height (in pixels) of the selected ad
example: 60
{ANY_INPUT_VARIABLE}Substituted by any value present in the php $_REQUEST array ($_GET/$_POST/$_COOKIE)
example: {OAID} -> $_COOKIE[‘OAID’] = 1fd819ffc7267757ba681ff5daa3007e