Skip to main content

Integrate a marketplace with a Google Cloud Platform account

This section describes how Marketplace Managers integrate a Google Cloud Platform account with their marketplace. It could be a new, or an existing, Google Cloud Platform account on the Google console. After integration, Marketplace Managers can edit the following settings:

  • Partner email
  • Locale
  • Partner credentials
  • BigQuery credentials

All other settings cannot be edited.

Prerequisites

  • Contact your AppDirect technical representative to enable some settings on your marketplace.
  • An admin account on the Google Cloud Platform.
  • Decide which revenue model you are going to use.

To integrate a marketplace and a Google Cloud Platform account

đź“ť Note: If the AppDirect logo appears in the upper-left corner of the page, when Manage > Marketplace appears in this topic, click the grid icon > Switch to | Store, instead.

Collect the information you will enter on the Configure Google Cloud Platform page.

Complete the following procedures, on the Google Console, in the order below:

To create and configure a project on the Google Cloud Platform
  1. Go to the Google Cloud Platform and sign in with your admin credentials. Accept the Terms of Service.
  2. Create a new, empty project. Give the project a descriptive name for the marketplace.
    1. The Google Cloud Platform assigns a project number to your newly created project.
  3. Configure consent screen.
    1. Go to APIs & Services > Credentials and click Configure consent screen. The OAuth consent screen opens.
    2. For the User Type select Internal, and click Create.
    3. Select the Service Management API and bigQuery API scopes.
    4. Enter an application name in the Application name field. Use the name of your marketplace or another descriptive name.
    5. Click Save.
  4. Create your credentials:
    1. Go to APIs & Services > Credentials > + Create Credentials > OAuth client ID.
    2. Click Web application for the Application type.
    3. Enter a descriptive name for the Web application.
    4. In Authorized redirect URIs, enter https://developers.google.com/oauthplayground in the URIs field.
    5. Click Create. The OAuth client is created and a dialog opens.
    6. Click the download icon to download your credentials. The credentials are downloaded as a JSON file. You need to upload this file in the User Interface.
  5. Record your Google Apps Client ID and Client Secret. The client secret is only shown once, but can be regenerated if required to re-authorize.
To generate tokens

Generate tokens for Google Cloud Platform products. These do not apply to G Suite products.

  1. Go to https://developers.google.com/oauthplayground/. The OAuth 2.0 playground opens.
  2. Click the OAuth 2.0 Configuration icon.
  3. Click Use your own OAuth credentials.
  4. Enter the client ID and secret that you already downloaded on the Google Cloud Platform.
  5. In Step 1 Select & authorize APIs, add the following scopes:
    1. https://www.googleapis.com/auth/cloud-platform
    2. https://www.googleapis.com/auth/cloud-billing
  6. Click Authorize APIs and the Authorize code field is automatically generated.
  7. Click Auto-refresh the token before it expires. Click Exchange authorization code for tokens.
  8. A Refresh token displays. Save this token as you need to enter it in the User Interface. The token is live for 60 minutes.
To get the Billing account ID
  1. Go to the Google Cloud Platform and sign in with your admin credentials.
    1. Accept the Terms of Service.
  2. Go to Billing > Manage billing accounts. Note the Billing account ID. This is the parent billing account for all projects via AppDirect order. One project is created for each Google Cloud Platform subscription.
To create a new folder in your project
  1. Click Manage resources.
  2. Click Create Folder and name your folder. The Google Cloud Platform adds an ID to your folder.
  3. Click Save.
To enable API permissions
  1. Select the Cloud Resource Manager API and click Enable.
  2. Go to the browser and test this URL https://console.developers.google.com/apis/api/cloudbilling.googleapis.com/overview?project=<projectNumber> where the projectNumber is assigned by the Google Cloud Platform in procedure 1, To create and configure a project on the Google Cloud Platform.
  3. Select the Cloud Billing API and click Enable.
To create a BigQuery dataset

Note: Before you proceed, please ensure that you have Billing Account Administrator role for the target Cloud Billing account and BigQuery Admin role for the Cloud project that contains the BigQuery dataset that will be used to store the Cloud Billing data.

  1. Go to the Google Cloud Platform and sign in with your admin credentials.
    1. Accept the Terms of Service.
  2. In BigQuery, select BigQueryBilling.
  3. Select the Project you created in To create and configure a project on the Google Cloud Platform and click Enable
  4. Click Create Dataset.
  5. Enter the required information in the Create Dataset panel.
To export your cloud billing data to a BigQuery dataset
  1. Go to the Google Cloud Platform and sign in with your admin credentials.
  2. Select Billing. If you have more than one Cloud Billing account, do one of the following:
    1. To manage Cloud Billing for the current Cloud project, select Go to linked billing account.
    2. To locate a different Cloud Billing account, select Manage billing accounts and choose the account for which you'd like to enable Cloud Billing data export to BigQuery.
  3. In the Billing navigation menu, select Billing export.
  4. Select the BigQuery export tab.
  5. Click Edit settings to enable export and to update the export settings.
  6. From the Project list, select the project where you want to store your BigQuery dataset.
  7. Select a dataset from the Billing export dataset list. BigQuery export will create a table with your billing data in the selected dataset.
  8. Click Save.
To create a service account
  1. Go to the Google Cloud Platform and sign in with your admin credentials.
  2. Verify the BigQuery API is enabled for your project as follows:
    1. Go to APIs & Services > Dashboard.
    2. Click + Enable APIs and Services. Search for the BigQuery API in the Search box and enable it.
  3. Select your project.
  4. Go to APIs & Services > Credentials > Service Account.
  5. Add Service account details.
    1. Add a display name and a description.
    2. Add the BigQuery Admin role.
  6. Click Save.
  7. Create a JSON Key and save the downloaded JSON file. You need to upload this file in the User Interface.
  1. Go to Manage > Marketplace > Settings > INTEGRATION | Vendor Integrations > Google. The Google Integration page opens.
  2. Select Configure Google Cloud Platform to integrate your marketplace with a Google Cloud Platform account. The Configure Google Platform page opens.
  3. In Step 1, add the following information:
    1. Select a revenue model:
      1. Model A
      2. Model C
    2. Billing account ID
    3. Partner email—Enter a valid email address.
    4. Select a Locale—The default locale for your marketplace.
    5. Partner credentials—choose the JSON file you saved on the Google Console.
    6. Dataset name
    7. BigQuery credentials—choose the JSON file you saved on the Google Console.
  4. Click Save.
  5. In Google Products, you can link Google Cloud Platform products from the Product catalog with your Google Cloud Platform account. Then you can sell those products on your marketplace. To create and configure Google Cloud Platform products on your marketplace, see Create Google Cloud Platform products topic in Google Cloud Platform products section.
    1. Type a name or the product UUID in the search bar.
    2. Click the product name or UUID and then it is linked and will display in the Linked Google products panel.

Was this page helpful?