Buildbox 3.x and Appodeal Android integration.

Posted by

If you are planning to use appodeal and have not signed up for an account yet please consider using my sponsor link: https://app.appodeal.com/utm_campaign=ambassador+2e42d36a308319ea421f0fdd7dd0d641

  1. Export your Buildbox project. Make sure you select custom ad network in the project properties.
  2. In the build.gradle add the repo for appodeal:
repositories {
// ... other project repositories
maven {
url "https://artifactory.appodeal.com/appodeal"
}
}

3. Add the networks you want to use under dependencies in the same file. You can use the wizard here to add the ones you want to use. Or just use the ones that I use:

implementation 'com.appodeal.ads.sdk:core:2.8.1'
implementation 'com.appodeal.ads.sdk.networks:a4g:2.8.1.7'
implementation 'com.appodeal.ads.sdk.networks:adcolony:2.8.1.8'
implementation 'com.appodeal.ads.sdk.networks:amazon_ads:2.8.1.2'
implementation 'com.appodeal.ads.sdk.networks:applovin:2.8.1.9'
implementation 'com.appodeal.ads.sdk.networks:admob:2.8.1.8'
implementation 'com.appodeal.ads.sdk.networks:ironsource:2.8.1.8'
implementation 'com.appodeal.ads.sdk.networks:mraid:2.8.1.2'
implementation 'com.appodeal.ads.sdk.networks:smaato:2.8.1.4'
implementation 'com.appodeal.ads.sdk.networks:unity_ads:2.8.1.7'
implementation 'com.appodeal.ads.sdk.networks:vungle:2.8.1.5'
implementation 'com.appodeal.ads.sdk.networks:chartboost:2.8.1.5'
implementation 'com.appodeal.ads.sdk.networks:mopub:2.8.1.3'
implementation 'com.appodeal.ads.sdk.networks:tapjoy:2.8.1.6'

4. In the same file change the minSDKVersion to 19. You can skip this if all the networks you selected above support minSDKVersion 16. Click on “Sync Now” when done.

5. Add the compile options to the same file:

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}

6. In the android manifest enter your admob key and add the delay app measurement meta-data:

<meta-data
    android:name="com.google.android.gms.ads.APPLICATION_ID"
    android:value="ca-app-pub-xxxxx"/>

<meta-data
    android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT"
    android:value="true"/>

7. Replace the code in java->com->buildbox->adapter->custom->AdIntegrator with this code.

8. On the top of this file there is 1 line you need to change and a few others that you might want to change:

private String appodealKey = " "; //Required: your appodeal key.
private boolean hasConsent = false;
private int adTypes = Appodeal.INTERSTITIAL | Appodeal.REWARDED_VIDEO | Appodeal.BANNER; //Optional: remove types you are not using.
private int bannerPosition = Appodeal.BANNER_BOTTOM; //Optional: placement of banner.
private boolean isBannerVisible = false;

If you have any problems send me a note and I’ll try to figure it out.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.