## The contents of this file are subject to the Common Public Attribution ## License Version 1.0. (the "License"); you may not use this file except in ## compliance with the License. You may obtain a copy of the License at ## http://code.reddit.com/LICENSE. The License is based on the Mozilla Public ## License Version 1.1, but Sections 14 and 15 have been added to cover use of ## software over a computer network and provide for limited attribution for the ## Original Developer. In addition, Exhibit A has been modified to be ## consistent with Exhibit B. ## ## Software distributed under the License is distributed on an "AS IS" basis, ## WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for ## the specific language governing rights and limitations under the License. ## ## The Original Code is reddit. ## ## The Original Developer is the Initial Developer. The Initial Developer of ## the Original Code is reddit Inc. ## ## All portions of the code written by reddit are Copyright (c) 2006-2012 ## reddit Inc. All Rights Reserved. ############################################################################### <%! from r2.lib.utils import to36 from r2.lib.media import thumbnail_url from r2.lib.template_helpers import static from r2.lib import promote from r2.lib.strings import strings from r2.models import Account from r2.lib import js import simplejson %> <%namespace file="utils.html" import="error_field, checkbox, image_upload, reddit_selector" /> <%namespace name="utils" file="utils.html"/> ${unsafe(js.use('sponsored'))} ## Create a datepicker for a form. min/maxDateSrc are the id of the ## element containing the min/max date - the '#' is added automatically ## here (as a workaround for babel message extraction not handling it ## properly if passed in when the function is called <%def name="datepicker(name, value, minDateSrc = '', maxDateSrc ='', initfuncname = '', min_date_offset=0)">
This dashboard allows you to easily place ads on reddit. You can target a specific community or simply run on the main page.
A good title is important to the success of your campaign. reddit users are an intelligent, thoughtful group, and reward those who engage them
Provide the URL of your ad. No redirects please!
Choose a different domain name to display on the site (the small grey text next to a link
Comments are a great way to get feedback from customers, and the reddit community is known for being vocal in comment threads.
${checkbox("media-override", "media override (adds an onclick to the link to generate a drop-down rather than a link out)", getattr(thing.link, "media_override", False) or False)}
Here is a summary of the data presented on the graph page. Remember: best to pick days with less competition.
| date | CPM | CPC | count | |
|---|---|---|---|---|
| ${unsafe("»" if is_today else '')} ${day.strftime("%m/%d/%Y")} | ${CPM} | ${CPC} | ${thing.promo_counter.get(i, 0)} |
%endfor
|
| date | user | transaction id | campaign id | pay id | amount | status |
|---|---|---|---|---|---|---|
| ${bid.date} | ${accounts[bid.account_id].name} | ${bid.transaction} | ${bid.campaign} | ${bid.pay_id} | $${"%.2f" % bid.bid} | ${status} |