Skip to main content

Interstitial Ad Options

Ad Request Timeout (default: 60 seconds) [Per-loader setting]

If no ad response is received within the specified time (in seconds) after an ad request, the existing request is invalidated and the GFPInterstitialAdManagerDelegate interstitialAdManager:didFailWithError:responseInfo: method is called. Use this when you want to configure different timeouts per loader.

self.adManager?.requestTimeoutInterval = ...

Ad Request Timeout (default: 60 seconds) [SDK-wide setting]

If no ad response is received within the specified time (in seconds) after an ad request, the existing request is invalidated and the GFPInterstitialAdManagerDelegate interstitialAdManager:didFailWithError:responseInfo: method is called. Use this when you want to change the default value that is applied when a loader is created.

GFPAdManager.adConfiguration().interstitialAdRequestTimeout = ...

OMSDK FriendlyObstruction Configuration

If a separate view such as an overlay UI is placed on top of the ad, you can register that view as an OMSDK FriendlyObstruction. Registered views are excluded from OMSDK ad viewability measurement.

Create a GFPOMFriendlyObstruction using the initializer below.

ParameterTypeDescription
viewUIViewThe view to register as a FriendlyObstruction
purposeGFPFriendlyObstructionTypeThe purpose of the view (see table below)
reasonStringA string describing the reason for registration

GFPFriendlyObstructionType enum values

ValueDescription
GFPFriendlyObstructionTypeMediaControlsMedia playback control UI
GFPFriendlyObstructionTypeCloseAdAd close button
GFPFriendlyObstructionTypeNotVisibleA view not visible on screen
GFPFriendlyObstructionTypeOtherOther miscellaneous purposes
let obstruction = GFPOMFriendlyObstruction(
with: overlayView,
purpose: .closeAd,
reason: "close button"
)
self.adManager?.omFriendlyObstructions = [obstruction]