My client has sold advertising space to a third party who has provided a click tag which works fine.
The third party has also supplied three forms of the impression tag which I cannot get to load. From reading their notes it may be the timestamp that needs setting (or possibly a randomly generated number to replace it) but not sure how to apply that in the Adplugg environment.
3 impression tags: (1) image (2) iframe (3) JavaScript
I'm guessing that I need to use the 'Custom' ad type. Am I right?
Also, how do I add either the timestamp or the RNG to complete the script?
Here is an example (anonymised)
<IMG SRC="https://ad.doubleclick.net/ddm/trackimp/Nnnnn.nnnnnnnDxxxxxxxxxxxxxxP1/Bnnnnnnnn.nnnnnnnnn;dc_trk_aid=nnnnnnnn;dc_trk_cid=nnnnnnnnn;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?" BORDER="0" HEIGHT="1" WIDTH="1" ALT="Advertisement">
The error given is "Your src must be a valid URL"
Yes, use the "Custom" ad format and just paste the below JavaScript code (or something similar) at the bottom:
<script>
// Add the impression tag.
(function(){
var img = document.createElement('img');
img.src = 'https://ad.doubleclick.net/ddm/trackimp/Nnnnn.nnnnnnnDxxxxxxxxxxxxxxP1/B...ord=' + (new Date().getTime()) + ';dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?';
img.border = 0;
img.height = 1;
img.width = 1;
img.alt = 'Advertisement';
document.body.appendChild(img);
})();
</script>
This JavaScript code creates the image tag to match your example above and inserts it at the bottom of the body tag. Note that it adds the timestamp using (new Date().getTime()).
If they've already provided you with a JavaScript version, you could maybe just use that instead as it likely does the same thing as the above code. I'd opt for using the version from the advertiser if possible.