AdMob
This guide explains how to set up an AdMob monetization data grabber in the Magify analytics system.
The grabber enables the automated import of monetization data, including ad revenue, impressions, eCPM, ad unit performance, and other AdMob-specific metrics from your Google AdMob account into your analytics pipeline.
Getting Started
- Navigate to Configurations > Integrations > Monetization Grabbers in the Magify interface.
- Find AdMob in the list and click Add Grabber to create a new data source.
- A configuration form will open.

This form is used to connect Magify to your AdMob account by providing the required credentials: Publisher ID, Client ID, Client Secret, Refresh Token, Grabbing Start Date, and a custom integration name.
Each field in the form is described below.
Name
A descriptive name for the grabber configuration. Helps identify the data source among other integrations.
Recommended format: AdMob Grabber [CompanyName]
Optional field – recommended to fill in for easier navigation.
Organization
Select your organization from the dropdown list.
Publisher ID
The Publisher ID is a unique identifier assigned to your AdMob account. It is required to authenticate and retrieve monetization data via the AdMob API.
How to find it:
- Log in to your Google AdMob account.
- Сlick on your Google account avatar in the top right corner of the screen.
- In the dropdown that appears, locate and copy your Publisher ID — it will be shown under your account information, formatted like:
pub-xxxxxxxxxxxxxxxx

Client ID and Client Secret
These credentials are used to authenticate Magify’s access to your AdMob data through the Google OAuth 2.0 API. They are required to authorize secure communication and allow Magify to retrieve monetization reports from your AdMob account.
How to obtain them:
- Go to the Google Cloud Console.
- Click on the APIs & Services button in the menu.
- Open the project picker at the upper-left of the page. Select New Project, or choose an existing project you already created for this app.

In the case you are creating a new project for this purpose, provide a Project name in the dialog box that appears and click Create.

- In the left sidebar, select OAuth consent screen.

- If you see a screen that says "Google Auth Platform not configured yet", click the Get started button to begin setting up your OAuth configuration.
- On the App Information screen, fill in the required fields and check the box "I agree to the Google API Services: User Data Policy". Click Continue to complete the OAuth consent screen setup.
- Once the consent screen setup is complete, you’ll be redirected to the OAuth Overview page.Click the Create OAuth client button to generate your credentials. You will proceed to configure your OAuth 2.0 Client ID and Client Secret, which are required for the AdMob grabber integration in Magify.

- On the Create OAuth client ID screen:
- In the Application type dropdown, select Web application.
- Provide a name for your app in the Name field (e.g.,
Magify AdMob Client
). This name is internal and used only for your reference. - In the Authorized redirect URIs section, you must enter the following URL:
https://developers.google.com/oauthplayground
This is required for using OAuth 2.0 Playground to manually generate a refresh token.

Once completed, click Create to generate your Client ID and Client Secret. These credentials will be used in the Magify interface to connect the AdMob grabber.

- Go to the API Library. To access the list of available APIs: click on Library in the left-hand menu (located below Enabled APIs & services).

- In the API Library, scroll to the Advertising section and locate the AdSense Management API card:
- Click on the AdSense Management API.
- Then, click the Enable button on the API details page.


Refresh Token
To authenticate requests to the AdSense API, you'll need a Refresh token. Follow these steps:
- Go to the OAuth 2.0 Playground.
- Click the settings icon (⚙️) in the upper right corner. From the Force prompt drop-down, select "No", and check the box "Use your own OAuth credentials".
- Then, input your Client ID and Client Secret.

- In Step 1: Select & Authorize APIs, scroll down to find AdSense Management API v2 and select the following scopes:
https://www.googleapis.com/auth/adsense
https://www.googleapis.com/auth/adsense.readonly
- In Step 1: Select & Authorize APIs, scroll down and find AdMob API v1 and select the following scopes:
https://www.googleapis.com/auth/admob.readonly
https://www.googleapis.com/auth/admob.report
- Click Authorize APIs to continue the authentication flow.

- After authorizing the selected scopes, you will receive an Authorization Code in Step 1. Click the Exchange authorization code for tokens button. You will then receive:
- a Refresh Token (used to generate new access tokens)
- an Access Token (used for authenticated API requests)

Grabbing Start Date
This parameter defines the starting date for data fetching from the network’s API.
- Format:
YYYY-MM-DD
(e.g.,2025-12-01
)
Is Enabled
Enable this option to start collecting data immediately. If left unchecked, the configuration is saved but inactive.

Saving the Configuration
Once all required fields are filled in, click Save to complete the setup. The enabled grabber will begin collecting data from AdMob based on the configured schedule. By default, each grabber is configured to load data for 1 day when created.
If you need to collect data for a longer period (e.g., for initial setup or data recovery), please contact us — we can manually adjust this value for you.
By default, each grabber is configured to load data for 1 day when created.
If you need to collect data for a longer period (e.g., for initial setup or data recovery), please contact us — we can manually adjust this value for you.