Skip to content

Commit

Permalink
Prebid 9: split dfpAdpod from dfpAdserverVideo
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed Jun 13, 2024
1 parent ba31609 commit f84c934
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions dev-docs/modules/dfpAdpod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: page_v2
page_type: module
title: Module - Google Ad Manager Adpod Support
description: Required for serving adpod video through Google Ad Manager.
module_code : dfpAdpod
display_name : Google Ad Manager Adpod Support
enable_download : true
vendor_specific: true
sidebarType : 1
---

# Google Ad Manager Adpod Support

{:.no_toc}

This module exposes the [`pbjs.adServers.dfp.buildAdpodVideoUrl](/dev-docs/publisher-api-reference/adServers.dfp.buildAdpodVideoUrl.html) method, required to use [adpod](/dev-docs/modules/adpod.md) with Google Ad Manager.

## Further Reading

- [Show long form video ads with GAM](/dev-docs/show-long-form-video-with-gam.html)
4 changes: 2 additions & 2 deletions dev-docs/show-long-form-video-with-gam.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ For instructions on setting custom price buckets, view the [Custom Price Granula

### 5. Send request for bids and build video URL

The `dfpAdServerVideo` module provides a method, `buildAdpodVideoUrl`, that combines publisher-provided parameters with Prebid.js targeting key values to build a GAM video ad tag URL that can be used by a video player.
The `dfpAdpod` module provides a method, `buildAdpodVideoUrl`, that combines publisher-provided parameters with Prebid.js targeting key values to build a GAM video ad tag URL that can be used by a video player.

In the example below the callback in the `bidsBackHandler` returns the video ad tag needed by the video player.

Expand All @@ -196,7 +196,7 @@ pbjs.que.push(function(){

pbjs.requestBids({
bidsBackHandler: function(bids) {
pbjs.adServers.dfp. buildAdpodVideoUrl({
pbjs.adServers.dfp.buildAdpodVideoUrl({
codes: ['sample-code'],
params: {
iu: '/123456/testing/prebid.org/adunit1',
Expand Down

0 comments on commit f84c934

Please sign in to comment.