Having trouble with AdTech adverts

159 views
Skip to first unread message

will blackmore

unread,
Sep 20, 2012, 6:36:29 AM9/20/12
to writecaptu...@googlegroups.com
Hi,
I'm attempting to get this working on a mobile web app I'm working on. I'm going to keep reading, see if I can figure it out, but I'm a little out of my depth if I'm honest.

We're supplied with this code:

<!--JavaScript Tag with group ID // Tag for network 981: At The Races // Website: At The Races // Page: Home // Placement: Home MPU (2185869) // created at: Sep 28, 2009 5:28:33 PM--> <script language="javascript"> <!-- if (window.adgroupid == undefined) { window.adgroupid = Math.round(Math.random() * 1000); } document.write('<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn/3.0/981/2185869/0/170/ADTECH;loc=100;target=_blank;key=key1+key2+key3+key4;grp='+window.adgroupid+';misc='+newDate().getTime()+'"></scri'+'pt>'); //--> </script><noscript><a href="http://adserver.adtech.de/adlink/3.0/981/2185869/0/170/ADTECH;loc=300;key=key1+key2+key3+key4" target="_blank"><img src="http://adserver.adtech.de/adserv/3.0/981/2185869/0/170/ADTECH;loc=300;key=key1+key2+key3+key4" border="0" width="300" height="250"></a></noscript> <!-- End of JavaScript Tag -->

I wish we could just use the bit between the <noscript> tag, but that breaks tracking, which I'm told is a bad thing.

Any help or pointers would be greatly appreciated.

Thanks,
Will

will blackmore

unread,
Sep 20, 2012, 7:01:16 AM9/20/12
to writecaptu...@googlegroups.com
I'm getting there, slowly. The code below seems to be what is suggested, but I get an error:

writeCapture.write(document.getElementById('advert_id'), '<scr'+'ipt language="javascript1.1" src="http://adserver.adtech.de/addyn/3.0/981/2185869/0/170/ADTECH;loc=100;target=_blank;key=key1+key2+key3+key4;grp=' + adgroupid + ';misc=' + new Date().getTime() + '"></scri'+'pt>');

Uncaught TypeError: Cannot call method 'toElement' of undefined

will blackmore

unread,
Sep 20, 2012, 7:15:56 AM9/20/12
to writecaptu...@googlegroups.com
So, ignore me, I forgot to add in the dependancies. It's been a long day...

noah

unread,
Sep 20, 2012, 8:45:48 AM9/20/12
to writecaptu...@googlegroups.com
Glad you figured it out :) Good luck.
Reply all
Reply to author
Forward
0 new messages