Get Started with Avocarrot

Overview

Examples

Android

Overview

Getting Started

- Integrating Ads

Stream

Native Assets

Banner

Interstitial

Video

- Others

Troubleshooting

- Adapters

Admob Android Adapter

Mopub Android Adapter

iOS

Overview

Getting Started

- Integrating Ads

Stream

Native Assets

Banner

Interstitial

Video

- Others

Troubleshooting

- Adapters

Admob iOS Adapter

Mopub iOS Adapter

API Documentation

Reporting API

Help

Supported Networks & Ad Types

General

Earnings

Payments and Accounting

Integration

Reporting

Mediation Network Optimization

Legal and Privacy

Updates

SDK Change Log

Android Change Log

iOS Change Log

Admob Android Adapter

Updated 14 days ago ​by Derek Lim

Requirements

  • Google Mobile Ads SDK version 11.0.4.
  • Avocarrot Android SDK v4.7.1.

Supported Ad Formats

  • Banner
  • Interstitial
  • Native

Setup Avocarrot Network

  1. Add Avocarrot 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 Avocarrot adapter
    dependencies {
        // Banner
        compile 'com.avocarrot.sdk:adapter-admob-banner:1.4.0'
        // Interstitial
        compile 'com.avocarrot.sdk:adapter-admob-interstitial:1.4.0'
        // Native
        compile 'com.avocarrot.sdk:adapter-admob-nativead:1.4.0'
    }
    Only add the dependencies according to the ad format you need
  3. The Avocarrot 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 Avocarrot 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: Setup

Troubleshooting

  • If at any point you need any technical help, please get in touch with Avocarrot Support

Was this article useful?