springboot 接收appsflyer 参数

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

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

springboot 接收appsflyer 参数_第1张图片
配置详情

2、Controller配置接收

    @RequestMapping(value = "/req", method = POST)
    @ResponseBody
    public ResData req(@RequestBody Map 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;


}

你可能感兴趣的:(spring,boot,java,后端)