Digital Goods Transaction of Actions on Google (Connect Action and Android App)

Yoichiro Tanaka
5 min readDec 15, 2018

--

Until previous story, you got three projects: Actions on Google project, Dialogflow agent and Android app on the Google Play Console. However, there is no relationship between the Actions on Google project and the Android app on the Google Play Console. In the Digital Goods Transaction feature, digital goods are managed in the Google Play. That is, you need to establish the relationship between them.

In this story, I describe about how to establish the relationship between the Actions on Google project and the Android app on the Google Play Console with the Google Search Console.

Register Web Site to Google Search Console

Basically, there is no relationship between Actions on Google project and Android app registered into the Google Play Console. But, you need to establish the relationship to use the digital goods information in the Google Play from the Actions on Google. To do that, something common key in necessary.

Actions on Google uses a validated Web site URL for the relationship. To have the validated Web site URL, you need to use the Google Search Console. After your Web site URL is validated by the Google Search Console, you can related your Actions on Google project to your Android app on the Google Play Console with the URL as the common key.

First, open the Google Search Console.

Click the dropdown UI on the left top of the page.

Click the “Add property” menu item.

The “Add property” dialog is opened. Fill in your Web site URL to the “Add site URL” field, and click the “CONTINUE” button.

Google Search Console checks the ownership of your Web site. As like above, if your Web site supports the Google Analytics or satisfies other condition, your Web site can be verified automatically.

If the auto-verification failed, you need to request the verification according to the instruction provided by the Google Search Console.

Connect Web site to Actions on Google project

Next, you need to register your Web site URL to your Actions on Google project. Click the “Brand verification” menu item on the left navigation menu of the Actions on Google Console page. Then, click the “</>” button.

The “Connect Site” dialog is opened. Fill in your Web site URL to the dialog, and click the “CONNECT” button.

After registration, reload the page. You should see the registered Web site.

Connect Web site to Android App

As the next step, you need to register your Web site URL to your Android app. Click the “Services & APIs” menu item on the left navigation menu of the Google Play Console.

In this page, you can find the “App Indexing from Google Search” section. Click the “VERIFY WEBSITE” button on the section.

The “Verify website” dialog is opened. Fill in your Web site URL, and click the “VERIFY” button.

If you can see the registered Web site URL in the section, it was successfully.

Confirm Connection

In the steps above, the preparation to connect Actions on Google project to Android app was completed. Actions on Google will establish the connection between the Actions on Google project and the Android app automatically. But, unfortunately, it will take about 24 hours. You need to wait the completion of the process.

All Android apps that have same validated Web site URL are connected. In this story, turn on the “Access Play purchases” checkbox of the “Digital Goods Test” Android app. You can access to the digital goods managed by your Android app from your Actions on Google project.

Next Action

You could connect your Actions on Google project to the Android app on the Google Play. To access to digital goods, you need to use an Actions API. I intend to describe about how to issue a service account to use the Digital Purchases API in the next story.

--

--