How do I add ads in my game?

0 favourites
  • 4 posts
From the Asset Store
Customize the animation of character when item changed
  • Hello! I made a game and used CocoonJS to add ads to my game. I want to use admob to do this. I exported the game using Cordova and XDK and now I am trying to publish my game (first time ever) and in my Google Play account there is an option called In-app products. When I click that it appears "To add in-app products, you need to add the BILLING permission to your APK." and "To add in-app products, you need to set up a Google Payments merchant account.". Do I need to do this, for ads, or this is only for when you buy stuff inside the game (gems or crystals or stuff like that)? Also, if I need to do this, how can I add Billing permission to my app. Is this done when I make the setting for SDK build? Thank you!

  • Hello! I made a game and used CocoonJS to add ads to my game. I want to use admob to do this. I exported the game using Cordova and XDK and now I am trying to publish my game (first time ever) and in my Google Play account there is an option called In-app products. When I click that it appears "To add in-app products, you need to add the BILLING permission to your APK." and "To add in-app products, you need to set up a Google Payments merchant account.". Do I need to do this, for ads, or this is only for when you buy stuff inside the game (gems or crystals or stuff like that)? Also, if I need to do this, how can I add Billing permission to my app. Is this done when I make the setting for SDK build? Thank you!

    Hello there,

    First, you need account with AdMob: https://www.google.com/admob/ then if you are done. sign-in to your account then go, Monetize New App --> Add Your App Manually. Then write your app name and chose the platform. click Add after that, then chose Banner and write a name for it down by "Ad unit name". After that click skip at Firebase for now. Finally Cilck at "Done".

    it will take you back to new window. Chose your App from the left. Look at the right and copy your "Ad unit ID"

    look at the picture:

    http://imgur.com/ru44fcS

    Second, in your C2 Project open it and do as follows: Insert New Object --> Admob Ads

    Third, click at the Admob Ads in your C2. You will see its properties. paste your "Ad unit ID" to "Banner ID ( Android )" Or

    Banner ID ( IOS ).

    Fourth, do as follow:

    Add event -> System -> On Start of Layout

    -Add action -> AdmobAds -> Preload banner ad

    -Add action -> AdmobAds -> Show banner -> Position: Bottom center -> size: Smart Banner -> Done

    Then add this plugin to your Config.xml File:

        <plugin name="github.com/cranberrygame/cordova-plugin-ad-admob" source="npm" ></plugin>[/code:2kf9yzbu]
    
    I hope this help...
    
    Good Luck <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Hello! I made a game and used CocoonJS to add ads to my game. I want to use admob to do this. I exported the game using Cordova and XDK and now I am trying to publish my game (first time ever) and in my Google Play account there is an option called In-app products. When I click that it appears "To add in-app products, you need to add the BILLING permission to your APK." and "To add in-app products, you need to set up a Google Payments merchant account.". Do I need to do this, for ads, or this is only for when you buy stuff inside the game (gems or crystals or stuff like that)? Also, if I need to do this, how can I add Billing permission to my app. Is this done when I make the setting for SDK build? Thank you!

    >

    Hello there,

    First, you need account with AdMob: google.com/admob then if you are done. sign-in to your account then go, Monetize New App --> Add Your App Manually. Then write your app name and chose the platform. click Add after that, then chose Banner and write a name for it down by "Ad unit name". After that click skip at Firebase for now. Finally Cilck at "Done".

    it will take you back to new window. Chose your App from the left. Look at the right and copy your "Ad unit ID"

    look at the picture:

    http://imgur.com/ru44fcS

    Second, in your C2 Project open it and do as follows: Insert New Object --> Admob Ads

    Third, click at the Admob Ads in your C2. You will see its properties. paste your "Ad unit ID" to "Banner ID ( Android )" Or

    Banner ID ( IOS ).

    Fourth, do as follow:

    Add event -> System -> On Start of Layout

    -Add action -> AdmobAds -> Preload banner ad

    -Add action -> AdmobAds -> Show banner -> Position: Bottom center -> size: Smart Banner -> Done

    Then add this plugin to your Config.xml File:

        <plugin name="github.com/cranberrygame/cordova-plugin-ad-admob" source="npm" ></plugin>[/code:2bonzfvj]
    
    I hope this help...
    
    Good Luck <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" />
    

    Thank you for this! Is all this free? Or do I need to pay something to google? (For now they didn't ask for anything but I was wondering if later they will) Thank you!

  • >

    > > Hello! I made a game and used CocoonJS to add ads to my game. I want to use admob to do this. I exported the game using Cordova and XDK and now I am trying to publish my game (first time ever) and in my Google Play account there is an option called In-app products. When I click that it appears "To add in-app products, you need to add the BILLING permission to your APK." and "To add in-app products, you need to set up a Google Payments merchant account.". Do I need to do this, for ads, or this is only for when you buy stuff inside the game (gems or crystals or stuff like that)? Also, if I need to do this, how can I add Billing permission to my app. Is this done when I make the setting for SDK build? Thank you!

    > >

    > Hello there,

    >

    > First, you need account with AdMob: https://www.google.com/admob/ then if you are done. sign-in to your account then go, Monetize New App --> Add Your App Manually. Then write your app name and chose the platform. click Add after that, then chose Banner and write a name for it down by "Ad unit name". After that click skip at Firebase for now. Finally Cilck at "Done".

    > it will take you back to new window. Chose your App from the left. Look at the right and copy your "Ad unit ID"

    > look at the picture:

    >

    > http://imgur.com/ru44fcS

    >

    > Second, in your C2 Project open it and do as follows: Insert New Object --> Admob Ads

    >

    > Third, click at the Admob Ads in your C2. You will see its properties. paste your "Ad unit ID" to "Banner ID ( Android )" Or

    > Banner ID ( IOS ).

    >

    > Fourth, do as follow:

    >

    > Add event -> System -> On Start of Layout

    > -Add action -> AdmobAds -> Preload banner ad

    > -Add action -> AdmobAds -> Show banner -> Position: Bottom center -> size: Smart Banner -> Done

    >

    > Then add this plugin to your Config.xml File:

    >

        <plugin name="github.com/cranberrygame/cordova-plugin-ad-admob" source="npm" ></plugin>[/code:3cqbgptg]
    > 
    > I hope this help...
    > 
    > Good Luck <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">
    > 
    Thank you for this! Is all this free? Or do I need to pay something to google? (For now they didn't ask for anything but I was wondering if later they will) Thank you!
    

    No it's free. Actually they are making money from your app from the adviser that pay them to show his/her ad product.

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