OMID friendly obstruction for iOS
The Open Measurement Software Development Kit (OM SDK) is designed to facilitate third party viewability and verification measurement for ads served to mobile app environments without requiring multiple Ad Verification Service Providers (Measurement Provider) SDKs.
Open Measurement Interface Definition (OMID) is an open measurement API provided by IAB. In short, it enables a publisher to get data on the viewability of an ad within a mobile device. For more detailed information about OMID, visit the IAB site here.
Friendly obstructions are the views that OMID will exclude from all viewability calculations when added to the OMID Session. When a UI element needs to be considered as a part of the ad, that can be added as a friendly obstruction to prevent it from counting towards coverage of the ad. For example, any native element such as a close button, some logo text, or other object that needs to be considered as a part of an ad (and not be counted for viewability measurement) should be registered as a friendly obstruction. This applies to any ancestor or peer views in the view hierarchy.
The OMID API enables:
- Adding a friendly obstruction
- Removing a friendly obstruction
- Removing all friendly obstructions
The details of these APIs for iOS platform for different AdUnits are discussed in the API details section.
In addition to the above mentioned functionalities, the OM SDK facilitates a property (enableOMIDOptimization
) that enables optimization. Here, as part of optimization, viewability is tracked until an ad is fully visible to the user. Once the ad ceases to be
visible, viewability tracking stops. By default this property is set as "NO"
and when set as "YES"
, the OM SDK takes care of performing Open-Measurement Optimization.
Properties
Property | Type | Attribute | Description |
---|---|---|---|
enableOMIDOptimization |
BOOL | readwrite | Indicates if Open-Measurement Optimization for viewability and verification measurement for ads served is enabled and if not, enable the same. Default value is NO .This API supports only banner and native ad types. |
/**
If YES, the SDK will allow to perform Open-Measurement Optimization for viewability and verification measurement for ads served. Default is NO.
*/
@property (nonatomic, readwrite) BOOL enableOMIDOptimization;
Examples
ANSDKSettings.sharedInstance.enableOMIDOptimization = true;