Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 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
    Felgo Team

    Hi,

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

    <Path to your FelgoSDK>\Examples\FelgoSDK\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
    Felgo 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
    Felgo Team

    Armogames,

    we’ve sent you an email notice about your violation of the Felgo license. We recommend you to contact us at support@felgo.com within 24 hours regarding the license breach which is:

    1.) Releasing Felgo powered games without a Felgo 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 Felgo 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded