Posts

Showing posts from February, 2018

Report your AdMob earnings via Only One Single XMLHttpRequest

Image
Send XMLHttpRequest function reqListener () { console.log(this.responseText); } function admobReport() { var url = 'https://content.googleapis.com/adsense/v1.4/accounts/'; var accountId = 'pub-xxx'; // change to your own accountId url += accountId; url += '/reports?dimension=APP_ID'; url += '&filter=AD_CLIENT_ID==ca-app-' + accountId; url += '&metric=EARNINGS' url += '&startDate=2018-02-01'; // change start date url += '&endDate=2018-02-24'; // change end date var oReq = new XMLHttpRequest(); oReq.addEventListener("load", reqListener); oReq.open("GET", url); var AuthorizationToken = 'xxx'; // The way to get it is in this post oReq.setRequestHeader('Authorization', 'AuthorizationToken'); oReq.send(); } admobReport(); Response { "kind": "adsense#report", "totalMatchedRows": "1", "headers": [ { "name&

Westminster Shorter Catechism Q&A, my first android app

Image
Download here. react-native project https://github.com/lengerrong/WestminsterShorterCatechismQA Can't release for iOS yet, since I do not have a mac laptop yet.

Privacy Policy

Your privacy is critically important to us. At errong.win, we do not collect and transmit any user data.