Integrating Google Ads?

#1

Got a question about Google Ads:

I found a plugin for AdMobs, but do you have some easier way to implement Google Ad accounts? The plugin I found doesn’t seem to be working.

I tried using https://github.com/sbugert/react-native-admob

I put the actual tag code with our ID and nothing loaded. I’m not sure where or if I’m supposed to use the top installation directions at all.

Google Ads / Admob isn’t built in to Expo yet. And it requires native code to work, so for now, you’ll need to detach/eject to ExpoKit to be able to use Google Ads

https://docs.expo.io/versions/v15.0.0/guides/detach.html

In general, if you see ios/ and android/ code folders in a project on Github or the README says to react-native-link, you’ll need to use ExpoKit.

Until we add Google Ads / Admob into Expo, you’ll have to use ExpoKit to use them. In the meantime, we already have support for Facebook Ads if those would work for you instead.
https://docs.expo.io/versions/v15.0.0/sdk/facebook-ads.html

Good luck!

#2

It would be nice to have both Facebook and Google’s complete SDK so custom integrations can be made with Javascript.

#3

Not sure if it is true, but it seems that Expo works closer with Facebook so that Google AdMob is some what low priority… Just my guessing, LOL.

#4

it seems that Expo works closer with Facebook so that Google AdMob is some what low priority

We implemented Facebook Ads first because that’s what more developers were asking for. We don’t give Facebook’s business any preference over Google’s and no one from Facebook asked us to add Facebook Ads. It was also possible to add support for Facebook Ads without significantly increasing our app size.

There is a feature request for AdMob support you can up vote here: https://expo.canny.io/feature-requests/p/google-admob.