Giter VIP home page Giter VIP logo

appopenadmanager's Introduction

AppOpenAdManager

Codacy Badge

AppOpenAdManager is just a simple wrapper to handle the new AppOpenAd Format by AdMob (Google).
If you look at the tutorial, you'll see the detailed guide to create a Helper Class to manage AppOpenAd.

The wrapper should have been included in the core Ads SDK itself but it wasn't, So I ended up creating the wrapper!
All that boilerplate, now wrapped to a Single line of Code for the developer.

Dependency

val latest_version:1.0

Gradle:

implementation 'com.lazygeniouz:aoa_manager:$latest_version'`

Maven:

<dependency>
  <groupId>com.lazygeniouz</groupId>
  <artifactId>aoa_manager</artifactId>
  <version>$latest_version</version>
  <type>pom</type>
</dependency>

Usage

Kotlin:

AppOpenManager(this, InitialDelay.NONE, adUnitId, adRequest, orientation)

Java:

new AppOpenManager(App.this, InitialDelay.NONE, adUnitId, adRequest, orientation);

The constructor arguments are:

  • @NonNull application: Application
    Your class extending android.app.Application

  • @NonNull initialDelay: InitialDelay
    You can specify an Initial Delay to load & display the Ad for the first time.
    If you do not need a delay, simple pass InitialDelay.NONE
    But it is a good practise to allow the user to first explore the App &
    therefore 1 Day should be fine which is also the Default if you pass InitialDelay()

  • adUnitId: String
    Your adUnitId
    (Optional for Testing) Default is a Test AdUnitId

  • adRequest: AdRequest
    (Optional) If you have a customised AdRequest

  • orientation: Int
    (Optional) Default is AppOpenAd.APP_OPEN_AD_ORIENTATION_PORTRAIT
    Available variables are:
    AppOpenAd.APP_OPEN_AD_ORIENTATION_PORTRAIT
    AppOpenAd.APP_OPEN_AD_ORIENTATION_LANDSCAPE

appopenadmanager's People

Contributors

itznotabug avatar codacy-badger avatar

Watchers

James Cloos 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.