Refresh | refresh method

AdControl.Refresh | 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()

Parameters

This method has no parameters.

Exceptions

ExceptionCondition
InvalidOperationException

The IsAutoRefreshEnabled property is set to true.

Remarks

The normal refresh interval is 60 seconds. IsAutoRefreshEnabled must be set to false before calling Refresh.

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 ads. Try eliminating keywords or other ad-targeting restrictions.
  • Refresh has been called too soon after the previous call. The normal refresh interval is 60 seconds. No new ad will be shown if the attempt to refresh is made during this time.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1

Namespace

Microsoft.Advertising.WinRT.UI
Microsoft::Advertising::WinRT::UI [C++]

Metadata

Microsoft.Advertising.winmd

See also

AdControl

 

 

Show:
© 2017 Microsoft