Skip to content
프로젝트

singular-labs/Singular-SKAdNetwork-App

GitHub에서 보기

소개

Sample apps demonstrating the logic needed to implement SKAdNetwork as an ad network, publisher and advertiser.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Singular-SKAdNetwork-App

Sample apps demonstrating the logic needed to implement SKAdNetwork as an ad network, publisher and advertiser.

This repo contains:

  1. Advertiser sample app
  2. Publisher sample app
  3. A server that simulates an ad network API (including ad signing)

Note: to use SKAN 4 run the sample apps using XCode 14

How to Use the Advertiser Sample App

  • Open SingularAdvertiserSampleApp.xcodeproj
  • Run the app and follow the on-screen instructions

How to Use the Publisher Sample App

  • Open SingularPublisherSampleApp.xcodeproj
  • Make sure that the skadnetwork_server.py is running (instructions below)
  • Modify the consts placeholders in ViewController.m to set your own parameters
  • Follow the steps in ViewController.m starting in showAdClick
  • Run the app and follow the on-screen instructions

How to Run skadnetwork_server.py

  • Place your private key (see below on how to generate it) in the same directory as the server in a file called key.pem
  • cd skadnetwork-server
  • pip install -r requirements.txt (make sure you are using python3)
  • python skadnetwork_server.py

Now you should have a server listening on port 8000 that serves ad network responses to the publisher sample app.

How to generate your public-private key pair

  • SKAdNetwork uses an ECDSA keypair with the prime256v1 curve, generate it by using:
    openssl ecparam -name prime256v1 -genkey -noout -out companyname_skadnetwork_private_key.pem
  • For more details see Apple's instructions Here

    To learn more about Singular visit: https://www.singular.net

관련 프로젝트 살펴보기

불러오는 중…