iOS Verizon Ads SDK Standard Edition Documentation  1.1
Instance Methods | List of all members
<VASNativeAdDelegate> Protocol Reference

Protocol for receiving notifications from the VASNativeAd. More...

#import <VASNativeAd.h>

Inherits <NSObject-p>.

Instance Methods

(void) - nativeAdClickedWithComponentBundle:
 Called when the VASNativeAd has been clicked. More...
 
(void) - nativeAdDidClose:
 Called when the VASNativeAd has been closed. More...
 
(void) - nativeAdDidFail:withError:
 Called when an error occurs during the VASNativeAd lifecycle. More...
 
(void) - nativeAdDidLeaveApplication:
 Called when the VASNativeAd causes the user to leave the application. More...
 
(void) - nativeAdEvent:source:eventId:arguments:
 This callback is used to surface additional events to the publisher from the SDK. More...
 
(nullable UIViewController *) - nativeAdPresentingViewController
 Called prior to presenting another view controller to use for displaying the fullscreen experiences. More...
 

Detailed Description

Protocol for receiving notifications from the VASNativeAd.

These notifications will be called on an arbitrary queue.

Method Documentation

◆ nativeAdClickedWithComponentBundle:()

- (void) nativeAdClickedWithComponentBundle: (id< VASNativeComponentBundle >)  nativeComponentBundle

Called when the VASNativeAd has been clicked.

Parameters
nativeComponentBundleThe VASNativeComponentBundle that was clicked.

◆ nativeAdDidClose:()

- (void) nativeAdDidClose: (VASNativeAd *)  nativeAd

Called when the VASNativeAd has been closed.

Parameters
nativeAdThe VASNativeAd that was closed.

◆ nativeAdDidFail:withError:()

- (void) nativeAdDidFail: (VASNativeAd *)  nativeAd
withError: (VASErrorInfo *)  errorInfo 

Called when an error occurs during the VASNativeAd lifecycle.

An VASErrorInfo object provides detail about the error.

Parameters
nativeAdThe VASNativeAd that experienced the error.
errorInfoThe VASErrorInfo that describes the error that occurred.

◆ nativeAdDidLeaveApplication:()

- (void) nativeAdDidLeaveApplication: (VASNativeAd *)  nativeAd

Called when the VASNativeAd causes the user to leave the application.

For example, tapping an VASNativeAd may launch an external browser.

Parameters
nativeAdThe VASNativeAd that caused the application exit.

◆ nativeAdEvent:source:eventId:arguments:()

- (void) nativeAdEvent: (VASNativeAd *)  nativeAd
source: (NSString *)  source
eventId: (NSString *)  eventId
arguments: (NSDictionary< NSString *, id > *)  arguments 

This callback is used to surface additional events to the publisher from the SDK.

Parameters
nativeAdThe VASNativeAd that is relaying the event.
sourceThe identifier of the event source.
eventIdThe event identifier.
argumentsA dictionary of key/value pairs of arguments related to the event.

◆ nativeAdPresentingViewController()

- (nullable UIViewController *) nativeAdPresentingViewController

Called prior to presenting another view controller to use for displaying the fullscreen experiences.

Returns
a UIViewController capable of presenting another view controller to use for displaying the fullscreen experiences. Returning nil will result in no fullscreen experience being displayed and an error returned to the ad.