To start using the Qt Digital Advertising plugin with the Qt Creator all you need to do is:
- Add a plugin import statement.
- Add an ad item code to your QML application code.
- Setup ad targeting in the dashboard.
- Setup ad properties in the code.
- Build and run the application.
Assuming that you have set up the Qt Digital Advertising plugin properly, to use the plugin types add the following import statement to your .qml file:
import QtDigitalAdvertising 1.1
Minimal Working Example
To get sure that ad content can be shown correctly you can use the bare-minimum example from the API Reference (see Detailed Description).
Note: Remember that ad targeting has to be setup first.
Also you can try a full example. For more information, see Examples.
© 2023 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.