Adbuddiz Ads in Android Studio


Adbuddiz ads in Android Studio:- 
1) build gradle(Module app)
  android { ... }
   dependencies {
      compile 'com.purplebrain.adbuddiz.sdk:AdBuddiz-Java:3.+'
   }
   repositories {
      maven {
         url 'http://repository.adbuddiz.com/maven'
      }
   }

Update Android Manifest.xml add theses lines 
 Ad Permission
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 Adbuddiz Activity
  <application ...>
     ...
     <activity android:name="com.purplebrain.adbuddiz.sdk.AdBuddizActivity" 
               android:theme="@android:style/Theme.Translucent" />
   </application> 
Add these line in Main Activity.java
AdBuddiz.setPublisherKey("Your Publisher Key");
AdBuddiz.setLogLevel(AdBuddizLogLevel.Info);
AdBuddiz.cacheAds(this);
AdBuddiz.showAd(this); 
For Video tutorial of adbuddiz click this link Adbuddiz ads in android studio 

No comments:

Post a Comment