Git Product home page Git Product logo

chartboost / chartboost-mediation-unity-sdk Goto Github PK

View Code? Open in Web Editor NEW
8.0 10.0 3.0 27.26 MB

Chartboost Mediation Unity SDK provides support for Unity based games to easily integrate Chartboost Mediation for Android & iOS platforms

Home Page: https://www.chartboost.com/mediate

License: MIT License

C# 81.65% Objective-C++ 9.45% Swift 0.02% Kotlin 7.86% Objective-C 1.02%
chartboost mediation unity ads

chartboost-mediation-unity-sdk's Introduction

Chartboost Mediation Unity SDK

Chartboost Mediation Unity SDK

Summary

Chartboost Mediation Unity SDK provides support for Unity based games to easily integrate the Chartboost Mediation for Android & iOS platforms. This guide will contain step by step instructions on how to integrate the SDK, as well as recommended practices to make best use of all the features offered by the Chartboost Mediation SDK.

Minimum Supporter Development Tools

Software Version
XCode 14.1
Android Studio 2020.3.1+
iOS 11.0+
Minimum Android API Level 5.1+ (API level 22)
Target Android API Level 13.0+ (API level 33)
Minimum Unity Version 2020.3.37f1

CHANGELOG

Visit the CHANGELOG to reference changes to each version of the Chartboost Mediation Unity SDK.

Integrating the Chartboost Mediation Unity SDK

Chartboost Mediation Unity SDK is distributed using both NPM and NuGet distribution.

To install this sdk using either of these distribution channels follow the steps below :

Using the public npm registry

In order to add the Chartboost Mediation Unity SDK to your project using the npm package, add the following to your Unity Project's manifest.json file. The scoped registry section is required in order to fetch packages from the NpmJS registry.

  "dependencies": {
    "com.chartboost.mediation": "4.8.0",
    ...
  },
  "scopedRegistries": [
    {
      "name": "NpmJS",
      "url": "https://registry.npmjs.org",
      "scopes": [
        "com.chartboost"
      ]
    }
  ]

Using the public nuget package

To add the Chartboost Mediation Unity to your project using the nuget package, you will first need to add the NugetForUnity package into your Unity Project.

This can be done by adding the following to your Unity Project's manifest.json

  "dependencies": {
    "com.github-glitchenzo.nugetforunity": "https://github.com/GlitchEnzo/NuGetForUnity.git?path=/src/NuGetForUnity",
    ...
  },

Once NugetForUnity is installed, search for "Chartboost.CSharp.Mediation.Unity" in the search bar of Nuget Explorer window(Nuget -> Manage Nuget Packages). You should be able to see the Chartboost.CSharp.Mediation.Unity package. Choose the appropriate version and install.

In order to better understand the Chartboost Mediation Unity SDK, documentation has been split between Setup and Integration Steps:

Setup

  1. Ad Network Adapters
  2. Android Manifest
  3. Google External Dependency Manager (EDM)
  4. Multidex
  5. Chartboost Mediation Settings

Integration

  1. Initialization
  2. Configure Chartboost Mediation
  3. Loading Ads
  4. Showing Ads
  5. Delegate Usage
  6. Error Codes
  7. Unit Testing

chartboost-mediation-unity-sdk's People

Contributors

bwised avatar helium-service avatar kushg avatar pleasesavemycat avatar scastanedamunoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chartboost-mediation-unity-sdk's Issues

NullRef after initialization from HeliumEventProcessor

Helium Integration (please complete the following information):

  • Helium SDK version: 3.2.0
  • Platform: Android
  • Unity version: 2021.3.12f1

When HeliumEventProcessor invokes from java code by reflection static constructor of the HeliumEventProcessor not invokes.

    public static void ProcessHeliumEvent(int errorCode, string errorDescription, HeliumEvent heliumEvent)
    {
        _context.Post(o =>
        {

_context is null

img2

CredentialsWarning on HeliumSettings.GetAndroidAppSignature

HeliumSettings.GetAndroidAppSignature()

    public static string GetAndroidAppSignature()
    {
        switch (Instance.androidAppSignature)
        {
            case AndroidExampleAppSignature:
                CredentialsWarning(CredentialsWarningDefaultFormat, CredentialsWarningAndroid, CredentialsWarningAppSignature);

                return IOSExampleAppSignature;
            default:
                CredentialsWarning(CredentialsWarningEmptyFormat, CredentialsWarningAndroid, CredentialsWarningAppSignature);
                // use it anyway
                break;
        }
        return Instance.androidAppSignature;
    }

You are always Logging CredentialsWarning.
This is only needed if the string is empty.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.