none
[UWP][Win10][XAML C++] Banner size for small size Win10 devices RRS feed

  • Question

  • Hi,

    According to AdSDK documentation, we should use AdUnit and AdID specifically target PC/Tablet or Mobile. As Win10 small devices are around 7 to 9 inches. The ads banner size for PC/Tablet is really too large to put on screen. There is no 300x50 banner size to use in PC/Tablet.

    I have the following questions:

    1. Using the PC/Tablet AdID/AdUnit but setting the AdControl size to 300x50 (that banner size is not recommended in documentation), will the ads display correctly ?

    2. If I want to display banner size of 300x50 for all Win10 devices (Mobile and PC/Tablet) , can I just use the Mobile AdID/AdUnit in my code ?

    I suggest Microsoft to use one single AdID/AdUnit across all Win10 devices (PC/Tablet/Mobile) , setting the banner size of AdControl will allow automatic display of best fit (scaling if necessary) ads. Developers will greatly welcome.

    Wednesday, November 4, 2015 3:06 AM

Answers

  • Hi

    you can use the "VisualStateManager" class to make the UI adapt to different screen sizes.

    Edit; added link:

    Visual State Manager class....

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.visualstatemanager.aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1

    Edit again; added another link:

    scroll to bottom of page and view "step 4"

    https://msdn.microsoft.com/en-us/library/windows/apps/dn996906.aspx

    hope this helps



    • Edited by Anthony.Baratta Wednesday, November 4, 2015 4:41 AM
    • Marked as answer by ErikS2 Thursday, November 5, 2015 1:47 PM
    Wednesday, November 4, 2015 3:21 AM
  • Hi,

    According to AdSDK documentation, we should use AdUnit and AdID specifically target PC/Tablet or Mobile. As Win10 small devices are around 7 to 9 inches. The ads banner size for PC/Tablet is really too large to put on screen. There is no 300x50 banner size to use in PC/Tablet.

    I have the following questions:

    1. Using the PC/Tablet AdID/AdUnit but setting the AdControl size to 300x50 (that banner size is not recommended in documentation), will the ads display correctly ?

    2. If I want to display banner size of 300x50 for all Win10 devices (Mobile and PC/Tablet) , can I just use the Mobile AdID/AdUnit in my code ?

    I suggest Microsoft to use one single AdID/AdUnit across all Win10 devices (PC/Tablet/Mobile) , setting the banner size of AdControl will allow automatic display of best fit (scaling if necessary) ads. Developers will greatly welcome.

    In release mode, you need check DeviceFamily first, if you use 300x50 or Mobile AdID/AdUnit in PC/Tablet, AdControl will return ErrorCode::NoAdAvailable or ErrorCode::Other.

    https://social.msdn.microsoft.com/Forums/en-US/c58c6692-6902-4c76-b8db-c6fa13857ba1/uwp-admediator-and-sizes?forum=aiasdk

    https://social.msdn.microsoft.com/Forums/en-US/7394b41a-5dd0-4fc0-af80-4e786f02e1d8/can-i-use-visualstate-to-set-the-size-of-an-instance-of-admediatorcontrol-for-windows-uwp?forum=aiasdk&prof=required

    • Marked as answer by ErikS2 Thursday, November 5, 2015 1:47 PM
    Wednesday, November 4, 2015 9:15 AM

All replies

  • Hi

    you can use the "VisualStateManager" class to make the UI adapt to different screen sizes.

    Edit; added link:

    Visual State Manager class....

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.visualstatemanager.aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1

    Edit again; added another link:

    scroll to bottom of page and view "step 4"

    https://msdn.microsoft.com/en-us/library/windows/apps/dn996906.aspx

    hope this helps



    • Edited by Anthony.Baratta Wednesday, November 4, 2015 4:41 AM
    • Marked as answer by ErikS2 Thursday, November 5, 2015 1:47 PM
    Wednesday, November 4, 2015 3:21 AM
  • Hi,

    According to AdSDK documentation, we should use AdUnit and AdID specifically target PC/Tablet or Mobile. As Win10 small devices are around 7 to 9 inches. The ads banner size for PC/Tablet is really too large to put on screen. There is no 300x50 banner size to use in PC/Tablet.

    I have the following questions:

    1. Using the PC/Tablet AdID/AdUnit but setting the AdControl size to 300x50 (that banner size is not recommended in documentation), will the ads display correctly ?

    2. If I want to display banner size of 300x50 for all Win10 devices (Mobile and PC/Tablet) , can I just use the Mobile AdID/AdUnit in my code ?

    I suggest Microsoft to use one single AdID/AdUnit across all Win10 devices (PC/Tablet/Mobile) , setting the banner size of AdControl will allow automatic display of best fit (scaling if necessary) ads. Developers will greatly welcome.

    In release mode, you need check DeviceFamily first, if you use 300x50 or Mobile AdID/AdUnit in PC/Tablet, AdControl will return ErrorCode::NoAdAvailable or ErrorCode::Other.

    https://social.msdn.microsoft.com/Forums/en-US/c58c6692-6902-4c76-b8db-c6fa13857ba1/uwp-admediator-and-sizes?forum=aiasdk

    https://social.msdn.microsoft.com/Forums/en-US/7394b41a-5dd0-4fc0-af80-4e786f02e1d8/can-i-use-visualstate-to-set-the-size-of-an-instance-of-admediatorcontrol-for-windows-uwp?forum=aiasdk&prof=required

    • Marked as answer by ErikS2 Thursday, November 5, 2015 1:47 PM
    Wednesday, November 4, 2015 9:15 AM