code: function parseAd(adElement) {
    var childNodes = adElement.childNodes;
  
    for (var adTypeElementKey in childNodes) {
      var adTypeElement = childNodes[adTypeElementKey];
  
      if (['Wrapper', 'InLine'].indexOf(adTypeElement.nodeName) === -1) {
        continue;
      }
  
      parserUtils.copyNodeAttribute('id', adElement, adTypeElement);
      parserUtils.copyNodeAttribute('sequence', adElement, adTypeElement);
  
      if (adTypeElement.nodeName === 'Wrapper') {
        return parseWrapper(adTypeElement);
      } else if (adTypeElement.nodeName === 'InLine') {
        return parseInLine(adTypeElement);
      }
    }
  }
docs: This module provides methods to parse a VAST Ad Element.
   
  Parses an Ad element (can either be a Wrapper or an InLine).
  @param  {Object} adElement - The VAST Ad element to parse.
  @return {Ad}