Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 95

Deletion
Aspiring developer
Profile
Posts: 25
Reg: May 13, 2013
London
6,250
07/31/13 04:41 AM (12 years ago)

AdMob integration on iOS

Hi, I searched back to see how to go about implementing ads on my Ap and came across this post http://www.buzztouch.com/forum/thread.php?tid=B533B9AE10D8EA7BD41CEC5&command=isSearching&currentPage=1&topicTitle=ads&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= Its a little old but still seems to be the correct way to go about doing this. I followed along and still no ads showing on my app. I went to the control panel and turn on ads from the option on my home page and the ad then appeared. Ok so all is well, however I have around 1500 or so screens do I have to turn this option on in every single screen? or is there another way to make the ad appear on all screens.
 
Deletion
Aspiring developer
Profile
Posts: 25
Reg: May 13, 2013
London
6,250
like
07/31/13 04:52 AM (12 years ago)
I think i just found the answer I went searching for the default screen view in my project in Xcode and in the BT Plugins folder i found the bt_screen folders so i went to menu simple and changed this line //create adView? if([[BT_strings getJsonPropertyValue:self.screenData.jsonVars nameOfProperty:@"includeAds" defaultValue:@"0"] isEqualToString:@"1"]){ [self createAdBannerView]; } I changed the default value from 0 to 1 and this made all my menu simple screens have the adverts on it, I then changed the same thing on the other screens i have like map and custom html and it worked on those. Is this an ok thing to do? will save me about 3 days work if it is :P
 
RonBo
buzztouch Evangelist
Profile
Posts: 167
Reg: Feb 26, 2012
Raleigh, NC
5,220
like
03/09/14 06:47 AM (11 years ago)
I have used this same technique, and it works. However, did you ever figure out how to display different AdMob adds on different Menu Simple screens? I know you need to generate differnt IDs for different ads, but not sure how to put a specific ad, on a specific Menu Simple?
 

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.