-
Notifications
You must be signed in to change notification settings - Fork 74
Installation
dependencies {
//link other libs
compile 'com.github.clockbyte:admobadapter:1.x.x'
}
<dependency>
<groupId>com.github.clockbyte</groupId>
<artifactId>admobadapter</artifactId>
<version>1.x.x</version>
</dependency>
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
.
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).