AdControl.Refresh method
Directs the AdControl to show the next ad when a new one becomes available, if auto-refresh is disabled. The currently rendered ad remains until the next ad becomes available.
Syntax
public void Refresh()
Exceptions
| Exception | Condition |
|---|---|
|
The IsAutoRefreshEnabled property is set to true. The Refresh method cannot be used unless the IsAutoRefreshEnabled property is set to false. |
Remarks
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 in Windows Dev Center so that it excludes any available inventory of advertisements. Try eliminating keywords or other ad targeting restrictions.
Requirements
| Minimum supported phone | Windows Phone 8 Silverlight |
|---|---|
| Namespace | Microsoft.Advertising.Mobile.UI |
| Assembly | Microsoft.Advertising.Mobile.UI.dll |