TADInterstitialDelegate

@protocol TADInterstitialDelegate <NSObject>

用於從 TADInterstitialDelegate 接收狀態更改消息的委託,例如插頁式廣告請求成功/失敗。

Ad Request Lifecycle Notifications

Display-Time Lifecycle Notifications

  • Interstitial廣告呈現之前呼叫, 注意使用者可能會在廣告內按下連結(網頁, AppStore, …)而因此離開應用程式, 可以在這function中處理該暫停之項目

    Declaration

    Objective-C

    - (void)interstitialWillPresentScreen:(TADInterstitial *)ad;
  • Interstitial廣告關閉, 在螢幕上消失之前呼叫, 再次提醒在Interstitail消失前, 必須將Interstitial及delegate設為nil (可以在這個function中執行)

    Declaration

    Objective-C

    - (void)interstitialWillDismissScreen:(TADInterstitial *)ad;
  • Interstitial廣告關閉, 在螢幕上消失之後呼叫

    Declaration

    Objective-C

    - (void)interstitialDidDismissScreen:(TADInterstitial *)ad;
  • 在應用程序將進入後台或終止之前發送,因為用戶點擊的廣告將啟動另一個應用程序(例如AppStore)。 將比普通的 UIApplicationDelegate 方法早調用,比如applicationDidEnterBackground

    Declaration

    Objective-C

    - (void)interstitialWillLeaveApplication:(TADInterstitial *)ad;