Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@crowdnautics/react-native-apple-search-ads-attribution

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

@crowdnautics/react-native-apple-search-ads-attribution

Reads Apple Search Ads Attribution API in iOS

    1.0.2latest

Version published
Maintainers
1
Yearly downloads
9,020
increased by688.46%

Weekly downloads

Readme

Source

Apple Search Ads Attribution API for React Native

Requirements

  • iAd Framework

Getting started

$ yarn add @crowdnautics/react-native-apple-search-ads-attribution

Additional Required Manual installation

iOS

  1. In XCode, follow the instructions to add the iAd framework
  2. Add the line pod 'RNAppleAdsAttribution', :path => '../node_modules/@crowdnautics/react-native-apple-search-ads-attribution/RNAppleAdsAttribution.podspec' to your Podfile
  3. cd ios && pod install && cd ..
  4. Run your project

Usage

import AppleAdsAttribution from '@crowdnautics/react-native-apple-search-ads-attribution'; let attributionData = AppleAdsAttribution.getAttributionData();

Documentation

getAttributionData()

Gets install attribution data from the Apple Search Ads Attribution API.

Examples
AppleAdsAttribution.getAttributionData().then(attributionData => { console.log(attributionData); // { // “Version3.1”: { // “iad-attribution”: true, // “iad-org-name”: “Light Right”, // “iad-campaign-id”: 15292426, // “iad-campaign-name”: “Light Bright Launch”, // “iad-purchase-date”: “2016-10-14T17:18:07Z”, // “iad-conversion-date”: “2016-10-14T17:18:07Z”, // “iad-conversion-type”: “Download”, // “iad-click-date”: “2016-10-14T17:17:00Z”, // “iad-adgroup-id”: 15307675, // “iad-adgroup-name”: “LightRight Launch Group”, // “iad-keyword”: “light right”, // “iad-keyword-matchtype”: “Broad” // } });
Notes

If you receive an empty object, wait a few seconds and try again

Test values (mirroring the example above) will be sent when using a iOS simulator

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc