2 out of 3 rated this helpful - Rate this topic

Refresh

Microsoft Advertising Services

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

 

C#

public void Refresh()

 

JavaScript

function refresh();

 

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.

Other Resources

API Reference


Report a bug in the product. Send email to psupport@microsoft.com.
Send feedback about this documentation to adsfdbk@microsoft.com.
Revised: 2013-01-31
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.