heyVR offers an in-game advertisement system that developers can implement in their games to generate revenue. We offer various SDKs for different game engines such as Aframe and Wonderland to implement this feature.
To implement ads in your game, you'll need to follow 2 simple steps:
Before developers can serve ads in your game, they must agree to the advertisement terms of service. To do so, open the developer area and navigate to the Advertisement pane. There you can read and accept the terms, if you agree to them.
Once you've accepted the agreement, you can create an Ad Unit by clicking the "Create Ad Unit" button.
Each ad unit will need a unique identifier, and is automatically prefixed by your organization's ID. We recommend that you create separate ad units for different games, for better analytics.
For each ad unit, you can specify a size and a format.
Please note, if there's no ad to be served for a specific combination of size and format, the system will try to fallback on another ad type (e.g. if you requested a 800x450 video, and there's no such ad available at the moment, the system will try to render a 800x450 image instead). If nothing is available at the provided size, an empty placeholder will be rendered in its place.
At the moment, the video
type is only available in the 800x450
size, and the image ads are available in all sizes.
Coming Soon!
Implementing the ads in your game is fairly easy and straight-forward. Once you've accepted the advertisement terms of services, you can choose the correct game engine from the list at the bottom of this page, and follow the simple instructions.
Before we continue with the SDK implementations, we'll breifly mention a set of configurations shared between all the SDKs. While some SDKs have additional configuration parameters, the following params are shared between all of them.
A boolean. Whenever there's no ad to be rendered, a placeholder image is rendered in its place by default. You can disable this behavior by setting a the placeholder
parameter.
This parameter is a boolean, and can be used to enable test mode while testing locally by setting the testing
param to true. You should always enable this during testing, since the SDK won't serve ads outside of heyVR.