PMBannerAdRequest

Document created by catherine.racette on Sep 12, 2017Last modified by david.simerly on Apr 18, 2018
Version 17Show Document
  • View in full screen mode
Return to list of References

 

Inherits fromPMAdRequest : PMBaseAdRequest : NSObject
Declared inPMBannerAdRequest.h

 

Overview


PMBannerAdRequest class provides properties for ad request parameters. To request Banner Ad, you need to pass valid PMBannerAdRequest instance to PMBannerAdView’s execute: method.

 

Tasks


 

Properties


adOrientation

Ad orientation.

 

@property (nonatomic, assign) PMADOrientation adOrientation

 

Discussion

Possible values are:

  • PMADOrientationPortrait : Portrait orientation
  • PMADOrientationLandscape : Landscape orientation

 

See Also

  • PMADOrientation

 

Declared In

PMBannerAdRequest.h

adSize

Size of Banner ad, It is mandatory parameter

 

@property (nonatomic, assign) CGSize adSize

 

Discussion

Size of Banner ad, It is mandatory parameter

 

Declared In

PMBannerAdRequest.h

optionalAdSizes

Optional Ad sizes that can be set along with adSize.

 

@property (nonatomic, strong) NSArray<NSValue*> *optionalAdSizes

 

Discussion

Optional Ad sizes that can be set along with adSize.

 

Example:

request.optionalAdSizes = @[[NSValue valueWithCGSize:CGSizeMake(300, 50)],[NSValue valueWithCGSize:CGSizeMake(320, 50)]] 
Maximum first 4 sizes would be considered at server for DSP auctioning.

Declared In

PMBannerAdRequest.h

 

⇧ Top

Attachments

    Outcomes