springboot 接收appsflyer 参数

发布时间:2023年12月28日

1、官网登陆:hq1.appsflyer.com

a、配置接收请求的地址和需要的事件


配置详情

2、Controller配置接收

    @RequestMapping(value = "/req", method = POST)
    @ResponseBody
    public ResData req(@RequestBody Map<String, String> map) {

        String jsonObject = JSONUtils.toJSONString(map);

        AppsFlyerLongEventAllContentParam appsFlyerLongEventAllContentParam = gson.fromJson(jsonObject, AppsFlyerLongEventAllContentParam.class);


return ResData.success();

}


public class AppsFlyerLongEventAllContentParam {

    /**
     * 苹果机器码
     */
    private String idfa;
    private String ip;
    private String dma;
    private String city;
    private boolean wifi;
    private String state;
    private String app_id;
    private String region;
    private String carrier;
    private String app_name;
    private String language;
    private String operator;
    private String platform;
    private String bundle_id;
    private String event_name;
    private String event_time;
    private String os_version;
    private String user_agent;
    private String api_version;
    private String app_version;
    private String event_value;
    private String postal_code;
    private String sdk_version;
    private String appsflyer_id;
    private String country_code;
    private String device_model;
    private String event_source;
    private String install_time;
    private String media_source;
    private String campaign_type;
    /**
     * android机器码
     */
    private String advertising_id;
    private String is_retargeting;
    private String conversion_type;
    private String device_category;
    private String customer_user_id;
    private String selected_currency;
    private String selected_timezone;
    private String device_download_time;
    private String event_revenue_currency;
    private String is_primary_attribution;
    private String event_time_selected_timezone;
    private String install_time_selected_timezone;
    private String device_download_time_selected_timezone;
    private String idfv;
    private String is_lat;
    private String att;
    private String app_type;

    private String af_ad_id;

    private String af_adset;


    private String af_adset_id;


    private String campaign;


}

文章来源:https://blog.csdn.net/rzrenyu/article/details/135265878
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。