You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* None, disable AdRotator remotely through the configuration file
21
25
22
26
---
23
-
**At this time we have not tested AdRotator with Universal projects, please feed back any issues to the GitHub page - https://github.com/Adrotator/AdrotatorV2
24
-
25
-
26
27
To implement this control add the following XAML to your project:
27
-
Add a custom namespace to the AdRotator Control, e.g.:
28
+
Add a custom namespace to the XAML page you want to display AdRotator on, e.g.:
<!--Windows 8, 8.1, WP8.1 and Universal projects -->
32
33
xmlns:adRotator="using:AdRotator"
33
34
34
35
Then add the control to your page:
35
-
(We recommend using a UserControl in your project for implementation especially if you intend to use it on several pages)
36
+
(We recommend embedding AdRotator in a UserControl for your project for implementation, especially if you intend to use it on several pages)
36
37
37
38
<adRotator:AdRotatorControl
38
39
x:Name="MyAdRotatorControl"
@@ -42,40 +43,45 @@ Then add the control to your page:
42
43
RemoteSettingsLocation="http://<your site here>/defaultAdSettings.xml"
43
44
AutoStartAds="True" />
44
45
45
-
A default config XML file is added for you with this project with the correct Build action and copy options, just update the configuration appropriate to your installation.
46
+
A default configuration XML file is added for you with this project, with the correct Build action and copy options, just update the configuration appropriate to your installation.
46
47
47
-
If you add it manually on Windows Phone, set the build action of the config file to "Content" and use the configuration above
48
+
If you add your configuration file manually on Windows Phone, set the build action of the config file to "Content" and use the configuration above
48
49
AdRotator at this time does NOT support relative paths so the local configuration must be deployed in he project, for example
49
50
50
51
DefaultSettingsFileUri="/<project assembly name>;component/defaultAdSettings.xml" <-- Not supported
51
52
52
-
If you need to share a configuration file between projects then "Link" the configuration file from a central folder or just use remote configuration.
53
+
If you need to share a configuration file between projects then "Link" the configuration file in the solution explorer, from a central folder or just use remote configuration.
53
54
54
-
Lastly configure the XML configuration file (optionally host it on the web to allow remote configuration) for your Ad Provider settings or alternatively set the providers in the XAML
55
+
Lastly, configure the XML configuration file (optionally host it on the web to allow remote configuration) for your Ad Provider settings or alternatively set the providers in the XAML
55
56
56
57
For more instructions on how to implement this control and all the other configuration options checkout the AdRotator host site
57
58
http://getadrotator.com
58
59
59
-
** PubCenter and AdDuplex support for Windows 8
60
-
In order to support WinRT controls on Windows 8, like those now used by PubCenter and AdDuplex, you need to pass a reference to the assembly in your project.
60
+
** PubCenter and AdDuplex support for Windows 8 / Windows 8.1 / WP 8.1
61
+
In order to support WinRT controls on WinRT platforms, like those now used by PubCenter and AdDuplex, you need to pass a reference to the assembly in your project.
61
62
62
-
For Pubcenter, install the Windows 8/8.1 SDK as normal and reference the "Microsoft Advertising SDK", then include the following in the page code behind constructor.
63
-
Note - name of your control, this uses your XAML or programmatic instance
63
+
For Pubcenter, install the MS Ad SDK as normal (Win 8 http://bit.ly/MSAdSDK81 and WP8.1 http://bit.ly/MSAdSDKWP8) and reference the "Microsoft Advertising SDK", then include the following in the page code behind constructor.
64
+
Note - Check the name of your control, this uses your XAML (above) or programmatic instance
MyAdRotatorControl.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.PubCenter, typeof(AdControl)); //<- Resolve to Microsoft AdControl
66
67
67
-
For AdDuplex, add the control via NuGet using the AdDuplex SDK for Windows8 (Xaml edition) NuGet package, then include the following in the page code behind constructor.
68
-
Note - name of your control, this uses your XAML or programmatic instance
68
+
For AdDuplex, add the control via the new AdDuplex AD SDK (http://bit.ly/AdDuplexVSIX), then include the following in the page code behind constructor.
69
+
Note - Check the name of your control, this uses your XAML (above) or programmatic instance
AdRotatorUnitySDK.Integration.AdRotatorBridge.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.PubCenter, typeof(AdControl)); //<- Resolve to Microsoft AdControl
AdRotatorUnitySDK.Integration.AdRotatorBridge.PlatformAdProviderComponents.Add(AdRotator.Model.AdType.AdDuplex, typeof(AdControl)); //<- Resolve to AdDuplex AdControl
80
+
81
+
***Unity Universal games
82
+
Unity by default puts both your App.XAML and MainPage.XAML pages in the shared project.
83
+
TO configure AdRotator with Unity, you will need to copy these to each of the Windows Phone and Windows 8 projects because they need to be configured separately.
84
+
79
85
80
86
81
87
For further examples check the example projects in the GitHub source @ https://github.com/Adrotator/AdrotatorV2
@@ -85,7 +91,7 @@ This version of V2 also now supports our Unity plug-in for Windows 8 & Windows P
85
91
86
92
Final Note
87
93
----------
88
-
If you are using AdRotator and it is helping you to be more profitable, please consider donating to help support further development and support.
94
+
If you are using AdRotator and it is helping you to be more profitable, please consider donating to help support further development and maintenance.
0 commit comments