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

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

#import <VASInlineAdFactory.h>

Inherits <NSObject-p>.

Instance Methods

(void) - inlineAdFactory:cacheLoadedNumRequested:numReceived:
 Called when the cache request is complete. More...
 
(void) - inlineAdFactory:cacheUpdatedWithCacheSize:
 Called when the number of ads in the cache has been modified. More...
 
(void) - inlineAdFactory:didFailWithError:
 Called when there is an error requesting a VASInlineAdView or loading a VASInlineAdView from the cache. More...
 
(void) - inlineAdFactory:didLoadInlineAd:
 Called when the VASInlineAdView has been loaded. More...
 

Detailed Description

Protocol for receiving notifications from the VASInlineAdFactory.

Method Documentation

◆ inlineAdFactory:cacheLoadedNumRequested:numReceived:()

- (void) inlineAdFactory: (VASInlineAdFactory *)  adFactory
cacheLoadedNumRequested: (NSInteger numRequested
numReceived: (NSInteger numReceived 

Called when the cache request is complete.

Parameters
adFactoryThe calling VASInlineAdFactory.
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.

◆ inlineAdFactory:cacheUpdatedWithCacheSize:()

- (void) inlineAdFactory: (VASInlineAdFactory *)  adFactory
cacheUpdatedWithCacheSize: (NSInteger 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 VASInlineAdFactory.
cacheSizeThe new value of the cache. Represents the number of cached ads available.

◆ inlineAdFactory:didFailWithError:()

- (void) inlineAdFactory: (VASInlineAdFactory *)  adFactory
didFailWithError: (VASErrorInfo *)  errorInfo 

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

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

◆ inlineAdFactory:didLoadInlineAd:()

- (void) inlineAdFactory: (VASInlineAdFactory *)  adFactory
didLoadInlineAd: (VASInlineAdView *)  inlineAd 

Called when the VASInlineAdView has been loaded.

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

Parameters
adFactoryThe calling VASInlineAdFactory.
inlineAdThe VASInlineAdView object that is ready to be displayed.