If you come after reading google docs , note that the notation deliveryType.set("[ install-time | fast-follow | on-demand ]") is meaning that delivery type can be one of "install-time","fast-follow" or "on-demand" not strictly copy and paste the snippet, google docs is a little bit ambiguous