phpAdsNew   Home  

 

 

 

  5.3 Banner networks  

 

phpAdsNew can use Banner networks as a source for banners. Some networks need special features to work correctly.

 
   
  5.3.1 Cache busters  

 


Some banner networks rely on cache busters in order to work correctly. A cache buster is a random string of digits, which must be unique in every call to the banner network. In the next example the # must be replaced with unique number every time the banner is shown.

http://servedby.advertising.com/site=12345/size=468060/bnum=########/bins=1/rich=0

If you add this banner network to phpAdsNew you must use 'Banner referred through URL' and replace the random number with the following string {random:x} and replace x with the number of digits you want to have. For example:

http://servedby.advertising.com/site=12345/size=468060/bnum={random:8}/bins=1/rich=0

If you need to add the same random number to both the image and the target url you can simply specify the same {random:x} code in both the image and target URL. phpAdsNew will make sure the string {random:x} is replaced with the same number in both cases.

 

 
   
  5.3.2 Timestamps  

 


If the banner network depends on timestamps to work correctly you can simply include the string {timestamp} in the HTML needed to call the banner network. A timestamp is equivalent to the number of seconds elapsed since the UNIX-epoch.

A HTML banner with a timestamp could look like this:

<a href='click.bannernetwork.com/ts={timestamp}'>
<img src='view.bannernetwork.com/ts={timestamp}'></a>

 

 
   
  5.3.3 Referrers  

 


If you are using a banner network, the referring page for a click-through is always adclick.php. There is little that we can do about this without disabling phpAdsNew own AdClick statistics.

Some banner networks support a workaround for this problem. phpAdsNew can place the correct referrer in the target URL. phpAdsNew will replace the string {referer} with URL of the referring page.

The target URL could look like this:

http://www.ads.com?ref={referer}