65
PUNE MOBILE DEVELOPERS Ad Network Integration 17 th May, 2014

Pune Mobile Developers

  • Upload
    tola

  • View
    31

  • Download
    0

Embed Size (px)

DESCRIPTION

Pune Mobile Developers. Ad Network Integration 17 th 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. - PowerPoint PPT Presentation

Citation preview

Page 1: Pune Mobile Developers

PUNE MOBILE DEVELOPERS

Ad Network Integration17th May, 2014

Page 2: Pune Mobile Developers

AGENDA

Integrating third party ad network SDKs

Page 3: Pune Mobile Developers

AGENDA

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

Page 4: Pune Mobile Developers

GETTING AD NETWORK SDK

First step is to signup for an Ad Network SDK

Page 5: Pune Mobile Developers

GETTING AD NETWORK SDK

Download Ad Network SDK

Page 6: Pune Mobile Developers

GETTING AD NETWORK SDK

Download Ad Network SDK https

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

Page 7: Pune Mobile Developers

GETTING AD NETWORK SDK

Downloaded package structure

Page 8: Pune Mobile Developers

GETTING AD NETWORK SDK

Downloaded package structure

Page 9: Pune Mobile Developers

ADDING AD NETWORK SDK TO PROJECT

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

Page 10: Pune Mobile Developers

ADDING AD NETWORK SDK TO PROJECT

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

Page 11: Pune Mobile Developers

ADDING AD NETWORK SDK TO PROJECT

Right click on your app project in Eclipse and choose Properties

Page 12: Pune Mobile Developers

ADDING AD NETWORK SDK TO PROJECT

Select Java Build Path and the Libraries tab.

Page 13: Pune Mobile Developers

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 14: Pune Mobile Developers

ADDING AD NETWORK SDK TO PROJECT Select the Order and Export tab

Page 15: Pune Mobile Developers

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 16: Pune Mobile Developers

ADDING AD NETWORK SDK TO PROJECT The SDK requires that

com.google.ads.AdActivity be declared in your app's AndroidManifest.xml:

Page 17: Pune Mobile Developers

ADDING AD NETWORK SDK TO PROJECT The SDK requires that

com.google.ads.AdActivity be declared in your app's AndroidManifest.xml:

Page 18: Pune Mobile Developers

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 19: Pune Mobile Developers

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 20: Pune Mobile Developers

ADDING REQUIRED FRAMEWORKS

Add required frameworks for Ad Network SDK

Page 21: Pune Mobile Developers

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 22: Pune Mobile Developers

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 23: Pune Mobile Developers

REQUESTING AD Import Ad view class

Page 24: Pune Mobile Developers

REQUESTING AD Import Ad view class

Page 25: Pune Mobile Developers

REQUESTING AD Import Ad view class

Page 26: Pune Mobile Developers

REQUESTING AD Create ad view

Page 27: Pune Mobile Developers

REQUESTING AD Create ad view Specify ad size

Page 28: Pune Mobile Developers

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

Page 29: Pune Mobile Developers

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

Page 30: Pune Mobile Developers

REQUESTING AD

Add Ad View to UI

Page 31: Pune Mobile Developers

REQUESTING AD

Add Ad View to UI

Page 32: Pune Mobile Developers

REQUESTING AD

Add Ad View to UI

Page 33: Pune Mobile Developers

REQUESTING AD

Make ad request

Page 34: Pune Mobile Developers

REQUESTING AD

Make ad request

Page 35: Pune Mobile Developers

REQUESTING AD

Make ad request

Page 36: Pune Mobile Developers

AD REQUEST SUCCESSFUL

Page 37: Pune Mobile Developers

AD REQUEST SUCCESSFUL

Page 38: Pune Mobile Developers

TRACKING AD LIFECYCLE EVENTS Handle callbacks to improve user experience

Page 39: Pune Mobile Developers

TRACKING AD LIFECYCLE EVENTS Handle callbacks to improve user experience

Page 40: Pune Mobile Developers

TRACKING AD LIFECYCLE EVENTS Handle callbacks to improve user experience

Page 41: Pune Mobile Developers

TESTING ADS You should utilize test ads during

development to avoid generating false impressions.

Page 42: Pune Mobile Developers

TESTING ADS You should utilize test ads during

development to avoid generating false impressions.

Page 43: Pune Mobile Developers

TESTING ADS You should utilize test ads during

development to avoid generating false impressions.

Page 44: Pune Mobile Developers

TARGETING Target ads based on user’s information and

interest

Page 45: Pune Mobile Developers

TARGETING Target ads based on user’s information and

interest

Page 46: Pune Mobile Developers

TARGETING Target ads based on user’s information and

interest

Page 47: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Use a ad network SDK which provides mediation for other ad networks (Ex: OperaMediaWorks and MoPub)

Page 48: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Use a ad network SDK which provides mediation for other ad networks (Ex: OperaMediaWorks and MoPub) Results in higher fill rates

Page 49: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

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

Page 50: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Use a 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

Page 51: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Use a 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

Page 52: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Use a 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 53: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Manage free and paid apps

Page 54: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Manage free and paid apps Set the app to be a “Library”

Page 55: Pune Mobile Developers

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

Page 56: Pune Mobile Developers

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

Page 57: Pune Mobile Developers

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

Page 58: Pune Mobile Developers

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)

Page 59: Pune Mobile Developers

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 60: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

Avoid displaying different ads on each screen of app

Page 61: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

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

Page 62: Pune Mobile Developers

BEST PRACTICES FOR AD NETWORK INTEGRATION

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

Page 63: Pune Mobile Developers

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

Page 64: Pune Mobile Developers

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

Page 65: Pune Mobile Developers