How do I add AdMob ads using Cocoon?

0 favourites
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • Hi marcoscodas

    if you use webview+ make sure to use "System -> is on platform cordova" instead of "Is canvas+". Latter only is true if your game uses the canvas+ engine. However "is on platform cordova" is true on both, webview and canvas+.

    Thanks for referring to my ebook

    Nowhere did it say on any place that I needed to add "is on platform cordova" I just added it to my Start of layout. In theory it should have worked on the phone, even if it showed the error on my browser test on the computer, right?

  • Yes, it only throws this issue on desktop / preview.

  • Yes, it only throws this issue on desktop / preview.

    Well sadly it didn't work for me. Thank you all for your help.

    I'm trying to turn this into a good thing by advertising the fact that it doesn't have ads, and is therefore more wholesome. It's a cutesey type of game anyway so it fits better, I think.

    I'm just not gonna make any money from it, but oh well.

  • Hey marcoscodas

    Check your PM.

  • Hey marcoscodas

    Check your PM.

    Hey Michael! Thank you for that. I'll give it a shot. I can't reply via DM yet becauase I don't have the rep points for that. Quick Q: Doesn't it need to be published to the Play Store for ads to work?

    Cheers.

  • marcoscodas

    Put the link into you device browser. Download it. Your device will confirm if you want to keep the file as it could be harmful (its not). You can then open and install it. Then run.

    Tap any of the two ad text boxes to load and show the ad. It may take a few seconds to fetch. Ill send you the capx.

  • Could you post a capx file I'll test it my end?

  • Hello, you lovely people! I'm sorry it took so long for me to reply. My fiancee had dental surgery on Monday so it's been crazy around the house.

    I saw your CAPX, is all of that necessary to run an ad? I know a lot of it is to troubleshoot where it's not working, but is there a way that you could show me a barebones CAPX where it just loads the ads the way it's supposed to be? Maybe I'm doing it wrong to begin with. I know your CAPX already loads it correctly, but the custom functions make it a bit difficult for me to decipher what's there to diagnose and what's there to just load the ads as they would normally. I'd really appreciate it <3

    thank you for the kind offer! At the moment my capx is a bit of a mess since I already released the game and I'm sorting stuff out that isn't related to the ads, so I want to keep it focused while I update and add functions to the game. I'm hoping the wonderful will be kind enough to teach me how to fish

    You guys are wonderful. I'm actually part of gaming media and I'm going to write an article about why I decided to make my first game with C2 and why it was the right choice.

    In the meantime, I'll get together a post for the "Finished games" sub-forum to see what people think

    Thank you all for your help, it really means a lot <3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Go through this link.

    https://shatter-box.com/knowledgebase/c ... -settings/

    you will get the solution. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • Thanks for the reply, I actually released the game (it's been moderately successful, too!), and turned the lack of ads into part of the marketing campaign for it. The first thing I did was to follow the shatter box tutorial but it did not work for me. Maybe I'm just obtuse, haha. But I think a lot of people are having similar issues implementing third party products and specially serving ads, so hopefully (and by the looks of it) it'll get addressed in future updates / Construct 3.

  • yup the Ad stuff sucks... I've had nothing but problems. Especially Appodeal. I've gotten everything to work... then all of a sudden, it stops working and I get compilation errors - just to make sure it wasn't me, I load an old version that I KNOW worked, and get the same comp errors. This has happened twice in the past two months, this latest time, I'm like: forget it. You can't work like that..

    It's all this 3rd party stuff... I wish there was an easy supported way to do it.

  • Thanks for the reply, I actually released the game (it's been moderately successful, too!), and turned the lack of ads into part of the marketing campaign for it. The first thing I did was to follow the shatter box tutorial but it did not work for me. Maybe I'm just obtuse, haha. But I think a lot of people are having similar issues implementing third party products and specially serving ads, so hopefully (and by the looks of it) it'll get addressed in future updates / Construct 3.

    i have the same problem as you. all was work fine with the same parameters . but oups the error appear from nothing. and ads stop working. i think something wrong related to the cocoon plugins.

  • Hey marcoscodas

    Check your PM.

    Can you send it to me too? Im expieriencing the same issues.

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