Setting Unity Services Project ID (UPID) at build time

How can I set the UPID of a project during builds? I have one code base (Unity project) that I would like to build out to two different mobile app. They shouldn’t share unity error reporting, analytics, or IAP.

It doesn’t make sense that I should navigate the menus from a build slave, and relink the UPID. Anything I can do programatically?

this a very common problem