Commit Graph

3510 Commits

Author SHA1 Message Date
Brian Simpson
e3945794c1 Per user CPM overrides. 2013-09-19 18:15:08 -04:00
Brian Simpson
1ac1bd4693 Add hook upon to fire when editing a campaign. 2013-09-19 04:37:02 -04:00
Brian Simpson
ea9481fc54 Remove unused sample_promoted_links. 2013-09-19 04:37:02 -04:00
Brian Simpson
9c9ba4ab4a Send subreddit names in POST_request_promo request from Spotlight. 2013-09-19 04:37:02 -04:00
Brian Simpson
7e15f2e3ab Increase promoted link inventory.
Was using a very conservative estimate to get started, also because
during the beta pageviews were not available on the frontpage.
2013-09-19 04:37:02 -04:00
Brian Simpson
81b5844bfb Check inventory on freebie and pay. 2013-09-19 04:37:01 -04:00
Brian Simpson
388fa19224 RenderableCampaign: wait to convert bid and spent floats to strings.
Comparing the string values can give incorrect result when checking
if a campaign is underdelivered.
2013-09-19 04:37:01 -04:00
Brian Simpson
cf40ae1906 CPM is new message. 2013-09-19 04:37:01 -04:00
Brian Simpson
dd2be333d8 fill_campaign_editor: clean up form disabling on errors. 2013-09-19 04:37:01 -04:00
Brian Simpson
d239be0abc Add back minimum-spend div and fix styling. 2013-09-19 04:37:01 -04:00
Brian Simpson
06c15469f4 Use correct selfserve wiki url. 2013-09-19 04:37:01 -04:00
Brian Simpson
f50452cb43 Hide roadblock error message when inputs change. 2013-09-19 04:37:01 -04:00
Brian Simpson
d5dacda6d8 VBid to validate promoted link bids. 2013-09-19 04:37:01 -04:00
Brian Simpson
3b35f147f2 When calculating maximum bid round down to nearest whole penny. 2013-09-19 04:37:01 -04:00
Brian Simpson
a2f23e93ff Allow users to enter desired budget or desired goal.
The fields are dependent (impressions = budget / cpm) so changing
one updates the other.
2013-09-19 04:37:01 -04:00
Brian Simpson
dad5fb7401 Show maximum allowable bid when input bid is too high. 2013-09-19 04:37:01 -04:00
Brian Simpson
50ec6045f2 Check for booked inventory to exclude on the client side.
Real inventory values (predicted inventory minus booked inventory) are sent to
the client. When checking available inventory on the front end while editing or
creating a campaign we calculate how many impressions have already been booked
for that campaign (if any) and add that into the real inventory value.
2013-09-19 04:37:01 -04:00
Brian Simpson
d386fb7071 Campaigns can be pending in addition to being live or complete.
Campaigns are charged 24 hours before going live, so checking whether
a campaign is complete requires more than just checking that it's not
live.
2013-09-19 04:37:00 -04:00
Brian Simpson
a4263a6991 Send an email when campaign is refunded. 2013-09-19 04:37:00 -04:00
Brian Simpson
d1dbfb270c Manually refund underdelivered campaigns. 2013-09-19 04:37:00 -04:00
Brian Simpson
a972551e1b Hook fires on each new charge, not once for entire charge_pending. 2013-09-19 04:37:00 -04:00
Brian Simpson
e27cbd183b PromoteLinkform: switch up the wording for targeting. 2013-09-19 04:37:00 -04:00
Brian Simpson
43e7ecd048 PromoteLinkForm: show total available impressions. 2013-09-19 04:37:00 -04:00
Brian Simpson
1f5f98fbc0 PromoteLinkForm: wording change for creating additional campaigns. 2013-09-19 04:37:00 -04:00
Brian Simpson
3f4ac47b16 Simplify oversold message.
Only show the total available for given target and dates, rather than
breaking it down by date.
2013-09-19 04:37:00 -04:00
Brian Simpson
421dd824b0 Exclude reserved inventory for current campaign from inventory check. 2013-09-19 04:37:00 -04:00
Brian Simpson
ac6657832a finalize_completed_campaigns: be careful with cpm attribute. 2013-09-19 04:37:00 -04:00
Brian Simpson
dfef592449 finalize_completed_campaigns: typo in links lookup. 2013-09-19 04:37:00 -04:00
Brian Simpson
e6bfc29316 Use a very conservative estimate of ad inventory.
Inventory is estimated using traffic to GET_listing. This is a pretty good
estimate based on historical trends (compare subreddit traffic to impressions for
promoted links targeted to the subreddit). It seems safer to start out with a low
estimate. This is especially needed because the CPM beta will only show promoted
links on the subreddit listing, not on multireddits or the front page.
2013-09-19 04:37:00 -04:00
Brian Simpson
cb4b603283 Increase minimum height of Spotlight to make reflows less frequent. 2013-09-19 04:37:00 -04:00
Brian Simpson
162aac4912 promote.py whitespace. 2013-09-19 04:37:00 -04:00
Brian Simpson
2fa369e76e promote.new_campaign cleanup. 2013-09-19 04:32:22 -04:00
Brian Simpson
85c80a7d55 PromoteLinkForm cleanup. 2013-09-19 04:32:22 -04:00
Brian Simpson
0671511de9 POST_edit_campaign cleanup. 2013-09-19 04:32:22 -04:00
Brian Simpson
d2ecb5db89 sponsored.js cleanup. 2013-09-19 04:28:14 -04:00
Brian Simpson
d11a16dee8 SubredditSelector searches optional. 2013-09-19 04:27:26 -04:00
Brian Simpson
c6419bf21d Typo in sponsored.js for resetting campaign_id36 to blank for new campaign. 2013-09-18 19:42:25 -04:00
bsimpson63
d8d433c811 Add translations to promotelinkform.html. 2013-09-18 19:41:01 -04:00
bsimpson63
81a5dc36a1 Add hooks for selfserve related events. 2013-09-18 19:40:55 -04:00
bsimpson63
5967acfa83 Use an ad server to select promos for spotlight.
Replaces client side weighted random selection.
2013-09-18 19:40:38 -04:00
bsimpson63
7423c17b39 Separate live and complete on promotelinkform. 2013-09-18 17:58:12 -04:00
bsimpson63
c72e43c03c Delete unused update_box. 2013-09-18 17:57:48 -04:00
bsimpson63
6b8e323e26 Delete update_bid.
It did too much and was called in several templates where it did nothing.
2013-09-18 17:57:40 -04:00
bsimpson63
62bd4e6b8e Display spent portion of a campaign's budget. 2013-09-18 17:56:58 -04:00
bsimpson63
a0c4a904e2 Sell campaigns by CPM. 2013-09-18 17:56:17 -04:00
Brian Simpson
0d7736ac39 PromoCampaign: add ndays property. 2013-09-18 17:56:10 -04:00
bsimpson63
704902b6f5 Add method to check for missing traffic hours. 2013-09-18 17:56:03 -04:00
bsimpson63
f8dd9e224c Methods to check promoted link inventory. 2013-09-18 17:55:57 -04:00
Brian Simpson
7a85c3c2bb inventory: make _min_daily_pageviews_by_sr safer 2013-09-18 17:55:49 -04:00
bsimpson63
4b76634aa4 Move get_traffic_dates from trafficpages to promote. 2013-09-18 17:55:41 -04:00