For Stencyl 3.4 9280 and above
Stencyl extension for “Facebook Audience Network” on iOS and Android. This extension allows you to easily integrate Facebook Audience Network on your Stencyl game / application. (http://www.stencyl.com)
This Extension Required the Toolset Extension Manager https://byrobingames.github.io
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
Step 1: Apply for Audience Network
Submit your app to join the network with a few quick steps
Step 2: Enter your Company Information
Once your app is accepted into Audience Network, you’ll need to provide us with basic information about your company.
In your app’s settings page, click on the Audience Network section located at the bottom left:
If you have an existing company that you registered with Facebook, you can select it here and accept the terms to continue. Otherwise, you can choose Quick Start to enter basic details about your company.
Your app needs to be approved for Audience Network to provide these details. To apply, visit this page If you choose Quick Start, please fill out your account and tax info under the Payout tab. Though integration is possible without these details, ad delivery will pause when your account balance reaches $100.
Step 3: Create Placement IDs
Facebook’s Audience Network offers a few types of ad units: banner, interstitial and native ads through our API. Each placement of an ad unit in your app is identified using a unique placement ID. The first step in adding an ad unit is to create this identifier.
Your app needs to be approved for Audience Network before you can create placement IDs. To apply, visit this page .
In your app’s settings page, click on the Audience Network section. Then, choose the Placements tab and click on the ‘Create Ad placement’ button to create your placement:
Enter a name and an optional description. If the placement will be used for a banner, you can specify the ad refresh interval (please note that if you use a mediation service this option should be set to ‘None’):
Save the Ad Placement and the placement ID will show in the list.
Reporting and ad unit refresh interval are tied to a placement ID. Please make sure to use a different placement ID for each ad unit you show in your app.
Step 4: Incorporate Ad Units in Your App
Once you have the placement ID, follow our iOS and Android specific guides to add the ad units in your app:
Create different placement ID for Banner, Medium Rect and Interstial Ad.
If your Testing don’t forget to enbale Testads. When you are ready to publish, disable Testads.
1- Initialize in first scene. (example in load scene)
2- Show/Hide/Move Ads in your game, load Interstitial ad before showing. Look at the example game, that you can download from here
Before submitting your iOS app to Apple, please see our FAQ regarding answers to IDFA questions in their submission process.
Step 5: Track the Ad Placement Performance
After your app is live with Audience Network, use the Performance dashboards to track revenue estimates and additional metrics like impressions and clicks.
To access the dashboards, in your app’s settings page, click on Audience Network and then choose the Performance tab:
In addition, you can access your performance data via an API. Please see this guide for more info
This software is opensource.
If you want to contribute you can make a pull request
Need help with a pull request?
Add the issue on GitHub
Need help with creating a issue?
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.