Skip to content

Ad4GameTech/admob-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

admob-adapter

Features

Banner / Interstitial / Rewarded / Native

Requirements

Google Mobile Ads SDK 20.0.0 or higher

Use Android Studio 3.2 or higher

A minSdkVersion of 19 or higher

A compileSdkVersion of 28 or higher

Installation

Import adapter into App / Game Add the following implementation dependency with the latest version of the adapter in the app-level build.gradle file:

repositories { maven {url "https://github.com/Ad4GameTech/admob-adapter/raw/main" } }

// ... dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.google.android.gms:play-services-ads:+' ** 22.2.0 +** implementation 'com.Ad4game:admobmanager:1.1.4' } // ...

Usage

GDPR Compliance

If you are not using any Consent Management Platform to handle privacy issues and managing user consent with your own solution, you have to inform admob mediation and mediation partners about the consent. The following code snippet is sample for gdpr consent usage for admob mediation. If you already have the snippet like below you need to add all these extras bundles for the Ad4Game custom event adapter as well.

AdRequest.Builder builder = new AdRequest.Builder();
Bundle extras = new Bundle();
extras.putString("npa", "1");
builder.addNetworkExtrasBundle(AdMobAdapter.class, extras);

// Add this for Ad4Game
builder.addNetworkExtrasBundle(AdmobCustomEventManager.class,
        extras);

Configure mediation settings for your AdMob ad unit You need to add Ad4Game placements provided by the Ad4Game team to the mediation configuration as waterfall ad source for your ad unit.

Alt text Alt text

Custom Event screen parameters

Class Name : You can use the following parameters depending on the ad unit format of the mediation group.

Interstitial / Rewarded / Banner / Native : com.ad4game.admobadapter.AdmobCustomEventManager

Parameter : Ad4Game Unit ID

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors