広告(バナー)を使用してuwpアプリケーション(Windows 10)を開発しています。 Windows Dev Centerでは、広告セクションにオプションがあります:デバイスファミリ:UWP(Windows 10)。このセクションで生成されたIDは、Windows 10 Desktop、Windows 10 Mobile、Xboxのすべてのuwpアプリケーションで動作しますか? つまり、私はちょうど1つのid(各デバイスにバナーサイズを適合させる)が必要で、すべてのタイプのデバイス(デスクトップ、タブレット、モバイル、Xbox)に対応していますか?広告ID - UWP(Windows 10)
0
A
答えて
1
このセクションで生成されたID Windows 10のすべてのuwpアプリケーションで動作します デスクトップ、Windows Mobile、Xbox?
はい。現在、ダッシュボードで使用できるオプションは、UWP(Windows 10)、PC /タブレット(Windows 8.1)、またはモバイル(Windows Phone 8.x)です。 UWPアプリケーションの場合、IDはパッケージが対象とするすべてのデバイスファミリで機能します。
Set up ad units in your appを参照してください。ある
、私は1つだけのIDが必要です(各 デバイスへのバナーサイズを適応させる)、それはデバイス(デスクトップ、タブレット、モバイル とXbox)のすべてのタイプのために働きますか?
はい、1つのアプリに1つのIDが必要です。 Supported banner ad sizesに基づいて、さまざまなデバイスファミリのバナー広告をさまざまなサイズに調整することをおすすめします。
あなたはEasClientDeviceInfomationクラスを使用してデバイス・ファミリを判断することができます。
private void CreateAdControl_Click(object sender, RoutedEventArgs e)
{
var adControl = new AdControl();
var clientDeviceInformation = new EasClientDeviceInformation();
var operatingSystem = clientDeviceInformation.OperatingSystem;
var button = (Button)sender;
button.IsEnabled = false;
adcontrol.ApplicationId = "3f83fe91-d6be-434d-a0ae-7351c5a997f1";
adcontrol.AdUnitId = "test";
if (operatingSystem.Equals("WINDOWS"))
{
adcontrol.Width = 300;
adcontrol.Height = 250;
}
else
{
adcontrol.Width = 300;
adcontrol.Height = 50;
}
adcontrol.ErrorOccurred += Adcontrol_ErrorOccurred;
adcontrol.AdRefreshed += Adcontrol_AdRefreshed;
var parent = (Panel)button.Parent;
parent.Children.Add(adcontrol);
}
関連する問題
- 1. は、Windows 10でのBLE広告パケット
- 2. Windows 10 UWPシングルサインオン
- 3. Windows 10 UWPコマンドバー
- 4. windows 10 - UWP - ドロップダウンボタン
- 5. のWindows 10 UWP - エンティティコアsqliteは:Windowsの10 UWPアプリケーションでクエリエラー
- 6. UWP Windows-10 WACKテストエラー
- 7. UWP Windows 10 Phoneエミュレータ
- 8. PointerCaptureLost c#UWP Windows 10
- 9. Windows phone 7広告
- 10. アドインネットワーク、広告、Windows用phone 8.1と10 universal with phonegap/cordova
- 11. ダブルIDのGoogle dfp広告
- 12. Windows 10 UWPターゲティングウィンドウ10モバイルのみ
- 13. windows 10モバイルデバイスのUWP UIデザイン
- 14. in-app-calendar for Windows 10 UWP
- 15. Windows 10の電話UWPライフサイクルテキストボックス
- 16. Cordovaプラグインfor Windows 10(UWP)
- 17. UWPのWindows 10 JS - バックグラウンドオーディオワークストア
- 18. Windows 10 - UWP、対称アルゴリズム
- 19. UWPのチャートWindows 10 App
- 20. Sqlite for Cordova Windows 10 UWP
- 21. Windows 10アップデートVS UWPアプリケーションビルド
- 22. Windows 10でのマルチバインディングUWP
- 23. Xamarin-Windows 10 UWPプロジェクトのエラー
- 24. のWindows 8広告は
- 25. バナー広告またはインタースティシャル広告をWindowsフォームに配置するには
- 26. AdMobネイティブ先進広告ユニットID
- 27. Asp.net MVC紺碧の広告グループID
- 28. キャンペーンID別に広告を取得
- 29. Google Adwords API広告スケジュール基準ID
- 30. リモートデバッグWindows 10のUWPアプリケーション電話デバイス
はどうもありがとうございました!あなたの例によれば、if(operatingSystem.Equals( "WINDOWS"))のApplicationIdとAdUnitIdは、他のApplicationIdとAdUnitIdと同じになりますか? –
@FernandoSousaはい、私は例を変更しました。 –
ありがとうございます! –