{"id":21362059,"url":"https://github.com/kenmaca/react-native-apple-ads-attribution","last_synced_at":"2025-07-13T02:32:46.472Z","repository":{"id":53961383,"uuid":"153651772","full_name":"kenmaca/react-native-apple-ads-attribution","owner":"kenmaca","description":"A React Native module to get Apple Search Ads Attribution API on iOS","archived":false,"fork":false,"pushed_at":"2020-06-03T21:45:43.000Z","size":8,"stargazers_count":7,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-10T04:32:22.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenmaca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-18T16:07:38.000Z","updated_at":"2024-02-23T07:16:24.000Z","dependencies_parsed_at":"2022-08-13T05:20:36.540Z","dependency_job_id":null,"html_url":"https://github.com/kenmaca/react-native-apple-ads-attribution","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmaca%2Freact-native-apple-ads-attribution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmaca%2Freact-native-apple-ads-attribution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmaca%2Freact-native-apple-ads-attribution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenmaca%2Freact-native-apple-ads-attribution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenmaca","download_url":"https://codeload.github.com/kenmaca/react-native-apple-ads-attribution/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225850165,"owners_count":17534067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T06:13:18.516Z","updated_at":"2024-11-22T06:13:19.057Z","avatar_url":"https://github.com/kenmaca.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Apple Search Ads Attribution API for React Native\n\n## Requirements\n- iAd Framework\n\n## Getting started\n`$ yarn add react-native-apple-ads-attribution`\n\n### Manual installation\n#### iOS\n\n1. In XCode, [follow the instructions](https://searchads.apple.com/v/advanced/help/pdf/attribution-api.pdf) in Step 1 to add the iAd framework\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `react-native-apple-ads-attribution` and add `RNAppleAdsAttribution.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNAppleAdsAttribution.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project\n\n## Usage\n```javascript\nimport AppleAdsAttribution from 'react-native-apple-ads-attribution';\n\nlet attributionData = AppleAdsAttribution.getAttributionData();\n```\n\n## Documentation\n\n#### getAttributionData()\nGets install attribution data from the Apple Search Ads Attribution API.\n\n##### Examples\n```javascript\nAppleAdsAttribution.getAttributionData().then(attributionData =\u003e {\n  console.log(attributionData);\n\n  // {\n  //   “Version3.1”: {\n  //   “iad-attribution”: true,\n  //   “iad-org-name”: “Light Right”,\n  //   “iad-campaign-id”: 15292426,\n  //   “iad-campaign-name”: “Light Bright Launch”,\n  //   “iad-purchase-date”: “2016-10-14T17:18:07Z”,\n  //   “iad-conversion-date”: “2016-10-14T17:18:07Z”,\n  //   “iad-conversion-type”: “Download”,\n  //   “iad-click-date”: “2016-10-14T17:17:00Z”,\n  //   “iad-adgroup-id”: 15307675,\n  //   “iad-adgroup-name”: “LightRight Launch Group”,\n  //   “iad-keyword”: “light right”,\n  //   “iad-keyword-matchtype”: “Broad”\n  //   }\n});\n```\n\n##### Notes\n\u003e If you receive an empty object, wait a few seconds and try again\n\n\u003e Test values (mirroring the example above) will be sent when using a iOS simulator\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2018 Kenneth Ma, Freckle IOT\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmaca%2Freact-native-apple-ads-attribution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenmaca%2Freact-native-apple-ads-attribution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenmaca%2Freact-native-apple-ads-attribution/lists"}