Export (0) Print
Expand All
2 out of 3 rated this helpful - Rate this topic

Refresh (JavaScript: refresh) - Windows 8.0

Microsoft Advertising Services

Updated: August 2, 2013

Published: June 4, 2013

When automatic ad refresh is disabled, a call to this method directs the AdControl to show the next ad when a new one becomes available.

The normal refresh interval is 30 seconds. If the user is on a metered network that can be detected, the refresh interval is 1 minute.

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

JavaScript Library: ad.js

Syntax

C#

public void Refresh()

JavaScript

function refresh();

Exceptions

Exception

Condition

System.InvalidOperationException

The IsAutoRefreshEnabled property is set to true. The Refresh method cannot be used unless the IsAutoRefreshEnabled property is set to false.

If no ad or no new ad is shown:

  • The network may be unavailable.

  • An error may have occurred when trying to contact the ad server.

  • The ad unit may be configured on pubCenter so that it excludes any available inventory of ads. Try eliminating keywords or other ad-targeting restrictions.

  • Refresh has been called too soon after the previous call. The normal refresh interval is 30 seconds. If the user is on a metered network that can be detected, the refresh interval is 1 minute. No new ad will be shown if the attempt to refresh is made during this time.

Support and Feedback

Get product support or report a bug in the advertising SDK by visiting the Windows 8 Dev Center support page (scroll down to the section "Microsoft Advertising support").

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.