Qt + admob
-
It's possible incorporate admob with qt?
¿Es posible incorporar publicidad de AdMob en una aplicación Qt? -
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 -
qadmob not is valid for qt 5.2.
nobody monetized with qt? -
There is my example how to do this
http://xanm.blogspot.ru/2014/03/admob-in-qt.html -
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? -
I have the plan to release a AdMob Qt/QML module via github.
Release is probably in 1-2 months. -
There is already such code:
https://github.com/yevgeniy-logachev/QtAdMob.git -
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
-
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.