This file contains 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.buildbox.adapter.custom; | |
import android.app.Activity; | |
import android.util.Log; | |
import com.appodeal.ads.Appodeal; | |
import com.appodeal.ads.BannerCallbacks; | |
import com.appodeal.ads.InterstitialCallbacks; | |
import com.appodeal.ads.RewardedVideoCallbacks; | |
import com.appodeal.ads.api.App; |
This file contains 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
// ==================================================================================================== | |
// | |
// Cloud Code for analytics, write your code here to customize the GameSparks platform. | |
// | |
// For details of the GameSparks Cloud Code API see https://docs.gamesparks.com/ | |
// | |
// ==================================================================================================== | |
var baseURL = "https://api2.amplitude.com/2/httpapi" | |
//Required |
This file contains 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
<?php | |
if( $_GET["api_key"] && ($_GET["user_id"] || $_GET["device_id"] ) && $_GET["event_type"] ) { | |
// Required data | |
$data = array( | |
'event_type' => $_GET['event_type'] | |
); | |
if( $_GET["user_id"] ) { |
This file contains 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
let ip = event.headers["x-forwarded-for"]; | |
let event_type = steps.trigger.event.query.event_type; | |
let api_key = steps.trigger.event.query.api_key; | |
var geo; | |
var geoip = require('geoip-lite'); | |
if (ip) { | |
geo = geoip.lookup(ip); |
This file contains 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"> | |
//Modify these items. | |
const DOMAIN_KEY = "<youdomainKey>"; | |
const GAME_KEY = "<gameKey>"; | |
const GAME_VERSION = "<gameVersion>"; | |
const DEV_MODE = true; | |
</script> | |
<!DOCTYPE html> | |
<html> |
This file contains 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
exports = function(payload, response) { | |
const uuid = require('uuid') | |
var {userId} = payload.query; | |
//Gets a blank table from the game collection to store all the user properties. | |
let getBlankRecord = function() { | |
var newUserId = uuid.v4(); //New Guid | |
let filter = {}; | |
filter["Name"] = "gameVariables"; //Name of table. | |
OlderNewer