PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Operating mode of ads
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..AdLoaded is used to find out whether an ad is currently 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 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