PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • 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
The Property AdvertisementLoaded makes it possible to know if an advertisement is currently displayed in the Control Advertisement.
Example
IF PUB_MaPub.ModeTest Mode = False _AND_ PUB_MaPub.AdvertisementLoaded = 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