在以下步骤中,您可以使用现有服务账号,也可以创建新的服务账号。如果您要创建新的服务账号,请在 Service account name(服务账号名称)字段中指定服务账号的名称,并在 Service account ID(服务账号 ID)字段中指定服务账号 ID ,然后点击 Create and link(创建并关联)。如需了解创建服务账号的详细步骤,请参阅创建和管理服务账号。
如需关联您的服务账号,请执行以下操作:
在产品列表中,点击您的产品的名称。
在您产品的概览页面上,前往技术集成部分,然后点击结算集成。
如需与 Partner Procurement API 集成,请点击Link a service account to call Procurement API(关联服务账号以调用 Procurement API)下方的 Add service account(添加服务账号)。您可以在字段中输入现有的服务账号,也可以创建新的服务账号。
如需与 Pub/Sub 集成,请在 Link a service account to subscribe to Pub/Sub topic(关联服务账号以订阅 Pub/Sub 主题)下,点击 Add service account(添加服务账号)。您可以在字段中输入现有的服务账号,也可以创建新的服务账号。向您关联的服务账号授予 Pub/Sub 编辑器 Identity and Access Management (IAM) 角色。
如需与 Service Control API 集成,请点击向服务账号添加 roles/servicemanagement.serviceController 下的添加服务账号。您可以在字段中输入现有的服务账号,也可以创建新的服务账号。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Configure your app's backend\n\nThis section describes the steps to integrate your app's backend with\nCloud Marketplace. With this integration, you can manage users' accounts\nand *entitlements*, which indicate that users have bought your product from\nCloud Marketplace. If you chose a usage-based pricing model, you also\nintegrate your backend to report usage to Google.\n\nFor an example of integrating a basic app with Cloud Marketplace and a\nwalkthrough of the sample code, see the\n[codelab to integrate a managed service](https://codelabs.developers.google.com/codelabs/gcp-marketplace-integrated-saas/#0).\n\nFor the sample code used in the codelab, see the\n[GitHub repository](https://github.com/googlecodelabs/gcp-marketplace-integrated-saas/).\n\nBefore you begin\n----------------\n\n- Set up access to the Cloud Commerce Partner Procurement API, as described in [Integrate your app](/marketplace/docs/partners/integrated-saas/technical-integration-setup).\n- If you chose a usage-based pricing scheme, verify that your Partner Engineer has created a service that you can report usage against. This service displays in the **Service domain** field of the [**Billing Integration** section](/marketplace/docs/partners/integrated-saas/backend-integration#backend-integration) of Producer Portal.\n\nAccess your app's backend integration in Producer Portal\n--------------------------------------------------------\n\nTo access all of the information you need to integrate your app's backend with\nCloud Marketplace from one location, such as your service accounts and plan\nlevel identifiers, you can use the **Billing integration** section of Producer\nPortal.\n\nThe direct link to Producer Portal is: \n\n```\nhttps://console.cloud.google.com/producer-portal?project=YOUR_PROJECT_ID\n```\n| **Note:** If you don't see the link, or can't access the URL, verify that you've selected the correct project. If you still can't access the URL, use the [Partner Support Desk](https://g.co/cloud/psd-partner) to request assistance, and include the word \"Marketplace\" in your description. For more information about Partner Support Desk, visit [Request assistance with Cloud Marketplace](/marketplace/docs/partners/get-support).\n\nTo access the **Billing integration** section:\n\n1. In the list of products, click the name of your product.\n\n2. From the **Overview** page of your product, go to the\n **Technical integration** section.\n\n3. In the **Technical integration** section, click **Billing integration**.\n\nCreate and link service accounts in Producer Portal\n---------------------------------------------------\n\nYou can use the **Billing integration** section of Producer Portal to create and\nlink the service accounts that you use to interact with the Partner APIs and to\nget information about users' purchases.\n\nThe direct link to Producer Portal is: \n\n```\nhttps://console.cloud.google.com/producer-portal?project=YOUR_PROJECT_ID\n```\n| **Note:** If you don't see the link, or can't access the URL, verify that you've selected the correct project. If you still can't access the URL, use the [Partner Support Desk](https://g.co/cloud/psd-partner) to request assistance, and include the word \"Marketplace\" in your description. For more information about Partner Support Desk, visit [Request assistance with Cloud Marketplace](/marketplace/docs/partners/get-support).\n\nIn the following steps, you can use existing service accounts, or create new\nservice accounts. If you create a new service account, specify the service\naccount's name in the **Service account name** field and the service account's\nID in the **Service account ID** field, and then click **Create and link** . For\ndetailed steps to create a service account, see\n[Creating and managing service accounts](/iam/docs/creating-managing-service-accounts).\n\nTo link your service accounts:\n\n1. In the list of products, click the name of your product.\n\n2. On the **Overview** page of your product, go to the **Technical integration**\n section and click **Billing integration**.\n\n3. To integrate with the Partner Procurement API, under\n **Link a service account to call Procurement API** , click\n **Add service account**. You can enter an existing service account into the\n field, or create a new service account.\n\n4. To integrate with Pub/Sub, under\n **Link a service account to subscribe to Pub/Sub topic** , click\n **Add service account** . You can enter an existing service account into the\n field, or create a new service account. Grant the\n [Pub/Sub Editor](/pubsub/docs/access-control#pubsub.editor)\n Identity and Access Management (IAM) role to the service account that you link.\n\n5. To integrate with the Service Control API, under\n **Add `roles/servicemanagement.serviceController` to a service account** ,\n click **Add service account**. You can enter an existing service account into\n the field, or create a new service account.\n\nWhat's next\n-----------\n\n- [Manage user accounts](/marketplace/docs/partners/integrated-saas/manage-user-accounts) for your SaaS products.\n- [Manage customer entitlements](/marketplace/docs/partners/integrated-saas/manage-entitlements) for your SaaS products.\n- For products with usage-based pricing, [configure your app's usage reporting](/marketplace/docs/partners/integrated-saas/configure-usage-reports) to Google."]]