Unable to call iAd delegate cross-domain methods

I want to use interstitial ads in my application, so I applied all the necessary delegation methods. The problem is that if I show the [self requestInterstitialAdPresentation] declaration, only the interstitialAdDidLoad: method is called. InterstitialAdActionDidFinish methods: not called ...

But if I use the deprecated [self.interstitial presentFromViewController: self] to show an ad, everything works.

Is there anything new to implement to make things work?

Thanks in advance

+4
source share
2 answers

Ok, I solved the problem.

IOS7 iAd Additions, adInterstitialDelegate. , , - interstitialPresentationPolicy , ( ), , , requestInterstitialAdPresentation:.

+2

iOS 9.2.1, Xcode 7.2.1, ARC

@Jellyjoey , viewDidAppear , . , viewDidDisappear.

, :

, interstitialAdActionDidFinish: . , , .

: , willLeave YES, , interstitialAdActionDidFinish:. , , , . , , interstitialAdActionDidFinish: , . , AdActionDidFinish: .

:

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/iAd_Guide/Full-ScreenAdvertisements/Full-ScreenAdvertisements.html#//apple_ref/doc/uid/TP40009881-CH5-SW24

, Apple , :

https://developer.apple.com/library/ios/samplecode/iAdInterstitialSuite/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010627-Intro-DontLinkElementID_2

0

Source: https://habr.com/ru/post/1539039/


All Articles