Examples

Introduction

You can test that your Qt installation is successful by opening an existing example application project.

There is example project for mobile, which is located Qt Digital Advertising examples in the Qt examples directory (e.g. by default, for Windows, C:/Qt/Examples/QtDigitalAdvertisement + Qt_VERSION).

To run an example simply load the project with a project file (.pro) delivered with the example then build and run.

Note: Examples are available only for the Qt Creator.

MobileAd

To run an mobile application example on an Android or iOS device, you must set up the development environment for Android or iOS.

Demo Showcase

In the example application you can find samples for the 3 most popular types of ads usually used in applications:

  1. Banners - presented as dropdown list where you can choose the type of the banner
  2. Interstitial - shown on a new full screen.
  3. Rewarded - shown on a new full screen, can be closed immidiately or after a period of time as a rewarded ad.

MobileAd

"Mobile example Demo"

Mobile example application in action.

Qt board game

Qt board game is a cross-platform, open source, (https://github.com/qt-io/qt-board-games) game as a sample for the Digital Ads plugin, as well as for testing purposes of monetisation on iOS and Android. Try it out to see how monetisation works on mobile:

To learn more about developing advertisements code, see QML Types Reference.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.