Admob pro at bottom


#1

Hi all, I have this ion-view:

<ion-view view-title="Video divertenti">
  <ion-slide-box show-pager="false" on-slide-changed="cambiaVideo($index);">

  <ion-slide ng-repeat="item in lista track by item.nid">
      <div id="immaginiBox" >
          <div class="titolo">{{item.titolo}}</div>
          <blockquote class="desc" ng-show="item.desc != null"> {{item.desc}}</blockquote>
            <img id="thumb_{{$index}}" ng-click="playVideo($index)" style="width:100%;">
            <video style="display:none;" video-reset id="video_{{$index}}" ng-src2="{{item.videoT}}" controls="" width="100%" height="300px"></video>
      </div>
  </ion-slide>
      <ion-slide>
          <br><br><strong><i>
          Caricamento informazioni video divertenti...
      </i></strong>
      </ion-slide>
  </ion-slide-box>

    <ion-footer-bar align-title="left" class="bar bar-footer">
        <div id="shareIcons" class="row">
            <div class="col-25">
                <button class="fb button button-bd button-fab" ng-click="viaFB()"><i class="ion-social-facebook"></i></button>
            </div>
            <div class="col-25">
                <button class="tw button button-bd button-fab" ng-click="viaTW()"><i class="ion-social-twitter"></i></button>
            </div>
            <div class="col-25">
                <button class="wa button button-bd button-fab" ng-click="viaWA()"><i class="ion-social-whatsapp"></i></button>
            </div>
            <div class="col-25">
                <button class="comment button button-bd button-fab" ng-click="viaFB()"><i class="ion-chatbox-working"></i></button>
            </div>
        </div>
    </ion-footer-bar>
</ion-view>

and this code in my view’s controller (for Admob):

$scope.$on('$ionicView.loaded',function(eve) {
        if(AdMob) {
            AdMob.prepareInterstitial({adId: ApiEndpoint.admobid.interstitial, autoShow: false});

            AdMob.createBanner({
                    adId: ApiEndpoint.admobid.banner,
                    adSize: AdMob.AD_SIZE.BANNER,
                    bannerAtTop: false,
                },
                function () {

                    AdMob.requestAd(
                        {'isTesting': false},
                        function () {
                            AdMob.showAd(true);
                        },
                        function () {
                            console.log('failed to request ad');
                        }
                    );
                },
                function () {
                    console.log('failed to create banner view');
                }
            );
        }
    });

but I don’t understand why admob is set at the top of the view and not at the bottom:

Thanks.

M.


#2

I don’t know much about Admob, but I looked at this wiki page:


And noticed that option position: AdMob.AD_POSITION.BOTTOM_CENTER can be used in createBanner method.
Have you tried that before?