Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Problem Integrating Microsoft Ads

Discussion in 'Windows' started by Smart-hawk1, Aug 9, 2019.

  1. Smart-hawk1

    Smart-hawk1

    Joined:
    May 23, 2017
    Posts:
    292
    Hi, I'm Trying to use Banner ad on UWP Unity Project, I Built and exporting UWP solution from unity to visual studio, and then on visual studio i added reference to Microsoft Advertising SDK for XAML but i noticed that the UWP VS Solution created by unity does not have main.xaml in VS solution explorer. when i try to add a xaml object to the project it wouldn't do anything not even get initialized on runtime..


    I'm trying to implement banner ad from this tutorial: https://marketplace.visualstudio.com/items?itemName=AdMediator.MicrosoftAdvertisingSDK
     
  2. timke

    timke

    Unity Technologies

    Joined:
    Nov 30, 2017
    Posts:
    62
    In the Build Settings window (for UWP), you need to change the Project Type from "D3D Project" to "XAML Project". This will provide the MainPage.xaml and App.xaml files in VS Solution.

    Note that you need to build your XAML project to a different output folder; you'll get a build error otherwise.
     
  3. Smart-hawk1

    Smart-hawk1

    Joined:
    May 23, 2017
    Posts:
    292
    Thank you sir,
    After I done this a new issue I'm encountering is

    "kernelbase.pdb not loaded" right after running the project on VS, I will research this problem
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,338
    That's not an error.