Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC: Introduce Prebid's OM Script #1095

Open
YuriyVelichkoPI opened this issue Jan 30, 2025 · 1 comment
Open

POC: Introduce Prebid's OM Script #1095

YuriyVelichkoPI opened this issue Jan 30, 2025 · 1 comment

Comments

@YuriyVelichkoPI
Copy link
Contributor

Motivation

Handle in-app viewability tracking via Open Measurement.

Objectives

  • Introduce a Prebid-specific OM tag which will track events received in the bid response
    • TODO: more details
  • Introduce integration guide:
    • Option 1: add OM tag to PUC
    • Option 2: add OM tag to creative on GAM
@ValentinPostindustria
Copy link
Collaborator

OM JS PR.
PUC PR.

Implementation

We have tested the burl impression tracking using embedded OM SDK integration and the modified PUC with the custom OM script for Prebid. This kind of integration works great.
By default PUC tracks impressions with MRAID, so OM impression tracking must be activated optionally. Modify the creative on the GAM platform and add the additional parameter.

  ucTagData.mobileImpressionTracker = "open_measurement";

Testing

Before the JS script is merged and the new version of the PUC is released, for testing this feature you should use a proxy and replace some responses.

  • Modify the example in the Demo Kotlin app Banner 320x50 Original API with the new ad unit id /21808260008/prebid_demo_app_original_api_banner_om_tracker.
  • Disable native tracking by removing the line adUnit?.activatePrebidImpressionTracker(adView).
  • Replace the response to URL https://cdn.jsdelivr.net/gh/prebid/prebid-mobile-android/scripts/js/om_impression_tracker.js with om_impression_tracker.js from the archive.
  • Replace the response to URL https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js with creative.js from the archive.

mock.zip

Now you should see tracking of the https://prebid-server-test-j.prebid.org/test/burl URL from the OM SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

2 participants