Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve outbound requests info #33

Merged
merged 3 commits into from
Dec 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,12 @@ npx react-native run-android

## Configure outbound requests

Before requesting ads, you must tell the AdMob network what type of content you'd wish to receive based on your target
audience.
If the default ad settings are not correct for your app, you can provide settings that will apply to all ad requests.

For example, if the application targets children then you must configure the outbound requests to only
receive content suitable for children before loading any adverts.

To set the request configuration, call the `setRequestConfiguration` method:
If you need to set a custom request configuration, you must call the `setRequestConfiguration` method before requesting ads:

```js
import admob, { MaxAdContentRating } from '@invertase/react-native-google-ads';
Expand Down