MoPub Ad integration - united-adstir/AdStir-Integration-Guide-iOS GitHub Wiki
Supported OS version
iOS 8.0 or later.
Setup
Before MoPub Ad integration, please contact your account manager or contact from Contact Form.
Add MoPub SDK to project
v2.13.5 or later
- Drag & drop
AmazonAds.framework
、libAdstirAdsMediationAdapter-MoPub.a
、MoPub.bundle
to project. - Check
Copy items if needed
. - Select target from
Add to targets
box. - Press
Finish
.
v2.14.0 or higher
- Drag & drop
AmazonAds.framework
、libAdstirAdsMediationAdapter-MoPub.a
、MoPubSDKFramework.framework
to project. - Check
Copy items if needed
. - Select target from
Add to targets
box. - Press
Finish
. - Add MoPubSDKFramework.framework to the target's Embedded Binaries section of the General tab.
Build setting
- Open project file.
- Slect target using MoPub ad.
- Select
Build Target
tab. - Enter
Other Linker Flags
to search box. - Add
-ObjC
toOther Linker Flags
. - Repeat these process for other target if needed.
Dependency Framework/Library
Name | Required |
---|---|
CoreGraphics.framework | Required |
CoreLocation.framework | Optional |
MediaPlayer.framework | Required |
StoreKit.framework | Required |
Webkit.framework | Optional |
If you add CoreLocation.framework
, SDK does not send location with out end user permission.