https://github.com/vineyardbovines/react-native-nitro-apple-ad-attribution
Nitro module for Apple's AdServices Attribution API
https://github.com/vineyardbovines/react-native-nitro-apple-ad-attribution
Last synced: 6 months ago
JSON representation
Nitro module for Apple's AdServices Attribution API
- Host: GitHub
- URL: https://github.com/vineyardbovines/react-native-nitro-apple-ad-attribution
- Owner: vineyardbovines
- License: mit
- Created: 2025-03-21T13:28:20.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-21T14:12:18.000Z (7 months ago)
- Last Synced: 2025-03-21T14:45:58.043Z (7 months ago)
- Language: Swift
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-nitro-apple-ads
Nitro Module to access Apple's [AdServices Attribution](https://developer.apple.com/documentation/adservices/aaattribution) data.
## Installation
Works for React Native >=0.76.
```bash
npm install react-native-nitro-apple-ads
# peer dependencies
npm install react-native-nitro-modules
```If you're using Expo, you'll need to [create a development build](https://docs.expo.dev/develop/development-builds/create-a-build/).
## Usage
AAA requires a token to receive data; this module handles token generation and passing automatically.
```typescript
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](https://developer.apple.com/documentation/adservices/aaattribution/attributiontoken()) for more info on the attribution payload.