src/Placement.js
/**
         * Beings the render process based on the response content
         * @private
         */
Beings the render process based on the response content
@private
Beings the render process based on the response content @private
_showContent() {
            const data = (this._response|| {}).data || {};
            if (data.type === Placement.ContentTypes.products) {
                this._showProducts();
            } else if (data.type === Placement.ContentTypes.articles) {
                this._showArticles();
            } else if (data.type === Placement.ContentTypes.adx) {
                this._showADX();
            } else {
                const msg = 'Unknown response content type: ' + data.type;
                okanjo.report(msg, { placement: this });
                this.setMarkup(''); 
                this.emit('error', msg);
                this._reportWidgetLoad(msg);
            }
        }
_showContent ( ) { const data = ( this . _response || { } ) . data || { } ; if ( data . type === Placement . ContentTypes . products ) { this . _showProducts ( ) ; } else if ( data . type === Placement . ContentTypes . articles ) { this . _showArticles ( ) ; } else if ( data . type === Placement . ContentTypes . adx ) { this . _showADX ( ) ; } else { const msg = 'Unknown response content type: ' + data . type ; okanjo . report ( msg , { placement : this } ) ; this . setMarkup ( '' ) ; this . emit ( 'error' , msg ) ; this . _reportWidgetLoad ( msg ) ; } }
Beings the render process based on the response content
 @private
Beings the render process based on the response content @private
// Known content types we can display // Unknown response type! // Report the widget load as declined // Don't show anything