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
bsimpson63
776755b9df
Refunds for authorize.net transactions.
2013-09-18 17:55:34 -04:00
bsimpson63
2be7bf01e8
Record charge amount in unused Bid.charge attribute.
2013-09-18 17:55:27 -04:00
bsimpson63
e65985295e
Delete GET_inventory.
2013-09-18 17:55:16 -04:00
bsimpson63
1fa8115963
Delete PromoteLinkFormCpm.
2013-09-18 17:55:10 -04:00
bsimpson63
e8c6862936
Separate templates for creating and editing promoted links.
2013-09-18 17:55:01 -04:00
bsimpson63
8b81270380
Remove unused arguments from PromoteLinkform.
2013-09-18 17:54:55 -04:00
bsimpson63
972f922ba3
Move bid logic out of template.
2013-09-18 17:54:48 -04:00
bsimpson63
015ffe5d83
Break up monolithic promotelinkform into functions.
2013-09-18 17:54:42 -04:00
bsimpson63
6df2fc3b63
Typo in promoted link thumbnail display.
2013-09-18 17:54:35 -04:00
bsimpson63
87bee2cc9d
Delete unsupported maximum_clicks and maximum_views options.
2013-09-18 17:54:29 -04:00
bsimpson63
8e8883b440
Whitespace cleanup in promotelinkform.html.
2013-09-18 17:54:13 -04:00
shlurbee
f0c080a46f
Fix secondary sort in recommendations
2013-09-18 10:35:20 -07:00
David Ehrmann
4023a719a8
Update /ad_inq for the self-serve CPM rollout.
...
- Remove link to theoatmeal's explanation of the self-serve ad system
- Update the copy in the "control your budget" section of ad_inq
2013-09-18 10:34:53 -07:00
Brian Simpson
8a7e8d224d
ModAction: Read from ModActionBySRActionMod.
2013-09-18 08:57:06 -04:00
Andre D
544e4994a5
ModAction: Add a migrate script.
2013-09-18 08:56:55 -04:00
Andre D
88906eff2f
ModAction: Add a view of Action and Mod.
2013-09-18 08:55:52 -04:00