在Adobe AIR中使用搜索广告归因API

时间:2016-10-17 10:18:44

标签: ios actionscript-3 unity3d air iad

我正在尝试在Adobe AIR Or Unity中工作的http://searchads.apple.com/help/measure-results/#attribution-api处获取搜索广告归因API代码。

我正在复制以下代码:

    // Check for iOS 10 attribution implementation
if ([[ADClient sharedClient] respondsToSelector:@selector(requestAttributionDetailsWithBlock:)]) { 
NSLog(@"iOS 10 call exists"); 
[[ADClient sharedClient] requestAttributionDetailsWithBlock:^(NSDictionary *attributionDetails, NSError *error) { 
// Look inside of the returned dictionary for all attribution details
NSLog(@"Attribution Dictionary: %@", attributionDetails); 
}];
}

Here’s the response object (version 3.1) from attribution API that contains campaign hierarchy details, bided keyword, download date and click date.

{
"Version3.1" = { 
"iad-attribution" = true;
"iad-campaign-id" = 15292426; 
"iad-campaign-name" = “Light Bright Launch"; 
“iad-conversion-date" = “2016-06-14T17:18:07Z";
"iad-click-date" = “2016-06-14T17:17:00Z";
"iad-group-id" = 15307675; 
"iad-adgroup-name" = "LightRight Launch Group"; 
“iad-keyword” = “light right”; 
}; 
}

如何在Adobe AIR中使用此功能? milkmangames iAd库是否支持此功能?

我也提到了这个链接:https://medium.com/@requestlabs/implementing-apple-search-ads-tracking-attribution-6e3966afdf91#.ra6ktweua 我无法弄清楚如何在Adobe Air OR Unity中使用Search Ads Attribution api。有没有可以提供帮助的插件或库?

谢谢, NISHANT

1 个答案:

答案 0 :(得分:0)

您可以查看我的博文,了解我如何设置Apple Search Ads Attribution API for tracking installs by keywords作为一个良好的起点。

我还开发了一个开源SDK,在https://github.com/kitefaster/kitemetrics_iOS实现了Attribution API。您可以查看那里的代码,看看是否有帮助。您还可以将SDK安装为CocoaPod或框架,然后将其连接到http://kitemetrics.com/的云服务。