We currently do not support Cocoapods, please follow manual integration steps below.
- Unzip the zip folder in finders. You should be able to see the LinkedinAudienceNetwork.xcframework folder.
- Open your own project in XCode
- Drag the LinkedinAudienceNetwork.xcframework, and drop it into the "Frameworks" module
- Embed and sign our SDK in project settings:
- Click on projects, go to Targets
- Select your target
- Select General tab
- Find Frameworks, Libraries and Embedded content section
- Find our SDK LinkedinAudienceNetwork.xcframework
- Select Embed and Sign
We use singleton to maintain a client, so you don't have to create an object to store a client. The two main functions are:
- AudienceNetwork.start
- AudienceNetwork.bidderToken
This function contains 2 parameters: a key and a completion function.
**At this stage, you can put any string value in the key, and the completion is nullable.
This function will return Linkedin's Bidder Token.
import LinkedinAudienceNetwork
...
AudienceNetwork.start(with: "some_key", completion: nil)
AudienceNetwork.bidderToken@import LinkedinAudienceNetwork;
...
[LinkedinAudienceNetwork startWithKey:@"some_key" completion: nil];
[LinkedinAudienceNetwork bidderToken];