Admob with kivy

153 views
Skip to first unread message

Jesus_Is_My_Lord

unread,
Oct 17, 2017, 4:26:30 PM10/17/17
to Kivy users support
please I need the suitable way
to insert Ads in my app
I found this way
but i don't understand
how i can use it
thanks for support

Petar Luketina

unread,
Sep 26, 2018, 12:06:59 AM9/26/18
to Kivy users support
Yeah, does anyone know of anything? I'm stuck with this come.. I got this by slowly stripping the unnecessary code from one of the example but it doesn't really work. There is more to the code but I left it out because it's lengthy. He used some kv code but I have no idea how to make the add show up. Isn't it supposed to be linked to a label or button for placement?

class KivMobDemo(App):

def build(self):
APP_ID = "app id here"
BANNER_ID = "banner id here"
TEST_DEVICE_ID = "test device id here"

self.ads = KivMob(APP_ID)
self.ads.add_test_device(TEST_DEVICE_ID)
self.ads.new_banner({"unitID": BANNER_ID})
self.ads.show_banner()
self.ads.request_banner()
self.toggled = False
return KivMobDemoUI()

Anyway, did you figure out how to make it work for you @Jesus_Is_My_Lord?

T. Kuam

unread,
Sep 26, 2018, 6:42:53 AM9/26/18
to Kivy users support
@Peter, so from your code snippet it looks like you're headed in the right direction.  I'll assume in your actual app you have the appropriate IDs in there and not the "app id here" etc. still in there.  The only issue I see with your code there is that you need to request the banner before you show it so:
self.ads.request_banner()
self.ads.show_banner()

Other than that your code essentially looks like what I have in my app which shows the ads.  You don't need to link the ads to a label or anything.  A banner ad will just appear across the top of your app.  Try that out and see if it works.  If not, post your error message(s) or any questions.

Petar Luketina

unread,
Sep 26, 2018, 12:20:01 PM9/26/18
to Kivy users support
Hey T. Kuam,

Thank you so much for the quick reply. The app loaded to my phone but nothing is coming up in terms of the banner. I'm going to take up the issue with the creator of KivMob because none of his example code is working for me. Perhaps I'll ask for his buildozer file too. I'll edit a link to the GitHub issue page when I send it in:

Thanks again.

Petar Luketina

unread,
Sep 26, 2018, 4:40:16 PM9/26/18
to Kivy users support
https://github.com/MichaelStott/KivMob/issues/17 here's the link to GitHub. We'll see if he responds. 

Masry

unread,
Sep 26, 2018, 4:50:53 PM9/26/18
to Kivy users support
Hi Petar

I will try your setps
and if you find any new solution please let me know

Thanks

On Wed, Sep 26, 2018 at 10:40 PM Petar Luketina <pluk...@gmail.com> wrote:
https://github.com/MichaelStott/KivMob/issues/17 here's the link to GitHub. We'll see if he responds. 

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/3vpgE3HpnBA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/cce33dbb-68ec-43f9-9b30-cebafaaa1f12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Mahrous M.Shenouda
about.me/MahrousMansour

RJ

unread,
Sep 28, 2018, 12:44:27 PM9/28/18
to Kivy users support

Petar Luketina

unread,
Sep 28, 2018, 12:47:35 PM9/28/18
to kivy-...@googlegroups.com
Hey, thanks for responding and the great link! I actually figured it out. I didn't complete my Google Ads profile by a accident. Now it's working!

You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.

Will Tejeda

unread,
Sep 28, 2018, 1:53:36 PM9/28/18
to kivy-...@googlegroups.com
How do you incorporate the Google api into our app,? 

I want to use Google analytics to track which options (buttons) users click the most... So I know which features they like and need to be updated with priority

Reply all
Reply to author
Forward
0 new messages