Git Product home page Git Product logo

android-adapters's Introduction

android-adapters

Example project on how to use the Avocarrot SDK with other Ad Networks, in your Android projects.

For any technical help or questions, please get in touch with support

Contents

===

Mopub

You can use Avocarrot as a Network in Mopub's Mediation platform.

===

1. Setup SDKs

===

2. Setup Mopub Dashboard

Create an "Avocarrot" Network in Mopub's dashboard and connect it to your Ad Units.

  • In Mopub's dashboard select Networks > Add New network

_networks

  • Then select Custom Native Network

_add-new-network

  • Complete the fields accordingly to the Ad Unit that you want to use

_setup

===

a) Interstitial

For Interstitial Ad Units (Natural Pause in Avocarrot => Fullscreen, Medium etc formats in Mopub), you need to :

  • Complete the following in Mopub Dashboard:

Custom Event Class

com.mopub.mobileads.AvocarrotInterstitialMopub

Custom Event Class Data

{"apiKey":"<AvocarrotApiKey>","placementKey":"<AvocarrotPlacementKey>"}

Get your api & placement keys from the Avocarrot Dashboard. Please note that for Mopub Interstitial you should create an Avocarrot "Natural Pause" placement.

===

b) Native

For Native Ad Units (such as List, Feed in Avocarrot's Dashboard => Native (Custom Layout) Format in Mopub) you need to :

  • Complete the following in Mopub Dashboard:

Custom Event Class

com.mopub.nativeads.AvocarrotNativeMopub

Custom Event Class Data

{"apiKey":"<AvocarrotApiKey>","placementKey":"<AvocarrotPlacementKey>"}

Get your api & placement keys from the Avocarrot Dashboard. Please note that for Mopub Native you should create an Avocarrot "Create your own" placement.

===

3. Ready to GO!

Congratulations! You have now successfully integrated Avocarrot and you should have received your first ad.

Troubleshooting

  • If you have any problem, you can enable the logger or/and sandbox mode by adding "sandbox":"true" , "logger":"true" in Custom Event Class Data.
  • Please have in mind, that any time you make a change to the Mopub dashboard, try to fetch an ad a couple times and then wait a few minutes for Mopub's cache to clear.
  • You can also try cloning the example project below to make sure everything is running ok
  • If at any point you need any technical help, please get in touch with [support] (https://app.avocarrot.com/#/docs/contact)

Clone the Example Project

  • git clone https://github.com/Avocarrot/android-adapters.git
  • cd android-adapters
  • git submodule update --init --recursive
  • Import to Android Studio
  • Update your Mediation Ad Unit Ids in res/string.xml
  • Run in the emulator and you should receive ads normally in the Example App

android-adapters's People

Contributors

talklittle avatar tsiougkosn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.