Page tree


Inherits from PMAdRequest : PMBaseAdRequest : NSObject
Declared inPMInterstitialAdRequest.h
PMInterstitialAdRequest.m

Tasks


Other Methods

Extension Methods


Properties


adOrientation

Use to orient an ad as portrait or landscape.

@property (nonatomic, assign) PMADOrientation adOrientation

Discussion

Possible values are:

  • PMADOrientationPortrait = portrait orientation.
  • PMADOrientationLandscape = landscape orientation.

Declared In

PMInterstitialAdRequest.h

adSize

Use to set an ad's size (optional).

@property (nonatomic, assign) CGSize adSize

Declared In

PMInterstitialAdRequest.h

awt

Indicates whether or not the tracking URL has been wrapped in the creative tag.

@property (nonatomic, assign) PMAWT awt

Declared In

PMInterstitialAdRequest.m

optionalAdSizes

Lets you define optional sizes for an ad.

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

Discussion

Each optionalAdSizes item should be in form: [NSValue valueWithCGRect:CGRectMake(0,0,10,10)]. For example:

request.optionalAdSizes = @[[NSValue valueWithCGSize:CGSizeMake(300, 50)],
[NSValue valueWithCGSize:CGSizeMake(320, 50)]]

Declared In

PMInterstitialAdRequest.h

Instance Methods


initWithPublisherId:siteId:adId:

Initializes an ad request with Publisher credentials; that is, Publisher Id, Site Id, Ad Id.

- (id)initWithPublisherId:(NSString *)pubId siteId:(NSString *)siteId adId:(NSString *)adId

Parameters

pubId
ID of the publisher. Get this value from the pubId parameter in the PubMatic ad tag.
siteId
ID of the publisher’s Web site. A publisher may have multiple sites. Get this value from the siteId parameter in the PubMatic ad tag.
adId
ID of the ad’s placement. A site may have multiple ad placements or positions, which can have the same or different ad sizes. Get adId, the unique identifier for ad placement, using the adId parameter in the PubMatic ad tag.

Return Value

Initialized object of concrete class Ad Request.

Declared In

PMAdRequest.h


⇧ Top