All Projects → Mohammedcha → FB-Instant-Games-ADS-Controller

Mohammedcha / FB-Instant-Games-ADS-Controller

Licence: Apache-2.0 License
Learn how to integrate games built with JavaScript and HTML5 with Facebook instant games SDK

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to FB-Instant-Games-ADS-Controller

FacebookAds
This is an Android app that displays all the Facebook Mobile Ads based on Audience Network SDK. This repo uses all the major ad-types in a separate activity for all the ads.
Stars: ✭ 16 (-60%)
Mutual labels:  facebook, audience-network
cakephp-social-share
CakePHP link generator for sharing content on social networks
Stars: ✭ 30 (-25%)
Mutual labels:  facebook
stats
📊 Statistics generator for Facebook Groups
Stars: ✭ 50 (+25%)
Mutual labels:  facebook
DaProfiler
DaProfiler allows you to create a profile on your target based in France only. The particularity of this program is its ability to find the e-mail addresses your target.
Stars: ✭ 58 (+45%)
Mutual labels:  facebook
facebook-ruby-ads-sdk
The Facebook Marketing API in Ruby.
Stars: ✭ 59 (+47.5%)
Mutual labels:  facebook
Perfect-Authentication
OAuth2 Implementations with Facebook, Google, LinkedIn, Slack, SalesForce and GitHub providers.
Stars: ✭ 14 (-65%)
Mutual labels:  facebook
facebook-send-api-emulator
Facebook Messenger Emulator & Facebook Send API Emulator functionality allowing you to test web hooks on developer's machine.
Stars: ✭ 24 (-40%)
Mutual labels:  facebook
debloat-adb
Bash Debloat-Scripts for Android Devices (using ADB)
Stars: ✭ 27 (-32.5%)
Mutual labels:  facebook
react-native-oauth-login-tutorial
Learn how to log users into React Native apps via Facebook or Google OAuth
Stars: ✭ 56 (+40%)
Mutual labels:  facebook
facebook-go-sdk
A very simple and easy-to-use Facebook SDK for Golang.
Stars: ✭ 18 (-55%)
Mutual labels:  facebook
botyo
Modular chatbot framework designed for group chat rooms on Facebook
Stars: ✭ 17 (-57.5%)
Mutual labels:  facebook
FisherMan
CLI program that collects information from facebook user profiles via Selenium.
Stars: ✭ 117 (+192.5%)
Mutual labels:  facebook
FacebookGraphAPI-Examples
Examples for facebook graph api for python
Stars: ✭ 38 (-5%)
Mutual labels:  facebook
android-pickpic
Ready to use library that allows people to select pictures from their device and Facebook account.
Stars: ✭ 12 (-70%)
Mutual labels:  facebook
facebook adblock
An open-source Ad Blocker for Facebook™
Stars: ✭ 173 (+332.5%)
Mutual labels:  facebook
gobo
💭 Gobo: Your social media. Your rules.
Stars: ✭ 87 (+117.5%)
Mutual labels:  facebook
SimpleOAuth
Simple OAuth 2.0 for Android
Stars: ✭ 15 (-62.5%)
Mutual labels:  facebook
Bot-Chucky
Python bot which able to work with messenger of facebook
Stars: ✭ 21 (-47.5%)
Mutual labels:  facebook
lambda-facebook-oauth
An AWS Lambda function to facilitate Oauth2 social login with Facebook
Stars: ✭ 16 (-60%)
Mutual labels:  facebook
FB-Ads-Opt-UCB
The easiest way to optimize Facebook Ads using Upper Confidence Bound Algorithm. 💻
Stars: ✭ 23 (-42.5%)
Mutual labels:  facebook

Instant Game ADS-Controller

Learn how to integrate Fb audience network with instant games / games built with HTML5 & JavaScript


1. Ads-Contoller file should be placed in the main folder of the game (the same folder that contains index.html)


2. Start by importing the AdsController by adding this line in the body of your index file

<script src="AdsController.js"></script>

3. Open AdsController.js file and replace the xxxxxxxxxxxx_xxxxxxxxxxxx with your Interstitial & Rewarded Video IDs

const INTERSTITIAL_PLACEMENT_ID = 'xxxxxxxxxxxx_xxxxxxxxxxxx'; //*-------- Interstitial -------*//
const REWARDED_PLACEMENT_ID = 'xxxxxxxxxxxx_xxxxxxxxxxxx'; //*-------- Rewarded Video -----*//

4. Start Pre-loading your ADS by calling

LoadRewarded();
LoadInter();

5. Ads can be shown anywhere you want by calling this function

ShowRewarded();
ShowInter();

AdsContoller enables you to Load your ADS at any time you like, and then to show it at any time you like easily by using the following functions :


Interstitial

Load Interstitial in 10s
Show Interstitial in 15s

<script>
window.setInterval(LoadInter, 10000); // Load Interstitial in 10s 
window.setInterval(ShowInter, 15000); // Show Interstitial in 15s 
</script>

Rewarded Video

Load RewardedVideo in 16s
Show RewardedVideo in 32s

<script>
window.setInterval(LoadRewarded, 16000); // Load RewardedVideo in 16s 
window.setInterval(ShowRewarded, 32000); // Show RewardedVideo in 32s 
</script>

NB : Do not call the Interstitial & Rewarded Video functions at the same time & same place !

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].