Android And Chartboost Ads

Discussion in 'Technical Discussion' started by rizwanashraf, Jan 5, 2017.

  1. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    No problem. If Sean didnt change anything in the file, then it must be something your side that is missing. Good luck! Downloading the SDKs is a royal pain haha.
     
    Christoph likes this.
  2. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Yeah definitely. If he didn't change anything and your ads are showing we can say with 100% security that it has to do something with your setup. :)
     
  3. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    Wow, this really baffles me. Are you removing any permissions or making any other changes after exporting?
     
    Christoph likes this.
  4. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    344
    Likes Received:
    215
    No Andy, I am doing Zero Changes .. Nothing at all ... Just simple Ignoring All Lint Errors and creating a Signed APK ..
     
  5. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    344
    Likes Received:
    215
    @Christoph @spicedbeangames Exactly, but What it could be ... anything i am missing in the way ? That is the question, If you can give me a list of things to look for i can grab them and post here so you can see what is wrong. can anyone ?
     
  6. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    I'm by no means a Eclipse specialist...

    But check the permissions as Andy says. Probably it is because one is missing straight out of Buildbox?
     
  7. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    344
    Likes Received:
    215
    These are my Permissions, I am not changing anything ...
    [​IMG]
     
    Christoph likes this.
  8. rizwanashraf

    rizwanashraf Avid Boxer

    Joined:
    Dec 3, 2015
    Messages:
    344
    Likes Received:
    215
    Hi guys @Andy @Christoph @spicedbeangames ... I just Debugged The App and This is what i found ...

    [​IMG]

    UPDATE !!!!!!
    I just Found out What is missing ....
    [​IMG]
    This Piece of Code I added in The Manifest and Got the Ads .... But Why its not there already for me ?
     
    Last edited: Jan 7, 2017
    volcank likes this.
  9. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Hi Did you solve the problem with chartboost? I was just browsing the forum and saw thist thread. Usually the main problem with chartboost comes with the Chartboost dashboard and not integration. Make sure you did the following steps at dashboard.

    Create a publishing campaign for your app and set it to interstitial.

    Make sure you copy and paste the correct IDs. ( I know this sounds funny but you can't imagine the mistakes I have been making) so make sure double check.

    Also before testing make sure your turned on Test mode in App's settings. And bear in mind: When you make a change at Chartboost it takes around half an hour for changes to take effect. (usually it says around 20 minutes at Chartboost website) If you see test ad working then you are fine.

    Btw Chartboost fillrates are not so high like Admob. So it would be great if we had an option of showing an alternative ad network if one is not available at new upcoming buildbox versions. @Andy In my previous games I did with other game engines I could do that so I am sure this is might be possible with Buildbox.
     
  10. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    This is already available to some extent. You can setup an alternate network on the advertising settings screen (bottom section).
     
    volcank likes this.
  11. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Hi Andy,

    I totally forgot about this thread and just remembered. Ok So Even if I set up like Chartboost as Interstitial for Game Over Screen in Nod Editor and in advertising Settings I set Admob as second Advertiser the game will show Admob interstitial if Chartboost not available right?? Is it how it works?? Thank You!
     
  12. phuceh

    phuceh Boxer

    Joined:
    Nov 20, 2018
    Messages:
    66
    Likes Received:
    9
    I'm having problems integrating Chartboost in my Android app. Everything seems correct but the ads aren't showing in the game.

    Firstly, do we need to manually integrate the SDK (based on these instructions - https://answers.chartboost.com/en-us/child_article/android) or is this natively accommodated within the Buildbox export? I have not integrated anything manually.

    I have setup a Chartboost campaign which is active - and I have the correct IDs within Buildbox for Google Play settings. I have also set the interstitial frequency and provider (as Chartboost) on the Game Over screen in my game, but the ads aren't showing and the game has been live for a few days now. Is there anything obvious that I should be aware of or any manual integration that I need to do? I do not have the green SDK tick against my app in Chartboost.

    Any help you could provide would be greatly appreciated.

    Thanks
     
  13. sharma.shivam

    sharma.shivam Avid Boxer

    Joined:
    Oct 23, 2016
    Messages:
    180
    Likes Received:
    10
    hi,were you able to solve the problem?i am thinking of using chartboost ads as well?Do we really have to make any changes at all in android studio if we are using bulidbox version 2.3.8? or adding the chartboost ad id's is enough??
    Thanks
     
  14. phuceh

    phuceh Boxer

    Joined:
    Nov 20, 2018
    Messages:
    66
    Likes Received:
    9
    @sharma.shivam I managed to get some information from Buildbox as to how to solve this - it does require some changes to code in Android studio.

    build.gradle (The app-level one):
    implementation 'com.google.android.gms:play-services-base:17.1.0'
    implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.multidex:multidex:2.0.1'

    the emoji in the above is a : & p - this keeps creating the face.

    gradle.properties:
    android.useAndroidX=true
    android.enableJetifier=true

    AndroidManifest.xml, to replace android:name="android.support.multidex.MultiDexApplication" with android:name="androidx.multidex.MultiDexApplication"

    AndroidManifest.xml, add the following tag to the activity for chartboost (search for the <!-- CHARTBOOST --> comment):
    android:hardwareAccelerated="true"

    PTAdChartboostBridge.java, add some extra lines to cache the ads correctly. Where we have:Chartboost.onStart(PTAdChartboostBridge.activity);We need to add below it:
    Chartboost.cacheInterstitial( CBLocation.LOCATION_DEFAULT );
    Chartboost.cacheRewardedVideo(CBLocation.LOCATION_DEFAULT);

    I have gotten this working so I hope it helps.
     
  15. sharma.shivam

    sharma.shivam Avid Boxer

    Joined:
    Oct 23, 2016
    Messages:
    180
    Likes Received:
    10
    @phuceh thank you for the info.
     

Share This Page