lianshumin / flutter_asa_attribution

A apple search ads attribution plugin for flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_asa_attribution

A apple search ads attribution plugin for flutter

ios

1、Add the iAd Framework to Your Xcode Project

2、Add the AdServices Framework to Your Xcode Project

3、Add the AdSupport Framework to Your Xcode Project

4、Add the AppTrackingTransparency Framework to Your Xcode Project

Flutter

How to use

import 'package:flutter_asa_attribution/flutter_asa_attribution.dart';

String? token = await FlutterAsaAttribution.instance.attributionToken();

Map<String, dynamic>? data = await FlutterAsaAttribution.instance.requestAttributionDetails()

The following example shows the dictionary structure you receive when you call requestAttributionDetails

14.3 and higher

{
  "attribution": true,
  "orgId": 40669820,
  "campaignId": 542370539,
  "conversionType": "Download",
  "clickDate": "2020-04-08T17:17Z",
  "adGroupId": 542317095,
  "countryOrRegion": "US",
  "keywordId": 87675432,
  "creativeSetId": 542317136
}

It allows you to measure attribution for devices using iOS 10 and later, for users who do not have Limit Ad Tracking (LAT) enabled.

{ 
"Version3.1" = { 
"iad-attribution" = true; 
"iad-org-name" = "org name";
"iad-org-id" = "555555";
"iad-campaign-id" = "12345678"; 
"iad-campaign-name" = "campaign name"; 
"iad-purchase-date" = "2020-08-04T17:18:07Z" 
"iad-conversion-date" = "2020-08-04T17:18:07Z"; 
"iad-conversion-type" = "newdownload"; 
"iad-click-date" = "2020-08-04T17:17:00Z"; 
"iad-adgroup-id" = "12345678"; 
"iad-adgroup-name" = "adgroup name"; 
"iad-country-or-region" = "US"; 
"iad-keyword" = "keyword";
"iad-keyword-id" = "12345678";
"iad-keyword-matchtype" = "Broad";
"iad-creativeset-id" = "12345678";
"iad-creativeset-name" = "Creative Set name";
}

About

A apple search ads attribution plugin for flutter

License:MIT License


Languages

Language:Objective-C 43.9%Language:Dart 28.6%Language:Ruby 16.2%Language:Java 11.2%