Skip to content

Commit

Permalink
Forgot to implement the global exchange-wide SSP and PMP disable flag…
Browse files Browse the repository at this point in the history
…s in global.php

This would be used if you are using NginAd as a bidder only without hosting private exchanges.
  • Loading branch information
nginadofficial committed Nov 23, 2015
1 parent b73bfe3 commit 6dbcea7
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 3 deletions.
8 changes: 8 additions & 0 deletions upload/config/autoload/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
* and are not hosting private exchange customers.
*/
'ssp_channel_bypass' => false,
/*
* Bypass private exchange channel selections
* completely and bid on all PMP(Private Marketplace/Platform Exchange) traffic.
*
* Set this to true if you are using NginAd as a bidder
* and are not hosting private exchange customers.
*/
'pmp_channel_bypass' => false,
/*
* publisher settings
*/
Expand Down
10 changes: 9 additions & 1 deletion upload/config/autoload/global.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,17 @@ return array(
* and are not hosting private exchange customers.
*/
'ssp_channel_bypass' => false,
/*
* Bypass private exchange channel selections
* completely and bid on all PMP(Private Marketplace/Platform Exchange) traffic.
*
* Set this to true if you are using NginAd as a bidder
* and are not hosting private exchange customers.
*/
'pmp_channel_bypass' => false,
/*
* publisher settings
*/
*/
'publisher' => array(
'auto_approve_zones' => true,
'auto_approve_websites' => true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ class CheckPrivateMarketPlace {

public static function execute(&$Logger, &$Workflow, \model\openrtb\RtbBidRequest &$RtbBidRequest, \model\openrtb\RtbBidRequestImp &$RtbBidRequestImp, &$InsertionOrderLineItem) {

/*
* Skip this decision for the test user installed
* user_login = suckmedia
*
* Also enable the global exchange PMP selection
* bypass if set to true in config/autoload/global.php
*/

if ($InsertionOrderLineItem->UserID == TEST_USER_DEMAND
|| $Workflow->config['settings']['pmp_channel_bypass'] === true):
return true;
endif;

/*
* A. Check to see if this is a private auction
* from another exchange. If so lets ignore it since
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ class CheckSspChannelSelections {

public static function execute(&$Logger, &$Workflow, \model\openrtb\RtbBidRequest &$RtbBidRequest, \model\openrtb\RtbBidRequestImp &$RtbBidRequestImp, &$InsertionOrderLineItem) {

/*
* Skip this decision for the test user installed
* user_login = suckmedia
*
* Also enable the global exchange SSP selection
* bypass if set to true in config/autoload/global.php
*/

if ($InsertionOrderLineItem->UserID == TEST_USER_DEMAND
|| $Workflow->config['settings']['ssp_channel_bypass'] === true):
return true;
endif;

/*
* From NginAd 1.6 on, SSP inventory will only be available
* to private exchange Domain Admins on an explicit basis.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ public static function execute(&$Logger, &$Workflow, \model\openrtb\RtbBidReques
/*
* Skip this decision for the test user installed
* user_login = suckmedia
*
* Also enable the global exchange PMP selection
* bypass if set to true in config/autoload/global.php
*/

if ($InsertionOrderLineItem->UserID == TEST_USER_DEMAND):
if ($InsertionOrderLineItem->UserID == TEST_USER_DEMAND
|| $Workflow->config['settings']['pmp_channel_bypass'] === true):
return true;
endif;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ public static function execute(&$Logger, &$Workflow, \model\openrtb\RtbBidReques
/*
* Skip this decision for the test user installed
* user_login = suckmedia
*
* Also enable the global exchange SSP selection
* bypass if set to true in config/autoload/global.php
*/

if ($InsertionOrderLineItem->UserID == TEST_USER_DEMAND):
if ($InsertionOrderLineItem->UserID == TEST_USER_DEMAND
|| $Workflow->config['settings']['ssp_channel_bypass'] === true):
return true;
endif;

Expand Down

0 comments on commit 6dbcea7

Please sign in to comment.