Jump to content

Ads with CocoonJs + Phaser


Recommended Posts

Hi everyone

am trying to implement ads in my game

i read all about this thing , i made mopub account , and i took the banner ad id and put it in compiler configuration (i have a premium account) , also integrated admob with mopub , and referenced both (cocoon.js , cocoon_ad.js latest version) in my game after all i wrote the following code :


Cocoon.Ad.banner.on("shown", function () {
            console.log("Banner shown!");
        Cocoon.Ad.banner.on("ready", function () {
            console.log("Banner Ready!");
        Cocoon.Ad.banner.on("hidden", function () {
            console.log("Banner hidden!");
none of the "console.log" is triggered , could you please help guys
thanks a lot.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...