OMIDUniversalAdID
Objective-C
@interface OMIDUniversalAdID : NSObject
Swift
class OMIDUniversalAdID : NSObject
Details about the UniversalAdID for the purpose of tracking ad creatives which will be supplied to the ad session.
-
Declaration
Objective-C
@property(nonatomic, readonly, nonnull) NSString *valueSwift
var value: String { get } -
Declaration
Objective-C
@property(nonatomic, readonly, nonnull) NSString *idRegistrySwift
var idRegistry: String { get } -
Initializes new UniversalAdID instance providing both value and idRegistry. The UniversalAdID’s purpose is to identify an ad creative across different platforms throughout the lifecycle of an advertising campaign.
Both value and idRegistry are mandatory.
Declaration
Objective-C
- (nullable instancetype)initWithValue:(nonnull NSString *)value idRegistry:(nonnull NSString *)idRegistry error:(NSError *_Nullable *_Nullable)error;Swift
init(value: String, idRegistry: String) throwsParameters
valueIt is used to identify the unique creative identifier.
idRegistryIt is used to identify the URL for the registry website where the unique creative ID is cataloged.
Return Value
A new UniversalAdID instance, or nil if any of the parameters are either null or blank
-
Unavailable
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE; -
Unavailable
Declaration
Objective-C
- (null_unspecified instancetype)init NS_UNAVAILABLE;