Getting Started
Learn how to create additional content monetization opportunities in your iOS app.
Standalone Ads enables you to customize ad opportunities and augment the revenue potential of your app:
- Create new high-profile ad opportunities of any dimensions
- Display video and display ads
- Enforce brand safety
Prerequisites
Item | Description |
---|---|
iOS 13.0+ | iOS device operating system |
Xcode 15.3+ | Apple's integrated development environment |
CocoaPods 1.12+ | |
Google Mobile Ads App ID | |
Google Mobile Ads SKAdNetworkIdentifier |
Install the dependencies
Use the following steps to install the dependencies:
-
Open Podfile in a text editor.
-
Update Podfile with the following information.
use_frameworks! target 'YOUR_APP_TARGET' do pod 'OpenWebIAU', '<<iOSStandaloneAdVersion>>' end post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if target.name == 'NimbusSDK' config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end end
-
From the terminal prompt, run
pod install --repo-update
in your project directory to install the pod.
Update the Info.plist file
Add the keys listed below to the Info.plist file of your app.
Key | Description |
---|---|
GADApplicationIdentifier | Google Mobile Ads app ID |
SKAdNetworkIdentifier | Ad network identifier |
NSUserTrackingUserDescription | Description displayed in the app tracking transparency prompt to the user This custom message is shown to the user when requesting access to the IDFA. |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- Google Mobile Ads Configuration -->
<key>GADApplicationIdentifier</key>
<string>Your-Google-Mobile-Ads-App-ID</string>
<!-- App Tracking Transparency -->
<key>NSUserTrackingUsageDescription</key>
<string>This app will use your data to provide better ad experience.</string>
<!-- SKAdNetwork Configuration -->
<key>SKAdNetworkItems</key>
<array>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>example.skadnetwork</string>
</dict>
</array>
</dict>
</plist>
Updated 10 days ago
Next Step