Code Monkey home page Code Monkey logo

admobadapter's Introduction

Admob Adapter

Admob Adapter is an Android library that makes it easy to integrate Admob native ads (both Express and Advanced) into ListView/RecyclerView in the way that is shown in the following image/animation.

#Main features

  • Publish of the native ads without changing the logic of your Adapter
  • Customization: you can easily set the maximum count of ads per list, the count of items shown between ad blocks and a custom layouts for ads blocks.
  • Easy to update ad blocks periodically

The admobadapter-sampleapp shows the available features and customizations.

Installation

##Cloning First of all you will have to clone the library.

git clone https://github.com/clockbyte/admobadapter.git

Now that you have the library you will have to import it into Android Studio. In Android Studio navigate the menus like this.

File -> Import Project ...

In the following dialog navigate to admobadapter-master which you cloned to your computer in the previous steps and select the build.gradle.

##Or you also can simply copy all the *.java from

admobadapter/admobadapter/src/main/java/com/clockbyte/admobadapter/

to your java sources folder (feel free to edit the package names in all files but please leave the License header as is).

and all the *.xml from

admobadapter/admobadapter/src/main/res/layout/

to your res/layout folder. Also please don't forget to copy the string resource test_admob_unit_id from admobadapter/admobadapter/src/main/res/values/strings.xml to your strings.xml file. Then kindly use it as demonstrated in the sampleapp demo. When you'll be ready to deploy your app to Release you'll have to register in the Admob and create Ad unit ID there. Then you'd kindly replace the test_admob_unit_id with your real Ad unit ID. And please don't forget to use the test ID instead of real one when you're debugging/testing your app otherwise Admob can ban your account (artificial inflating of impressions and so on).

#Base usage The quick and dirty start is shown in the sampleapp of the project (to switch the sample between the RecyclerView and ListView examples kindly edit the AndroidManifest.xml)

The Developer's guide on native ads could be found here.

The cook recipes could be found in the Wiki

Also feel free to ask me.

#Contributions Contributions are very welcome. If you find a bug in the library or want an improvement and feel you can work on it yourself, fork + pull request and i'll appreciate it much!

admobadapter's People

Contributors

kot331107 avatar

Stargazers

 avatar  avatar  avatar  avatar  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.