Sample apps demonstrating the Application side logic & server side API requirements to use SKAdNetwork for app install validations.
This repo contains main three components
- iOS Publisher App
- iOS Advertiser App
- Python scripts
- Ad server (Demonstrative)
- Postback server
This application integrated with iOS OpenWrapSDK 1.6.2, which handles Publisher/Source App side implementaion.
- Add valid ad network id in the app in plist - change <ADNET_ID> in plist file
- Run the demo ad server, refer Ad server
- Pod install & run the app
- This app contain demonstrative code
- This app shows steps needed from Advertiser Application
- Calling registerAppForAdNetworkAttribution() in App Delegate
- Calling updateConversionValue(:) (Optioanlly)
To run this script, make sure python3 is installed on the machine
- Python 3
- pip3
This server responds with Ad in RTB format along with skadn object containg SKAdNetwork information. Follow below steps to run the server
- Place your private key in the
SKAdNetwork-Python-Scripts
with nameprivate_key.pem
- Change <ADNET_ID> in SKAdNetwork-Python-Scripts/ad_server.py to actual ad network id assigned by Apple
- Run below commands
cd SKAdNetwork-Python-Scripts
pip3 install -r requirements.txt
(make sure you are using python3)python3 ad_server.py
This runs the server on port 8080 that serves ad responses to the publisher app.
Please refer Details about generating public, private keys Here
This is demo API which consumes postback request from Apple as HTTP Post data. It validates it's authenticity using Apple's Public key.