Skip to content

Commit caacaa2

Browse files
committed
Merged main into live
2 parents b8ebb6c + 456e31f commit caacaa2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

uwp/monetize/error-handling-in-javascript-walkthrough.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
---
2-
ms.assetid: 08b4ae43-69e8-4424-b3c0-a07c93d275c3
32
description: Learn how to catch and handle errors from an AdControl in a JavaScript and HTML5 app by following this walkthrough.
43
title: Error handling in JavaScript walkthrough
54
ms.date: 02/18/2020
65
ms.topic: article
7-
keywords: windows 10, uwp, ads, advertising, error handling, javascript
8-
ms.localizationpriority: medium
96
---
7+
108
# Error handling in JavaScript walkthrough
119

1210
>[!WARNING]
1311
> As of June 1, 2020, the Microsoft Ad Monetization platform for Windows UWP apps will be shut down. [Learn more](https://social.msdn.microsoft.com/Forums/windowsapps/en-US/db8d44cb-1381-47f7-94d3-c6ded3fea36f/microsoft-ad-monetization-platform-shutting-down-june-1st?forum=aiamgr)
1412
1513
This walkthrough demonstrates how to catch ad-related errors in your JavaScript app. This walkthrough uses an [AdControl](/uwp/api/microsoft.advertising.winrt.ui.adcontrol) to display a banner ad, but the general concepts in it also apply to interstitial ads and native ads.
1614

17-
These examples assume that you have a JavaScript app that contains an **AdControl**. For step-by-step instructions that demonstrate how to add an **AdControl** to your app, see [AdControl in HTML 5 and JavaScript](adcontrol-in-html-5-and-javascript.md). For a complete sample project that demonstrates how to add banner ads to a JavaScript/HTML app, see the [advertising samples on GitHub]https://github.com/microsoft/Windows-universal-samples/tree/b1cb20f191d3fd99ce89df50c5b7d1a6e2382c01/archived/Advertising).
15+
These examples assume that you have a JavaScript app that contains an **AdControl**. For step-by-step instructions that demonstrate how to add an **AdControl** to your app, see [AdControl in HTML 5 and JavaScript](adcontrol-in-html-5-and-javascript.md). For a complete sample project that demonstrates how to add banner ads to a JavaScript/HTML app, see the [advertising samples on GitHub](https://github.com/microsoft/Windows-universal-samples/tree/b1cb20f191d3fd99ce89df50c5b7d1a6e2382c01/archived/Advertising).
1816

1917
1. In the default.html file, add a value for the **onErrorOccurred** event where you define the **data-win-options** in the **div** for the **AdControl**. Find the following code in the default.html file.
2018
``` HTML

0 commit comments

Comments
 (0)