Get Started with Glispa Connect

Overview

Examples

Android

Overview

- Native Ads

List/Feed

Custom

- Standard IAB Formats

Banner

Interstitial

Video

- Others

GDPR

Troubleshooting

Admob Android Adapter

Mopub Android Adapter

DFP Android Adapter

iOS

Overview

- Native Ads

List/Feed

Custom

- Standard IAB Formats

Banner

Interstitial

Video

- Others

Troubleshooting

- Adapters

Admob iOS Adapter

Mopub iOS Adapter

DFP iOS Adapter

API Documentation

Reporting API

Help

General

Earnings

Payments and Accounting

Integration

Reporting

Legal and Privacy

Updates

SDK Deprecation Schedule

SDK Change Log

Android Change Log

iOS Change Log

Admob Android Adapter

Updated 1 month ago by Derek Lim

Requirements

  • Google Mobile Ads SDK version 11.8.0.
  • Glispa Connect Android SDK v4.8.1.

Supported Ad Formats

  • Banner
  • Interstitial
  • Native

Setup Glispa Connect (formerly Avocarrot) Network

  1. Add Glispa Connect Repository to yourbuild.gradlefile:
    repositories {
                maven { url  "https://s3.amazonaws.com/avocarrot-android-builds/dist" }
              }
  2. Add the needed compile dependencies depending on targeted ad format with the latest version of the Glispa Connect adapter
    dependencies {
                  // Banner
                  compile 'com.avocarrot.sdk:adapter-admob-banner:1.4.11'
                  // Interstitial
                  compile 'com.avocarrot.sdk:adapter-admob-interstitial:1.4.11'
                  // Native
                  compile 'com.avocarrot.sdk:adapter-admob-nativead:1.4.11'
              }
    Only add the dependencies according to the ad format you need
  3. The Glispa Connect SDK should be initialised and started before requiring for ads. To ensure that the metrics are not over-counted, it is highly recommended that the Glispa Connect SDK be called in the Application class.

    public class YourApplication extends Application {
                  @Override
                  public void onCreate() {
                      super.onCreate();
                      Avocarrot.onApplicationCreated(this);
                      //...
                  }
                  //...
              }
  4. Add application name to your AndroidManifest.xml file.

    <application android:name=".YourApplication">
                <!-- activities goes here -->
              </application>
  5. Follow instructions to setup custom events in AdMob: 

Step 1: Click on MonetiseYour APP

Step 2 : Click on Ad Sources


Step 3 : Add an Ad source




Step 4 : Enter class name

Class name for our adapter is in this format:

com.avocarrot.adapter.admob.<adapter class name>

Banner
i.e  com.avocarrot.adapter.admob.BannerAdapter

Interstitial
i.e  com.avocarrot.adapter.admob.InterstitialAdapter

Native
i.e  com.avocarrot.adapter.admob.NativeAdapter


Step 5: Enter Ad unit id in Parameter field



Troubleshooting


Was this article useful?