forked from indexexchange/open-x-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
239 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
/** | ||
* This file contains any necessary functions that need to be exposed to the outside world. | ||
* Things like (render functions) will be exposed by adding them to the shellInterface variable, under the partners | ||
* profile name. This function will then be accessible through the window.headertag.OpenXHtb object. | ||
* If necessary for backwards compatibility with old creatives, you can also add things directly to the | ||
* window namespace here, but this is discouraged if it's not strictly needed. | ||
*/ | ||
|
||
//? if (FEATURES.GPT_LINE_ITEMS) { | ||
shellInterface.OpenXHtb = { | ||
render: SpaceCamp.services.RenderService.renderDfpAd.bind(null, 'OpenXHtb') | ||
adResponseCallbacks: {} | ||
} | ||
|
||
//? if(FEATURES.GPT_LINE_ITEMS) { | ||
shellInterface.OpenXHtb.render = SpaceCamp.services.RenderService.renderDfpAd.bind(null, 'OpenXHtb'); | ||
|
||
/* backwards-compatible alternate function name */ | ||
shellInterface.OpenXModule = { | ||
render: shellInterface.OpenXHtb.render | ||
}; | ||
//? } | ||
|
||
if (__directInterface.Layers.PartnersLayer.Partners.OpenXHtb) { | ||
shellInterface.OpenXHtb = shellInterface.OpenXHtb || {}; | ||
shellInterface.OpenXHtb.adResponseCallbacks = __directInterface.Layers.PartnersLayer.Partners.OpenXHtb.adResponseCallbacks; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.