function _parseViewableImpression(viewableImpressionNode) {
  const viewableImpression = {};
  viewableImpression.id = viewableImpressionNode.getAttribute('id') || null;
  const viewableImpressionChildNodes = viewableImpressionNode.childNodes;
  for (const viewableImpressionElementKey in viewableImpressionChildNodes) {
    const viewableImpressionElement =
      viewableImpressionChildNodes[viewableImpressionElementKey];
    const viewableImpressionNodeName = viewableImpressionElement.nodeName;
    const viewableImpressionNodeValue = parserUtils.parseNodeText(
      viewableImpressionElement
    );

    if (
      (viewableImpressionNodeName !== 'Viewable' &&
        viewableImpressionNodeName !== 'NotViewable' &&
        viewableImpressionNodeName !== 'ViewUndetermined') ||
      !viewableImpressionNodeValue
    ) {
      continue;
    } else {
      const 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) {
  const viewableImpression = {};
  viewableImpression.id = viewableImpressionNode.getAttribute('id') || null;
  const viewableImpressionChildNodes = viewableImpressionNode.childNodes;
  for (const viewableImpressionElementKey in viewableImpressionChildNodes) {
    const viewableImpressionElement =
      viewableImpressionChildNodes[viewableImpressionElementKey];
    const viewableImpressionNodeName = viewableImpressionElement.nodeName;
    const viewableImpressionNodeValue = parserUtils.parseNodeText(
      viewableImpressionElement
    );
    if (
      (viewableImpressionNodeName !== 'Viewable' &&
        viewableImpressionNodeName !== 'NotViewable' &&
        viewableImpressionNodeName !== 'ViewUndetermined') ||
      !viewableImpressionNodeValue
    ) {
      continue;
    } else {
      const viewableImpressionNodeNameLower = viewableImpressionNodeName.toLowerCase();
      if (!Array.isArray(viewableImpression[viewableImpressionNodeNameLower])) {
        viewableImpression[viewableImpressionNodeNameLower] = [];
      }
      viewableImpression[viewableImpressionNodeNameLower].push(
        viewableImpressionNodeValue
      );
    }
  }
  return viewableImpression;
}
function _parseViewableImpression ( viewableImpressionNode ) { const viewableImpression = { } ; viewableImpression . id = viewableImpressionNode . getAttribute ( 'id' ) || null ; const viewableImpressionChildNodes = viewableImpressionNode . childNodes ; for ( const viewableImpressionElementKey in viewableImpressionChildNodes ) { const viewableImpressionElement = viewableImpressionChildNodes [ viewableImpressionElementKey ] ; const viewableImpressionNodeName = viewableImpressionElement . nodeName ; const viewableImpressionNodeValue = parserUtils . parseNodeText ( viewableImpressionElement ) ; if ( ( viewableImpressionNodeName !== 'Viewable' && viewableImpressionNodeName !== 'NotViewable' && viewableImpressionNodeName !== 'ViewUndetermined' ) || ! viewableImpressionNodeValue ) { continue ; } else { const viewableImpressionNodeNameLower = viewableImpressionNodeName . toLowerCase ( ) ; if ( ! Array . isArray ( viewableImpression [ viewableImpressionNodeNameLower ] ) ) { viewableImpression [ viewableImpressionNodeNameLower ] = [ ] ; } viewableImpression [ viewableImpressionNodeNameLower ] . push ( viewableImpressionNodeValue ) ; } } return viewableImpression ; }
Parses the ViewableImpression Element.
Parses the ViewableImpression Element .