1.1.0 • Published 2 years ago

facebook-ads v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


initialize(...)

initialize(options: AdMobInitializationOptions) => Promise<void>

Initialize AdMob with AdMobInitializationOptions

ParamTypeDescription
optionsAdMobInitializationOptionsAdMobInitializationOptions

Since: 1.1.2


trackingAuthorizationStatus()

trackingAuthorizationStatus() => Promise<any>

Confirm requestTrackingAuthorization status (iOS >14)

Returns: Promise<any>

Since: 3.1.0


Interfaces

AdMobInitializationOptions

PropTypeDescriptionDefaultSince
requestTrackingAuthorizationbooleanUse or not requestTrackingAuthorization in iOS(>14)1.1.2
testingDevicesstring[]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
initializeForTestingbooleanIf set to true, the devices on {@link AdMobInitializationOptions.testingDevices} will be registered to receive test production ads.false1.2.0
tagForChildDirectedTreatmentbooleanFor purposes of the Children's Online Privacy Protection Act (COPPA), there is a setting called tagForChildDirectedTreatment.3.1.0
tagForUnderAgeOfConsentbooleanWhen 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
maxAdContentRatingMaxAdContentRatingWAs 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

MembersValueDescription
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.