MPPromotion Class Reference

Inherits from NSObject
Conforms to NSCopying
NSSecureCoding
Declared in MPPromotion.h

Overview

This class describes a promotion.

Usage:

Swift


let promotion = MPPromotion()

promotion.promotionId = "xyz123"

promotion.name = "Promotion name"

promotion.position = "bottom banner"

Objective-C


MPPromotion *promotion = [[MPPromotion alloc] init];

promotion.promotionId = @"xyz123";

promotion.name = @"Promotion name";

promotion.position = @"bottom banner";

  creative

Description for the promotion creative.

@property (nonatomic, strong, nullable) NSString *creative

Discussion

Description for the promotion creative.

Declared In

MPPromotion.h

  name

Promotion name.

@property (nonatomic, strong, nullable) NSString *name

Discussion

Promotion name.

Declared In

MPPromotion.h

  position

Promotion display position.

@property (nonatomic, strong, nullable) NSString *position

Discussion

Promotion display position.

Declared In

MPPromotion.h

  promotionId

Promotion identifier.

@property (nonatomic, strong, nullable) NSString *promotionId

Discussion

Promotion identifier.

Declared In

MPPromotion.h