Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt + admob
QtWS25 Last Chance

Qt + admob

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 9 Posters 6.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prueba03admob
    wrote on last edited by
    #1

    It's possible incorporate admob with qt?
    ¿Es posible incorporar publicidad de AdMob en una aplicación Qt?

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      Yes, it's possible... but not easy.
      There is one opensource project:
      https://gitorious.org/qadmob

      And there is an ongoing commercial project of porting the AdMob to Qt 5:
      http://plugins.v-play.net

      1 Reply Last reply
      0
      • P Offline
        P Offline
        prueba03admob
        wrote on last edited by
        #3

        qadmob not is valid for qt 5.2.
        nobody monetized with qt?

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xanm
          wrote on last edited by
          #4

          There is my example how to do this
          http://xanm.blogspot.ru/2014/03/admob-in-qt.html

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AlterX
            wrote on last edited by
            #5

            Hi, your examble is not working...can you provide a fresh example?

            Qt Ambassador
            Real-time cooperative teams: http://www.softairrealfight.net
            Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

            https://codereview.qt-project.org/...

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AlterX
              wrote on last edited by
              #6

              Hi, your examble is not working...can you provide a fresh example?

              Qt Ambassador
              Real-time cooperative teams: http://www.softairrealfight.net
              Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

              https://codereview.qt-project.org/...

              1 Reply Last reply
              0
              • I Offline
                I Offline
                IgorYak
                wrote on last edited by
                #7

                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?

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  BitCrushers
                  wrote on last edited by BitCrushers
                  #8

                  I have the plan to release a AdMob Qt/QML module via github.
                  Release is probably in 1-2 months.

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vladstelmahovsky
                    wrote on last edited by
                    #9

                    There is already such code:
                    https://github.com/yevgeniy-logachev/QtAdMob.git

                    1 Reply Last reply
                    0
                    • F Offline
                      F Offline
                      feldifux
                      wrote on last edited by
                      #10

                      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-qt

                      It supports all available ad types: banners, interstitials, rewarded video + native ads.

                      Cheers, Chris

                      Founder of Felgo SDK - http://felgo.com/qt

                      Felgo simplifies

                      • Mobile App Dev with Qt esp. iOS & Android
                      • Game Development with Qt

                      What others say

                      Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

                      1 Reply Last reply
                      0
                      • deleted57D Offline
                        deleted57D Offline
                        deleted57
                        wrote on last edited by
                        #11

                        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.

                        https://github.com/FalsinSoft/QtAndroidTools

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved