PWAdsRequest Class Reference
Inherits from | NSObject |
---|---|
Declared in | PWAdsRequest.h |
zoneID
The id string of the zone of publisher site.
@property (nonatomic, strong) NSString *zoneID
Discussion
The id string of the zone of publisher site.
Declared In
PWAdsRequest.h
location
Geolocation for targeted ads.
@property (nonatomic, copy) CLLocation *location
Discussion
Geolocation for targeted ads.
Declared In
PWAdsRequest.h
keywords
List of keywords to that describe a request.
@property (nonatomic, copy) NSArray *keywords
Discussion
List of keywords to that describe a request.
Declared In
PWAdsRequest.h
numberOfAds
Number of ads requested. Only supported for requesting native ads.
@property (nonatomic, assign) NSInteger numberOfAds
Discussion
Number of ads requested. Only supported for requesting native ads.
Declared In
PWAdsRequest.h
testMode
Whether request is for test ads. Default is NO.
@property (nonatomic, assign) BOOL testMode
Discussion
Whether request is for test ads. Default is NO.
Declared In
PWAdsRequest.h
customData
Custom Data object for Rewarded Video ads request.
@property (nonatomic, copy) NSMutableDictionary *customData
Discussion
Custom Data object for Rewarded Video ads request.
Declared In
PWAdsRequest.h
userID
User ID for Rewarded Video ads request.
@property (nonatomic, copy) NSString *userID
Discussion
User ID for Rewarded Video ads request.
Declared In
PWAdsRequest.h
– initWithZoneID:
Designated initializer for PWAdsRequest.
- (instancetype)initWithZoneID:(NSString *)zoneID
Parameters
zoneID |
The id string of the zone of publisher site |
---|
Discussion
Designated initializer for PWAdsRequest.
Declared In
PWAdsRequest.h
+ requestWithAdZone:
Creates the PWAdsRequest
object with the specified zone ID.
+ (PWAdsRequest *)requestWithAdZone:(NSString *)zone
Parameters
zone |
The zone ID for which you want to request ads. |
---|
Discussion
Creates the PWAdsRequest
object with the specified zone ID.
Declared In
PWAdsRequest.h
+ requestWithAdZone:andCustomParameters:
Creates the PWAdsRequest
object with the specified zone ID and any custom parameters.
+ (PWAdsRequest *)requestWithAdZone:(NSString *)zone andCustomParameters:(NSDictionary *)theParams
Parameters
zone |
The zone ID for which you want to request ads. |
---|---|
theParams |
An |
Discussion
Creates the PWAdsRequest
object with the specified zone ID and any custom parameters.
Declared In
PWAdsRequest.h
– customParameterForKey:
Returns the custom parameter that is set in the PWAdsRequest
object for the given key.
- (id)customParameterForKey:(NSString *)key
Parameters
key |
The key for which you want to see the value. |
---|
Discussion
Returns the custom parameter that is set in the PWAdsRequest
object for the given key.
Declared In
PWAdsRequest.h
– setCustomParameter:forKey:
Sets the custom parameter in the PWAdsRequest
object for the given key.
- (id)setCustomParameter:(id)value forKey:(NSString *)key
Parameters
value |
The value for which you want to set the key. |
---|---|
key |
The key for which you want to set the value. |
Discussion
Sets the custom parameter in the PWAdsRequest
object for the given key.
Declared In
PWAdsRequest.h
– removeCustomParameterForKey:
Removes the custom parameter in the PWAdsRequest
object for the given key.
- (id)removeCustomParameterForKey:(NSString *)key
Parameters
key |
The key for which you want to remove the value. |
---|
Discussion
Removes the custom parameter in the PWAdsRequest
object for the given key.
Declared In
PWAdsRequest.h