Export (0) Print
Expand All

onPointerDown (JavaScript only) - Windows 8.1

Microsoft Advertising Services

Updated: October 17, 2013

Published: April 1, 2014

Raised when the user clicks, points, or touches the ad.

Namespace: Microsoft.Advertising.WinRT.UI (in Microsoft.Advertising.WinRT.UI.winmd)

JavaScript Library: ad.js



function onPointerDown (ev) { /* Your code here */ }
adControl.addEventListener("onpointerdown", onPointerDown);
adControl.removeEventListener("onpointerdown ", onPointerDown);

This event is fired when the user clicks, points, or touches inside of the AdControl. The app can use this event to animate the AdControl for visual touch-down feedback. The ad may suppress this event if it is providing visual touch-down feedback itself. The handler function takes a single parameter that is the event object containing the coordinates where the event occurred.

Support and Feedback

Get product support or report a bug in the advertising SDK by visiting the Windows Store Apps developer support page support page. For product support, under "App development" click the "Advertising SDK" link. To post a question in the support forum, scroll down to "Find answers online" and click "Ads-in-Apps for Windows 8 forum".

Send feedback about this documentation to adsfdbk@microsoft.com. There is no product support through this alias. Documentation feedback only.

Community Additions

© 2014 Microsoft