Qt + admob
-
wrote on 10 Mar 2014, 09:55 last edited by
Yes, it's possible... but not easy.
There is one opensource project:
https://gitorious.org/qadmobAnd there is an ongoing commercial project of porting the AdMob to Qt 5:
http://plugins.v-play.net -
wrote on 10 Mar 2014, 12:36 last edited by
qadmob not is valid for qt 5.2.
nobody monetized with qt? -
wrote on 31 Mar 2014, 10:50 last edited by
There is my example how to do this
http://xanm.blogspot.ru/2014/03/admob-in-qt.html -
wrote on 16 Dec 2014, 10:56 last edited by
Hi, your examble is not working...can you provide a fresh example?
-
wrote on 16 Dec 2014, 10:56 last edited by
Hi, your examble is not working...can you provide a fresh example?
-
wrote on 14 Jul 2015, 06:50 last edited by
Hi, can you help me?
This is my Activity:
public class AdMobQtActivity extends org.qtproject.qt5.android.bindings.QtActivity
{
private static ViewGroup viewGroup;
public static AdMobQtActivity activity;
public static AdView mAdView;
private boolean adAdded = false;@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
activity = this;
mAdView = new AdView(this);
...
public static void hideAd()
{
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
mAdView.setVisibility(android.view.View.INVISIBLE);
}
});
}
I'm calling function from mainwindow:
void MainWindow::hideAd()
{
QAndroidJniObject::callStaticMethod("org/qtproject/example/admobqt/AdMobQtActivity", "hideAd");
}
But it doesn't work.
What am i doing wrong? -
wrote on 28 Jul 2015, 19:26 last edited by BitCrushers
I have the plan to release a AdMob Qt/QML module via github.
Release is probably in 1-2 months. -
wrote on 29 Jul 2015, 14:27 last edited by
There is already such code:
https://github.com/yevgeniy-logachev/QtAdMob.git -
wrote on 24 Aug 2017, 22:48 last edited by
You can use the AdMob Plugin by V-Play to show ads in your Qt app:
https://v-play.net/updates/release-2-13-0-free-rewarded-videos-native-ads-for-google-admob-qtIt supports all available ad types: banners, interstitials, rewarded video + native ads.
Cheers, Chris
-
wrote on 31 Jan 2019, 20:50 last edited by
Very late in reply but if you still are interested there is also this library called QtAndroidTools containing various tool for access android features from QML. Currently it still in progress but it contain the tool for add abmob ad in a very easy way. Check the example provided in the project.