Admob reward video mediation through Unity Ads inside Unity

578 views
Skip to first unread message

Ramon Amorim

unread,
Jun 27, 2016, 4:46:35 PM6/27/16
to Google Mobile Ads SDK Developers
So guys, I've followed every guide I could find about making the Unity Ads mediation work, but it just doesn't work. All the setup has been made. in both Unity Ads and Admob systems.

Banner ads and Interstitial ads are working. But the mediation don't.

Do you guys have some tips on how to do so?

I have Unity 5.3.5p4

Thanks

Ramon Amorim

unread,
Jun 27, 2016, 4:49:21 PM6/27/16
to Google Mobile Ads SDK Developers
Forgot some info...

I'm using Prime 31 Admob's plugin, v 2.18
and the error is appearing on every Android I tested (9 devices), so I think it is not relevant

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 27, 2016, 5:26:20 PM6/27/16
to google-adm...@googlegroups.com
Hi Ramin,

We do not support the prime[31] plugin for Unity. If you were to use our native Mobile Ads plugin for Unity, I would be be able to assist you. First you need to setup your Ad Unit ID and enable Mediation through Unity Ad. Before you do so, you need to make sure that you are monetizing your app in Unity Ad dashboard. Select your platform and make sure you have added Reward Video as your ad placement (see the attached screenshot). Then with the project details from Unity Ad, you can add that mediation network for your Ad Unit ID. 

Next the SDK part. You can use this link to know how to integrate Unity Ad into your project. Basically, all you need would be the Unity Ad SDK, its adaptor and add the UnityAd Activity into the Android Manifest and you are done. You can use this sample app to build directly to test the integration.

Let us know if you need any further details.

Thanks,
Veer Busanixt
Mobile Ads SDK Team
Screen Shot 2016-06-27 at 5.10.39 PM.png

Ramon Amorim

unread,
Jun 27, 2016, 6:26:47 PM6/27/16
to Google Mobile Ads SDK Developers
Thanks for the lightning fast answer. So, yeah, before buying prime[31] plugin, I tried the native solutions first, but nothing was working.

For example, I've downloaded your example before. In any case, I've downloaded it again now just to be sure, but the following steps occur when I open the project.

1. The project opens just fine, compiles just fine. The build works great, but the rewarded button refuses to show me anything. At least it SEEMS to be working.
2. But when I close the project, I am prompted with the following choice:
....... "Remove or replace play-services-ads version 8.4.0 with version 9.0.2?" and two buttons, "OK" and "Keep".
....... No matter if I choose Ok or Keep, I am prompted with another window
....... "Remove or replace play-services-basement version 8.4.0 with version 9.0.2?" and two buttons, "OK" and "Keep".

3. No matter if I choose both "ok" or both "keep", the project appears to corrupt itself, because after that, every time I try to build it again, the build fails and I'm granted with a very long error message (at the end of this post)

Since I was getting all these errors, I've decided to buy Prime[31] plugin thinking that it would make my life easier, but how wrong I was. Now I have another layer of indirectness and things are still not working.


This is the error I get when trying to build the second time forward:

CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\android sdk\build-tools\23.0.2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/android sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.firebase:com.google.unity:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.tasks:android.support.v4:com.unity3d.ads.android -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\firebase-common-9.0.2\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\play-services-ads-9.0.2\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\play-services-ads-lite-9.0.2\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\play-services-basement-9.0.2\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\play-services-tasks-9.0.2\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\support-v4-23.1.1\res" -S "E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res"

stderr[
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <android.support.v7.widget.ButtonBarLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/abc_alert_dialog_button_bar_material for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.widget.DialogTitle>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/abc_alert_dialog_material for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/abc_dialog_title_material for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.widget.ActionBarContainer>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.google.ad:layout/abc_screen_toolbar for configuration v21.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\abc_search_view.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/abc_search_view for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/notification_template_big_media for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/notification_template_big_media_narrow for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/notification_template_lines for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_media.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/notification_template_media for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <Chronometer>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/notification_template_part_chronometer for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <DateTimeView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/notification_template_part_time for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <CheckedTextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:drawableStart from <CheckedTextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_multichoice_material.xml: note: using v13 attributes; synthesizing resource com.google.ad:layout/select_dialog_multichoice_material for configuration v13.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <CheckedTextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <CheckedTextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:drawableStart from <CheckedTextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\appcompat-v7-23.1.1\res\layout\select_dialog_singlechoice_material.xml: note: using v13 attributes; synthesizing resource com.google.ad:layout/select_dialog_singlechoice_material for configuration v13.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:2: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <RelativeLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:61: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <RelativeLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <RelativeLayout>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:52: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:44: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentStart from <View>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml:10: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_audio_toggle.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/unityads_button_audio_toggle for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_pause.xml:8: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <View>
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_button_pause.xml: note: using v17 attributes; synthesizing resource com.google.ad:layout/unityads_button_pause for configuration v17.
E:\Ramon\Downloads\Temp\UnityAd MAD 3.0.3\UnityAd MAD 3.0.3\Temp\StagingArea\android-libraries\unity-ads\res\layout\unityads_view_video_play.xml:92: note: removing attribute http://sc<message truncated>

Senthilkumar Veeramuthu

unread,
Jun 28, 2016, 9:53:02 AM6/28/16
to Google Mobile Ads SDK Developers

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 28, 2016, 10:38:20 AM6/28/16
to Google Mobile Ads SDK Developers
Hi Ramon,

My apologies, as I have given you an older build, which had this known issue. Here is the latest one, which integrates most of the Reward Interstitial mediation, including Unity Ads and you would be able to test with your Ad Unit ID. If you are unable to receive ads, then there must be an issue with your Ad Unit ID. In that case, you can send us your Ad Unit ID for us to look into it.

Thanks,
Veer Busani
Mobile Ads SDK Team

Ramon Amorim

unread,
Jun 28, 2016, 9:03:49 PM6/28/16
to Google Mobile Ads SDK Developers
Thanks for the updated version, but the same thing keeps happening to me.

It asks me if I want to update play-services-ads version 9.0.2 to 9.2.0 and after that, as to update play-services-basement 9.0.2 to 9.2.0

No matter if I click "keep" or "ok" the project "corrupts" itself. It fails to build after that. It says "Unable to convert classes into dex format" during the "Converting java.class to dex-format" build phase.

There are in fact 2 errors in the error log:

CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
C:/Program Files/Java/jdk1.8.0_77\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/android sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar"

and

Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
C:/Program Files/Java/jdk1.8.0_77\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/android sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar"

Ramon Amorim

unread,
Jun 29, 2016, 4:13:35 AM6/29/16
to Google Mobile Ads SDK Developers
Just an update. I've uninstalled Unity and installed it again, now everything is working! Don't know why is working, but it is.

The thing is, it's working only on Android. Do you also have an example of a running project in iOS?

Thanks.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 29, 2016, 10:49:34 AM6/29/16
to Google Mobile Ads SDK Developers
Hi Ramon,

You can use the same sample app and switch to iOS platform (File > Build Settings) and Build. This would generate an Xcode project. Open the .xcworkspace, make sure the Mobile Ads pod is installed and then in your Build Settings - 
  • Set Enable Modules (C and Objective-C) to Yes in Build Settings.
  • Add $(inherited) to Other Linker Flags in Build Settings
Thanks,
Veer Busani
Mobile Ads SDK Team

Ramon Amorim

unread,
Jun 29, 2016, 1:57:20 PM6/29/16
to Google Mobile Ads SDK Developers
Thanks again for the fast answer.

And sorry, I failed to be clear in my previous post. What I wanted to say is that Interstitial Ads and Banner Ads are already working in iOS, but it is not showing Unity Ads through admob mediation. It seems that some required files for Unity Ads to work on iOS are missing on the sample.

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 29, 2016, 3:53:45 PM6/29/16
to Google Mobile Ads SDK Developers
Hi Ramon,

Once Unity generates the Xcode project, you need to copy over UnityAd framework and its adaptor into the build. The Mobile Ads SDK would automatically find the adaptor and initialize the UnityAd SDK when an UnityAd is requested.

Thanks,
Veer Busani
Mobile Ads SDK Team

Ramon Amorim

unread,
Jun 29, 2016, 8:00:32 PM6/29/16
to Google Mobile Ads SDK Developers
I did all of that, but I'm getting the following response from xCode's log:

"<Google> Cannot find an ad network adapter with the name(s): com.google.ads.mediation.unity.UnityAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target."

Know what may be causing this?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jun 30, 2016, 11:53:16 AM6/30/16
to Google Mobile Ads SDK Developers
Hi Ramon,

It could mean that -
  • You have not placed your adaptor in the right directory. In the Unity Xcode build, make sure that the UnityAd adaptor - libAdapterUnity.a file is copied in the Libraries folder and also that you add it to the main projects target. See the attached screenshot for reference.
  • You might be using an Android Ad Unit ID for iOS. Ad Unit IDs are platform specific and make sure that you are not doing this. You can send us your Ad Unit ID for us to look into the issue as well.
Let us know if that helps!

Thanks,
Veer Busani
Mobile Ads SDK Team
Unity Ad ex.png

Ramon Amorim

unread,
Jul 1, 2016, 4:55:25 AM7/1/16
to Google Mobile Ads SDK Developers
Thanks for the help man! You are a life savior. Everything is working now.

My next step is to add more ad networks into the mediation. Hope you can help me in the near future if I need it (probably I will)

Thanks.

marke...@gmail.com

unread,
Jul 5, 2016, 9:32:35 AM7/5/16
to Google Mobile Ads SDK Developers
hi,
quick question, when i integrate 2 or more sdk's from different ad networks (chartboost, adcolony...) and use mediation, do i "show ads" from all sdk's and the mediation decides what to show? how does this work exactly? does admob request for the ads and orders it by ecpm..? 

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 6, 2016, 12:18:08 PM7/6/16
to Google Mobile Ads SDK Developers
Hi there,

Let's say that you have a few Mediation networks all competing for an ad slot. When you make an AdRequest, the network with the higher eCPM value would usually qualify for the ad slot. If you have equal eCPM floor value for all of your Ad Networks, then all these networks would get an equal chance to compete. You can read more about eCPM values and Ad Network Optimization to understand this.

Thanks
Veer Busani
Mobile Ads SDK Team

marke...@gmail.com

unread,
Jul 7, 2016, 1:14:29 AM7/7/16
to Google Mobile Ads SDK Developers
hi
thanks, yes that part was clear however i wasn't sure how it would work inside the code, if all ads are firing together..got it to work though, so testing it now.

marke...@gmail.com

unread,
Jul 7, 2016, 1:26:25 AM7/7/16
to Google Mobile Ads SDK Developers
btw, the ads on admon are stuck on status pending for 2 days now, why is this?

Veer Arjun Busani(Mobile Ads SDK Team)

unread,
Jul 7, 2016, 2:36:43 PM7/7/16
to Google Mobile Ads SDK Developers
Hi there,

You would have to confirm with the AdMob Product Help Center team for this. However, this must not be affecting your ad serving in anyway as it's more related to the eCPM values being reported with the Mediation network.

Thanks,
Veer Busani
Mobile Ads SDK Team

Eyal Rosenhek

unread,
Jul 10, 2016, 2:55:59 AM7/10/16
to Google Mobile Ads SDK Developers
will do. thanks.
Reply all
Reply to author
Forward
0 new messages