function _parseViewableImpression(viewableImpressionNode) {
  var viewableImpression = {};
  viewableImpression.id = viewableImpressionNode.getAttribute('id') || null;
  var viewableImpressionChildNodes = viewableImpressionNode.childNodes;

  for (var viewableImpressionElementKey in viewableImpressionChildNodes) {
    var viewableImpressionElement = viewableImpressionChildNodes[viewableImpressionElementKey];
    var viewableImpressionNodeName = viewableImpressionElement.nodeName;
    var viewableImpressionNodeValue = parserUtils.parseNodeText(viewableImpressionElement);

    if (viewableImpressionNodeName !== 'Viewable' && viewableImpressionNodeName !== 'NotViewable' && viewableImpressionNodeName !== 'ViewUndetermined' || !viewableImpressionNodeValue) {
      continue;
    } else {
      var viewableImpressionNodeNameLower = viewableImpressionNodeName.toLowerCase();

      if (!Array.isArray(viewableImpression[viewableImpressionNodeNameLower])) {
        viewableImpression[viewableImpressionNodeNameLower] = [];
      }

      viewableImpression[viewableImpressionNodeNameLower].push(viewableImpressionNodeValue);
    }
  }

  return viewableImpression;
}
/**
 * Parses the ViewableImpression Element.
 * @param  {Object} viewableImpressionNode - The ViewableImpression node element.
 * @return {Object} viewableImpression - The viewableImpression object
 */
Parses the ViewableImpression Element.
@param  {Object} viewableImpressionNode - The ViewableImpression node element.
@return {Object} viewableImpression - The viewableImpression object
Parses the ViewableImpression Element . @param { Object } viewableImpressionNode - The ViewableImpression node element . @return { Object } viewableImpression - The viewableImpression object
function _parseViewableImpression(viewableImpressionNode) {
  var viewableImpression = {};
  viewableImpression.id = viewableImpressionNode.getAttribute('id') || null;
  var viewableImpressionChildNodes = viewableImpressionNode.childNodes;
  for (var viewableImpressionElementKey in viewableImpressionChildNodes) {
    var viewableImpressionElement = viewableImpressionChildNodes[viewableImpressionElementKey];
    var viewableImpressionNodeName = viewableImpressionElement.nodeName;
    var viewableImpressionNodeValue = parserUtils.parseNodeText(viewableImpressionElement);
    if (viewableImpressionNodeName !== 'Viewable' && viewableImpressionNodeName !== 'NotViewable' && viewableImpressionNodeName !== 'ViewUndetermined' || !viewableImpressionNodeValue) {
      continue;
    } else {
      var viewableImpressionNodeNameLower = viewableImpressionNodeName.toLowerCase();
      if (!Array.isArray(viewableImpression[viewableImpressionNodeNameLower])) {
        viewableImpression[viewableImpressionNodeNameLower] = [];
      }
      viewableImpression[viewableImpressionNodeNameLower].push(viewableImpressionNodeValue);
    }
  }
  return viewableImpression;
}
function _parseViewableImpression ( viewableImpressionNode ) { var viewableImpression = { } ; viewableImpression . id = viewableImpressionNode . getAttribute ( 'id' ) || null ; var viewableImpressionChildNodes = viewableImpressionNode . childNodes ; for ( var viewableImpressionElementKey in viewableImpressionChildNodes ) { var viewableImpressionElement = viewableImpressionChildNodes [ viewableImpressionElementKey ] ; var viewableImpressionNodeName = viewableImpressionElement . nodeName ; var viewableImpressionNodeValue = parserUtils . parseNodeText ( viewableImpressionElement ) ; if ( viewableImpressionNodeName !== 'Viewable' && viewableImpressionNodeName !== 'NotViewable' && viewableImpressionNodeName !== 'ViewUndetermined' || ! viewableImpressionNodeValue ) { continue ; } else { var viewableImpressionNodeNameLower = viewableImpressionNodeName . toLowerCase ( ) ; if ( ! Array . isArray ( viewableImpression [ viewableImpressionNodeNameLower ] ) ) { viewableImpression [ viewableImpressionNodeNameLower ] = [ ] ; } viewableImpression [ viewableImpressionNodeNameLower ] . push ( viewableImpressionNodeValue ) ; } } return viewableImpression ; }
Parses the ViewableImpression Element.
Parses the ViewableImpression Element .