Using Openx Magic Macro and dynamic variables in HREF / html codeMar 23rd, 2011 | By admin | Category: Internet
Ok, so this is pretty obscure but I felt the need to post it considering the results that I’ve seen are totally contrary to the published resources from openx and the community.
I went for help on IRC and didn’t get a response after waiting 12 hours, I posted a question on their forums and it got deleted, so if you want a support model to follow with your business look else where because openx sucks donkey balls. That aside I was tinkering for a good hour and noticed some weird behavior when I forgot to put one of my variables into the destination url after removing it for some testing. I left it out of the dest url but put it back into the href tag and viola, it’s getting passed on.
Soooooo, what you need to do to pass variables / magic macros along to openx via the HREF tag you need to do two things, one of them completely contrary to all instructions out there.
First your html on your page should look something like this:
<a href=’http://domain.com/openx/www/delivery/ck.php?n=a4342876&cb=235364574&VAR1=3505&VAR2=222222′ ><img src=’http://domain.com/openx/www/delivery/avw.php?zoneid=21&cb=235364574&n=a4342876&VAR1=3505&VAR2=222222′ style=”margin-right: 2;float: left;” border=”0″ alt=’_fullTitle_ in _CITY_’ align=’left’></a>
and then in your destination path for the banner itself make sure that you do NOT and I repeat NOT have any reference to those variables. Just have the plain jane dest url as is and it should work.