ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Operating mode of ads
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
AdLoaded (Property)
In french: PublicitéChargée
The AdLoaded property indicates whether an ad is currently loaded (and displayed) in the Ad control.
Example
IF ADV_MyAd.TestMode = False _AND_ ADV_MyAd.AdLoaded = True THEN
NbAdViewed = NbAdViewed + 1
END
Syntax
<Result> = <Ad control>.AdLoaded
<Result>: Boolean
  • True if an ad is currently loaded (and displayed) in the specified control.
  • False otherwise.
<Ad control>: Control name
Name of the Ad control to use.
Remarks

Operating mode of ads

An ad is automatically loaded in the Ad control when the window is opened.
Then, new ads can be regularly loaded in the control according to the refresh rate defined in the application setting on the AdMob site.
The ads are loaded in background task from Internet. Therefore, the device must be connected in order for the ads to be displayed. A timeout (few seconds to several minutes) may be required between the opening of the window and the actual display of the first ad. This timeout depends on the connection quality and on the ad size.
We recommend that you use the events "Loading an ad" and "Error while loading an ad" to check the display of ads in the control.
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help