Android 爱奥尼亚4-有没有办法在爱奥尼亚3项后的列表中实现谷歌广告?

Android 爱奥尼亚4-有没有办法在爱奥尼亚3项后的列表中实现谷歌广告?,android,typescript,admob,ionic4,ads,Android,Typescript,Admob,Ionic4,Ads,我想在ion列表中的3个项目之后实现google横幅广告。我尝试了不同的方法,但我的问题没有解决。有人能帮我解决这个问题吗 以下是我想尝试的: ` {{n.title}} 您使用{{news.title}}但是news是一个完整的数组,您必须使用n.title <div *ngFor="let n of news;let i=index;"> <ion-card class="myCard" *ngIf="n.typ === 'N'"> <h3>

我想在ion列表中的3个项目之后实现google横幅广告。我尝试了不同的方法,但我的问题没有解决。有人能帮我解决这个问题吗

以下是我想尝试的:

`


{{n.title}}

您使用{{news.title}}但是news是一个完整的数组,您必须使用n.title

<div *ngFor="let n of news;let i=index;">
<ion-card class="myCard" *ngIf="n.typ === 'N'">
  <h3>
    <b>{{n.title}}</b>
  </h3>
</ion-card>
<div *ngIf="(i+1)%3 ===0">
  <!-- INSERT AD AFTER THE3rd ITEM -->
  <b>Advertisement</b>
</div>

{{n.title}}
广告

快乐编码:-)