B4A Library AppLovin Ads - Social Advertising

Hi folks,

I present you the AppLovin ad library. This ad type is very new on the scene, and it adds a social element to your ads. It also promises (and I've tested it to be true) a higher eCPM compared to others like Admob and Mobfox.

More details:
http://www.applovin.com/

Here are the manifest requirements:

B4X:
<!-- AppLovin API key. Could be obtained from AppLovin management console -->
        <meta-data
            android:name="applovin.sdk.key"
            android:value="<your key from dashboard here>" />
<!-- This flag enables verbose logging of AppLovin SDK -->
        <meta-data
            android:name="applovin.sdk.verbose_logging"
            android:value="true" />

        
        <service android:name="com.applovin.sdk.AppLovinService" >
            <intent-filter>
                <action android:name="com.applovin.sdk.AppLovinService" />
            </intent-filter>
        </service>

Permissions:

B4X:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
   
      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.READ_CONTACTS"/>

**Read contacts permission is optional, but having it in will show you the social ads, otherwise you get non-social ads.

You can create banner ads or interstitial ads. For interstitial, you will need to handle the ad closed event thing. And look at addisplayed event before showing your ads.

I have not truly tested the interstitials much, better thoroughly test it out.

Banners are fine, add as a new view to your panel or activity like you do for Admob.

Attached library includes the dummy xml file for those who work the "classic" way, or for those who have B4A versions prior to 1.8.

Do note that i've noticed the ads are mainly cpa type, meaning, people will need to download the apps advertised before you get your revenue.

Give it a go!

Any questions, ask away.

Cheers!
-Bill
 

Attachments

  • MESAppLovin.zip
    4.6 KB · Views: 447

ykucuk

Well-Known Member
Licensed User
Longtime User
hello stulish,

i tried but doesnt work (Interstitial). could you share example project please

thank you
 
Last edited:

ykucuk

Well-Known Member
Licensed User
Longtime User
hi susu,

i know this page. its exactly same code.

i get banner but no Interstitial.

when i try Interstitial screen be darker but no adv on it.
 

susu

Well-Known Member
Licensed User
Longtime User
I used their Interstitial and it works well. You can post your code here, I'll check it for you.
 

susu

Well-Known Member
Licensed User
Longtime User
Correct code is:
Dim AL as Applovin
AL.ShowInterstitial
 

susu

Well-Known Member
Licensed User
Longtime User
You need to check this list:

1. Did you add these code to Manifest Editor?
B4X:
AddApplicationText(<meta-data android:name="applovin.sdk.key"
                    android:value="YOUR SDK KEY" />)
AddApplicationText(<activity android:name="com.applovin.adview.AppLovinInterstitialActivity" />)

2. Did you download "applovin-sdk-5.1.1.jar" from Applovin website and rename it to "applovin-sdk.jar" then copy to Additional libraries folder. Download B4A plugin from Applovin website, extract and copy 2 files to Additional libraries folder.

3. In Libs tab of B4A IDE, tick on "applovin-basic4android-library-1.0" and "applovin-sdk"

4. Check Applovin Dashboard -> Manage Apps -> select your app. In "Interstitial Frequency Capping", tick on "Do not frequency cap Interstitials". Click Save.

5. Open your app on real device and be sure you connected to internet.

6. If it still not work, you need to contact Applovin :D
 

susu

Well-Known Member
Licensed User
Longtime User
Yes, your code works fine. Maybe there's no inventory for your country. You should ask Applovin for help.
 

susu

Well-Known Member
Licensed User
Longtime User
I don't know why but Applovin deleted their B4A Plugin. You can ask them to create a new one.
 

Jaames

Active Member
Licensed User
Longtime User
I wrote them an email, waiting for reply, In the meantime I tried wrapper from the first post and it is working in both cases , banner and interstitials with applovin latest SDK...
 

Stulish

Active Member
Licensed User
Longtime User
I have had one of my Apps removed due to the AppLovin part of it apparently it is non-compliant with developer policies, does anyone know when they are updating the B4A plugin to make it compliant?

thanks
 

MaxApps

Active Member
Licensed User
Longtime User
I too had an app banned, due to Applovin.
Also got a warning, that my account could be closed, if it happens again.
 

Stulish

Active Member
Licensed User
Longtime User
I just had an email from AppLoving saying they wont be supporting B4A, so eitehr someone has to create a wrapper or, i will have to look elsewhere.
 

ilan

Expert
Licensed User
Longtime User
I wrote them an email, waiting for reply, In the meantime I tried wrapper from the first post and it is working in both cases , banner and interstitials with applovin latest SDK...

hi james, have you wrote a wrapper for the latest SDK?

i have just contact applovin about a plugin for B4a/B4i and thats their answer:

Hello Illan,

Thanks for reaching out!

We don't have a native adapter for B4A/B4I. That said, you can grab our SDK from the AppLovin platform and create your own plugin.

If you have any additional questions, feel free to reach out.

Best,

Michael

Sent from my iPhone
 

Jaames

Active Member
Licensed User
Longtime User
hi james, have you wrote a wrapper for the latest SDK?

i have just contact applovin about a plugin for B4a/B4i and thats their answer:
Unfortunately not. I'm using only admob now, it is only ad network that works for me.
 

rleiman

Well-Known Member
Licensed User
Longtime User
Hi,

Thanks for the library.

I installed it and signed up for applovin but I did not see any tutorial in this thread on implementing it into my app. I would like to add it as a custom view so the banner ad would show up on the top of my main screen when the app opens.

It also had the apploven-sdk jar file missing so I downloaded version 6 from the applovin web site and downloaded it and renamed it to apploven-sdk.jar and my app compiled so I'm assuming I must have done the correct thing. If there was anything else I needed to do please let me know.

Thanks in advance.

Truly,
R. Leiman
 
Top