Abstract: A method includes detecting a substitution signal at a set top box device. The method includes inserting an advertisement into a media stream in response to detecting the substitution signal and determining an advertising fee associated with insertion of the advertisement into the media stream. A first advertising fee is determined when the advertisement is a local advertisement for a provider of a product or service and is to be inserted at a first location in the media stream that follows a national advertisement for the product or service.