Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AdMob : How to query admob for my app earnings

Tags:

web

service

admob

I've already configured adMob for my Android apps and have no problem with that.

Right now I'm looking for any way to check my apps earnings (if possible for each of the apps separately) in any given moment.

Somebody knows if there's any API, library or Web Service I can use to access my AdMob account and get info about my apps' statistics and so on ?

I've already checked the official APK but it seems only intended to show the ads in your app and nothing else.

Thanks in advance

like image 998
Miguel Rivero Avatar asked Aug 21 '13 11:08

Miguel Rivero


People also ask

How do I check my AdMob earnings?

You'll see a daily summary of your estimated earnings on your Home page. You can track your estimated earnings by clicking Payments in the sidebar. Also, consider using your reports for more details about your earnings.

Can I earn from AdMob without publishing my app?

In 2022, you can't monetize your app with admob without publishing it on Google Play Store or any other app store.

Why is my AdMob earning reducing?

Google may adjust your earnings if it detects invalid activity in your account or for activity that is not in compliance with Google policies. Google may also adjust your earnings if it cannot collect payments from advertisers whose ads were displayed on your content.


1 Answers

I answer myself.

I was doing some research, and I found that after the recent changes on AdMob, and the migration to AdSense, you must use the AdSense API to get this info.

In particular, each Android app is associated with a "adunit" id, so if you want to check the info of any particular app you might use:

https://developers.google.com/adsense/management/v1.4/reference/accounts/reports/generate

with the following data:

accountId = your Publisher ID (pub-XXXXXXX)
startDate and endDate = The interval of dates you want to check
dimension = AD_UNIT_ID
metric = EARNINGS

With this query you'll have the required info, separated by App.

You get the results in JSON form.

like image 86
Miguel Rivero Avatar answered Sep 27 '22 21:09

Miguel Rivero