PMBaseAdRequest

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

Return to list of References

Inherits from:NSObject
Declared in:PMBaseAdRequest.h

Overview


Abstract class for all types of ad requests; such as, PMBannerAdRequest, PMNativeAdRequest, and so on.

Warning: Never use a direct instance of PMBaseAdRequest to request an ad.

Tasks


 

Properties


city

The user's stated city of residence.

 

@property (nonatomic, strong) NSString *city

 

Declared In

PMBaseAdRequest.h

country

A two-letter country code in ISO 3166 format that represents the user's stated country of residence. Overrides internally detected country setting. For example: adRequest.country = @"US";

 

@property (nonatomic, strong) NSString *country

 

Declared In

PMBaseAdRequest.h

dma

Use this property to set a Designated Market Area (DMA) code for the user (US users only).

 

@property (nonatomic, strong) NSString *dma

 

Declared In

PMBaseAdRequest.h

keywords

A comma-separated list of keywords indicating the consumer’s interests or intent.

 

@property (nonatomic, strong) NSString *keywords

 

Declared In

PMBaseAdRequest.h

location

Use the location property to deliver geographically relevant ads to users; for example, adRequest.location = [[CLLocation alloc] initWithLatitude:18.563 longitude:73.77];

 

@property (nonatomic, strong) CLLocation *location

 

Declared In

PMBaseAdRequest.h

requestSecureCreative

Use this property to request secure ads from ad server. This also supports Apple’s App Transport Security (ATS) protocol.

 

@property (nonatomic, assign) BOOL requestSecureCreative

 

Declared In

PMBaseAdRequest.h

zip

Use the zip property may to help deliver geographically relevant ads to users.

 

@property (nonatomic, strong) NSString *zip

 

Declared In

PMBaseAdRequest.h

 

⇧ Top

Attachments

    Outcomes