Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Does the package support mediation? #1

Closed
anass-naoushi opened this issue Jan 20, 2021 · 9 comments
Closed

Does the package support mediation? #1

anass-naoushi opened this issue Jan 20, 2021 · 9 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@anass-naoushi
Copy link

If yes, can you please give me the steps on adapters' implementation and everything I need to get mediation ready and running. If no, I will still use the package bcz it is the best on pub as of now. Thank you.

@bdlukaa
Copy link
Owner

bdlukaa commented Jan 20, 2021

Well... in theory, it does, but it WASN'T tested yet.
I followed all the required steps, so the implementation for it is ready:

For example, Unity Ads, in theory you just need to:

  1. Step one
  2. Step two
  3. Add dependencies to build.gradle (project level: android/build.gradle)
repositories {
    jcenter()
}

...
dependencies {
    ...
    // important:
    implementation 'com.google.ads.mediation:unity:3.6.0.0'
    ...
}
...

Follow the TODO list here

Until mediation is not tested, I highly recommed you to NOT use it with this package.\

Once mediation is ready, documentated and tested, I'll update it here :)

@bdlukaa bdlukaa added enhancement New feature or request good first issue Good for newcomers labels Jan 20, 2021
@ycv005
Copy link

ycv005 commented Feb 16, 2021

Waiting for this. Thanks in advance.

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 16, 2021

Since it's necessary a production account to use mediation, I can NOT test it here. I've seen in many plugins (flutter and react native) using mediation without the need for additional code, you only need to import the libraries.

According to this similar issue in another plugin (#252):

I am using AdMob Mediation with this package. It works fine for me.
AdMob is just doing it for me. I only have to add libraries to gradle and Pod files for ad networks I want to utilize.

You can see here the gradle libraries you need to add. The installation proccess is almost the same as said before:

repositories {
    jcenter()
}

...
dependencies {
    ...
    // important:
    implementation 'com.google.ads.mediation:unity:3.6.0.0'
    // If you're adding facebook
    implementation 'com.google.ads.mediation:facebook:6.2.0.1'
    ...
}

Since there is no need for additional code (for most of the partner networks). It should work out of the box, if it doesn't, you can file a new issue with the error message. The networks that need additional code can NOT be used. If you need, you can add the required platform code yourself: guide

@ycv005
Copy link

ycv005 commented Feb 22, 2021

Yes, I tried and without any extra setup, it support mediation.

@anass-naoushi
Copy link
Author

@bdlukaa , worry not, I am using the package in my production app and up till now no problems. Thank you.

@ycv005
Copy link

ycv005 commented Feb 22, 2021

What ads companies did you able to see ads into your app ? @anass-naoushi . In my app only facebook ads are shown and other company ads not showing.

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 22, 2021

In my app only facebook ads are shown and other company ads not showing.

Probably for the other networks it's necessary extra-setup or to import the libraries

@ycv005
Copy link

ycv005 commented Feb 23, 2021

I think you may close this issue, as this will do all setup- https://developers.google.com/admob/android/mediate

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 23, 2021

Since @anass-naoushi said I am using the package in my production app and up till now no problems.. I'll close this issue. Please open a new issue if you find any new issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants