I've implemented Microsoft ads on my uwp app, but it always shows same ads such as below:
Here are the codes for implementation.
void MainWindow::showAd()
{
auto adControl = ref new AdControl();
// Set the application id and ad unit id
// The application id and ad unit id can be obtained from Dev Center.
// See "Monetize with Ads" at https ://msdn.microsoft.com/en-us/library/windows/apps/mt170658.aspx
adControl->ApplicationId = L"------";
adControl->AdUnitId = L"------";
// Set the dimensions
adControl->Width = 50;
adControl->Height = 300;
// Add event handlers if you want
adControl->AdRefreshed += ref new EventHandler<RoutedEventArgs^>(this, &OpenGLESPage::OnAdRefreshed);
adControl->VerticalAlignment = Windows::UI::Xaml::VerticalAlignment::Top;
// adControl-? = Windows::UI::Xaml::Visibility::Visible;
// Add the ad control to the page
// auto parent = mPage->Parent;
// parent->Append(adControl);
swapChainPanel->Children->Append(adControl);
}
Why Microsoft ads alwyas shows same image like above? I got this ads on debug mode. Is it related to Debug or release mode?