Top Banner
PUNE MOBILE DEVELOPERS Ad Network Integration 17 th May, 2014
26
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Mobile App Monetization - Ad Network Integration

PUNE MOBILE DEVELOPERS

Ad Network Integration17th May, 2014

Page 2: Mobile App Monetization - Ad Network Integration

AGENDA

Integrating third party ad network SDKs Best practices for ad network integration

Page 3: Mobile App Monetization - Ad Network Integration

GETTING AD NETWORK SDK

First step is to signup for an Ad Network SDK

Page 4: Mobile App Monetization - Ad Network Integration

GETTING AD NETWORK SDK

Download Ad Network SDK https

://developers.google.com/mobile-ads-sdk/download#download

Page 5: Mobile App Monetization - Ad Network Integration

GETTING AD NETWORK SDK

Downloaded package structure

Page 6: Mobile App Monetization - Ad Network Integration

ADDING AD NETWORK SDK TO PROJECT

Right-click on your project in Xcode, choose Add Files to “Your project”

Page 7: Mobile App Monetization - Ad Network Integration

ADDING AD NETWORK SDK TO PROJECT

Select all the files from except “Add-ons” directory

Page 8: Mobile App Monetization - Ad Network Integration

ADDING AD NETWORK SDK TO PROJECT

Right click on your app project in Eclipse and choose Properties

Page 9: Mobile App Monetization - Ad Network Integration

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

Page 10: Mobile App Monetization - Ad Network Integration

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.

Page 11: Mobile App Monetization - Ad Network Integration

ADDING AD NETWORK SDK TO PROJECT

The SDK requires that com.google.ads.AdActivity be declared in your app's AndroidManifest.xml:

Page 12: Mobile App Monetization - Ad Network Integration

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:

Page 13: Mobile App Monetization - Ad Network Integration

ADDING REQUIRED FRAMEWORKS

Add required frameworks for Ad Network SDK For AdMob these frameworks are required:

AdSupport AudioToolbox AVFoundation CoreGraphics CoreTelephony MessageUI StoreKit SystemConfiguration

Page 14: Mobile App Monetization - Ad Network Integration

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:

Page 15: Mobile App Monetization - Ad Network Integration

REQUESTING AD

Import Ad view class

Page 16: Mobile App Monetization - Ad Network Integration

REQUESTING AD Create ad view Specify ad size Specify Ad Unit ID

Page 17: Mobile App Monetization - Ad Network Integration

REQUESTING AD

Add Ad View to UI

Page 18: Mobile App Monetization - Ad Network Integration

REQUESTING AD

Make ad request

Page 19: Mobile App Monetization - Ad Network Integration

AD REQUEST SUCCESSFUL

Page 20: Mobile App Monetization - Ad Network Integration

TRACKING AD LIFECYCLE EVENTS Handle callbacks to improve user experience

Page 21: Mobile App Monetization - Ad Network Integration

TESTING ADS

You should utilize test ads during development to avoid generating false impressions.

Page 22: Mobile App Monetization - Ad Network Integration

TARGETING Target ads based on user’s information and

interest

Page 23: Mobile App Monetization - Ad Network Integration

BEST PRACTICES FOR AD NETWORK INTEGRATION

Use an ad network SDK which provides mediation for other ad networks (Ex: OperaMediaWorks and MoPub) Results in higher fill rates Less development effort is required

Respect user privacy Limit Ad Tracking on iOS Bad practice to request user location only for ad

targeting

Page 24: Mobile App Monetization - Ad Network Integration

BEST PRACTICES FOR AD NETWORK INTEGRATION

Manage free and paid apps Set the app to be a “Library” Create two new apps (“Free” and “Pro”), that

reference that library Configure the Manifests of those apps to “know”

about all the activities in the library Add ad network library Change the layouts in the library to have an

empty “LinearLayout” (Ad space) Write a function that can insert an AdView into a

LinearLayout, based on a “isAd” global public static boolean

Page 25: Mobile App Monetization - Ad Network Integration

BEST PRACTICES FOR AD NETWORK INTEGRATION

Avoid displaying different ads on each screen of app Increases number of ad impressions Reduces network activity

Pre-fetch interstitial ads Improves user experience