|
6 | 6 | findNodeHandle,
|
7 | 7 | ViewPropTypes,
|
8 | 8 | } from 'react-native';
|
9 |
| -import { string, func, arrayOf } from 'prop-types'; |
| 9 | +import { string, func, arrayOf, bool, object, shape, instanceOf, oneOf, number } from 'prop-types'; |
10 | 10 |
|
11 | 11 | import { createErrorFromErrorData } from './utils';
|
12 | 12 |
|
@@ -119,6 +119,62 @@ PublisherBanner.propTypes = {
|
119 | 119 | onAdViewDidDismissScreen: func,
|
120 | 120 | onAdViewWillLeaveApplication: func,
|
121 | 121 | onAdmobDispatchAppEvent: func,
|
| 122 | + |
| 123 | + targeting: shape({ |
| 124 | + /** |
| 125 | + * Arbitrary object of custom targeting information. |
| 126 | + */ |
| 127 | + customTargeting: object, |
| 128 | + |
| 129 | + /** |
| 130 | + * Array of exclusion labels. |
| 131 | + */ |
| 132 | + categoryExclusions: arrayOf(string), |
| 133 | + |
| 134 | + /** |
| 135 | + * Array of keyword strings. |
| 136 | + */ |
| 137 | + keywords: arrayOf(string), |
| 138 | + |
| 139 | + /** |
| 140 | + * When using backfill or an SDK mediation creative, gender can be supplied |
| 141 | + * in the ad request for targeting purposes. |
| 142 | + */ |
| 143 | + gender: oneOf(['unknown', 'male', 'female']), |
| 144 | + |
| 145 | + /** |
| 146 | + * When using backfill or an SDK mediation creative, birthday can be supplied |
| 147 | + * in the ad request for targeting purposes. |
| 148 | + */ |
| 149 | + birthday: instanceOf(Date), |
| 150 | + |
| 151 | + /** |
| 152 | + * Indicate that you want Google to treat your content as child-directed. |
| 153 | + */ |
| 154 | + childDirectedTreatment: bool, |
| 155 | + |
| 156 | + /** |
| 157 | + * Applications that monetize content matching a webpage's content may pass |
| 158 | + * a content URL for keyword targeting. |
| 159 | + */ |
| 160 | + contentURL: string, |
| 161 | + |
| 162 | + /** |
| 163 | + * You can set a publisher provided identifier (PPID) for use in frequency |
| 164 | + * capping, audience segmentation and targeting, sequential ad rotation, and |
| 165 | + * other audience-based ad delivery controls across devices. |
| 166 | + */ |
| 167 | + publisherProvidedID: string, |
| 168 | + |
| 169 | + /** |
| 170 | + * The user’s current location may be used to deliver more relevant ads. |
| 171 | + */ |
| 172 | + location: shape({ |
| 173 | + latitude: number, |
| 174 | + longitude: number, |
| 175 | + accuracy: number, |
| 176 | + }), |
| 177 | + }), |
122 | 178 | };
|
123 | 179 |
|
124 | 180 | const RNDFPBannerView = requireNativeComponent('RNDFPBannerView', PublisherBanner);
|
|
0 commit comments