registerguard / benjamins

Responsive ad delivery script in conjunction with ad_manager app. Helps make lots of benjamins!
Apache License 2.0
1 stars 0 forks source link

New features: Story-specific ad tags #1

Open mhulse opened 11 years ago

mhulse commented 11 years ago

Scenario:

Advertising has story on news side; in other words, it advertorial content. Need to deliver ads to this specific page/story.

Problem:

At least on the news side, the variables that are feeding benjamins JS are automated, based on section/sub-section.

Requirement(s):

OR, change the section property of the ad_manager object to target, and now passing the story ID makes more sense logical, like so:

<script>$(document).ready(function(){$.ad_manager({parent:'news',target:12345,page:'section'});});</script>

The code would know to pass a story ID based on the story's category: "story tellers".

Override benjamin's JS call with a custom field (or similar), thus allowing for one to override the complete block of code with contents of custom field.

The final verdict: Change section to target and pass in whatever to the target variable (like the story ID or WordPress category).

mhulse commented 11 years ago

Demo advertorial content:

http://www.registerguard.com/rg/entertainment/encore/29729069-160/hirons-family-john-advertising-dept.html.csp