SlideShare une entreprise Scribd logo
1  sur  20
Télécharger pour lire hors ligne
Integrating Google AdMob  iOS App
Start a new XCode project
Save your project and download latest AdMob SDK -> https://developers.google.com/mobile-ads-sdk/download#downloadios
Add unzipped folder to your project. Make sure you check copy items if needed and target.
Add following frameworks
Under Build Setting set  Other Linker Flag to -Objc
Add a UIView to the bottom  of you viewcontroller set the autolayout.
Under Identity inspector  Name the class GADBannerView for you UIView
Import GADBannerView.h and GADRequest.h to your viewcontroller then create IBOutlet of your UIView name it bannerView.
"Add this code to your viewDidLoad method"  self.bannerView.adUnitID = @"ca-app-pub-3940256099942544/2934735716";     //Replace the adUnitID with your adUnitID     self.bannerView.rootViewController = self;     GADRequest *request = [GADRequest request];     request.testDevices = @[ GAD_SIMULATOR_ID, @"MY_TEST_DEVICE_ID" ];     [self.bannerView loadRequest:request];
Run your App
Voila
Refereces   • https://developers.google.com/mobile-ads-sdk/docs/admob/ios/quick-start  • https://developers.google.com/mobile-ads-sdk/download#downloadios
Thanks   • @MaverickHitesh  • in.linkedin.com/in/maverickhitesh/
Integrating Google AdMob
Integrating Google AdMob
Integrating Google AdMob
Integrating Google AdMob
Integrating Google AdMob
Integrating Google AdMob

Contenu connexe

Tendances

Tiggzi at DC jQuery Meetup
Tiggzi at DC jQuery MeetupTiggzi at DC jQuery Meetup
Tiggzi at DC jQuery MeetupMax Katz
 
Formation angular js/Ionic
Formation angular js/IonicFormation angular js/Ionic
Formation angular js/IonicHana Amiri
 
June 2014 - Android wear
June 2014 - Android wearJune 2014 - Android wear
June 2014 - Android wearBlrDroid
 
Java Cloud Meeting Fukuoka 2010
Java Cloud Meeting Fukuoka 2010Java Cloud Meeting Fukuoka 2010
Java Cloud Meeting Fukuoka 2010Shinichi Ogawa
 
Tiggr Mobile Apps Builder at Silicon Valley HTML5 Group Meetup
Tiggr Mobile Apps Builder at Silicon Valley HTML5 Group MeetupTiggr Mobile Apps Builder at Silicon Valley HTML5 Group Meetup
Tiggr Mobile Apps Builder at Silicon Valley HTML5 Group MeetupMax Katz
 

Tendances (6)

PhotoFlipCardView
PhotoFlipCardViewPhotoFlipCardView
PhotoFlipCardView
 
Tiggzi at DC jQuery Meetup
Tiggzi at DC jQuery MeetupTiggzi at DC jQuery Meetup
Tiggzi at DC jQuery Meetup
 
Formation angular js/Ionic
Formation angular js/IonicFormation angular js/Ionic
Formation angular js/Ionic
 
June 2014 - Android wear
June 2014 - Android wearJune 2014 - Android wear
June 2014 - Android wear
 
Java Cloud Meeting Fukuoka 2010
Java Cloud Meeting Fukuoka 2010Java Cloud Meeting Fukuoka 2010
Java Cloud Meeting Fukuoka 2010
 
Tiggr Mobile Apps Builder at Silicon Valley HTML5 Group Meetup
Tiggr Mobile Apps Builder at Silicon Valley HTML5 Group MeetupTiggr Mobile Apps Builder at Silicon Valley HTML5 Group Meetup
Tiggr Mobile Apps Builder at Silicon Valley HTML5 Group Meetup
 

En vedette

Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙
Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙
Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙网易科技
 
AdMob Mobile Metrics - May 2010 - Highlights
AdMob Mobile Metrics - May 2010 - HighlightsAdMob Mobile Metrics - May 2010 - Highlights
AdMob Mobile Metrics - May 2010 - HighlightsAdMob Inc
 
Google AdMob Overview
Google AdMob OverviewGoogle AdMob Overview
Google AdMob OverviewModicum
 
Wk2 exploration storyboard
Wk2 exploration  storyboardWk2 exploration  storyboard
Wk2 exploration storyboardIshmael Mayhew
 
From Economic Brand Value to Holonomic Brand Value
From Economic Brand Value to Holonomic Brand ValueFrom Economic Brand Value to Holonomic Brand Value
From Economic Brand Value to Holonomic Brand ValueHolonomics
 
Android security a survey of issues, malware penetration, and defenses
Android security a survey of issues, malware penetration, and defensesAndroid security a survey of issues, malware penetration, and defenses
Android security a survey of issues, malware penetration, and defensesLeMeniz Infotech
 
Reduced capacity smart charger for electric vehicles on single-phase three-wi...
Reduced capacity smart charger for electric vehicles on single-phase three-wi...Reduced capacity smart charger for electric vehicles on single-phase three-wi...
Reduced capacity smart charger for electric vehicles on single-phase three-wi...LeMeniz Infotech
 
Calmez vos réseaux d'eau!
Calmez vos réseaux d'eau!Calmez vos réseaux d'eau!
Calmez vos réseaux d'eau!Benoit Cliche
 
Spe security and privacy enhancement framework for mobile devices
Spe security and privacy enhancement framework for mobile devicesSpe security and privacy enhancement framework for mobile devices
Spe security and privacy enhancement framework for mobile devicesLeMeniz Infotech
 
Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...
Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...
Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...LeMeniz Infotech
 
STEPS Home Care ppt_New
STEPS Home Care ppt_NewSTEPS Home Care ppt_New
STEPS Home Care ppt_NewShan Wade
 
Saliency based color accessibility
Saliency based color accessibilitySaliency based color accessibility
Saliency based color accessibilityLeMeniz Infotech
 
Providing privacy aware incentives in mobile sensing systems
Providing privacy aware incentives in mobile sensing systemsProviding privacy aware incentives in mobile sensing systems
Providing privacy aware incentives in mobile sensing systemsLeMeniz Infotech
 

En vedette (16)

Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙
Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙
Google中国admob战略合作总监赵旭昱_网易科技五道口沙龙
 
AdMob Mobile Metrics - May 2010 - Highlights
AdMob Mobile Metrics - May 2010 - HighlightsAdMob Mobile Metrics - May 2010 - Highlights
AdMob Mobile Metrics - May 2010 - Highlights
 
Google AdMob Overview
Google AdMob OverviewGoogle AdMob Overview
Google AdMob Overview
 
Wk2 exploration storyboard
Wk2 exploration  storyboardWk2 exploration  storyboard
Wk2 exploration storyboard
 
The hands
The handsThe hands
The hands
 
From Economic Brand Value to Holonomic Brand Value
From Economic Brand Value to Holonomic Brand ValueFrom Economic Brand Value to Holonomic Brand Value
From Economic Brand Value to Holonomic Brand Value
 
Android security a survey of issues, malware penetration, and defenses
Android security a survey of issues, malware penetration, and defensesAndroid security a survey of issues, malware penetration, and defenses
Android security a survey of issues, malware penetration, and defenses
 
Reduced capacity smart charger for electric vehicles on single-phase three-wi...
Reduced capacity smart charger for electric vehicles on single-phase three-wi...Reduced capacity smart charger for electric vehicles on single-phase three-wi...
Reduced capacity smart charger for electric vehicles on single-phase three-wi...
 
TEAM building
TEAM buildingTEAM building
TEAM building
 
TestFlight Beta Testing
TestFlight Beta TestingTestFlight Beta Testing
TestFlight Beta Testing
 
Calmez vos réseaux d'eau!
Calmez vos réseaux d'eau!Calmez vos réseaux d'eau!
Calmez vos réseaux d'eau!
 
Spe security and privacy enhancement framework for mobile devices
Spe security and privacy enhancement framework for mobile devicesSpe security and privacy enhancement framework for mobile devices
Spe security and privacy enhancement framework for mobile devices
 
Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...
Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...
Bridgeless pfc modified sepic rectifier with extended gain for universal inpu...
 
STEPS Home Care ppt_New
STEPS Home Care ppt_NewSTEPS Home Care ppt_New
STEPS Home Care ppt_New
 
Saliency based color accessibility
Saliency based color accessibilitySaliency based color accessibility
Saliency based color accessibility
 
Providing privacy aware incentives in mobile sensing systems
Providing privacy aware incentives in mobile sensing systemsProviding privacy aware incentives in mobile sensing systems
Providing privacy aware incentives in mobile sensing systems
 

Similaire à Integrating Google AdMob

Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Oro Inc.
 
Practicing AppDevKit in kata training
Practicing AppDevKit in kata trainingPracticing AppDevKit in kata training
Practicing AppDevKit in kata traininganistar sung
 
Converting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile CloudConverting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile CloudRoger Brinkley
 
How to Webpack your Django!
How to Webpack your Django!How to Webpack your Django!
How to Webpack your Django!David Gibbons
 
7 Ways to improve your gradle build
7 Ways to improve your gradle build7 Ways to improve your gradle build
7 Ways to improve your gradle buildTania Pinheiro
 
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...Codemotion Tel Aviv
 
Mixpanel Integration in Android
Mixpanel Integration in AndroidMixpanel Integration in Android
Mixpanel Integration in Androidmobi fly
 
Google admob mediation tutorial
Google admob mediation tutorialGoogle admob mediation tutorial
Google admob mediation tutorialIndrajit Paliwal
 
iOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsiOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsAsim Rais Siddiqui
 
Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...Zeeshan Rahman
 
Urban Airship & Android Application Integration Document
Urban Airship & Android Application Integration DocumentUrban Airship & Android Application Integration Document
Urban Airship & Android Application Integration Documentmobi fly
 
Lightning salesforce
Lightning salesforceLightning salesforce
Lightning salesforcemounikadv
 
Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발
Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발
Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발Yunho Maeng
 
Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008Yudep Apoi
 
Android N Highligts
Android N HighligtsAndroid N Highligts
Android N HighligtsSercan Yusuf
 

Similaire à Integrating Google AdMob (20)

Payment p owerpoint
Payment p owerpointPayment p owerpoint
Payment p owerpoint
 
Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)Adding custom ui controls to your application (1)
Adding custom ui controls to your application (1)
 
Practicing AppDevKit in kata training
Practicing AppDevKit in kata trainingPracticing AppDevKit in kata training
Practicing AppDevKit in kata training
 
Ad Mob
Ad MobAd Mob
Ad Mob
 
Converting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile CloudConverting Your Mobile App to the Mobile Cloud
Converting Your Mobile App to the Mobile Cloud
 
How to Webpack your Django!
How to Webpack your Django!How to Webpack your Django!
How to Webpack your Django!
 
7 Ways to improve your gradle build
7 Ways to improve your gradle build7 Ways to improve your gradle build
7 Ways to improve your gradle build
 
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...
Loopback: An Easy and Robust Mobile Backend - Michael Hantler & Aviv Callande...
 
Mixpanel Integration in Android
Mixpanel Integration in AndroidMixpanel Integration in Android
Mixpanel Integration in Android
 
Google admob mediation tutorial
Google admob mediation tutorialGoogle admob mediation tutorial
Google admob mediation tutorial
 
Google admob mediation tutorial
Google admob mediation tutorialGoogle admob mediation tutorial
Google admob mediation tutorial
 
iOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsiOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI Components
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...Urban Airship and Android Integration for Push Notification and In-App Notifi...
Urban Airship and Android Integration for Push Notification and In-App Notifi...
 
Urban Airship & Android Application Integration Document
Urban Airship & Android Application Integration DocumentUrban Airship & Android Application Integration Document
Urban Airship & Android Application Integration Document
 
Lightning salesforce
Lightning salesforceLightning salesforce
Lightning salesforce
 
Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발
Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발
Call For Code: 시각인식을 활용한 피해상황 파악하기 by 맹개발
 
04 objective-c session 4
04  objective-c session 404  objective-c session 4
04 objective-c session 4
 
Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008Steps how to create active x using visual studio 2008
Steps how to create active x using visual studio 2008
 
Android N Highligts
Android N HighligtsAndroid N Highligts
Android N Highligts
 

Integrating Google AdMob

  • 2. Start a new XCode project
  • 3. Save your project and download latest AdMob SDK -> https://developers.google.com/mobile-ads-sdk/download#downloadios
  • 4. Add unzipped folder to your project. Make sure you check copy items if needed and target.
  • 6. Under Build Setting set Other Linker Flag to -Objc
  • 7. Add a UIView to the bottom of you viewcontroller set the autolayout.
  • 8. Under Identity inspector Name the class GADBannerView for you UIView
  • 9. Import GADBannerView.h and GADRequest.h to your viewcontroller then create IBOutlet of your UIView name it bannerView.
  • 10. "Add this code to your viewDidLoad method" self.bannerView.adUnitID = @"ca-app-pub-3940256099942544/2934735716"; //Replace the adUnitID with your adUnitID self.bannerView.rootViewController = self; GADRequest *request = [GADRequest request]; request.testDevices = @[ GAD_SIMULATOR_ID, @"MY_TEST_DEVICE_ID" ]; [self.bannerView loadRequest:request];
  • 12. Voila
  • 13. Refereces • https://developers.google.com/mobile-ads-sdk/docs/admob/ios/quick-start • https://developers.google.com/mobile-ads-sdk/download#downloadios
  • 14. Thanks • @MaverickHitesh • in.linkedin.com/in/maverickhitesh/