650 likes | 773 Views
This guide provides a thorough overview of integrating third-party ad network SDKs into mobile applications. It covers essential steps such as signing up for SDKs, downloading, and adding them to your project in both Xcode and Eclipse. It discusses required permissions in the AndroidManifest.xml as well as necessary frameworks for AdMob integration. Additionally, it addresses best practices for ad network integration, including targeting and using mediation for better fill rates, and emphasizes the importance of respecting user privacy.
E N D
Pune Mobile Developers Ad Network Integration 17th May, 2014
Agenda • Integrating third party ad network SDKs
Agenda • Integrating third party ad network SDKs • Best practices for ad network integration
getting Ad Network sdk • First step is to signup for an Ad Network SDK
getting Ad Network sdk • Download Ad Network SDK
getting Ad Network sdk • Download Ad Network SDK • https://developers.google.com/mobile-ads-sdk/download#download
getting Ad Network sdk • Downloaded package structure
getting Ad Network sdk • Downloaded package structure
Adding Ad Network SDK to Project • Right-click on your project in Xcode, choose Add Files to “Your project”
Adding Ad Network SDK to Project • Select all the files from except “Add-ons” directory
Adding Ad Network SDK to Project • Right click on your app project in Eclipse and choose Properties
Adding Ad Network SDK to Project • Select Java Build Path and the Libraries tab.
Adding Ad Network SDK to Project • Select Java Build Path and the Libraries tab. • Click Add External JARs,to add the Google Mobile Ads JAR
Adding Ad Network SDK to Project • Select the Order and Export tab
Adding Ad Network SDK to Project • Select the Order and Export tab • Check the Google Mobile Ads JAR to include it when compiling your project.
Adding Ad Network SDK to Project • The SDK requires that com.google.ads.AdActivity be declared in your app's AndroidManifest.xml:
Adding Ad Network SDK to Project • The SDK requires that com.google.ads.AdActivity be declared in your app's AndroidManifest.xml:
Adding Ad Network SDK to Project • Making ad requests requires the networking permissions INTERNET and ACCESS_NETWORK_STATE, so these must also be declared in the manifest:
Adding Ad Network SDK to Project • Making ad requests requires the networking permissions INTERNET and ACCESS_NETWORK_STATE, so these must also be declared in the manifest:
Adding Required Frameworks • Add required frameworks for Ad Network SDK
Adding Required Frameworks • Add required frameworks for Ad Network SDK • For AdMob these frameworks are required: • AdSupport • AudioToolbox • AVFoundation • CoreGraphics • CoreTelephony • MessageUI • StoreKit • SystemConfiguration
Configuring Build Settings • Set any build settings if required. • For AdMob, add -ObjC to the Other Linker Flags of your application target's build setting:
Requesting Ad • Import Ad view class
Requesting Ad • Import Ad view class
Requesting Ad • Import Ad view class
Requesting Ad • Create ad view
Requesting Ad • Create ad view • Specify ad size
Requesting Ad • Create ad view • Specify ad size • Specify Ad Unit ID
Requesting Ad • Create ad view • Specify ad size • Specify Ad Unit ID
Requesting Ad • Add Ad View to UI
Requesting Ad • Add Ad View to UI
Requesting Ad • Add Ad View to UI
Requesting Ad • Make ad request
Requesting Ad • Make ad request
Requesting Ad • Make ad request
Tracking Ad Lifecycle events • Handle callbacks to improve user experience
Tracking Ad Lifecycle events • Handle callbacks to improve user experience
Tracking Ad Lifecycle events • Handle callbacks to improve user experience
Testing Ads • You should utilize test ads during development to avoid generating false impressions.
Testing Ads • You should utilize test ads during development to avoid generating false impressions.
Testing Ads • You should utilize test ads during development to avoid generating false impressions.
Targeting • Target ads based on user’s information and interest
Targeting • Target ads based on user’s information and interest
Targeting • Target ads based on user’s information and interest
Best practices for ad network integration • Use a ad network SDK which provides mediation for other ad networks(Ex: OperaMediaWorksand MoPub)
Best practices for ad network integration • Use a ad network SDK which provides mediation for other ad networks(Ex: OperaMediaWorksand MoPub) • Results in higher fill rates
Best practices for ad network integration • Use a ad network SDK which provides mediation for other ad networks(Ex: OperaMediaWorksand MoPub) • Results in higher fill rates • Less development effort is required
Best practices for ad network integration • Use a ad network SDK which provides mediation for other ad networks(Ex: OperaMediaWorksand MoPub) • Results in higher fill rates • Less development effort is required • Respect user privacy