analytics.js
function ads(query){
  var params = parse(query);
  for (var key in params) {
    for (var id in QUERYIDS) {
      if (key === id) {
        return {
          id : params[key],
          type : QUERYIDS[id]
        };
      }
    }
  }
}
function ads(query){
  var params = parse(query);
  for (var key in params) {
    for (var id in QUERYIDS) {
      if (key === id) {
        return {
          id : params[key],
          type : QUERYIDS[id]
        };
      }
    }
  }
}
function ads ( query ) { var params = parse ( query ) ; for ( var key in params ) { for ( var id in QUERYIDS ) { if ( key === id ) { return { id : params [ key ] , type : QUERYIDS [ id ] } ; } } } }
Get all ads info from the given `querystring`

@param {String} query
@return {Object}
@api private
Get all ads info from the given querystring