Long story short,
Been having a tough time getting facebook to register installs in the mobile ad campaign.
HOWEVER, it does show up in the insights section when viewing the app from https://developers.facebook.com/apps
It’s registering some iOS and Android downloads (but certainly not all and is very intermittent.
That being said, I’d like to see if I have been doing it wrong because my ad campaigns show 0 installs and I know users have been downloading it via insights on app annie and the play console dashboard.
Here is how I have tried to implement it and yes I have viewed the corona documentation for facebook publish installs. Ideally I want it to register both organic and paid installs.
Here is my main.lua file as follows
display.setStatusBar(display.HiddenStatusBar);
_G.totalWidth = display.contentWidth-(display.screenOriginX*2);
_G.totalHeight = display.contentHeight-(display.screenOriginY*2);
_G.leftSide = display.screenOriginX;
_G.rightSide = display.contentWidth-display.screenOriginX;
_G.topSide = display.screenOriginY;
_G.bottomSide = display.contentHeight-display.screenOriginY;
local setupFile = require “setupFile”;
local fpsLib = require “fpsLib”;
local storyboard = require “storyboard”;
facebook = require “facebook”;
storyboard.purgeOnSceneChange = true;
fpsLib.init();
facebook.publishInstall( “606693996080805” ) --replace XXXXXXXXXX with your Facebook App ID
_G.buttonSFX = audio.loadSound(“SFX/wooshSFX.mp3”);
storyboard.gotoScene(“menuScene”, “fade”);
local screenShotNumber = 1;
function keyIsPressed(event)
if event.keyName == “a” and event.phase == “down” then
display.save(storyboard.getScene(storyboard.getCurrentSceneName()).view, “screen”…screenShotNumber…".png", system.DocumentsDirectory, true);
screenShotNumber = screenShotNumber+1;
end
end
Runtime:addEventListener(“key”, keyIsPressed);