unity Native Ads Advanced not work,pls help!

1,171 views
Skip to first unread message

chaof...@gmail.com

unread,
Apr 17, 2018, 1:44:13 AM4/17/18
to Google Mobile Ads SDK Developers
follow this to config my game:https://developers.google.com/admob/unity/native-advanced#demo
and i can load native ads and get the asset suc,but when i regist object,it log me "suc",but log a error and can not stop
the error is:


and my source code is:



mobileadssdk-a...@google.com

unread,
Apr 17, 2018, 6:46:43 AM4/17/18
to chaof...@gmail.com, Google Mobile Ads SDK Developers
Hi,

Since we don't have a readily available Unity sample app for Native Advanced Ads, I created this modified sample app just for the purpose of debugging your issue. This sample app just contains a "Request Native Ad" button that will send an Ad request for Native App Install Ad and will just display the headline text. In this sample app, I was able to register the GameObject for headline ad asset successfully and log the boolean result of registering the GameObject for headline ad asset without encountering any crashes or exceptions.

Based on the error log you've captured, particularly the NullReferenceException, you seem to be accessing a method or property of a reference that is null. Given that you were able to load the native ad, get the native ad assets and log the result of registering the ad assets, then there might be something else in your code that is triggering the exception. 
 
For us to further check on this, could you provide to us a miniature sample app where you can reproduce the exception encountered? You may share this to us privately using the Reply privately to author option?

Regards,
Ivan Bautista
Mobile Ads SDK Team

chaof...@gmail.com

unread,
Apr 17, 2018, 11:54:42 PM4/17/18
to Google Mobile Ads SDK Developers
ok,tks very much,i test and comprare your code,i found the problem is my camera tag is "untagged",and i change it to "Maincamera",the problem is solve,tks!

在 2018年4月17日星期二 UTC+8下午6:46:43,mobileadssdk-a...@google.com写道:

Spirit Apps

unread,
May 8, 2018, 12:42:03 AM5/8/18
to Google Mobile Ads SDK Developers
Hi Ivan,
 Is there a way to use Native Advance Ads without using mainCamera Tag on Camera rendering Advance Banner ad?
Because in unity when we use native advance ads with out  MainCamera tag it dont take click on banner.
Thanks.

mobileadssdk-a...@google.com

unread,
May 8, 2018, 6:22:42 AM5/8/18
to Spirit Apps, Google Mobile Ads SDK Developers
Hi,

As per this code sample, you don't necessarily need to use MainCamera to display Native Advance Ads. Additionally, you may use this modified sample app as reference on how GameObjects are used to display Native Ad assets. However, the modified sample app just shows you how you can register and display the headline ad asset and not the other native ad assets but this should be relatively similar to the others.

Logic Rack

unread,
Jun 25, 2018, 8:02:55 AM6/25/18
to Google Mobile Ads SDK Developers
Hi 
Can You Send me Native Add Advance unity Sample Project? 

mobileadssdk-a...@google.com

unread,
Jun 26, 2018, 1:44:07 AM6/26/18
to Logic Rack, Google Mobile Ads SDK Developers
Hi,

I'm afraid we don't have a readily available Unity sample project for Native Advanced Ads. 

For now, I suggest that you refer to our sample code on how you can retrieve the native ad assets and register the GameObject to use to display the asset within the Unity app. This should be relatively similar to all native ad assets.

In addition, you can try to play around with this modified sample app for testing purposes. The modifed sample app only implements retrieval and displaying of the headline ad asset but it's a good starting point to get familiar with the code implementation.

Syed Muhammad Umair

unread,
Oct 22, 2018, 9:03:50 AM10/22/18
to Google Mobile Ads SDK Developers
I have created native ad UI using Raw Images & Text components of Unity GUI, it has been loaded successfully. But I am unable to click on the ad. Any leads, what could be the issue?
One issue could be, I have created dummy camera which has no purpose in the scene but to avoid null reference exception, thrown by UnityEngine.GeometryUtility.CalculateFrustumPlanes due to some internal calling of the admob SDK.
PS. I have registered my raw images and Texts using native ads' register methods.

Syed Muhammad Umair

unread,
Oct 30, 2018, 6:38:47 AM10/30/18
to Google Mobile Ads SDK Developers
Solved it by switching my canvas to screen space - camera.

Avinash

unread,
Aug 23, 2019, 7:37:07 AM8/23/19
to Google Mobile Ads SDK Developers
Hi 

Can you please send me Native Ads Advanced (Unified) unity Sample Project? 

Mobile Ads SDK Forum Advisor Prod

unread,
Aug 23, 2019, 2:52:08 PM8/23/19
to outthi...@gmail.com, google-adm...@googlegroups.com
Hello there,

We would suggest that you first import the Native Ads Unity plugin to integrate Native Advanced ads into Unity. You can go over the guidelines here  and let us know if you are stuck with any specific issue so that we can take a look at your sample project which you have implemented and can assist you further.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UHEU50:ref
Message has been deleted

Vu ha Vi

unread,
Nov 19, 2019, 10:56:04 AM11/19/19
to Google Mobile Ads SDK Developers
Hello.

i am creating native ads advanced.
But, my native dont foward when click to button, and no show image. Please help me fix it.

Screen Shot 2019-11-19 at 10.54.40 PM.png

Screen Shot 2019-11-19 at 10.54.33 PM.png

Screen Shot 2019-11-19 at 10.53.34 PM.png



Vào 12:44:13 UTC+7 Thứ Ba, ngày 17 tháng 4 năm 2018, chaof...@gmail.com đã viết:

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 19, 2019, 5:10:54 PM11/19/19
to vuha...@gmail.com, google-adm...@googlegroups.com
Hello Vu,

Thanks for reaching out to us. I'm not sure I understand your issue here. Could you please elaborate the issue and share a sample project with your implementation for us to take a look? You can use "Reply Privately to Author" option to share the details privately. You can also go through our samples and cross check your implementation as well. 


Regards,
Deepika Uragayala
Mobile Ads SDK Team

 

ref:_00D1U1174p._5001UOCdyD:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 20, 2019, 3:59:14 PM11/20/19
to vuha...@gmail.com, google-adm...@googlegroups.com
Hello Vu,

Thanks for explaining. This looks like an implementation issue to us. Please share a minified sample app with your implementation for us to take a look and help you out. Please provide us a sample project in a zip file or paste your code snippets here or in a text file  and share it with us via "Reply Privately to Author" option as it will be difficult for us to go through the code from the screenshots and debug the issue. Also, please go through our documentation and check if you are missing something from the steps mentioned in the implementation. 

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 25, 2019, 4:36:28 PM11/25/19
to vuha...@gmail.com, google-adm...@googlegroups.com
Hello there,

Thanks for sharing the script. I don't see any particular issue from the code snippets. Can you please capture the complete device logs when you happen to see the issue that you have described when you try to load an ad? Can you also please add more details about implementation, like if you are using any other Ad networks or third party SDKs in your app along with this? Can you also make sure that you are on the latest version of the native plugin and try again. 

Mobile Ads SDK Forum Advisor Prod

unread,
Nov 26, 2019, 3:45:32 PM11/26/19
to vuha...@gmail.com, google-adm...@googlegroups.com
Hello there,

You can try with our sample app for testing purposes that we have used and see if you are able to load an ad. Make sure that you are on the latest version of the Unity SDK and also our plugin. 
Reply all
Reply to author
Forward
0 new messages