Advertising SDK Integration Guide (iOS)
Version 3.1.3
This is Phunware's iOS SDK for the MaaS Advertising module. http://ads.tapit.com/ for more details and to sign up.
Getting Started
- Download MaaS Advertising and run the included sample app.
- Continue reading below for installation and integration instructions.
- Be sure to read the documentation for additional details.
Installation
Required Frameworks
Optional Frameworks
Required Bundles
Integration
The MaaS Advertising SDK allows developers to serve many types of ads, including banner, interstitial and video ads.
Initialization
Banner Usage
Interstitial Usage
Video Ads Usage
Native Ad Usage
Listen for Location Updates
Customization Options
If you want to customize the appearance of the in-app browser controller that appears when a user taps on an ad, follow the below instructions.
- To customize the background color of the browser controller toolbar, add the key pwAdsToolbarBgColor with a color value represented in RGBA format (ex. orange = 255 149 0 1) to your app's Info.plist file.
- To customize the tint color of the browser controller toolbar items, add the key pwAdsToolbarTintColor with a color value represented in RGBA format (ex. blue = 0 0 255 1) to your app's Info.plist file.
If you want to customize the appearance of the "close" button for interstitial ads, follow the below instructions:
- Create "close" button images at 32x32 pixels @1x and 64x64 pixels @2x.
Name the newly created images pwCustomClose.png and pwCustomClose@2x.png.
- Add pwCustomClose.png and pwCustomClose@2x.png images to your Xcode project.