prebid-mobile-android icon indicating copy to clipboard operation
prebid-mobile-android copied to clipboard

SDK does not fire Prebid impression event URL in DISPLAY interstitial

Open elq81hc opened this issue 8 months ago • 8 comments

Describe the bug SDK does not fire Prebid impression event URL in the DISPLAY Interstitial

To Reproduce Steps to reproduce the behavior:

  1. Enable Events feature on Prebid Server
  2. Run example "In-App Display Interstitial"
  3. Check whether the Prebid impression event URL fires or not

Expected behavior Prebid impression event URL (ext.prebid.events.imp) should be fired when the ad is shown

Smartphone (please complete the following information):

  • Device: Pixel 8 Pro Simulator
  • OS: Android
  • Version: API 34

Additional context

  • PrebidSDK version: 3.0.0
  • Issue does not occur on the "Medium Phone" simulator

elq81hc avatar May 01 '25 03:05 elq81hc

Hi @YuriyVelichkoPI, @mdanylov-sigma please take a look at this issue.

From my understanding, the issue is caused by restarting the creativeVisibilityTracker when WebViewBase.onWindowFocusChanged is called. This clears the visibilityHandler which has a visibility runner in queue. While this issue does not happen on VIDEO interstitial, InterstitialView.onWindowFocusChanged only performs pause/resume on the underlying video. Could we remove AbstractCreative.changeVisibilityTrackerState to make the behavior of display same as video? I am not sure why this issue can not be reproduced on the Medium Phone emulator.

elq81hc avatar May 02 '25 07:05 elq81hc

Hi @YuriyVelichkoPI , @ValentinPostindustria, please review if it is an issue

elq81hc avatar May 08 '25 05:05 elq81hc

Hey @elq81hc! Thanks for highlighting this, we're going to check the described scenario!

mdanylov-sigma avatar May 08 '25 09:05 mdanylov-sigma

Hi @YuriyVelichkoPI may I know your though on this issue?

elq81hc avatar May 09 '25 07:05 elq81hc

Hi @elq81hc ! Sorry for the long silence, have a crazy week.

Yep, it definitely looks like a bug. From the @mdanylov-sigma comment, I supposed that the ticket was considered in the Mobile PMC and prioritized for the work.

Do you know if this bug is actual for iOS?

YuriyVelichkoPI avatar May 09 '25 07:05 YuriyVelichkoPI

Hi @YuriyVelichkoPI! Thanks for looking at this issue.

IOS does not face this issue. Tested on device iOS 15.8 and emulator IOS 17.3

BTW, how do I register to join Mobile PMC?

elq81hc avatar May 11 '25 06:05 elq81hc

If your company is a Prebid.org member, ask Katie Morgart [email protected] to add you to Prebid Mobile PMC meetings.

YuriyVelichkoPI avatar May 12 '25 06:05 YuriyVelichkoPI

We recently faced this issue as well. I re-assigned this issue to @ValentinPostindustria since he knows the reason and will provide the fix soon.

YuriyVelichkoPI avatar Nov 06 '25 11:11 YuriyVelichkoPI