1"use strict";(self.webpackChunkadmob_plus_website=self.webpackChunkadmob_plus_website||[]).push([[5672],{2752:(i,t,e)=>{e.r(t),e.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>h,frontMatter:()=>a,metadata:()=>r,toc:()=>o});var s=e(7512),n=e(5640);const a={title:"Interstitial Ad",sidebar_label:"Interstitial"},l=void 0,r={id:"capacitor/ads/interstitial",title:"Interstitial Ad",description:"Usage",source:"@site/versioned_docs/version-1.x/capacitor/ads/interstitial.md",sourceDirName:"capacitor/ads",slug:"/capacitor/ads/interstitial",permalink:"/docs/1.x/capacitor/ads/interstitial",draft:!1,unlisted:!1,editUrl:"https://github.com/admob-plus/admob-plus/edit/master/website/versioned_docs/version-1.x/capacitor/ads/interstitial.md",tags:[],version:"1.x",frontMatter:{title:"Interstitial Ad",sidebar_label:"Interstitial"},sidebar:"docs",previous:{title:"Banner",permalink:"/docs/1.x/capacitor/ads/banner"},next:{title:"Rewarded",permalink:"/docs/1.x/capacitor/ads/rewarded"}},d={},o=[{value:"Usage",id:"usage",level:2},{value:"Events",id:"events",level:2},{value:"<code>interstitial.load</code>",id:"interstitialload",level:3},{value:"<code>interstitial.loadfail</code>
1",id:"interstitialloadfail",level:3},{value:"<code>interstitial.show</code>",id:"interstitialshow",level:3},{value:"<code>interstitial.showfail</code>",id:"interstitialshowfail",level:3},{value:"<code>interstitial.dismiss</code>",id:"interstitialdismiss",level:3},{value:"<code>interstitial.impression</code>",id:"interstitialimpression",level:3}];function c(i){const t={code:"code",h2:"h2",h3:"h3",pre:"pre",...(0,n.M)(),...i.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-ts",children:"import { AdMobPlus, InterstitialAd } from '@admob-plus/capacitor'\n\n(async () => {\n await AdMobPlus.start()\n\n const interstitial = new InterstitialAd({\n adUnitId: 'ca-app-pub-3940256099942544/1033173712',\n })\n await interstitial.load()\n await interstitial.show()\n})()\n"})}),"\n",(0,s.jsx)(t.h2,{id:"events",children:"Events"}),"\n",(0,s.jsx)(t.h3,{id:"interstitialload",children:(0,s.jsx)(t.code,{children:"interstitial.load"})}),"\n",(0,s.jsx)(t.h3,{id:"interstitialloadfail",children:(0,s.jsx)(t.code,{children:"interstitial.loadfail"})}),"\n",(0,s.jsx)(t.h3,{id:"interstitialshow",children:(0,s.jsx)(t.code,{children:"interstitial.show"})}),"\n",(0,s.jsx)(t.h3,{id:"interstitialshowfail",children:(0,s.jsx)(t.code,{children:"interstitial.showfail"})}),"\n",(0,s.jsx)(t.h3,{id:"interstitialdismiss",children:(0,s.jsx)(t.code,{children:"interstitial.dismiss"})}),"\n",(0,s.jsx)(t.h3,{id:"interstitialimpression",children:(0,s.jsx)(t.code,{children:"interstitial.impression"})})]})}function h(i={}){const{wrapper:t}={...(0,n.M)(),...i.components};return t?(0,s.jsx)(t,{...i,children:(0,s.jsx)(c,{...i})}):c(i)}},5640:(i,t,e)=>{e.d(t,{I:()=>r,M:()=>l});var s=e(5496);const n={},a=s.createContext(n);function l(i){const t=s.useContext(a);return s.useMemo((function(){return"function"==typeof i?i(t):{...t,...i}}),[t,i])}function r(i){let t;return t=i.disableParentContext?"function"==typeof i.components?i.components(n):i.components||n:l(i.components),s.createElement(a.Provider,{value:t},i.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.