Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 14    Views: 123

Long DaiKa
I hate code!
Profile
Posts: 17
Reg: Jan 15, 2015
BienHoa
170
02/22/15 08:27 PM (9 years ago)

Need to help add AdMob interstitial ads to BT apps

hi everyone, i see on cp bt app only show iAd. how i can add interstitial ads admob to bt apps? on my app is menu simple -> html doc when use on html doc tap back to menu simple will show interstitial ads need to help thanks
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/23/15 12:48 PM (9 years ago)
I just followed their tutorial on the admob website and it worked. Add code to ViewDidDisappear function in html doc plugin instill of view didLoadData I believe
 
Long DaiKa
I hate code!
Profile
Posts: 17
Reg: Jan 15, 2015
BienHoa
170
like
02/23/15 08:19 PM (9 years ago)
hi CMCOFFEE, i don't know about code can you help me pls I'm work on iOS app ps: I'm try but when on menu list tap go to html doc screen i got problem see on screen http://img540.imageshack.us/img540/3474/itwOZi.png
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/24/15 01:23 AM (9 years ago)
I honestly don't remember.been a couple of weeks. I'll look back at code and post
 
Long DaiKa
I hate code!
Profile
Posts: 17
Reg: Jan 15, 2015
BienHoa
170
like
02/24/15 01:38 AM (9 years ago)
thanks and I'm waiting for you!
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/24/15 07:31 AM (9 years ago)
 
Long DaiKa
I hate code!
Profile
Posts: 17
Reg: Jan 15, 2015
BienHoa
170
like
02/24/15 10:48 AM (9 years ago)
Can you help me with sample with interstitial ads to BT apps?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/24/15 11:41 AM (9 years ago)
in view did load: self.interstitial = [[GADInterstitial alloc] init]; self.interstitial.adUnitID = @"ca-app-pub-5354231946100685/7289877257"; then other functions(make sure they are out of the view did load function and any other function. GADRequest *request = [GADRequest request]; // Requests test ads on simulators. request.testDevices = @[ @"02EF1FBE-E5F5-466F-9E35-F7F7D50E4129" ]; [self.interstitial loadRequest:request]; - (GADInterstitial *)createAndLoadInterstitial { GADInterstitial *interstitial = [[GADInterstitial alloc] init]; interstitial.adUnitID = @"ca-app-pub-"; interstitial.delegate = self; [interstitial loadRequest:[GADRequest request]]; return interstitial; } - (void)interstitialDidDismissScreen:(GADInterstitial *)interstitial { self.interstitial = [self createAndLoadInterstitial]; } then find that classes header file and add this with your other properties: @property(nonatomic, strong) GADInterstitial *interstitial;
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/24/15 11:42 AM (9 years ago)
in yours you added the property inside the implementation file( .m), and thats fine.the way you added it is actually a better way,safer.
 
Saifu
Android Fan
Profile
Posts: 46
Reg: Apr 07, 2014
MUmbai
660
like
02/24/15 01:18 PM (9 years ago)
I recently added admob interstitials and ads are working great ..this page helped me http://www.androidbegin.com/tutorial/integrating-new-google-admob-banner-interstitial-ads/
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
02/24/15 02:18 PM (9 years ago)
Nice one Saifu, one of my favorite sites although NyganNguyen is trying to implement this for ios at the moment I see your an android fan Saifu, check out this : https://www.dropbox.com/s/q48xawqk07fza72/AppResources.pdf?dl=0 I have one for iOS as well but haven't finished putting it together
 
Long DaiKa
I hate code!
Profile
Posts: 17
Reg: Jan 15, 2015
BienHoa
170
like
02/24/15 06:54 PM (9 years ago)
hi CMCOFFEE, it not working try to finish your app to help please
 
Long DaiKa
I hate code!
Profile
Posts: 17
Reg: Jan 15, 2015
BienHoa
170
like
02/27/15 05:45 PM (9 years ago)
still wait Mr CMCOFFEE
 
Long DaiKa
I hate code!
Profile
Posts: 17
Reg: Jan 15, 2015
BienHoa
170
like
03/08/15 06:21 PM (9 years ago)
still wait Mr CMCOFFEE
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
03/08/15 08:09 PM (9 years ago)
I meant finish iOS resources not 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.