Debugging & Error Reporting
Debug Build
To get useful debug information during the integration process you can
replace the path of the loader in the somtag embedded code:
Use '//ad.71i.de/somtag/loader/loader.debug.js'
instead of
'//ad.71i.de/somtag/loader/loader.js'
to receive output about configObject
validation and ad delivery in your browser's javascript console.
Please do not forget to reset the path to the production mode after debugging, because the debug mode has effects on performance and footprint of the library.
Logs
Get Version
Use somtag.core.getVersion()
to retrieve the Somtag version that is used on the current page.
Get Ad Trace (Information about Display Ad Delivery)
Use somtag.core.getAdTrace()
to retrieve a list of all defined display ad slots on the current page as well as the current state of each ad slot.
Get Video Config
Use await somtag.core.getCurrentConfig()
to retrieve information about runtime video configuration. The method delivers various information about the somtag configuration on the current page, like defined channels, ad units and as well as information about the current somtag video configuration.
Error Reporting
For production error reportings please attach the logs mentioned above.