KivAds

class KivAds(show_child=False, rating=None, test_id=None, *args)

Main class for implementing KivAds into your application. Initializes the connection with admob servers and allows that app session to show ads. It is suggested to instance this class in the on_build method in your kivy app.

Parameters
  • show_child (boolean, optional) – Whether KivAds should show child ads for the duration of that app session. Make sure you follow Google Child Policy and Google Family Policy. KivAds is not responsible if your AdMob account gets terminated for not complying with these policies.

  • rating (str, optional) – The maximum rating of ads to be shown in that session. Defaults to None, meaning the rating level set on your admob web console.

  • test_id (str, optional) – A test_device ID you want to ad to this app session in order to show test ads. Defaults to None.

initialized: boolean = False

Read only property that will depict if KivAds has connected to Admob servers successfully

__init__(self, show_child=False, rating=None, test_id=None, *args)

Constructor Method. Called when instancing class.

initialize_connection(self, show_child, rating, test_id)
Parameters
  • show_child (boolean, optional) – Whether KivAds should show child ads for the duration of that app session. Make sure you follow Google Child Policy and Google Family Policy. KivAds is not responsible if your AdMob account gets terminated for not complying with these policies.

  • rating (str, optional) – The maximum rating of ads to be shown in that session. Defaults to None, meaning the rating level set on your admob web console.

  • test_id (str, optional) – A test_device ID you want to ad to this app session in order to show test ads. Defaults to None.

Connect your app session with Admob Servers. This function must be called in order for your app to show ads. It is auto called when the class is instanced.

is_intialized(self)
Return type

boolean

Returns whether the connection with KivMob servers has been initialized and completed.