Media Market

The <source> for media market is mediamarket.

The following functions are available:

  • name - media market name.
  • rank - rank in the US of your media market.
  • households - number of households with TVs in your market.

None of these functions takes arguments.

Example

ruleset a60x156 {
  meta {
    name "Media Market Example"
    author "Mike Grace"
    description <<
      Example Media Market app for documentation
    >>
    logging on    
  }
  dispatch {
    domain "example.com"
  }
  rule number_of_tvs_in_house is active {
    select using ".*" setting ()
    pre {
      name = mediamarket:name();
      rank = mediamarket:rank();
      households = mediamarket:households();
      msg = << 
        Name: #{name}<br/>      
        Rank: #{rank}<br/>      
        Homes w/ TV: #{households}    
      >>;
    }
    notify("Media Market Data", msg) with sticky = true and opacity = 1;
  }
}

Example Results