peekLocationMarketingApi
sdk#158 — the nullable counterpart of provideLocationMarketingApi.
marketingApi is assigned by setupLocationMarketingSdk, which runs from the asynchronous onCoreInitialized callback, so it is null for the first few seconds of every launch and for the whole of the super.onCreate() -> dispatchCreate() window in which the framework re-attaches restored fragments. It cannot be built earlier: it needs getInAppNotificationApi, which needs findViewById and therefore setContentView.