AdEventLog CreateAdLog(AdTrackingEventEventArgs e)
        {
            var adLog = new AdEventLog();
            adLog.TrackingType = e.TrackingType;
            adLog.CurrentPosition = e.CurrentPosition;

            var creativeSource = e.CreativeSource;

            if (creativeSource != null)
            {
                adLog.MediaSource = creativeSource.MediaSource;
                adLog.CreativeExtraInfo = creativeSource.ExtraInfo;
                adLog.MediaSourceType = creativeSource.MediaSourceType;
                adLog.CreativeSourceType = creativeSource.Type;
                adLog.CreativeId = creativeSource.Id;
            }

            return adLog;
        }
Exemple #2
0
        AdEventLog CreateAdLog(AdTrackingEventEventArgs e)
        {
            var adLog = new AdEventLog();

            adLog.TrackingType    = e.TrackingType;
            adLog.CurrentPosition = e.CurrentPosition;

            var creativeSource = e.CreativeSource;

            if (creativeSource != null)
            {
                adLog.MediaSource        = creativeSource.MediaSource;
                adLog.CreativeExtraInfo  = creativeSource.ExtraInfo;
                adLog.MediaSourceType    = creativeSource.MediaSourceType;
                adLog.CreativeSourceType = creativeSource.Type;
                adLog.CreativeId         = creativeSource.Id;
            }

            return(adLog);
        }