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: 439

susu

Well-Known Member
Licensed User
Longtime User
Really impressive ad type. Thank you for your new library. :D
 

susu

Well-Known Member
Licensed User
Longtime User
Hi Bill,

How can I add an ad banner to Activity? There's no applovin.Initialize or something like that.
 

susu

Well-Known Member
Licensed User
Longtime User
OK, I got it

Dim al As MESAppLovin
al.initialise(False, "al")
Activity.AddView(al, 0, Activity.Height - 48dip, Activity.Width, 48dip)

Edit: I got it (again). Need to call al.LoadNextAd :D
 
Last edited:

nad

Active Member
Licensed User
Longtime User
Love these ads. Really a good idea.

Thanks a lot for this ssg!! You are awesome :)

:sign0098:
 

nad

Active Member
Licensed User
Longtime User
Just a quick update

Have not tried yet the intersitials but i am really impressed with banners atm. Have you tried push and sms?

Cheers,
 
Last edited:

ssg

Well-Known Member
Licensed User
Longtime User
That was from the earlier version of the dashboard.

They updated it on 1st June due to the social element updates, so the dashboard and all looks different now.

Cheers!
-Bill
 

nad

Active Member
Licensed User
Longtime User
Thanks ssg!

For how long have you been running applovin social ads?

I am worried about how well will these ads age with time. I mean after a couple of weeks users will be a lot less likely to hit on a banner saying "Play a game of XXXX with your friend YYYY after they realize that is just a trick with phone contacts showing their friends name"

What do you think?
 
Last edited:

ssg

Well-Known Member
Licensed User
Longtime User
Hey nad,

I've been using them since late March / early april. And they've been alright so far.

Your point is very valid, same thing another forumer, susu, raised back then.

The best way (in my opinion) would be to rotate between applovin and another banner ad. This would give you the best of both CPA and CPC type ad worlds.

Hope the above idea helps.

Cheers!
-Bill
 

susu

Well-Known Member
Licensed User
Longtime User
Hi Bill,

Any news about social function of Applovin? :D
 

ssg

Well-Known Member
Licensed User
Longtime User
Hi susu,

Unfortunately no... it did not work. Tried a gazzilion of stuff, but it is not working at all. :(

According to Rafael, it is supposed to work on its own, with updates to the manifest. But no success on my side.

I'm thinking of adding in my own code for this instead. With B4A, it wont be too tough to make your own social inviter feature. But that would still lack stuff like notifications when your friend does something else.
 

MaxApps

Active Member
Licensed User
Longtime User
Ad received failed

Hi

Is there a way to check if the ad was received?
for several hours, my apps has not shown any ads, from AppLovin, and I would like to make something like, If ad received is failed then load admob ad....

Is there something like:

Sub Leadbolt_AdFailed

End Sub


kind regards
Jakob
MaxApps
 
Last edited:

ssg

Well-Known Member
Licensed User
Longtime User
Just thought I'd share a tip from Rafael on checking your eCPMs:

- Login onto the dashboard
- Click tools on the left
- Click 3rd Party Ads
- SUCCESS!!

And at the bottom of the screen, you can get daily breakdown of revenues too.

Nad, you enquired on that table once. Hope this helps you in finding the details if you have not :D

Cheers!
-Bill
 

Inman

Well-Known Member
Licensed User
Longtime User
Is that service necessary to be defined in Manifest file, if I am not planning to use Push ads?
 

AppLovin

Member
Licensed User
Longtime User
Is that service necessary to be defined in Manifest file, if I am not planning to use Push ads?

Hey Inman,

Notification service is not for "push ads" but for personalized user engagement and friend alerts (Ex. Hey Inman, Rafael got Coin Dozer. Go play now!). If you're not interested in using our push notifications then you don't need to add the C2DM permissions to your manifest.

Let me know if you have any additional questions.

Best,

Rafael Vivas
[email protected]
skype: jabbering99
 
Top