Refresh method

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

System.InvalidOperationException

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 phoneWindows Phone 8 Silverlight
Namespace Microsoft.Advertising.Mobile.UI
AssemblyMicrosoft.Advertising.Mobile.UI.dll

 

 

 

Show:
© 2017 Microsoft