To pass a parameter in the ad tag, you must add the variable, key and value.

Example:

ct=interest:music

ct= is the custom targeting variable

Custom Key Values

To display an ad to a specific target audience, the custom targeting feature uses key-value statements formed by string, numeric, and date operators. Custom targeting works with Iframe, JavaScript and Ad Request API tags using the AND/OR Boolean logic.

Ads targeted with custom key values will only be served when all the other targeting criteria for an ad are met. You can use key value targeting with other targeting options (Example: geo-targeting, browser, etc.)

Requirements

  • The same requirements apply to IFrame, JavaScript, and Ad API Request tags.
  • The key must be followed by a colon, which stands for = (interest:)
  • If the value includes a space (example ?rock music?) it must be replaced with %20 (example rock%20music).
  • Date values must be entered in the format MM-DD-YYYY.
  • Parameters and values are not case-sensitive.

Multiple key values must be comma separated, with no spaces.

<iframe src="http://d8.zedo.com/jsc/d8/ff2.html?n=1131;ct=interest:movies,music, 
books;w=468;h=60" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" 
allowTransparency="true" width=468 height=60></iframe>

Multiple keys must be separated with a carat (^), with no spaces.

<iframe 
src="http://d8.zedo.com/jsc/d8/ff2.html?n=1131;ct=interest:movies^favorite_band:metal
lica;w=468;h=60" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" 
allowTransparency="true" width=468 height=60></iframe>

Sample tags

IFrame

<iframe src="http://d8.zedo.com/jsc/d8/ff2.html?n=1131;ct=build:2300;w=468;h=60" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=468 height=60></iframe>

Ad Request API

<iframe src="http://bz.iozo.com/jsc/fns.xml?n=525&c=2521&d=12&ct=build:2300&s=43&q=&cs=0&z=5345345" width="336" height="280" frameborder="no" border="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no"></iframe>

JavaScript

<script language="JavaScript"> var zflag_nid="1131"; var zflag_cid="0"; var zflag_sid="0"; var zflag_width="468"; var zflag_height="60"; var zflag_sz="0"; var zflag_ct="build:2300^age:30,31^gender:M";</script><script language="JavaScript" src="http://d8.zedo.com/jsc/d8/fo.js"></script>

Master JS Tag

ZEDO’s Master Tag reduces all the ad slots’ contents to a single JS ad call. The Master JS Tag feature is available under the Ad Tag Generator tab. You can create up to five Channels and Ad Dimensions. It is a little faster than making multiple ad requests via multiple tags.

<script type="text/javascript" src="http://xp1.zedo.com/client/xp1/fmos.js"></script>
<script type="text/javascript">
var zmt_mtag = zmt_get_tag(826,"401400");
p401400_1 = zmt_mtag.zmt_get_placement("zt_401400_1", "401400", "1" , "615" , "3" , "0");
p401400_2 = zmt_mtag.zmt_get_placement("zt_401400_2", "401400", "2" , "615" , "5" , "0");
p401400_3 = zmt_mtag.zmt_get_placement("zt_401400_3", "401400", "3" , "615" , "8" , "0");
p401400_1.zmt_add_ct("build:2300^version:21324");
zmt_mtag.zmt_load(zmt_mtag); 
</script>

 

0 0