Hey I've put together a couple of basic…

<?php
$script = 'http://ad.doubleclick.net/adj/%site_name%/%zone1%;s1=%zone1%;s2=;pid=[unique_page_id];fold=%fold%;kw=;test=;ltv=ad;pos=%pos%;sz=%sz%';

$front_page = array(
			   'id' => 1,
			   'site_name' => 'ltv.witi.home',
			   'zone1' => 'homepage',
			   'conditions' => array(
					array('is_front_page' => true)
					  )
			   );

/**
 * $fold and $sz should be passed to template tags.
 * Idea is to define $site_name and $zone1 and conditions and save only one ad code to DB,
 *
 * and then just create any ad we want to be on any particular page.
 *
 * do_action('acm_tag', $fold = (atf|btf), $sz = '300x250|728x90|etc' )
 *
 */

$weather = array(
			   'id' => 2,
			   'site_name' => 'ltv.witi.weather',
			   'zone1' => 'landing',
			   'conditions' => array(
					array('is_page' => 'weather')
					  )
			   );
$vincesblog =  array(
			   'id' => 2,
			   'site_name' => 'ltv.witi.weather',
			   'zone1' => 'vincesblog',
			   'conditions' => array(
					  array( 'is_category' => 'vinces-blog' ), // that could actually be is_page('vinces-blog'), depending on the obscurity of user's site structure
					  array('has_category' => 'vinces-blog' )
					  )
			   );

/**
 * So post has two categories: Politics and Business, we use priority to determine which zone should be rendered in script ad tags .
 * Omitted ad code for Business would have array('has_category' => 'business', 'priority' => '90' ) and wouldn't be picked as right zone1
 *
 */
$priority  = array(
			   'id' => 3,
			   'site_name' => 'ltv.witi.news',
			   'zone1' => 'politics',
			   'conditions' => array(
					  array( 'is_category' => 'politics' ),
					  array('has_category' => 'politics', 'priority' => '999' )
					  )
			   );		  

?>