Agency script click counting - mobile web vs. apps

Serving agency scripts

Serving agency scripts

To serve agency scripts, you need to

  • create an insertion
  • switch to the Creatives tab
  • click Add an agency script
  • paste the provided agency script into the field Customized script for the creative

For more details about agency scripts, read here.

Agency script click counting in mobile web

When serving agency scripts in the mobile web, you need to insert Smart AdServer's [countgo] macro. If you do not know where to insert the [countgo] macro, get back to the agency and ask for documentation/specifications.

Example of Standard banner agency script with inserted [countgo] macro:

<script language="javascript">
   screenad = {
   id: 'cf7959e13dfff6ca189655703f5aa8e5' ,
   mediapath : 'http://media.adrcdn.com/ads/Adrime/3132393030/44784/' ,
   random : '[timestamp]' ,
   placement : 'default' ,
   width : 320 ,height : 50 ,
   clicks : ['[countgo]http://media.adrcdn.com/exit.html','[countgo]http://media.adrcdn.com/exit.html'] ,
   imptrackers : []
   };
   document.write('<scr'+'ipt language="javascript" src="http'+('https:'==document.location.protocol?'s://media':'://scripts')+'.adrcdn.com/scripts/screenad_launch_9.4.0_scrambled.js"></scr'+'ipt>'); 
</script>

 

Example of Interstitial agency script with inserted [countgo] macro:

<script src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?ncu=$$[countgo]$$&cn=rsb&c=28&pli=6337712&PluID=0&w=1&h=1&ord=[timestamp]&ucm=true&mb=1"></script>

Agency script click counting in apps

When serving agency scripts in apps (iOS or Android), there is no need to insert the [countgo] macro. Smart AdServer has its own system to manage click counting. Simply add the agency script to the insertion as you received it (without change).

HTML5 creatives click counting in apps

HTML5 creatives click counting in apps

For uploaded HTML5 creatives (ZIP files) served in apps, proceed as follows:

  • in the HTML5 file's index.html file, define href="sas:click" for its click URL
  • upload the HTML5 creative (ZIP file) and specify its click URL in the user interface
Was this article helpful?
1 out of 1 found this helpful
Powered by Zendesk