NimbleKit - fast iOS app development

AdMob Integration - New SDK

Forum for posting sample code and examples, new posts creation is not allowed, but everybody can comment

Re: AdMob Integration - New SDK

Postby HalfMoon » Sat Jul 02, 2011 4:06 pm

Here's a working example of the new AdMob SDK with NK. You might want to wait for Sunnys version in case I haven't released items properly etc but it all seems to work ok for me on sim & device. If you add this to your project, remember to add the AudioToolbox, MessageUI & SystemConfiguration frameworks.


NewAdMobSDK.zip
(1.94 MiB) Downloaded 71 times


See Sunny's tweaked version below
8-)
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: AdMob Integration - New SDK

Postby sunny » Sun Jul 03, 2011 11:26 am

thanks for the help on this, I did some modifications to your project to allow placing ads on different pages without loosing references to previously create ads.
btw, some warnings appeared, ignore those, they will disappear in one of the NK updates
Attachments
NewAdMobSDK.zip
(1.95 MiB) Downloaded 139 times
User avatar
sunny
Staff
 
Posts: 2669
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

Re: AdMob Integration - New SDK

Postby HalfMoon » Sun Jul 03, 2011 12:52 pm

Cool - thanks Sunny
:)
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: AdMob Integration - New SDK

Postby marcw7174 » Sun Jul 03, 2011 7:48 pm

Thanks people, this is great stuff!
marcw7174
 
Posts: 74
Joined: Thu Jul 01, 2010 10:38 pm

Re: AdMob Integration - New SDK

Postby ryubr » Wed Jul 06, 2011 9:22 pm

@HalfMoon

Great job! I already sent my thanks to Sunny, now is only fair to say the same to you. Very simple to do now that I can see the code. Fantastic, really thank you :-)


HalfMoon wrote:Here's a working example of the new AdMob SDK with NK. You might want to wait for Sunnys version in case I haven't released items properly etc but it all seems to work ok for me on sim & device. If you add this to your project, remember to add the AudioToolbox, MessageUI & SystemConfiguration frameworks.


NewAdMobSDK.zip


See Sunny's tweaked version below
8-)
ryubr
NimbleKit Expert
 
Posts: 446
Joined: Fri Jun 19, 2009 5:36 am

Re: AdMob Integration - New SDK

Postby HalfMoon » Thu Jul 07, 2011 12:19 am

No probs - Glad I could help
:)
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: AdMob Integration - New SDK

Postby Eviserator » Sat Jul 30, 2011 4:37 pm

sunny wrote:thanks for the help on this, I did some modifications to your project to allow placing ads on different pages without loosing references to previously create ads.
btw, some warnings appeared, ignore those, they will disappear in one of the NK updates


I added this to my project and it is registering the ads back my AdMob account but I never see the Ads on the screen. I compiled up just this example and I get the same thing. No Ads in the simulator or on the iPhone device.

Is anyone else having this issue?
Skip Potter, Live a mobile life...
web: http://www.pottertech.com
NK Registered: U797426801
User avatar
Eviserator
NimbleKit Guru
 
Posts: 298
Joined: Sun Jan 24, 2010 7:59 am
Location: Woodbridge, Virginia

Re: AdMob Integration - New SDK

Postby HalfMoon » Sat Jul 30, 2011 7:12 pm

Just ran it again and it seems to be working fine fro me on both on sim & device
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: AdMob Integration - New SDK

Postby Eviserator » Sun Aug 07, 2011 5:50 pm

HalfMoon wrote:Just ran it again and it seems to be working fine fro me on both on sim & device


Here is my sample App using two pages, navbar and TabBar and I do not get Ads in the simulator or on my device. Would you mind testing this version?
Skip Potter, Live a mobile life...
web: http://www.pottertech.com
NK Registered: U797426801
User avatar
Eviserator
NimbleKit Guru
 
Posts: 298
Joined: Sun Jan 24, 2010 7:59 am
Location: Woodbridge, Virginia

Re: AdMob Integration - New SDK

Postby sunny » Sun Aug 07, 2011 10:05 pm

in your project the actual obj-c/js mixed files are missing, there must be also implementation of the AdViewController class, add that files to the project and it should work
User avatar
sunny
Staff
 
Posts: 2669
Joined: Sat May 30, 2009 5:18 am
Location: Palo Alto, California

PreviousNext

Return to Sample Code

Who is online

Users browsing this forum: No registered users and 1 guest