In the Expo Client, all of your Facebook API calls will be made with Expo's Facebook App ID. This means you will not see any related ad info in your Facebook developer page while running your project in the Expo Client.
To use your app's own Facebook App ID (and thus see any related ad info in your Facebook developer page), you'll need to build a standalone app.
Development vs Production
When using Facebook Ads in development, you'll need to register your device to be able to show ads. You can add the following at the top of your file to register your device:
Interstitial Ad is a type of ad that displays a full-screen modal dialog with media content. It has a dismiss button as well as a touchable area that takes the user outside of your app to the advertised content.
The method returns a promise that will be rejected when an error occurs during a call (e.g. no fill from ad server or network error) and resolved when the user either dimisses or interacts with the displayed ad.
Native ads can be customized to match the design of your app. To display a native ad, you need to:
1. Create NativeAdsManager instance
The NativeAdManager is responsible for fetching and caching ads as you request them.
placementId - which is a unique identifier describing your ad units
numberOfAdsToRequest - which is a number of ads to request by ads manager at a time
2. Wrap your component with withNativeAd HOC
Next, you need to wrap the component you want to use to show your add with the withNativeAd higher-order component. The wrapped component will receive a prop named nativeAd, which you can use to render an ad.
If you want, you can optionally pass two other callback properties — onAdLoaded and onError.
onAdLoaded will be called once an ad is fetched and provided to your component (the nativeAd property introduced in step 2.) The one and only argument with which the function will be called will be the native ad object.
onError will be called if the Audience framework encounters an error while fetching the ad. The one and only argument with which the function will be called will be an instance of Error.
A wrapper for FBNativeAdsManager. It provides a mechanism to fetch a set of ads and use them.
By default the native ads manager will refresh its ads periodically. This does not mean that any ads which are shown in the application's UI will be refreshed, but requesting next native ads to render may return new ads at different times.
This controls which media from the native ads are cached before being displayed. The default is to not block on caching.