BLE_GAP_ADV_SET_DATA_SIZE_MAX is use din ble_advertising.h
This macro is defined in ble_gap.h for each softdevice - however not in the header for S332. Also ble_gap_adv_data_t is missing. I'me using the code below to work around the defect. Can you please confirm this code is correct?
#include <ble_gap.h>
#ifndef BLE_GAP_ADV_SET_DATA_SIZE_MAX
// Fix errors in SDK 15.0.0/S332
# define BLE_GAP_ADV_SET_DATA_SIZE_MAX 31
typedef struct
{
ble_data_t adv_data;
ble_data_t scan_rsp_data;
} ble_gap_adv_data_t;
#endif // BLE_GAP_ADV_SET_DATA_SIZE_MAX
#include <ble_advertising.h>