コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: Kearsoft/AdrotatorV2
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
ファイル: MainPage.xaml.cs プロジェクト: jandujar/AdrotatorV2
 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"); };
 }
コード例 #4
0
 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"); };
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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);
 }
コード例 #7
0
ファイル: MainPage.xaml.cs プロジェクト: jandujar/AdrotatorV2
 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"-->
 }
コード例 #8
0
 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"-->
 }