facebook-ads
v1.1.0
Published
to create facebook ads this plugin will help...
Downloads
2
Readme
facebook-ads
to create facebook ads this plugin will help...
Install
npm install facebook-ads
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
initialize(...)
initialize(options: AdMobInitializationOptions) => Promise<void>
Initialize AdMob with AdMobInitializationOptions
| Param | Type | Description |
| ------------- | --------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
| options
| AdMobInitializationOptions | AdMobInitializationOptions |
Since: 1.1.2
trackingAuthorizationStatus()
trackingAuthorizationStatus() => Promise<any>
Confirm requestTrackingAuthorization status (iOS >14)
Returns: Promise<any>
Since: 3.1.0
Interfaces
AdMobInitializationOptions
| Prop | Type | Description | Default | Since |
| ---------------------------------- | ----------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ----- |
| requestTrackingAuthorization
| boolean | Use or not requestTrackingAuthorization in iOS(>14) | | 1.1.2 |
| testingDevices
| string[] | An Array of devices IDs that will be marked as tested devices if {@link AdMobInitializationOptions.initializeForTesting} is true (Real Ads will be served to Testing devices but they will not count as 'real'). | | 1.2.0 |
| initializeForTesting
| boolean | If set to true, the devices on {@link AdMobInitializationOptions.testingDevices} will be registered to receive test production ads. | false | 1.2.0 |
| tagForChildDirectedTreatment
| boolean | For purposes of the Children's Online Privacy Protection Act (COPPA), there is a setting called tagForChildDirectedTreatment. | | 3.1.0 |
| tagForUnderAgeOfConsent
| boolean | When using this feature, a Tag For Users under the Age of Consent in Europe (TFUA) parameter will be included in all future ad requests. | | 3.1.0 |
| maxAdContentRating
| MaxAdContentRating | WAs an app developer, you can indicate whether you want Google to treat your content as child-directed when you make an ad request. | | 3.1.0 |
Enums
MaxAdContentRating
| Members | Value | Description |
| ---------------------- | ------------------------------- | ----------------------------------------------------------- |
| General
| 'General' | Content suitable for general audiences, including families. |
| ParentalGuidance
| 'ParentalGuidance' | Content suitable for most audiences with parental guidance. |
| Teen
| 'Teen' | Content suitable for teen and older audiences. |
| MatureAudience
| 'MatureAudience' | Content suitable only for mature audiences. |