H5 int ve H5 rewardedH5 int and H5 rewarded
Bu sayfa neyi test eder: bir HTML5 oyununda oyun öncesi video, level arası interstitial,
ekstra can için rewarded ve oyunun yanındaki banner. Oyun reklam aralarını adBreak() ile ister;
reklam açıkken oyun durur ve sesi kapanır.
What this page tests: in an HTML5 game, a pre-game video, an interstitial between levels, a
rewarded ad for an extra life and a banner next to the game. The game asks for ad breaks with adBreak();
while an ad is open the game pauses and its sound is muted.
Oyun games/<klasör>/index.html dosyasından iframe içinde açılır ve sayfayla
games/bridge.js üzerinden konuşur. adBreak() / adConfig() çağrı biçimi Google'ın H5 Games Ads
(Ad Placement API) ile aynıdır; burada reklamları GPT gösterir. Kendi oyununuz için README'deki “Kendi oyununuzu eklemek” bölümüne bakın.
The game opens in an iframe from games/<folder>/index.html and talks to the page
through games/bridge.js. The adBreak() / adConfig() calls have the same shape as Google's H5 Games Ads
(Ad Placement API); here GPT shows the ads. For your own game, see “Kendi oyununuzu eklemek” (adding your own game) in the README.
Test adımlarıTest steps
- “Oyna”ya basın: önce oyun öncesi video (IMA) oynar. Reklam bitince ya da gelmezse oyun yüklenir.
Debug panelinde
requestAds → STARTED → … → linearAdDonesatırlarını izleyin.Press “Play”: the pre-game video (IMA) plays first. When the ad ends, or if none comes, the game loads. Follow therequestAds → STARTED → … → linearAdDonelines in the debug panel. - Oyunda raketi fare, dokunma ya da ←/→ ile oynatın. Level hedefine ulaşınca oyun
adBreak({ type: 'next' })çağırır. Game manual interstitial hazırsa oyun içinde gösterilir. Ağda bu format yoksa (güvenli mod) ya da boş dönerse sayfa kendi tam ekran katmanını açar: içinde bir display reklam ve “Kapat” butonu vardır. Reklam katman açıldıktan sonra istenir; “Kapat”a (ya da Esc'e) basınca oyun kaldığı yerden devam eder. Katman 30 sn dolmadan yeniden açılmaz; o arada oyunun altında standart interstitial'ı tetikleyen “Oyunu yeniden aç” linki çıkar.Move the paddle with the mouse, touch or ←/→. When the level goal is reached the game callsadBreak({ type: 'next' }). If a game manual interstitial is ready it shows inside the game. Where the network has no such format (safe mode) or it comes back empty, the page opens its own full-screen layer with a display ad and a “Close” button. The ad is requested once the layer is open; pressing “Close” (or Esc) lets the game carry on where it left off. The layer does not open again before 30 s; meanwhile a “Reopen the game” link under the game triggers the standard interstitial. - Can kaybedince oyun
adBreak({ type: 'reward' })çağırır. Rewarded hazırsa “Reklam izle: +1 can” butonu çıkar; ödüladViewedile gelir.When a life is lost the game callsadBreak({ type: 'reward' }). If a rewarded ad is ready, a “Watch an ad: +1 life” button appears; the reward arrives withadViewed. - Reklam sırasında oyunun durduğunu ve sesin kesildiğini, kapanınca kaldığı yerden sürdüğünü kontrol edin
(
beforeAd/afterAd).Check that the game pauses and its sound stops during the ad, and that it carries on where it left off when the ad closes (beforeAd/afterAd). - Banner masaüstünde oyunun yanında (300x250), mobilde altında (320x50) durur. Oyun alanının ve oyun butonlarının üstüne binmez.The banner sits next to the game on desktop (300x250) and below it on mobile (320x50). It never covers the game area or the game's buttons.
HTML5 oyunHTML5 game
Oyun öncesi video, ardından oyun.
Oyun dosyası:Game file: …