Hi Adnan,
Thank you for reaching out to us, and for giving us an extensive rundown of your concerns.
I tried building our sample project using the native ads version of the AdMob SDK on Unity 2019.1.0f2, and can confirm that I was able to build the APK successfully. Kindly see attached screenshot for the Project Settings used.
With this in mind, could you kindly send a copy of your sample project with the issue reproduced (via Reply privately to author) so that I can investigate this issue further?
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi Adnan,
Thank you for providing additional details on your concern.
I can confirm that the generated file (GoogleMobileAds2.cpp) does in fact contain iOS-specific code, despite having been created for an Android-specific build, thus causing the compilation error. However, I'm afraid that I will be needing a copy of your sample project (that replicates this issue), as well as any special building instructions if any, in order to move forward with the investigation for our Engineering team. To that end, feel free to send the requested details via Reply privately to author once you are able to do so.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi Adnan,
Thank you for providing the requested details in private. Those have proven very helpful in the investigation.
I was able to successfully build the project you've provided using Unity 2019.1.0f2 and android-ndk-r16b for the Android NDK. I will be sending back your sample project to you (along with the APK built, titled out.apk) on a separate private email to confirm this on your end. Could you try building the project that I'll be sending and see if it would build successfully? If the situation persists, you may try either re-importing the AdMob SDK for native ads, or using a newer version of the Android NDK before building again.
Let us know how it goes.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
I am facing a similar problem while using native unified ads plugin, everything is working fine in mono and il2cpp builds until i use a key-store to sign the .apk.
Hi Ali,
Thank you for reaching out to us.
Could you kindly provide the details below (via Reply privately to author) so that I can investigate the issue?
You may zip the entire Unity project (excluding the Library and Temp folders) in order to reduce its size, then send it to me via a shareable link from your Google Drive (or on any other file-sharing site that you prefer). Don't forget to send the shareable link via Reply privately to author.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team