This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class RevMobGameObject : MonoBehaviour, IRevMobListener | |
{ | |
// Just replace the IDs below with your appIDs. | |
private static readonly Dictionary<String, String> appIds = new Dictionary<String, String>() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RevMob(appIds) { | |
var moduleNames = { 'iPhone OS': 'com.revmob.titanium', 'android': 'com.revmob.ti.android' } | |
var revmobModule = require(moduleNames[Ti.Platform.name]); | |
revmobModule.startSession(appIds[Ti.Platform.name]); | |
return revmobModule; | |
} | |
// Just replace the ID below with your appID. | |
var revmob = new RevMob({ 'iPhone OS': '4fd619388d314b0008000213', 'android': '4f56aa6e3dc441000e005a20' }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var REVMOB_CONFIG = { id: "your RevMob mobile website ID" }; | |
</script> | |
<script src="https://apiweb.revmob.com/assets/revmob.js" type="text/javascript"> | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<cordova> | |
<access origin=".*"/> | |
<log level="DEBUG"/> | |
<preference name="useBrowserHistory" value="false"/> | |
<preference name="exit-on-suspend" value="false"/> | |
<plugins> | |
<plugin name="App" value="org.apache.cordova.App"/> | |
<plugin name="Geolocation" value="org.apache.cordova.GeoBroker"/> | |
<plugin name="Device" value="org.apache.cordova.Device"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.revmob.sample.developer; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.util.Log; | |
import android.view.View; | |
import com.revmob.RevMob; | |
import com.revmob.ads.link.RevMobLink; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.revmob.air.sample | |
{ | |
import com.revmob.airextension.RevMob; | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.system.Capabilities; | |
public class RevMobExtensionSample extends Sprite |
NewerOlder