src/ads/adManager.js
function (applicationId, deviceDetails, environment) {
    if(!applicationId) {
        logger.wtf('No applicationID specified');
    }
    
    this.applicationId = applicationId;
    this.deviceDetails = deviceDetails;
    this.environment = environment;
    this._currentAds = [];
    this._loadingAds = [];
    this._adsWithoutImages = [];
}
function (applicationId, deviceDetails, environment) {
    if(!applicationId) {
        logger.wtf('No applicationID specified');
    }
    
    this.applicationId = applicationId;
    this.deviceDetails = deviceDetails;
    this.environment = environment;
    this._currentAds = [];
    this._loadingAds = [];
    this._adsWithoutImages = [];
}
function ( applicationId , deviceDetails , environment ) { if ( ! applicationId ) { logger . wtf ( 'No applicationID specified' ) ; } this . applicationId = applicationId ; this . deviceDetails = deviceDetails ; this . environment = environment ; this . _currentAds = [ ] ; this . _loadingAds = [ ] ; this . _adsWithoutImages = [ ] ; }
Creates a new instance of the adManager
@param applicationId - The ID of the application to receive ads for
@param deviceDetails - Details about the current users' device
@param environment - Environment specific functions.
@constructor
Creates a new instance of the adManager