PMNativeAdRequest

Document created by catherine.racette on Sep 12, 2017Last modified by david.simerly on Nov 6, 2017
Version 3Show Document
  • View in full screen mode

Return to list of References

Inherits from:PMAdRequest : PMBaseAdRequest : NSObject
Declared in:PMNativeAdRequest.h

Overview

Ad Request class for making Native ad from PubMatic (SSP)

 

Tasks

  adAssetArray property

– addAsset:


Properties

adAssetArray

Native ad assets array

Returns array of following class intances :

@property (nonatomic, readonly) NSMutableArray *adAssetArray

Declared In

PMNativeAdRequest.h

Instance Methods

addAsset:

Adds instance of below classes on PMNativeAdRequest

When [PMNativeAd execute:] is called with PMNativeAdRequest instance, Asset responses of below types will be available in [PMNativeAd adAssetResponseArray].

- (BOOL)addAsset:(PMNativeAssetRequest *)nativeAsset

Discussion

Warning: Access [PMNativeAd adAssetResponseArray] only after successful Native Ad is received i.e. [PMNativeAdDelegate nativeAdDidRecieveAd:] delegate method is called.

See Also

  • PMNativeDataAssetTypeEnum, PMNativeImageAssetTypeEnum

Declared In

PMNativeAdRequest.h

Attachments

    Outcomes