插页式广告关闭后显示新的ViewController-Swift 4

时间:2019-01-25 23:02:44

标签: swift uiviewcontroller admob segue interstitial

我试图在用户关闭插页式广告后将此按钮设置到新的ViewController上。 segue代码在没有广告代码的情况下有效,并且ad代码在没有segue代码的情况下有效。首先放在哪个优先,但我不知道如何让它们一起工作。您会注意到,我尝试将exclude: [/node_modules\/(?!(@mycompany)\/).*/],移到各个地方都没有成功(请参见上面提到的几行)。

self.present...

1 个答案:

答案 0 :(得分:0)

<ng-container matColumnDef="phone"> <mat-header-cell *matHeaderCellDef mat-sort-header>Phone Number</mat-header-cell> <mat-cell *matCellDef="let person"> <input matInput [value]="person.phone"(focusout)="changePhone($event.target.value, person)" placeholder="Phone"> </mat-cell> </ng-container> 对象具有一个委托(interstitial)协议,您可以遵循该协议,以便在广告被撤消时得到通知。您可以在文档中查看针对广告状态的几种委托方法。

GADInterstitialDelegate

Google Ads文档:Interstitial Ads