RE: [google-admob-ads-sdk] Ad Manager - DFP doesn't render the Ad and throws a Javascript exception

771 views
Skip to first unread message
Message has been deleted

mobileadssdk-a...@google.com

unread,
Dec 7, 2018, 4:14:31 AM12/7/18
to Sandeep Perla, Google Mobile Ads SDK Developers
Hi Sandeep,

I have to delete your previous post as it contains your Ad Unit Ids which are considered as confidential information. Please avoid posting these information in the public forums.

That said, below is a copy of your original post with the Ad Unit Ids removed.

Hi, I am getting the below error response when rendering a DFP Ad (this error log is continuous) 
Note: This error is seen in majority of devices (but some devices render the Ad without any problem) - All devices in the same network.

2018-12-06 14:00:28.923 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585820/skeleton.js:845)
2018-12-06 14:00:28.928 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585820/skeleton.js:845)
2018-12-06 14:00:28.944 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585820/skeleton.js:845)
2018-12-06 14:00:28.958 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585771/skeleton.js:845)
2018-12-06 14:00:28.964 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585771/skeleton.js:845)
2018-12-06 14:00:28.973 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585820/skeleton.js:845)
2018-12-06 14:00:28.978 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585820/skeleton.js:845)
2018-12-06 14:00:28.992 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585820/skeleton.js:845)
2018-12-06 14:00:29.013 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585771/skeleton.js:845)
2018-12-06 14:00:29.013 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585771/skeleton.js:845)
2018-12-06 14:00:29.016 11390-11390/com.sportswire.newsapp E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/194716/29585820/skeleton.js:845)



Regards,
Ivan Bautista
Mobile Ads SDK Team

mobileadssdk-a...@google.com

unread,
Dec 7, 2018, 4:15:39 AM12/7/18
to Sandeep Perla, Google Mobile Ads SDK Developers
Hi Sandeep,

Thank you for reaching out to us and providing the details of your concern.

I tested your Ad Unit Ids on my Nexus 5x device and I was able to load ads but I didn't see the Javascript exception logs you've captured. 

However, I will check this with the rest of the team and I will get back to you for any feedback.

Regards,
Ivan Bautista
Mobile Ads SDK Team



Jussi Oliveira

unread,
Feb 27, 2019, 10:02:16 AM2/27/19
to Google Mobile Ads SDK Developers
I found the same problem here but not for every ad though. 
I see the same  advEntityId: '170816' in all cases. Could it be responsibility of the advertiser? How to proceed in that case?
Is there something we can do from the app side to prevent this loop and possible ANRs?

2019-02-27 15:18:55.184 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)
2019-02-27 15:18:55.186 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)
2019-02-27 15:18:55.187 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)
2019-02-27 15:18:55.235 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)
2019-02-27 15:18:55.285 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)
2019-02-27 15:18:55.336 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)
2019-02-27 15:18:55.387 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)
2019-02-27 15:18:55.435 21928-21928/? E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/170816/31320631/skeleton.js:850)

mobileadssdk...@google.com

unread,
Feb 27, 2019, 7:09:44 PM2/27/19
to Jussi Oliveira, Google Mobile Ads SDK Developers
Hi Jussi,

Thank you for your feedback.

Could you confirm what SDK version were you using when you encountered these JS exceptions?

Regards,
Ivan Bautista
Mobile Ads SDK Team



--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/b70101cb-0328-4466-9cbf-1ff08113e694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jussi Barros

unread,
Feb 28, 2019, 1:36:31 AM2/28/19
to Google Mobile Ads SDK Developers
Hi Ivan,

Thank you for your quick reply. 
The SDK version I am using is 17.1.1

Kind regards,
Jussi

mobileadssdk...@google.com

unread,
Feb 28, 2019, 5:58:22 AM2/28/19
to Jussi Barros, Google Mobile Ads SDK Developers
Hi Jussi,

Thanks for the information.

I will check this with the team and get back to you for any feedback.

Regards,
Ivan Bautista
Mobile Ads SDK Team



--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

Alexander Kasyanenko

unread,
Mar 8, 2019, 6:45:33 AM3/8/19
to Google Mobile Ads SDK Developers
minSdkVersion 21
targetSdkVersion 28
implementation 'com.google.firebase:firebase-ads:17.1.3'
E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/102609/31997365/skeleton.js:850)
I/chromium: [INFO:CONSOLE(850)] "Uncaught TypeError: Cannot read property 'getElementsByTagName' of null", source: https://pixel.adsafeprotected.com/rjss/st/102609/31997365/skeleton.js (850)
E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/102609/31997365/skeleton.js:850)
I/chromium: [INFO:CONSOLE(850)] "Uncaught TypeError: Cannot read property 'getElementsByTagName' of null", source: https://pixel.adsafeprotected.com/rjss/st/102609/31997365/skeleton.js (850)
E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/102609/31997365/skeleton.js:850)
I/chromium: [INFO:CONSOLE(850)] "Uncaught TypeError: Cannot read property 'getElementsByTagName' of null", source: https://pixel.adsafeprotected.com/rjss/st/102609/31997365/skeleton.js (850)

mobileadssdk...@google.com

unread,
Mar 11, 2019, 3:23:10 PM3/11/19
to Alexander Kasyanenko, Google Mobile Ads SDK Developers
Hi,

I'm seeing an error with IAS, specifically, skeleton.js (screenshot attached) which is what's causing the ad to fail. We've recently seen issues related to this, and IAS was able to fix it on their end. If you can reach out to them, they should know exactly how to solve this for you.

The internal team advised:

"The issue had to do with how IAS was handling its interaction with skeleton.js, IAS switched their Firewall (agency_ ags to use document.append instead of document.write and that resolved the issue."

Regards

Sam

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
skeleton.js screenshot.png

KC Chan

unread,
Mar 26, 2019, 8:59:30 PM3/26/19
to Google Mobile Ads SDK Developers
I have the same problem. Some banners are fine, but most of the time, it just show JS: Uncaught TypeError: many many time. How can I solve this problem?

mobileadssdk...@google.com

unread,
Mar 27, 2019, 12:59:01 PM3/27/19
to KC Chan, Google Mobile Ads SDK Developers
Hi KC,

If it's the same issue (in skeleton.js), you need to reach out to IAS support as per my previous response.

If it's a different issue, can you please create a new thread and include a stack trace and details about the issue - SDK version, etc.

Regards

Sam


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Message has been deleted

Vlad Rusakov

unread,
Jun 5, 2019, 7:59:01 PM6/5/19
to Google Mobile Ads SDK Developers
Hi,
I have the same error:

E/Ads: JS: Uncaught TypeError: Cannot read property 'getElementsByTagName' of null (https://pixel.adsafeprotected.com/rjss/st/275443/36234236/skeleton.js:852)

Library version: 17.2.1
minSDK: 21
targetSDK: 28

I see the answer about IAS, is it IntegralAdSciense?

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 5, 2019, 10:28:55 PM6/5/19
to vladrus...@gmail.com, google-adm...@googlegroups.com

Hi Vlad,

Thank you for reaching out to us.

As per previous response from Sam, please reach out to IAS (Integral Ad Science) support regarding on this.

Regards,
Mark Albios
Mobile Ads SDK Team



ref:_00D1U1174p._5001UBllIm:ref
Reply all
Reply to author
Forward
Message has been deleted
0 new messages