0

In my apps i'm used RevMob sdk for advertisement. In First view advertisement banner is shown using this code.

[RevMobAds showBannerAdWithAppID:@"xxxxxxxxxxxxxx"];

And in second view i'm hide the banner using the code..

[RevMobAds hideBannerAdWithAppID:@"xxxxxxxxxxxxxxxxxxx"];

This code run perfectly banner is shown in first view and hide in another view.

But my problem is this when i'm writing code to show popup in appilicationdidbecomeactivemethod:

- (void)applicationDidBecomeActive:(UIApplication *)application
{
     [RevMobAds showPopupAdWithAppID:@"xxxxxxxxxxxxx"];
}

Then in second view bannerAdd is not hide it will still appear in the second view.

I'm not able to realize what is the problem. if u have any suggestion plz help me...

Thanks in advance.

0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
R_RKumawat
  • 133
  • 15

1 Answers1

1

The methods that you are using are deprecated, you should use:

[RevMobAds showBannerAd];
[RevMobAds hideBannerAd];
[RevMobAds showPopup];

You can see more on the api documentation: http://sdk.revmob.com/ios-api/index.html

Diogo T
  • 2,591
  • 1
  • 29
  • 39