Forums

OverviewV-Play 1 Support › admob interstitial help please

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7451

    Jake

    Hi I was wondering what code I would replace in chartboost.XML of the chicken outbreak 2 game so its admob instead. I’m new to all this and I read the documentation but I still don’t know how to do interstitial, I can do basic ads but can’t figure out the other one. Thanks

    #7458

    Alex
    V-Play Team

    Hi,

    please also have a look at the AdMob code example, you can find it here:

    <Path to your V-PlaySDK>\Examples\V-PlaySDK\plugins\AdmobTest

    You will have to replace the Chartboost Item with an AdMob Item. Also you will have to change the showInterstitial() method call to showInterstitialIfLoaded(), which is the right one for AdMob.

    Cheers,
    Alex

    #7465

    Jake

    Thanks for the reply… What do I change this into that’s in the gameoverscene.qml

     

    function prepareSceneExit() {
         audioManager.play(audioManager.idMENUCLICK)
         chartboostView.doNotShowAdvert()
         positionChange = 0
       }
    
       function enterScene() {
    
         if(!store.noAdsGood.purchased && !system.desktopPlatform) {
           if(!advertDeaths) {
             chartboostView.showAdvertIfAvailable()
           }

     

    #7480

    Jake

    You there Alex?

    #7481

    Alex
    V-Play Team

    Hi, you can leave it mostly as it is, just make sure you adept the showAdvertIfAvailable() and the doNotShowAdvert() methods to work with the Admob item instead of a Chartboost item.

    Cheers,
    Alex

    #7482

    Jake

    hey im still having issues…the issue is that when you get to the gameover screen I get no admob popup and none of the buttons work anymore to restart the game or get back to menu etc, and config has the proper admob plugin…this is what I have

     

    ChartboostView.qml

    import QtQuick 1.1
    import VPlay 1.0
    import VPlay.plugins.admob 1.0
    
    
    AdMob {
          id: admob
      publisherId: "ca-app-pub-xxxxxxxxxxxxxxxxx"
      anchors.horizontalCenter: parent.horizontalCenter
      anchors.bottom: parent.bottom
      banner: AdMob.Standard320x50
    
    
     onInterstitialReady: {
        showInterstitialIfLoaded()
      }
    
    
    
     function showAdvertIfAvailable() {
           admob.shouldDisplayInterstitial = true
         admob.loadInterstitial()
      }
    
      function doNotShowAdvert() {
        admob.shouldDisplayInterstitial = false
         admob.loadInterstitial()
      }
    
          Component.onCompleted: admob.loadInterstitial()
    }
    

     

    ChickenOutbreak2Main.qml

    ChartboostView {
        id: admob
      }

     

    GameOverScene.qml

    function prepareSceneExit() {
        audioManager.play(audioManager.idMENUCLICK)
        chartboostView.doNotShowAdvert()
        positionChange = 0
      }
    
      function enterScene() {
    
        if(!store.noAdsGood.purchased && !system.desktopPlatform) {
          if(!advertDeaths) {
            chartboostView.showAdvertIfAvailable()
          }
          advertDeaths++
          if(advertDeaths>=maxAdvertDeaths) {
            advertDeaths = 0
          }
        }

     

    #7483

    Christian
    V-Play Team

    Armogames,

    we’ve sent you an email notice about your violation of the V-Play license. We recommend you to contact us at support@v-play.net within 24 hours regarding the license breach which is:

    1.) Releasing V-Play powered games without a V-Play license
    2.) Using protected graphics from Chicken Outbreak 2

     

    To avoid a removal of your games on the app stores, a removal of your games from V-Play Game Network and a deletion of your multiple developer accounts, use the email address provided above.

Viewing 7 posts - 1 through 7 (of 7 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support