Callbacks

TapdaqDelegate - Configuration methods

Loaded Tapdaq config

Called immediately after the SDK is ready to begin loading adverts.

Objective-C
Swift
- (void)didLoadConfig;

Tapdaq config failed to load

If the Tapdaq SDK is unable to initialise correctly, this method will be called.

Objective-C
Swift
- (void)didFailToLoadConfigWithError:(TDError *)error;

TapdaqDelegate - Banner methods

Loaded a banner ad

Called immediately after the banner is loaded.

Objective-C
Swift
- (void)didLoadBanner;

Failed to load a banner ad

Called when, for whatever reason, the banner was not able to be loaded.

Objective-C
Swift
- (void)didFailToLoadBanner;

User clicked a banner

Called when the user clicks the banner.

Objective-C
Swift
- (void)didClickBanner;

Network loads another banner in the UIView

Called when the ad within the banner view loads another ad.

Objective-C
Swift
- (void)didRefreshBanner;

TapdaqDelegate - Native ad methods

Loaded native ad

Called when a native advert is successfully loaded.

Objective-C
Swift
- (void)didLoadNativeAdvertForPlacementTag:(NSString *)tag
                                    adType:(TDNativeAdType)nativeAdType;

Failed to load native ad

Called when the native ad failed to load.

Objective-C
Swift
- (void)didFailToLoadNativeAdvertForPlacementTag:(NSString *)tag
                                          adType:(TDNativeAdType)nativeAdType;

TapdaqDelegate - More apps methods

Loaded content for the more apps popup

Called immediately when content for the more apps popup is available to be presented to the user.

Objective-C
Swift
- (void)didLoadMoreApps;

Failed to load content for the more apps popup

Called when, for whatever reason, the more apps popup was not able to be loaded.

Objective-C
Swift
- (void)didFailToLoadMoreApps;

About to display the more apps popup

Called immediately before the more apps popup is to be displayed to the user.

Objective-C
Swift
- (void)willDisplayMoreApps;

Displayed the more app popup

Called immediately after the more apps popup is displayed to the user.

Objective-C
Swift
- (void)didDisplayMoreApps;

Closed the more apps popup

Called when the user closes the more apps popup.

Objective-C
Swift
- (void)didCloseMoreApps;

TDAdRequestDelegate methods

Implementing this protocol allows listening to loading events from ads.

Loaded an ad

Called immediately after an ad has been successfully loaded.

Objective-C
Swift
- (void)didLoadAdRequest:(TDAdRequest * _Nonnull)adRequest;

Failed to load an ad

Called when the ad was not able to be loaded.

Objective-C
Swift
- (void)adRequest:(TDAdRequest * _Nonnull)adRequest didFailToLoadWithError:(TDError * _Nullable)error;

TDDisplayableAdRequestDelegate methods

Implementing this protocol allows listening to presentation events from ads. This protocol also conforms to TDAdRequestDelegate.

Note: Not all ad types support this delegate. Supported types are: static interstitial, video interstitial, rewarded video, offerwall.

About to display an ad

Called immediately before the ad is to be displayed to the user.

Objective-C
Swift
- (void)willDisplayAdRequest:(TDAdRequest * _Nonnull)adRequest;

Ad is shown to the user

Called immediately after the ad is displayed to the user

Objective-C
Swift
- (void)didDisplayAdRequest:(TDAdRequest * _Nonnull)adRequest;

Fail to Display an advert

Called after show when ad is unavailable or unable to display.

Objective-C
Swift
- (void)adRequest:(TDAdRequest *)adRequest didFailToDisplayWithError:(TDError *)error;

Ad is closed

Called when the user closes the ad.

Objective-C
Swift
- (void)didCloseAdRequest:(TDAdRequest * _Nonnull)adRequest;

TDClickableAdRequestDelegate methods

Implementing this protocol allows listening to click events from ads. This protocol also conforms to TDAdRequestDelegate.

Note: Not all ad types support this delegate. Supported types are: static interstitial, video interstitial, rewarded video, banner.

User clicked the ad

Called when the user clicks the ad.

Objective-C
Swift
- (void)didClickAdRequest:(TDAdRequest * _Nonnull)adRequest;

TDRewardedVideoAdRequestDelegate methods

Implementing this protocol allows listening to reward related events from rewarded ad requests. This protocol also conforms to TDAdRequestDelegate.

Note: Not all ad types support this delegate. Supported types are: rewarded video.

Received a reward for the user

Called when a reward is ready for the user.

Objective-C
Swift
- (void)adRequest:(TDAdRequest *)adRequest didValidateReward:(TDReward *)reward;

Failed to give a reward to the user

Called if an error occurred when rewarding the user.

Objective-C
Swift
- (void)didFailToValidateRewardAdRequest:(TDAdRequest *)adRequest;