Add an initial video ad to condenser
This can be based on an initial (working) test branch here: https://github.com/steemit/condenser/tree/test-video-ad And this specific commit: https://github.com/steemit/condenser/commit/d764b277559db53c41c94b668dfb8c517944495c
Acceptance criteria:
- [x] Make a reusable react component to display the div for video ads (similar to existing GPTAd component)
- [x] Add a CSS file for it
- [x] Ability to turn on/off via a environment variable
- [x] Have ad inserted once after the 5th post in a post list
- [x] Ability to turn on/off video ads with a config var (similar to the existing
shouldDisplayAdsfor the existing GPT ads) - [ ] Remove the CSP changes that were added to the test branch for testing so they can be added in our dev/production environments with the existing environment variables
- [ ] Ads should refresh when navigating to different pages. This may be able to be handled with the StreamRail API, but, it also could be handled other ways just in condenser itself.
Ads will only display on desktop (set in StreamRail console), so, at this point, no need to make them work well with mobile.
The StreamRail API documentation is here: https://partners-api-docs.streamrail.com/
Some unknowns that we'll need to know to finish this:
-
I believe the 'player ID' works like 'tags' with GPT ads, but, we will need to confirm this.
-
We need to know if videos from streamrail will always load from the same host.
-
We need to know if streamrail will have video ads available that fit the same size we use for post lists. If not, what sizes are available and how can we make it look good with those sizes?
-
Is there a function available to refresh ads? If not, we'll have to do something hacky to make it work properly when navigating between posts/post lists.