How do I get Admob and Adsense working?

Not favoritedFavorited Favorited 0 favourites
From the Asset Store
_______ Huge collection of metal fixtures ________
  • I've used the MobileAdvert plugin that comes with Construct but it's not showing my ads on my web or Android version. I've looked in the forums and the only threads I can see are at least 5 years old! Is the plugin depreciated or have I just not used it properly?

    Test ads show in Construct previews, so I must be doing something right!

  • It works fine.

    Look for what's wrong, check the forum questions, there are definitely newer topics there, because I answered some of them myself.

  • I've searched the forums and did not find a recent thread, so I started one.

    Maybe it is all working fine, and the problem is with AdSense and not my project, but I don't think so.

    Do I need to put in an IFDA request? At the moment all the code I have is request rewarded interstitial, show it and check it's been watched.

    My console gives me this when I play the game hosted on my site....

    [C3 advert] Event (configuration complete Error () Type () Amount (0))

  • WellDevelopedGames I have the same issue.

    I have an app that is published on Google Play since a while now and I did a new export because Google Play asked to support the latest Android 15 version.

    After the export no matter how I try to change the code, the ads does not work both in debug and in the test release on Google Play.

    Here one example of my simplified test code:

    In my test, the Text just shows "MobileAdvert Plugin -> On configuration complete" and yes, the text area is very large, no text is cropped.

    In the C3 preview instead, it works fine. However I noticed that compared to before, the fake ads just shows a generic Google logo with written "Rewarded ad example" instead of the usual random video ad.

    All Plugin parameters are fine, since I just open the old files version and exported again. Tested with different older versions too and still have the same issue.

    Any idea about this Ashley? Maybe Google changed something on their side?

    People are leaving 1 star reviews because of that, so it's quite urgent as issue to investigate.

  • Edited with more details my reply above.

  • WellDevelopedGamesAshley

    I tried to export the debug apk with an older version of C3 (424.2) and the test ads works fine. So, I guess something went wrong with the new version of C3? However, the preview still doesn't show the video, but just the placeholder (and that might be fine for our testing).

    WellDevelopedGames if you have a not too old version that can be opened with 424.2, give it a go. It might temporarily fix your issue, until a solution is found for the most recent versions.

    https://editor.construct.net/r424-2/

  • I went on with exporting the AAB file and once uploaded, I got the following message, blocking me from continuing to publish the app:

    Your app currently targets API level 34 and must target at least API level 35 to ensure it is built on the latest APIs optimized for security and performance.

    So basically there is no workaround, it's impossible to publish now a new release that shows the ads with the last version of C3 and neither with an older one.

    Need to wait for a C3 bugfix (if it's possible to be handled from Scirra's side).

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm having the same issue too with an app for iOS, using the latest stable version of Construct r449.2.

    Ads do not show on iPhone running iOS 18, but do show on an older iPhone running iOS 16.

    I created a Github issue in July github.com/Scirra/Construct-bugs/issues/8682 and am still waiting for the ticket to be assigned to anyone.

    Perhaps if you could add any more information to the issue, that might help Ashley troubleshoot the problem?

  • I'm having the same issue too with an app for iOS, using the latest stable version of Construct r449.2.

    Ads do not show on iPhone running iOS 18, but do show on an older iPhone running iOS 16.

    I created a Github issue in July github.com/Scirra/Construct-bugs/issues/8682 and am still waiting for the ticket to be assigned to anyone.

    Perhaps if you could add any more information to the issue, that might help Ashley troubleshoot the problem?

    Hello, maybe. this. experience will be for you useful to you.

    - You can't load ads on the plugin configuration trigger, I've marked it in red on the screenshot. The plugin can often be configured before the layout starts and then you miss this trigger.

    - I have marked in yellow on the screen a simple example of requesting ads at the start of the layout.

    - If you enable the option shown in green on the screenshot and create privacy warnings in the Admob account, then the plugin itself shows notifications on data and tracking before the first launch. There is also an option to ask in the first ad unit, but I do not use it. The player is already used to such messages at the start of the game.

  • > I'm having the same issue too with an app for iOS, using the latest stable version of Construct r449.2.

    >

    > Ads do not show on iPhone running iOS 18, but do show on an older iPhone running iOS 16.

    >

    > I created a Github issue in July github.com/Scirra/Construct-bugs/issues/8682 and am still waiting for the ticket to be assigned to anyone.

    >

    > Perhaps if you could add any more information to the issue, that might help Ashley troubleshoot the problem?

    Hello, maybe. this. experience will be for you useful to you.

    - You can't load ads on the plugin configuration trigger, I've marked it in red on the screenshot. The plugin can often be configured before the layout starts and then you miss this trigger.

    - I have marked in yellow on the screen a simple example of requesting ads at the start of the layout.

    - If you enable the option shown in green on the screenshot and create privacy warnings in the Admob account, then the plugin itself shows notifications on data and tracking before the first launch. There is also an option to ask in the first ad unit, but I do not use it. The player is already used to such messages at the start of the game.

    Thank you igortyhon for the suggestion.

    So, if the option "Show on start up" is ticked, it is always loaded before the layout? It's 100% of the times always loaded before or not? Because if sometime it might happen after the start of the layout, for any reason, the condition on line 6 (MobileAdvert is configured) will not be trigged.

    Thanks.

  • Thank you igortyhon for the suggestion.

    So, if the option "Show on start up" is ticked, it is always loaded before the layout? It's 100% of the times always loaded before or not? Because if sometime it might happen after the start of the layout, for any reason, the condition on line 6 (MobileAdvert is configured) will not be trigged.

    Thanks.

    Not always, if the player has a bad Internet connection or a weak smartphone, the plugin configuration trigger may work even after the start of the layout.

    If you have only one layout or the player spends a lot of time on the layout for 3 minutes or more, then you should do the triggering in a different way. As in the screenshot.

    By the way, I added two variables that limit the number of failed attempts. Admob doesn't like it when you spam it with ad requests.

  • >

    > Thank you igortyhon for the suggestion.

    >

    > So, if the option "Show on start up" is ticked, it is always loaded before the layout? It's 100% of the times always loaded before or not? Because if sometime it might happen after the start of the layout, for any reason, the condition on line 6 (MobileAdvert is configured) will not be trigged.

    >

    > Thanks.

    Not always, if the player has a bad Internet connection or a weak smartphone, the plugin configuration trigger may work even after the start of the layout.

    If you have only one layout or the player spends a lot of time on the layout for 3 minutes or more, then you should do the triggering in a different way. As in the screenshot.

    By the way, I added two variables that limit the number of failed attempts. Admob doesn't like it when you spam it with ad requests.

    Thank you igortyhon.

    I tried and it didn't work. I made sure to load the ads if the MobileAdvert plugin starts before or after the layout loads. I used variables to check and it loads properly. However it doesn't load the ads.

    I then added as you suggested, a recall for loading ads in case they were not loaded, but while the events trig regularly, the loading doesn't happen, no matter how long I wait.

    Which version of C3 are you using? I tried it with 449.2 (stable).

    Thanks.

  • Which version of C3 are you using? I tried it with 449.2 (stable).

    Thanks.

    I used the version (r449-2) to build and publish the latest appendix.

    Here is the link if you are interested. TankCraft 2

    I don't understand why the ads don't work for you. Have you checked the Admob console, are there any requests for ads?

    But when the test checkbox is enabled in the plugin settings, ads should always be displayed, even if your application has not been verified by Admob.

  • Thanks igortyhon for your help.

    I've followed your instructions, but like Biim Games I cannot get ads to show on my iPhone 16 running iOS 18.6.2.

    The strange thing is, it DOES work on my older iPhone X running iOS 16.7.11.

    I've created the privacy messages in Admob and assigned them to the app.

    I've exported the Xcode project using older versions of Construct (r424.2, r449.2) as well as the latest version (449.2) but I get the same results.

    Below are screenshots showing the difference in the Xcode console for the iPhone X vs iPhone 16 - not sure if this helps debug the issue? (I'm not a programmer so I'm struggling to understand how to solve this).

    Thanks again for trying to help.

  • > Which version of C3 are you using? I tried it with 449.2 (stable).

    >

    > Thanks.

    I used the version (r449-2) to build and publish the latest appendix.

    Here is the link if you are interested. TankCraft 2

    I don't understand why the ads don't work for you. Have you checked the Admob console, are there any requests for ads?

    But when the test checkbox is enabled in the plugin settings, ads should always be displayed, even if your application has not been verified by Admob.

    Thank you igortyhon.

    Honestly I never used Admob console, because I usually don't develop apps, especially with ads. I tried to set the mobile with Developer Setting and connecting to the PC via USB start Chromium to check out what's happening.

    I made a new simnplified test layout to see what's happening.

    If I execute the preview from PC, the test ads start normally (or at least the Google logo is shown for 10 seconds for the reward ad), then once closed the app works. However, if I export the Debug APK, test ads are not shown.

    Here the code I wrote to test. I did so many different test, in this screenshot case, ads should be shown straight away to reduce the case of what could go wrong.

    When launching the app, the text starts with "MobileAdvert already ready on start of layout", so the plugin is initiated, however, the action in line 10 is repeated over and over every 2 seconds because the ad never starts.

    In the debug mode on Chromium, I was able to access this page.

    Here I'm not really sure where I should look at, however, if I go to inspect Solo RPG Oracle - Basic localhost/index.html , the console shows this:

    c3main.js:4 Made with Construct, the game and animation creation tool. Visit: construct.net

    c3main.js:4 [C3 runtime] Hosted in DOM, rendering with WebGL 2 [Adreno (TM) 618]

    c3main.js:4 [C3 advert] Event (configuration complete Error () Type () Amount (0))

    c3main.js:4 [Construct] Suspending

    c3main.js:4 [Construct] Resuming

    If instead I go to any of the googleads.g.doubleclick.net/mads/static/sdk/native/sdk-core-v40.html googleads.g.doubleclick.net/mads/static/sdk/native/sdk-core-v40.html[/b] the console shows this:

    sdk-core-v40.html:979 The jsLoaded GMSG has been sent

    Am I looking in the correct place?

    As said before I made many testing with different setting, even removing the option "Show on the startup" option of the plugin, didn't change anything.

    I tried also to work with C3 editor both online and downloaded on Chromium, with no difference.

    Thanks

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)