title: How exactly is kivmob (admob for kivy) used (integrated)?
body: <p>I recently learnt if you are going to show banner ads on 5 different screens it is best to use 5 different ads units (i.e I am suppose to use 5 different ads.ID I'll get from the ads units), I've no idea how I'm suppose to put the differnt IDs in my app.</p>
  <p>Please I'll appreciate if you could help me with a sample code of how this will look like or even point me in the right direction.</p>
  <p>I tried using TestIDs before in a simple app I made to test this, but as you'll see in my .py below I'm only using a single ads.ID, I can't think of a way to creatively add more, thanks to you, in advance for your help and creativity.</p>
  <p>And please, though this is an App I made to test Kivmov, if there is anything I'm doing wrong, or I should I be aware of, or I should add or remove from my code,  in respect to kivmob, please let me know, thanks again.</p>
  <p>here's my .py code:</p>
  <pre><code>from kivmob import KivMob, TestIds
  
  from kivymd.app import MDApp
  from kivy.uix.screenmanager import Screen, ScreenManager, NoTransition
  from kivy.core.window import Window
  
  Window.size = (300, 530)
  
  
  class MainScreen(Screen):
      pass
  
  
  class BellaBaron(Screen):
      pass
  
  
  class BellaBaron2(Screen):
      pass
  
  
  class BellaBaron3(Screen):
      pass
  
  
  class TwoScreenApp(MDApp):
      def build(self):
          self.ads = KivMob('ca-app-pub-3940256099942544~3347511713')
          self.ads.new_banner('ca-app-pub-3940256099942544/6300978111', top_pos=True)
  
          self.theme_cls.primary_palette = 'Green'
          self.sm = ScreenManager(transition=NoTransition())
          self.sm.add_widget(MainScreen(name='main_screen'))
          self.sm.add_widget(BellaBaron(name='bella_baron'))
          self.sm.add_widget(BellaBaron2(name='bella_baron2'))
          self.sm.add_widget(BellaBaron3(name='bella_baron3'))
  
          return self.sm
  
  
      def call_banner_ads(self):
          self.ads.request_banner()
          self.ads.show_banner()
  
      def change_screen_item(self, nav_item):
          # change to the MainScreen and switch to the specified MDBottomNavigationItem
          bottom_nav_screen = self.sm.get_screen('main_screen')
          bottom_nav_screen.ids.bottom_nav.switch_tab(nav_item)
          self.sm.current = 'main_screen'
  
  
  TwoScreenApp().run()
  
  </code></pre>
  <p>and here's my .kv code:</p>
  <pre><code>&lt;MyTile@SmartTileWithLabel&gt;
      size_hint_y: None
      height: &quot;240dp&quot;
  
  &lt;MainScreen&gt;
      
      MDBottomNavigation:
          id: bottom_nav
          # elevation: 10
  
          MDBottomNavigationItem:
              name: 'ford_screen'
              icon: 'home'
              text: 'Ford'
              # elevation: 50
  
              MDBoxLayout:
                  # md_bg_color: (240/255, 240/255, 240/255, 1)
                  orientation: 'vertical'
  
                  MDToolbar:
                      id: success_screen_toolbar
                      title: &quot;Henry Ford&quot;
                      right_action_items: [[&quot;page-next&quot;, lambda x: app.change_screen_item('image_screen')]]
                      left_action_items: [[&quot;python&quot;, lambda x: x]]
  
                  MDLabel:
                      # halign: 'center'
                      padding: [15, 20]
                      text:
                          &quot;&quot;&quot;With the production of the Model T automobile,
                          Henry Ford had an unforeseen and tremendous
                          impact on American life. He became regarded
                          as an apt symbol of the transition from an
                          agricultural to an industrial America.&quot;&quot;&quot;
                      # theme_text_color: &quot;Custom&quot;
                      # text_color: 'red'
  
          MDBottomNavigationItem:
              name: 'image_screen'
              icon: 'image'
              text: 'Image'
              # elevation: 50
  
              BoxLayout:
                  orientation: &quot;vertical&quot;
                  # md_bg_color: (240/255, 240/255, 240/255, 1)
  
                  MDToolbar:
                      id: success_screen_toolbar
                      title: &quot;Images&quot;
                      left_action_items: [[&quot;keyboard-backspace&quot;, lambda x: app.change_screen_item('ford_screen')]] #link to progress screen
                      right_action_items: [[&quot;dots-vertical&quot;, lambda x: x]]
  
                  ScrollView:
                      MDGridLayout:
                          cols: 1
                          adaptive_height: True
                          padding: dp(4), dp(0)
                          spacing: dp(8)
  
                          MyTile:
                              ripple_behavior: True
                              source: &quot;bella_baron.jpg&quot;
                              text: &quot;[size=26]Bella baron 1[/size]&quot;
                              on_release:
                                  app.root.current = &quot;bella_baron&quot;
                                  app.call_banner_ads()
  
                          MyTile:
                              ripple_behavior: True
                              source: &quot;bella_baron.jpg&quot;
                              text: &quot;[size=26]Bella baron 2[/size]&quot;
                              tile_text_color: app.theme_cls.accent_color
                              on_release:
                                  app.root.current = &quot;bella_baron2&quot;
                                  app.call_banner_ads()
  
                          MyTile:
                              ripple_behavior: True
                              source: &quot;bella_baron.jpg&quot;
                              text: &quot;[size=26][color=#ffffff]Bella baron 3[/color][/size]&quot;
                              on_release:
                                  app.root.current = &quot;bella_baron3&quot;
                                  app.call_banner_ads()
  
  
  
  &lt;BellaBaron&gt;
      name: 'bella_baron'
  
      BoxLayout:
          orientation: 'vertical'
          md_bg_color: (240/255, 240/255, 240/255, 1)
  
          MDToolbar:
              id: bella_baron_toolbar
              title: &quot;Bella Baron&quot;
              left_action_items: [[&quot;keyboard-backspace&quot;, lambda x: app.change_screen_item('image_screen')]]
              elevation: &quot;8dp&quot;
  
          ScrollView:
              MDGridLayout:
                  cols: 1
                  spacing: 25
                  adaptive_height: True
                  padding: [10, 2]
  
                  MDCard:
                      orientation: 'vertical'
                      size_hint: None, None
                      size: &quot;280dp&quot;, &quot;200dp&quot;
                      elevation: 8
                      orientation: 'vertical'
                      radius: 15
                      Image:
                          keep_ratio: False
                          allow_stretch: True
                          source: &quot;bella_baron.jpg&quot;
  
                  MDLabel:
                      size_hint_y: None
                      size: self.texture_size
                      padding_x: 4
                      text:
                          &quot;&quot;&quot;This screens contains a MDcard which the transformation image is placed,
                          and under is a MDLabel and neccessary widgets used to tell the success story.&quot;&quot;&quot;
  
  &lt;BellaBaron2&gt;
      name: 'bella_baron2'
  
      BoxLayout:
          orientation: 'vertical'
          md_bg_color: (240/255, 240/255, 240/255, 1)
  
          MDToolbar:
              id: bella_baron_toolbar
              title: &quot;Bella Baron 2&quot;
              left_action_items: [[&quot;keyboard-backspace&quot;, lambda x: app.change_screen_item('image_screen')]]
              elevation: &quot;8dp&quot;
  
          ScrollView:
              MDGridLayout:
                  cols: 1
                  spacing: 25
                  adaptive_height: True
                  padding: [10, 2]
  
                  MDCard:
                      orientation: 'vertical'
                      size_hint: None, None
                      size: &quot;280dp&quot;, &quot;200dp&quot;
                      elevation: 8
                      orientation: 'vertical'
                      radius: 15
                      Image:
                          keep_ratio: False
                          allow_stretch: True
                          source: &quot;bella_baron.jpg&quot;
  
                  MDLabel:
                      size_hint_y: None
                      size: self.texture_size
                      padding_x: 4
                      text:
                          &quot;&quot;&quot;This screens contains a MDcard which the transformation image is placed,
                          and under is a MDLabel and neccessary widgets used to tell the success story.&quot;&quot;&quot;
  
  &lt;BellaBaron3&gt;
      name: 'bella_baron3'
  
      BoxLayout:
          orientation: 'vertical'
          md_bg_color: (240/255, 240/255, 240/255, 1)
  
          MDToolbar:
              id: bella_baron_toolbar
              title: &quot;Bella Baron 3&quot;
              left_action_items: [[&quot;keyboard-backspace&quot;, lambda x: app.change_screen_item('image_screen')]]
              elevation: &quot;8dp&quot;
  
          ScrollView:
              MDGridLayout:
                  cols: 1
                  spacing: 25
                  adaptive_height: True
                  padding: [10, 2]
  
                  MDCard:
                      orientation: 'vertical'
                      size_hint: None, None
                      size: &quot;280dp&quot;, &quot;200dp&quot;
                      elevation: 8
                      orientation: 'vertical'
                      radius: 15
                      Image:
                          keep_ratio: False
                          allow_stretch: True
                          source: &quot;bella_baron.jpg&quot;
  
                  MDLabel:
                      size_hint_y: None
                      size: self.texture_size
                      padding_x: 4
                      text:
                          &quot;&quot;&quot;This screens contains a MDcard which the transformation image is placed,
                          and under is a MDLabel and neccessary widgets used to tell the success story.&quot;&quot;&quot;
  
  
  
  </code></pre>