Google AdMob support for kivy

1,087 views
Skip to first unread message

embryo

unread,
Jan 5, 2015, 7:19:31 PM1/5/15
to kivy-...@googlegroups.com
I'm creating this post knowing that there is no easy solution now,
but maybe we can use it as a placeholder for future solutions.

I'm using Buildozer to create an apk for an application I wrote in kivy.
To do that, I use a VM with an Ubuntu variant.
I don't know java or the Android 'internals'.
I'm trying to find a way to integrate Google's admob (the new one) to the apk.
.. Or any other ad system that pays per click and not per installation as the RevMob and AdBuddiz do.
From what I could find, RevMob doesn't work with kivy.
After some days of searching I didn't find anything else (except AdBuddiz).

There is a 'solution' here: http://stackoverflow.com/questions/22721294/kivy-and-google-play-services
but the guy had to rewrite the original thing to make it work, following a guide that's over my head.
https://developers.google.com/mobile-ads-sdk/docs/admob/android/play-migration

Asking at the #kivy channel somebody lead to me this: http://cheparev.com/kivy-recipe-google-play-services/
and this: https://github.com/eviltnan/kivy-google-play-services/blob/master/gplay.py
but its for the "Google play services" and anyway it seems really complicated.

Since I don't fully understand the workings of "Play services" (are the ads part of it?) any insight is appreciated.

Milos Bulatovic

unread,
Jan 9, 2015, 8:05:12 AM1/9/15
to kivy-...@googlegroups.com
I've never played with this much. But I was under impression that implementation of a webview can somehow help with it.

Damien Moore

unread,
Jan 9, 2015, 1:38:01 PM1/9/15
to kivy-...@googlegroups.com
The advice you've been given is probably the best way, but as you say it won't be easy. 

But first, it is pretty straightforward to add the play services lib to your app (as discussed here: https://groups.google.com/d/msg/kivy-users/bDbxzz_R_Vo/fq5MwNlylPYJ ) but there will be some fiddling with metadata/IDs.

The challenging bit will be writing the python interface to the ads api (https://developer.android.com/reference/gms-packages.html). Sergey's work for leaderboard's and achievement's should give you a hint: https://github.com/eviltnan/kivy-google-play-services/blob/master/gplay.py.

Damien Moore

unread,
Jan 9, 2015, 1:45:19 PM1/9/15
to kivy-...@googlegroups.com
And just to be clear, Ads is now part of google play services, so that's why you want it.

Abdessamad Yadini

unread,
Jul 14, 2016, 11:12:54 AM7/14/16
to Kivy users support
did someone find a solution for integrating admob to kivy app?

Filip Demaertelaere

unread,
Jul 17, 2016, 3:03:19 PM7/17/16
to Kivy users support
I am also interested in some sample code :-).


Op donderdag 14 juli 2016 17:12:54 UTC+2 schreef Abdessamad Yadini:

Abdessamad Yadini

unread,
Jul 18, 2016, 9:07:47 PM7/18/16
to Kivy users support
:-) python is super powerfull, i don't uderstand why it d'oes not existe no guide a part the one of the blog theseusmedia( url: http://www.theseusmedia.com/blogs/code) wich was not working and the suprise is that url is working now,
by the way in that guid i can't find google-play-services_lib either AndroidManifest.tmpl.xml
i think it need to be updated
Reply all
Reply to author
Forward
0 new messages