Since January 2014, I have used Vungle in my applications. At that time, it was one of the most profitable ad networks for mobile applications and one of the few supporting promotional videos.
Vungle interface in 2014
Total income, total and by months, could be viewed on the account page. The key word was "was."
')
After 2 years, the situation changed - Unity presented its advertising network, where many developers and advertisers went, and Vungle decided to redesign it.
Initially, it seemed that everything was fine, but exactly until the moment I decided to see the balance on the account. Climbing all the pages, I did not find it that way, except for the tab with income reports, which are loaded as a .csv file. They look like this:
Thanks to the formulas in Excel, we somehow managed to isolate the data on incomes and add them, but this, to put it mildly, was not very convenient. At the same time, it was decided to use Unity Ads in new applications. After a while, I decided to go in and see the income of the old applications over the past year, but then there was a surprise.
At first I was very surprised, I thought it was a bug, but then I noticed a plate on top.
Clicking on the
link , I find the only way to see the income. Here he is. Unfortunately, only for a specific application, and not for the entire account.
Okay. I thought that the API will return me some text where I will see the total income. Got an account key, made a link and moved. The API returned me THIS. As before, income was highlighted only for one day, without any totals, but now also broken down by country. Thank you very much.
Angry, he decided to reach the end. I wrote an application on Unity, which downloads json links, processes and adds the total income.
Very bad UnityScript code#pragma strict import System; class MainMainVungle{ var mvungle: MainVungle; } class MainVungle { var vungle: Vungle[]; } class Vungle { var date: String; var impressions: int; var views: int; var completes: int; var clicks: int; var revenue: float; var eCPM: float; var geo_eCPMs: VunlgeCounty[]; } class VunlgeCounty { var country: String; var views: int; var clicks: int; var revenue: float; var eCPM: float; } var apps: String[]; private var url: String = "https://ssl.vungle.com/api/applications/{0}?key=[ API]&start={1}&end={2}&geo=all"; private var templateJson: String = '{"vungle":'; var startDate = "2016-09-27"; var mmvungle: MainMainVungle[]; var revenue: float; function Start () { var cTime: Date = System.DateTime.Now; var i: int; for (i = 0; i< apps.Length; i++){ var cUrl = String.Format(url, apps[i], startDate, cTime.Year+"-"+StringTime(cTime.Month)+"-"+StringTime(cTime.Day)); var www : WWW = new WWW(cUrl); yield www; var json: String = templateJson+ www.text+"}"; mmvungle[i].mvungle = JsonUtility.FromJson(json, MainVungle); Debug.Log("Loading "+apps[i]); } for (i = 0; i< mmvungle.Length; i++){ for (var v: int = 0; v< mmvungle[i].mvungle.vungle.Length; v++){ revenue+=mmvungle[i].mvungle.vungle[v].revenue; } } Debug.Log("Revenue: "+revenue); } function StringTime(v: int){ if (v < 10){return "0"+v;} else {return ""+v;} }
In the end, still managed to obtain data on income.
I wonder why Vungle so diligently trying to complicate the lives of its users?