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 |
|---|---|
|
The IsAutoRefreshEnabled property is set to true. The |
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.
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