adzerk / adzerk-ios-sdk

Access Adzerk's ad serving APIs via iOS
https://www.adzerk.com
Other
9 stars 5 forks source link

iOS Mobile SDK: Support advertiserId in response #47

Closed karnowski closed 3 years ago

karnowski commented 3 years ago

Background

Recently the Kevel ad servers started including the advertiserId for each winning ad. We should expose that ID via the iOS SDK PlacementDecision object too.

Here's an example snippet, note the new advertiserId value:

{
  "user": { "key": "abc" },
  "decisions": {
    "div0": [
      {
        "adId": 2104402,
        "creativeId": 1773302,
        "flightId": 2583477,
        "campaignId": 502103,
        "advertiserId": 163756,
        "priorityId": 99645,
        "clickUrl": "https://e-23.adzerk.net/r?e=ey....",
        "impressionUrl": "https://e-23.adzerk.net/i.gif?e=ey....",
        "contents": [
          {
          }
        ],
        "height": 250,
        "width": 300,
        "events": []
      }
    ]
  }
}

Acceptance Criteria