Publisher ID for iOS

This article explains about the publisher_id parameter of the Universal Tag service.  

Overview

The publisher_id parameter enables publishers to indicate what action should occur when an ad request fails at the placement level. In older versions of mobile SDK, if the request failed, the member ID was be used to determine which default creative to return with the request. With the addition of the publisher_id parameter, publishers now have two following options to resolve default placements when the request fails:

  1. publisher level default placement
  2. member level default placement

Process

When an invalid placement code is called:

  • If a publisher_id is present in the JSON request, the request will be rerouted to the publisher level default placement.
  • When there is no publisher_id in the JSON request, the request will be rerouted to the member level default placement.

Ad unit methods for publisher ID

The AdUnit class has following two methods for setting and retrieving publisherId:

Setter method

public func setPublisherId (publisherId:Int)