For Stencyl 3.4 and above
Stencyl extension for “Vungle” (http://www.vungle.com) for iOS and Android. This extension allows you to easily integrate Vungle on your Stencyl game / application. (http://www.stencyl.com)
This Extension Required the Toolset Extension Manager https://byrobingames.github.io
As of May 25th, the General Data Protection Regulation (GDPR) will be enforced in the European Union. To comply with GDPR, developers have two options.
Option 1 (recommended): Publisher controls the GDPR consent process at the user level, then communicates the user’s choice to Vungle. To do this, developers can collect the user’s consent using their own mechanism, and then use Vungle APIs to update or query the user’s consent status. Refer to the GDPR Recommended Implementation Instruction section for details. Option 2: Allow Vungle to handle the requirements. Vungle will display a consent dialog before playing an ad for a European user, and will remember the user’s consent or rejection for subsequent ads.
To install this Engine Extension, go to the toolset (byRobin Extension Mananger) in the Extension menu of your game inside Stencyl.
Select the Extension from the menu and click on “Download”
If you not have byRobin Extension Mananger installed, install this first.
Go to: https://byrobingames.github.io
If you don’t have an account, create one on https://publisher.vungle.com and get your “AppID” and “Placements Reference Id”
Fill in your “AppID” in the Toolset Manager
!!ON ANDROID YOU NEED TO ENABLE ADMOB ADS INSIDE STENCYL!!
Initialize Vungle
Use this block to initialize Vungle. Use this block once per user
session (from the moment the user starts to play until the user quits the game). For example in a loading scene.
Load Vungle ad with placement Id
Use this block to load ads where auto-cached in dashboard is disabled .
Show Vungle interstitial of Rewarded ad with placement Id
Use this block to show a Interstitial or Rewarded. When showing rewarded ad, the user gets a popup when he close the ad early.
Callback for Ads
Use this block to get the callbacks of an Ad with placementId.
Set Consent (Europe only)
Set the Consent of user programmatically.
Get Consent (Europe only)
Get the Consent of user programmatically returns true when OPTED_IN is set and returns false when OPTED_OUT is set. If Consent is not set it will return false.
This software is opensource.
If you want to contribute you can make a pull request
Repository: https://github.com/byrobingames/vungle
Need help with a pull request?
https://help.github.com/articles/creating-a-pull-request/
Add the issue on GitHub
Repository: https://github.com/byrobingames/vungle/issues
Need help with creating a issue?
https://help.github.com/articles/creating-an-issue/
https://www.vungle.com
Author: Robin Schaafsma
The MIT License (MIT)
Copyright (c) 2014 byRobinGames http://www.byrobin.nl
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.