void InitialiseAdRotatorProgramatically() { myAdControl = new AdRotatorControl(); //myAdControl.LocalSettingsLocation = "defaultAdSettings.xml"; myAdControl.RemoteSettingsLocation = "http://adrotator.apphb.com/V2defaultAdSettings.xml"; myAdControl.AdWidth = 150; myAdControl.AdHeight = 150; myAdControl.AutoStartAds = true; ProgramaticAdRotator.Children.Add(myAdControl); }
void InitialiseAdRotatorProgramatically() { myAdControl = new AdRotatorControl(1); myAdControl.LocalSettingsLocation = "ProgramaticdefaultAdSettings.xml"; //myAdControl.RemoteSettingsLocation = "http://adrotator.apphb.com/V2defaultAdSettings.xml"; myAdControl.AdWidth = 728; myAdControl.AdHeight = 90; myAdControl.AutoStartAds = true; ProgramaticAdRotator.Children.Add(myAdControl); //AdRotatorControl.Log += (s) => { tracker.TrackEventAsync("AdRotator", "AdLogEvent", "an Ad", 0); tracker.TrackPageViewAsync("My API - Create", "api/view"); }; }
void InitialiseAdRotatorProgramatically() { _myAdControl = new AdRotatorControl(1); AdRotatorControl.Log += (s) => AdRotatorControl_Log(s); //_myAdControl.LocalSettingsLocation = "defaultAdSettings.xml"; _myAdControl.RemoteSettingsLocation = "http://adrotator.apphb.com/V2defaultAdSettings.xml"; _myAdControl.AdWidth = 728; _myAdControl.AdHeight = 90; _myAdControl.AutoStartAds = true; ProgramaticAdRotator.Children.Add(_myAdControl); }
void InitialiseAdRotatorProgramatically() { myAdControl = new AdRotatorControl(); myAdControl.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.PubCenter, typeof(Microsoft.Advertising.WinRT.UI.AdControl)); myAdControl.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.AdDuplex, typeof(AdDuplex.Controls.AdControl)); //myAdControl.LocalSettingsLocation = "defaultAdSettings.xml"; myAdControl.RemoteSettingsLocation = "http://adrotator.apphb.com/V2defaultAdSettings.xml"; myAdControl.AdWidth = 150; myAdControl.AdHeight = 150; myAdControl.AutoStartAds = true; myAdControl.BorderBrush = new SolidColorBrush(Windows.UI.Colors.AntiqueWhite); myAdControl.BorderThickness = new Thickness(20); ProgramaticAdRotator.Children.Add(myAdControl); }
void InitialiseAdRotatorProgramatically() { myAdControl = new AdRotatorControl(); myAdControl.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.PubCenter, typeof(Microsoft.Advertising.WinRT.UI.AdControl)); myAdControl.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.AdDuplex, typeof(AdDuplex.Controls.AdControl)); myAdControl.LocalSettingsLocation = "ProgramaticdefaultAdSettings.xml"; //myAdControl.RemoteSettingsLocation = "http://adrotator.apphb.com/V2defaultAdSettings.xml"; myAdControl.AdWidth = 150; myAdControl.AdHeight = 150; myAdControl.AutoStartAds = true; myAdControl.BorderBrush = new SolidColorBrush(Windows.UI.Colors.AntiqueWhite); myAdControl.BorderThickness = new Thickness(20); ProgramaticAdRotator.Children.Add(myAdControl); //AdRotatorControl.Log += (s) => { tracker.TrackEventAsync("AdRotator", "AdLogEvent", "an Ad", 0); tracker.TrackPageViewAsync("My API - Create", "api/view"); }; //<!--GoogleAnalyticsId="UA-51978219-1"--> }