Prebid.js (client-side) → GAM

Bu sayfa neyi test eder: pbjs.requestBids → pbjs.setTargetingForGPTAsync → googletag.pubads().refresh akışı, failsafe zaman aşımı ve Prebid teklifinin GAM line item'ıyla (hb_pb) eşleşmesi.

What this page tests: the pbjs.requestBids → pbjs.setTargetingForGPTAsync → googletag.pubads().refresh flow, the failsafe timeout and how a Prebid bid matches a GAM line item (hb_pb).

Aynı Prebid build'i (Prebid.js 11.35.0, vendor/prebid.js) ve aynı test teklifleri, iki sayfada: bu sayfada açık artırmayı sayfanın kendi scripti çalıştırır, Prebid (reklam sunucusu) sayfasında ReklamUp reklam scripti. Teklifler sahtedir: Prebid'in debugging modülü üretir, hiçbir bidder'a istek gitmez.
The same Prebid build (Prebid.js 11.35.0, vendor/prebid.js) and the same test bids, on two pages: on this page the page's own script runs the auction, on the Prebid (ad server) page the ReklamUp ad script does. The bids are fake: Prebid's debugging module makes them up, and no request goes to any bidder.

Test adımlarıTest steps

  1. Tabloda her ad unit için gelen sahte teklifleri, kazananı ve hb_pb / hb_bidder / hb_adid değerlerini kontrol edin.In the table, check the fake bids that came in for each ad unit, the winner and the hb_pb / hb_bidder / hb_adid values.
  2. “GPT slotunda” sütunu, değerlerin gerçekten GAM isteğine giden slot hedeflemesine aktarıldığını gösterir.The “On the GPT slot” column shows that the values really reached the slot targeting sent in the GAM request.
  3. GAM sütunu dönen lineItemId'yi gösterir. Prebid kazandığı halde Prebid creative'i serve edilmediyse satır uyarı verir.The GAM column shows the lineItemId that came back. If Prebid won but its creative was not served, the row warns.
  4. “Bidder'ı boz”: sahte bidder Prebid timeout'undan geç cevap verir; açık artırma timeout ile kapanır (auctionEnd: 0 teklif, debug panelinde “bidsBackHandler (timeout)”). GAM yine çağrılmalı. Gerçek bidder'larda ayrıca bidTimeout olayı gelir; debugging modülünün geciktirdiği sahte tekliflerde gelmez.“Break the bidder”: the fake bidder answers after the Prebid timeout; the auction ends on the timeout (auctionEnd: 0 bids, “bidsBackHandler (timeout)” in the debug panel). GAM should still be called. Real bidders also fire a bidTimeout event; fake bids delayed by the debugging module do not.
  5. “Prebid takıldı”: bidsBackHandler yok sayılır; GAM'i failsafe (“Prebid hangs”: bidsBackHandler is ignored; the failsafe ( ms) çağırmalı. ms) should call GAM.

Senaryo ve ayarlarScenario and settings

Aktif senaryo:Active scenario:

GAM isteği bekleniyor…Waiting for the GAM request…

Teklif ↔ GAM eşleşme tablosuBid ↔ GAM match table

Açık artırma bekleniyor…Waiting for the auction…

SlotlarSlots

pb-300x250 · …

Bekleniyor…Waiting…

pb-320x50 (sahte teklif yok: noBid)(no fake bid: noBid) · …

Bekleniyor…Waiting…

pb-728x90 [[728,90],[970,90]] · …

Bekleniyor…Waiting…

Prebid creative önizlemesi (GAM'siz)Prebid creative preview (without GAM)

Güvenli modda Google örnek ağında Prebid line item'ı yoktur; GAM Prebid creative'ini serve etmez. Bu buton kazanan teklifin creative'ini pbjs.renderAd ile ayrı bir iframe'de çizer (yalnızca render yolunu doğrular).

In safe mode Google's sample network has no Prebid line item, so GAM does not serve the Prebid creative. This button draws the winning bid's creative with pbjs.renderAd in a separate iframe (it checks the render path only).