Adding a Google AdMob(6.2.1) to Your Application
2012-11-22 17:16
465 查看
Introduction
The Google AdMob Ads SDK allows developers to easily incorporate mobile-friendly text and image banners as well as rich, full-screen web apps known as interstitials. An ever-growing set of "calls-to-action" are supported in response to user touch includingdirect access to the App Store, Android Market and Windows Phone 7 Marketplace, iTunes, maps, video and the dialer. Ads can be targeted by location and demographic data. The Google AdMob Ads SDK can be used by the following publishers:
AdMob publishers
Access the Google AdMob network to easily monetize your application.
DoubleClick For Publishers (DFP) users
Leverage DFP to traffic, target and serve directly-sold ads. For upgraded DFP (www.google.com/dfp)
users, select Android or iOS.
AdSense publishers
Monetize your search results pages with Google search ads.
Follow the instructions below to incorporate the Google AdMob Ads SDK into your development environment. To begin, select the tab corresponding to your particular platform.
iOSAndroidWindows Phone 7
Requirements
iOS version 4.3or later
Xcode
4.5or later
Warning: All new iPad and iPhone apps created after October 14, 2011 will require an AdMob
SDK that was released on or after March 15, 2011. This corresponds to version 4.0.2+ for iOS. If you downloaded the library from our official
download site, then you're already set. Otherwise you may have an old version of the AdMob SDK that was released prior to March 15, 2011, and your new app will not receive any ad impressions until you update your SDK.
Incorporating the SDK
For the rest of these instructions, the project shown will be named BannerExample. When going through the exercises, simply replace BannerExample with your project's name.The decompressed SDK consists of Objective-C headers, a runtime library and a README.
1. Right-click on your project in Xcode, choose Add Files to "BannerExample"...
2. Add everything except the add-ons folder unless you need something from there. The add-ons folder includes headers for DFP and mediation, as well as the Analytics library. Even if you are adding these in, do not add any other Xcode projects into your project.
3. The SDK library references four iOS development frameworks which may not already be part of your project:
StoreKit
AudioToolbox
MessageUI
SystemConfiguration
CoreGraphics
AdSupport
To add these frameworks, double-click the BannerExample project name. Open the Link Binary With Libraries dropdown under the Build Phases tab. Add the frameworks from the iOS SDK using the + button
that becomes visible.
4. You now need to add
-ObjCto the Other Linker Flags of your application
target's build setting:
In Xcode's project navigator, press the blue top-level project icon.
Click on your target, then the Build Settings tab.
Under Other Linker Flags, add
-ObjCto both Debug and Release.
You should now be able to rebuild your project without any errors.
相关文章推荐
- Adding Google Analytics to your Zen Cart store
- Adding Open Source 3D Physics to Your iOS Applications (3)Using Bullet in Your iOS Application
- How to Integrate Google Searches into Your Application
- 如何在win32控制台加入MFC对话框(Adding Windows To Your Console Application)
- Adding Windows To Your Console Application
- Adding XP Visual Styles to Your Visual Basic Application
- Adding XP Visual Styles to Your Visual Basic Application
- Adding a Rich Text Editor to your Rails Application
- In-App Purchase--Adding a Store to Your Application[5]
- Adding Gravity to your UI Components
- Adding Open Source 3D Physics to Your iOS Applications(1)
- An application for Apple Watch to control your Tesla Car
- Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
- Springboot启动报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default
- pacparser - A library to make your web software pac (proxy auto-config) files intelligent. Comes with much useful pactester tool now. - Google Project Hosting
- Adding OmniGroup to Your Project
- Adding Open Source 3D Physics to Your iOS Applications(2) Moving Bullet to iOS
- Adding Most Recently Used (MRU) Files to an SDI/MDI Application
- Unable to valiate your application
- Adding OpenID to your web site in conjunction with ASP.NET Membership