In this tutorial you learn how to set Adbuddiz ads in android studio. Firstly Create new project in android studio.
then download the jar file and add in libs folder. and add these lines in

build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.javatpoint.info.AdbuddizDemo"
        minSdkVersion 21
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile files('libs/AdBuddiz-3.1.11.jar')
}


Second Step add these in 
Androidmanifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.javatpoint.info.AdbuddizDemo" >
 <uses-permission android:name="android.permission.INTERNET" />
   <!-- Highly recommended permission to get more ads and revenue -->
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 <application
 android:allowBackup="true"
 android:icon="@mipmap/ic_launcher"
 android:label="@string/app_name"
 android:supportsRtl="true"
 android:theme="@style/AppTheme" >
 <activity android:name=".MainActivity"
 
 <intent-filter>
 <action android:name="android.intent.action.MAIN" />

 <category android:name="android.intent.category.LAUNCHER" />
 </intent-filter>
 </activity>

 <activity android:name="com.purplebrain.adbuddiz.sdk.AdBuddizActivity"
 android:theme="@android:style/Theme.Translucent" />
 </application>

</manifest>

"DreamHost"
Now Last Step is Add these lines in 
MainActivity.java
import android.app.Activity;
import android.os.Bundle;

import com.purplebrain.adbuddiz.sdk.AdBuddiz;
import com.purplebrain.adbuddiz.sdk.AdBuddizLogLevel;

/**
 * Created by Sahil on 12/17/2016.
 */

public class MainActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.b);
  AdBuddiz.setLogLevel(AdBuddizLogLevel.Info);
 AdBuddiz.setPublisherKey("TEST_PUBLISHER_KEY"); 
 AdBuddiz.setTestModeActive();  
 AdBuddiz.cacheAds(this); 
 AdBuddiz.showAd(this);
 }
 } 
This is demo ad if you want live ads
AdBuddiz.setTestModeActive();  this line deleted only blue color line added in your project