|
| 1 | +--- |
| 2 | +layout: page_v1 |
| 3 | +page_type: module |
| 4 | +title: Yieldmo Synthetic Inventory Module |
| 5 | +description: Yieldmo Synthetic Outstream ads |
| 6 | +module_code : yieldmoSyntheticInventoryModule |
| 7 | +display_name : Synthetic Inventory Module |
| 8 | +enable_download : true |
| 9 | +sidebarType : 1 |
| 10 | +--- |
| 11 | + |
| 12 | +# Yieldmo Synthetic Inventory Module |
| 13 | + |
| 14 | +## Overview |
| 15 | + |
| 16 | +This module enables publishers to set up Yieldmo Synthetic Outstream ads on their pages. |
| 17 | + |
| 18 | +If publishers will enable this module and provide placementId and Google Ad Manager ad unit path, this module will create a placement on the page and inject Yieldmo SDK into this placement. Publisher will then need to get a placement id from their Yieldmo account manager (accounts email) and setup corresponding ad units on the GAM ad server. |
| 19 | + |
| 20 | +## Integration |
| 21 | + |
| 22 | +Build the Yieldmo Synthetic Inventory Module into the Prebid.js package with: |
| 23 | + |
| 24 | +``` |
| 25 | +gulp build --modules=yieldmoSyntheticInventoryModule,... |
| 26 | +``` |
| 27 | + |
| 28 | +## Module Configuration |
| 29 | + |
| 30 | +```js |
| 31 | +pbjs.que.push(function() { |
| 32 | + pbjs.setConfig({ |
| 33 | + ym_synthetic_inventory: { |
| 34 | + placementId: '1234567890', |
| 35 | + adUnitPath: '/6355419/ad_unit_name_used_in_gam' |
| 36 | + } |
| 37 | + }); |
| 38 | +}); |
| 39 | +``` |
| 40 | + |
| 41 | +### Configuration Parameters |
| 42 | + |
| 43 | +|Name |Scope |Description | Example| Type |
| 44 | +| :------------ | :------------ | :------------ | :------------ | :------------ | |
| 45 | +|placementId | required | Yieldmo placement ID | '1234567890' | string |
| 46 | +|adUnitPath | required | Google Ad Manager ad unit path | '/6355419/ad_unit_name_used_in_gam' | string |
| 47 | + |
| 48 | +### How to get ad unit path |
| 49 | + |
| 50 | +Ad unit path follows the format /network-code/[parent-ad-unit-code/.../]ad-unit-code, where: |
| 51 | + |
| 52 | +- network-code is a unique identifier for the Ad Manager network the ad unit belongs to |
| 53 | +- parent-ad-unit-code are the codes of all parent ad units (only applies to non-top level ad units) |
| 54 | +- ad-unit-code is the code for the ad unit to be displayed |
| 55 | + |
| 56 | +Note that all ad unit codes included in the ad unit path must adhere to the [formatting rules](https://support.google.com/admanager/answer/1628457#ad-unit-codes) specified by Ad Manager. |
| 57 | + |
| 58 | +Another and probably the easiest way to get ad unit path is to get it from the google ad manager ad unit docment header generated tag: |
| 59 | + |
| 60 | +``` |
| 61 | +googletag.defineSlot('/6355419/ad_unit_name_used_in_gam', [1, 1], 'ad-container-id').addService(googletag.pubads()); |
| 62 | +``` |
| 63 | + |
| 64 | +### How to get Yieldmo placement id |
| 65 | + |
| 66 | +Please reach out to your Yieldmo account's person or email to support@yieldmo.com |
0 commit comments