Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 21    Views: 94

Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
01/08/14 06:14 AM (11 years ago)

how to add an Advertisement to the app?

Since iAd is not supported in China, I have to choose another platform to add some advertisement in my free app to get some AD fees. It seems that all the platforms need to be import it's SDK and do some coding work, since I don't understand how to code, is there another platform doesn't need to code and just like the way in buzz touch? thanks Regards, Skywalker
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/08/14 06:27 AM (11 years ago)
use revmobs. its literally 1 line of code! i dont know how to code and i got it working in all of my apps. lots of tutorials in the forum
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 06:59 AM (11 years ago)
hi, Bonzo it seems that it still needs coding job, what does the following text means? AppDelegate? I didn't found this file in my project.... Start Session Before showing any ads, you must start a RevMob session with your RevMob App ID. To start a RevMob session just call the startSession: method in the beginning of the application:didFinishLaunchingWithOptions: of your AppDelegate. #import <RevMobAds/RevMobAds.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [RevMobAds startSessionWithAppID:@"copy your RevMob App ID here"]; // your initialization code here // ... return YES; } @end
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/08/14 07:10 AM (11 years ago)
appdelegate is the main file which should be in the BT_config folder of your project YOURAPPNAME_appDelegate.h and YOURAPPNAME_appDelegate.m so in your .m you should find the - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { then you can add [RevMobAds startSessionWithAppID:@"copy your RevMob App ID here"]; below that
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 07:27 AM (11 years ago)
HI, Bonzo I did that, and run it on my test device, no ad showed, then I read the document again, found that it should configure to the test mode, I added a code before startSeession,,,,, [RevMobAds session].testingMode = RevMobAdsTestingModeWithAds; [RevMobAds startSessionWithAppID:@"52cd53b5dabc72551600006d"]; However after that and waited for a long time, still no ad shows, even no banner shows,,, what's wrong with this? Regards, Skywalker
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 07:27 AM (11 years ago)
HI, Bonzo I did that, and run it on my test device, no ad showed, then I read the document again, found that it should configure to the test mode, I added a code before startSeession,,,,, [RevMobAds session].testingMode = RevMobAdsTestingModeWithAds; [RevMobAds startSessionWithAppID:@"52cd53b5dabc72551600006d"]; However after that and waited for a long time, still no ad shows, even no banner shows,,, what's wrong with this? Regards, Skywalker
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/08/14 07:29 AM (11 years ago)
you must also add to the #import statements at the top #import <RevMobAds/RevMobAds.h> (assuming also that you have downloaded the revmob framework and added to project) you could also send me your project and i'll add everything you need and send back. dropbox maybe?
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/08/14 07:34 AM (11 years ago)
no you dont need that testing mode stuff. all you need now is to declare where and when you want the add to appear..... when do you want the advert?
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 07:40 AM (11 years ago)
I already did that including the header file in the AppDelegte.m file, drag and add the framework files... I want it to appear in the top bar of every screen. and one full screen Ad when launching...
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/08/14 07:43 AM (11 years ago)
3 options: [[RevMobAds session] showBanner]; [[RevMobAds session] showFullscreen]; [[RevMobAds session] showPopup]; So below where you put [RevMobAds startSessionWithAppID:@"52cd53b5dabc72551600006d"]; put: [[RevMobAds session] showBanner]; [[RevMobAds session] showFullscreen];
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 07:46 AM (11 years ago)
in the very screen or views should I paste these 2-3 line codes is enough?
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 07:48 AM (11 years ago)
it works, so happy ^_^ but it shows in the bottom of the screen, not the top.. How can I control the Place? thanks so much...
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/08/14 07:49 AM (11 years ago)
if you do in appdelegate the banner should appear in all i believe if not, in each plugin/screen's .m file, fine the -(void)viewDidLoad{ then enter: [[RevMobAds session] showBanner]; making sure you add: #import <RevMobAds/RevMobAds.h> at the top of each plugin/screen's .m file also
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/08/14 07:50 AM (11 years ago)
to get it at the top you'll be coding ;) its doable though. let me look it up...... brb
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/08/14 06:37 PM (11 years ago)
hi, Bonzo have you found how to put the banner on top of the screen? regards, Skywalker
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/09/14 12:06 AM (11 years ago)
Nope. Struggling at the moment. May have to post the question on the forum...
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/09/14 01:46 AM (11 years ago)
i found instructions on stackoverflow.com (if you google 'how to move rev mob banner') but I'm not sure how to implement the fix they are giving
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/09/14 03:16 AM (11 years ago)
hi, Bonzo Thanks for your answer, I will try to solve it by myself. Another question I want to ask for you is : what do you think the revenue of using Revmob platform compared to other platform? I know Revmob is just advertising for game app, so you are doing the game apps?
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/09/14 03:20 AM (11 years ago)
i use rev mobs for all of my apps no matter what type they are. its not mega bucks but its more than iAD's I've used others and seem to get 0 from them despite 1000+ downloads Revmobs i get a small income from ($50~month)
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/09/14 05:18 PM (11 years ago)
hi, Bonzo if I put two banners in one interface, both of them showing the same ad contents, Can I double the eCPM? Regards, Skywalker
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
01/10/14 12:21 AM (11 years ago)
Don't see why not but your users might not like it
 
Jordan
Aspiring developer
Profile
Posts: 45
Reg: Oct 15, 2010
Orlando
2,100
like
01/21/14 08:27 PM (11 years ago)
This is good stuff. Any tips on getting rev mob in an android app.
 

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.