Can anyone help me with any sdk for implementing ads in kivy app. Revmobs have stopped supporting Kivy. Any other method of implementing ads would also work. Thanks
I have had success with AdBuddiz via jnius, I guess that you can use any java SDK on android this way:
PythonActivity=autoclass("org.renpy.android.PythonActivity")
AdBuddiz=autoclass("com.purplebrain.adbuddiz.sdk.AdBuddiz")
AD_CHANCE = 0.06
def init():
AdBuddiz.setPublisherKey("YOUR SECRET KEY .... ")
#delete this before going to play at the store...
AdBuddiz.setTestModeActive()
AdBuddiz.cacheAds(PythonActivity.mActivity)
def show():
if (random.random() < AD_CHANCE):
log.info("Showing Ad!!!")
try:
AdBuddiz.showAd(PythonActivity.mActivity)
except Exception:
log.exception("Pizza is not healthy...")
else:
log.warn("Skipping the AD this time ;)")
I guess that on iOS you can use PyObjC to achieve the same results...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With