yield-optimization
Yield Optimization
This module allows you to apply floor prices to all supporting bidders and setting a unified pricing rule for GAM.
Requirements
- Unified pricing rules setup in GAM
- Server providing the yield configuration
Integration
In your index.ts import the generic-skin module and register it.
Dynamic optimization
This requires an endpoint that provides the yield config.
import { YieldOptimization } from '@highfivve/module-yield-optimization'
moli.registerModule(new YieldOptimization({
provider: 'dynamic',
configEndpoint: 'https://yield.h5v.eu/config/gutefrage'
}, window));
Static
For local testing or base settings you can define static rules.
import { YieldOptimization } from '@highfivve/module-yield-optimization'
moli.registerModule(new YieldOptimization({
provider: 'static',
config: {
rules: {
'ad-unit-dom-id-1': {
priceRuleId: 123,
floorpirce: 0.1,
main: true
}
}
}
}, window));
None
If you want to turn off the optimization you can also provide none
import { YieldOptimization } from '@highfivve/module-yield-optimization'
moli.registerModule(new YieldOptimization({ provider: 'none'}, window));
Functions
YieldOptimization()
YieldOptimization(
testYieldOptimizationService?):IModule
== Yield Optimization ==
The systems is designed to work with Google Ad Managers Unified Pricing Rules. The general idea is that key values are being used to target specific pricing rules per ad unit. The configuration when a pricing rule should be applied can be fetched from an external system to allow dynamic floor price optimizations.
Parameters
• testYieldOptimizationService?: YieldOptimizationService
Returns
IModule