Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Reads Apple Search Ads Attribution API in iOS

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
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

  • In XCode, follow the instructions to add the iAd framework
  • Add the line pod 'RNAppleAdsAttribution', :path => '../node_modules/@crowdnautics/react-native-apple-search-ads-attribution/RNAppleAdsAttribution.podspec' to your Podfile
  • cd ios && pod install && cd ..
  • 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

react-native

FAQs

Package last updated on 06 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts