You can always change the settings in the GUI and watch the changes in the terminal using:
dconf watch /
You will notice that there are 4 commands the 3 you already have to set name, binding, and command and a 4th that adds the command to an array:
/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding
'<Primary>1'
/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name
'test'
/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command
'test'
/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings
['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']
So to add your custom0 command to the array use this command and then it works
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"
Also, check this detailed answer on how to manipulate the array
https://askubuntu.com/a/597414