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

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

#import <VASNativeAdFactory.h>

Inherits <NSObject-p>.

Instance Methods

(void) - nativeAdFactory:cacheLoadedNumRequested:numReceived:
 Called when the cache request is complete. More...
 
(void) - nativeAdFactory:cacheUpdatedWithCacheSize:
 Called when the number of ads in the cache has been modified. More...
 
(void) - nativeAdFactory:didFailWithError:
 Called when there is an error requesting an VASNativeAd or loading an VASNativeAd from the cache. More...
 
(void) - nativeAdFactory:didLoadNativeAd:
 Called when the components for the VASNativeAd have been loaded. More...
 

Detailed Description

Protocol for receiving notifications from the VASNativeAdFactory.

Method Documentation

◆ nativeAdFactory:cacheLoadedNumRequested:numReceived:()

- (void) nativeAdFactory: (VASNativeAdFactory *)  adFactory
cacheLoadedNumRequested: (NSUInteger numRequested
numReceived: (NSUInteger numReceived 

Called when the cache request is complete.

Parameters
adFactoryThe calling VASNativeAdFactory.
numRequestedThe number of ads requested for the cache (i.e. the difference between the maximum number of ads for your cache and the ads already in the cache).
numReceivedThe number of ads received for the cache. This value may be less than the number requested if not all ads requested were available.

◆ nativeAdFactory:cacheUpdatedWithCacheSize:()

- (void) nativeAdFactory: (VASNativeAdFactory *)  adFactory
cacheUpdatedWithCacheSize: (NSUInteger cacheSize 

Called when the number of ads in the cache has been modified.

This could mean that ads have been added to the cache or that an ad was removed from the cache for display.

Parameters
adFactoryThe calling VASNativeAdFactory.
cacheSizeThe new value of the cache. Represents the number of cached ads available.

◆ nativeAdFactory:didFailWithError:()

- (void) nativeAdFactory: (VASNativeAdFactory *)  adFactory
didFailWithError: (nullable VASErrorInfo *)  errorInfo 

Called when there is an error requesting an VASNativeAd or loading an VASNativeAd from the cache.

Parameters
adFactoryThe calling VASNativeAdFactory.
errorInfoAn VASErrorInfo object containing details about the error.

◆ nativeAdFactory:didLoadNativeAd:()

- (void) nativeAdFactory: (VASNativeAdFactory *)  adFactory
didLoadNativeAd: (VASNativeAd *)  nativeAd 

Called when the components for the VASNativeAd have been loaded.

A new VASNativeAd instance will be provided as part of this callback.

Parameters
adFactoryThe calling VASNativeAdFactory.
nativeAdThe VASNativeAd object that is ready to be displayed.