Skip to content

Commit

Permalink
docs: improve outbound requests info (#33)
Browse files Browse the repository at this point in the history
* docs: improve outbound requests info

Co-authored-by: Mike Hardy <[email protected]>
  • Loading branch information
dylancom and mikehardy authored Dec 11, 2021
1 parent 0770c96 commit 7c4812b
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit 7c4812b

Please sign in to comment.