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 ;)")
--
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/DB0-UAeOZBE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/36f3be84-33aa-4b41-86cc-4c01bb5fe04fo%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to kivy-...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/11816e72-8560-4142-b4e0-aef042a74775o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/11816e72-8560-4142-b4e0-aef042a74775o%40googlegroups.com.