Search Unity

How setting microsoft ads in uwp+il2cpp

Discussion in 'Windows' started by Sappac, May 16, 2019.

  1. Sappac

    Sappac

    Joined:
    Mar 25, 2019
    Posts:
    5
    Hi! I created unity game for uwp+il2cpp+xaml. I added Adcontrol banner from microsoftAdvertising in mainPage.xaml
    <UI:AdControl
    ApplicationId="3f83fe91-d6be-434d-a0ae-7351c5a997f1"
    AdUnitId="test"
    HorizontalAlignment="Left"
    Height="250"
    VerticalAlignment="Top"
    Width="300"/>

    and I need show banner only mainmenu window and don't show in another windows in game. But now banner showing in all pages. How I can show banner only mainmenu?