Hello,
The d_sid=traitID should qualify the device ID to the trait. How are you checking to make sure the device has qualified into the trait?
If you're reviewing the trait in the AAM UI, please note that this is updated once daily. I would recommend reviewing your traits in the UI the next day after testing.
Regards,
Shane