title: Implement Nativescript Admob plugin to load on startup from github sample code
body: <p>I'm trying to modify the nativescript-admob-demo-app (<a href="https://github.com/EddyVerbruggen/nativescript-admob-demo" rel="nofollow">https://github.com/EddyVerbruggen/nativescript-admob-demo</a>) using the nativescript-admob-plugin (admob) to insert a SMART_BANNER when the app starts up rather than when pressing a button. I've tried a few methods detailed below:</p>
  
  <p>Could anyone help show me the code that would do this or pesudocode, or perhaps just the method and I'll implement it? Thank you!</p>
  
  <p>I've tried the following,</p>
  
  <p>Creating a placeholder element on the screen and constructing the helloworld model and then assigning that function to exports (in main-view-model.js).</p>
  
  <p>Calling the admob.createBanner from the main-page.js and exporting that</p>
  
  <p>Adding the view tag in the main-page.js and getting my first tabview, then calling that.</p>
  
  <p>Creating the model in main-page.js by importing it from main-page-view.xml and calling it inside the pageLoaded function.</p>