There is a typo in the example code (Usage -> ###Submit a print job). The parameter "setting" must be named "settings".