Setting Up and Configuring the VPAdRequester

To show adverts before, during or after playing video content, the application needs to initiate an ad requester object. This object needs at least the host URL of the client's Pulse account, which can be found in the account settings in the Pulse manager. The ad requester object can also be initiated with the optional deviceContainer and persistentId parameters. For more information about these parameters, see Parameter Reference.


* Lazy instantiation of the VPAdRequester. 

-(VPAdRequester *) adRequester
        NSString *const vpHost = @"";
         // adRequester settings
        NSString *const deviceContainer = @"";
        NSString *const persistentIdentifier = @"";

         _adRequester = [[VPAdRequester alloc]adRequesterWithHost:vpHost
    return _adRequester;


lazy var adRequester: VPAdRequester {
	return VPAdRequester(host: Constants.vpHost, deviceContainer: nil, persistentId: nil)