react-native-nitro-apple-ad-attribution
v0.1.0
Published
Nitro module for Apple AdServices Attribution API
Maintainers
Readme
react-native-nitro-apple-ads
Nitro Module to access Apple's AdServices Attribution data.
Installation
Works for React Native >=0.76.
npm install react-native-nitro-apple-ads
# peer dependencies
npm install react-native-nitro-modulesIf you're using Expo, you'll need to create a development build.
Usage
AAA requires a token to receive data; this module handles token generation and passing automatically.
import { NitroAppleAdAttribution } from "react-native-nitro-apple-ad-attribution";
const attributionData = await NitroAppleAdAttribution.getAdServicesAttributionData()
// {
// attribution: boolean
// orgId: number
// campaignId: number
// conversionType: string
// clickDate?: string // ISO
// adGroupId: number
// countryOrRegion: string
// keywordId: number
// adId: number
// }Refer to the API docs for more info on the attribution payload.
