Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 17    Views: 233

aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
10/02/12 10:54 AM (13 years ago)

Revmob - ios (BT 1.5) full screen ad unit screen shot

Hi, Has anyone had success in installing revmob into their 1.5 (ios) app? Specifically, the full screen ad unit that appears when the app launches. If so, can you post a few screen shots of where the code should go into the BT project file? I'm sure there is a somewhat simple answer to this, I just haven't been able to get it to work without numerous 'build failed' notices.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/02/12 11:15 AM (13 years ago)
Just PM'd you this but for everyone else 1. Drag revmobs framework into Xcode 2 In yourapp_appDelegate.m add #import <RevMobAds/RevMobAds.h> and #import <StoreKit/StoreKit.h> to the top where the other imports are 3 In yourapp_appDelegate.m under -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ add [RevMobAds startSessionWithAppID:@"number off revmobs app id"]; 4 In yourapp_appDelegate.m under //when app becomes active again - (void)applicationDidBecomeActive:(UIApplication *)application{ [BT_debugger showIt:self:[NSString stringWithFormat:@"applicationDidBecomeActive%@", @""]]; add [RevMobAds showFullscreenAd]; for fullscreen advert on open and/or add [RevMobAds showBannerAd]; for banner adds at the bottom Thats it
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/02/12 11:23 AM (13 years ago)
A personal tiop with revmob banner ads I add [RevMobAds showBannerAd]; and add #import <RevMobAds/RevMobAds.h> to every .m file I want the ads to appear on. I add to BT_viewController.m <RevMobAds/RevMobAds.h> //left button -(void)navLeftTap{ [BT_debugger showIt:self:@"navLeftTap"]; [RevMobAds hideBannerAd]; This means evertime a screen is opened an adbanner is created when you press back it disappears. This lets you have control what pages show apps if you just add it at the start the app appears through every screen. This becomes a pain as it sits over keyboards or lists. Also use the same process to add it to screens that summon the keyboard. Yet again hope that makes sense
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
10/02/12 12:08 PM (13 years ago)
Thank you so much Kittsy - I'm clearing out the previous 'build failed' errors and getting it running with the above instruction. Can't thank you enough~!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/02/12 12:20 PM (13 years ago)
so it has worked. I might start writing tutorials lol
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
10/02/12 12:22 PM (13 years ago)
you should! I haven't gotten my code cleaned up yet to give it a go, but I'm sure what you've sent will be terrific. I'll chime in if there are any more road blocks - thanks again!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/02/12 12:23 PM (13 years ago)
good, well let us know if it works so no one is led a bum steer lol
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
10/02/12 12:26 PM (13 years ago)
lol! You got it Kittz!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/02/12 01:51 PM (13 years ago)
just writing a tutorial. new revmob sdk has been released you need to add storekit.framework
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/02/12 01:55 PM (13 years ago)
the new revmob sdk looks great with the storekit.framework the app store opens in the app so no need to exit.
 
aquila198
buzztouch Evangelist
Profile
Posts: 473
Reg: Jul 22, 2011
location unknow...
10,330
like
10/02/12 07:57 PM (13 years ago)
Just to follow up - I also am incorporating Parse in the same project; not sure if you've used both in the same app.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
10/03/12 07:30 AM (13 years ago)
I've ammended the top tutorial as the new sdk now uses the storekit.framework
 
elaine
buzztouch Evangelist
Profile
Posts: 385
Reg: Dec 26, 2010
Ireland
3,850
like
10/07/12 11:17 AM (13 years ago)
This is brilliant thank you! Along with this video... http://www.youtube.com/watch?v=whSdvXVvW1w&feature=youtu.be and if the revmob website hadn't crashed so I can't get an ID, I think I'd have just integrated revmob into my 1st iOS app YAAAY!! Elaine.
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
11/13/12 03:17 PM (13 years ago)
This worked a month ago now it doesn't anyone find a work around? Thanks in advance Sheri
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
11/14/12 01:57 AM (13 years ago)
Hi Sheri good shout easy to fix they've changed the calls instead of: [RevMobAds showFullscreenAd]; it's [[RevMobAds session] showFullscreen]; [RevMobAds hideFullscreenAd]; it's [[RevMobAds session] hideFullscreen]; instead of: [RevMobAds showBannerAd];]; it's [[RevMobAds session] showBanner]; [RevMobAds hideBannerAd]; it's [[RevMobAds session] hideBanner]; Everything else remains the same If anything like this happens in the future take a look in the RevMobAds.h file in the under framework/headers. That gives you all of the calls even with examples.
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
11/14/12 02:03 AM (13 years ago)
Thanks! you are a doll! Appreciate this so much!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
11/14/12 02:09 AM (13 years ago)
Yeah no probs I've updated the youtube text aswell. I'm not redoing the video my voice is terrible
 
sanamionline
Aspiring developer
Profile
Posts: 61
Reg: Jul 22, 2012
Yulin, Guangxi
3,510
like
02/05/13 08:28 PM (12 years ago)
That is just amazing! All you need is [[RevMobAds session] showFullscreen]; No placement IDs. ----- For some strange reason, need the placement ID for popup ad and fullscreen ad other than that works good. //when app becomes active again - (void)applicationDidBecomeActive:(UIApplication *)application{ RevMobFullscreen *fullscreen = [[RevMobAds session] fullscreenWithPlacementId:@"ID"]; [fullscreen showAd]; RevMobPopup *popup = [[RevMobAds session] popupWithPlacementId:@"ID"]; [popup showAd]; [[RevMobAds session] showBanner]; [BT_debugger showIt:self:[NSString stringWithFormat:@"applicationDidBecomeActive%@", @""]];
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.