问题描述:

I want to use react-native-fbads in my react-native app (I've never used facebookAds) for inserting an Interstitial Ads.

This is what I've done in one of my app component (after react-native install react-native-fbads):

import { InterstitialAdManager } from 'react-native-fbads';

constructor(props) {

InterstitialAdManager.showAd(XXXXX_XXXXX) // this is line 16

.then(didClick => {console.log("clicked")})

.catch(error => {console.log("error")})

}

but I keep get this error: Identifier directly after number(16:49).

My placementId has an underscore in the middle (i.e. 12345_6789), is it correct?

相关阅读:
Top