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. How add AdMob in program?
Forum Updated to NodeBB v4.3 + New Features

How add AdMob in program?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 4 Posters 1.4k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Hi!
    How I can add AdMob in my program?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The folks from V-Play have a plugin for that.
      There's also a project called QtAdMob. I haven't tried it though.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mikeeeeee
        wrote on last edited by Mikeeeeee
        #3

        I use QtAdMob.
        I am using this example. But it is not compiled by the Android compiler.
        Please help me understand this example.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What about giving some more details about is happening with that application ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mikeeeeee
            wrote on last edited by
            #5

            @SGaist said in How add AdMob in program?:

            What about giving some more details about is happening with that application ?

            It should appear advertising. More application does nothing. The MinGW compiler compiles it, but the Android compiler does not compile it. When I changed my xml-file by this example, I also stopped compiling.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Can you show the exact error you are getting ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mikeeeeee
                wrote on last edited by
                #7

                FAILURE: Build failed with an exception.

                • Where:
                  Build file 'D:\QTProject\QtAdMobApp-master\build-QtAdMobApp-Android_armeabi_v7a_Clang_Qt_5_12_0_for_Android_ARMv7-Debug\android-build\build.gradle' line: 17

                • What went wrong:
                  A problem occurred evaluating root project 'android-build'.

                Failed to apply plugin [id 'com.android.application']
                Gradle version 2.2 is required. Current version is 4.6. If using the gradle wrapper, try editing the distributionUrl in D:\QTProject\QtAdMobApp-master\build-QtAdMobApp-Android_armeabi_v7a_Clang_Qt_5_12_0_for_Android_ARMv7-Debug\android-build\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip

                • Try:
                  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

                • Get more help at https://help.gradle.org

                BUILD FAILED in 30s
                -- Skipping D:/QT/5.12.0/android_armv7/plugins/iconengines/libqsvgicon.so. It has unmet dependencies: lib/libQt5Svg.so.
                -- Skipping D:/QT/5.12.0/android_armv7/plugins/imageformats/libqsvg.so. It has unmet dependencies: lib/libQt5Svg.so.
                Building the android package failed!
                -- For more information, run this command with --verbose.
                14:50:11: Процесс «D:\QT\5.12.0\android_armv7\bin\androiddeployqt.exe» completed with code 14.
                Error when building / installing the QtAdMobApp project (bundle: Android for armeabi-v7a (Clang Qt 5.12.0 for Android ARMv7))
                During the “Build Android APK” stage
                14:50:11: Elapsed time: 00:55.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then you should contact the author of the module, he'll likely be able to help you faster with his module.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

                    Alternative here, this library support AdMob banner, Interstitial and rewarded ads:

                    https://github.com/FalsinSoft/QtAndroidTools

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hamer
                      wrote on last edited by
                      #10

                      Qt Firebase works good too: https://github.com/Larpon/QtFirebase

                      1 Reply Last reply
                      0

                      • Login

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