Queue provider: Google Pub/Sub
Creating a topic in Google Pub/Sub
This section describes how to create a new Topic in Google Pub/Sub. Please follow the steps below:
In a web browser, navigate to https://console.cloud.google.com/.
Click the menu next to the Google Cloud Platform header text.
![](../__attachments/3900407966/att_7_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
Select a project by checking its name and pressing the Open button.
![](../__attachments/3900407966/att_13_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
In the left-hand panel of the Products & Solutions menu, click ‘Analytics’ under Categories, then click Pub/Sub on the main page.
![](../__attachments/3900407966/att_22_for_3897589833.png?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
In the Topic page, press Create Topic. Complete the Topic Name field and press Create to save.
![](../__attachments/3900407966/att_8_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
![](../__attachments/3900407966/att_23_for_3897589833.png?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
Creating a subscription in Google Pub/Sub
This section describes how to create a new Subscription for a specific Topic. Please follow the steps below:
Go to the Topics page as documented in the previous section.
Select a topic from the list by double-clicking it.
![](../__attachments/3900407966/att_14_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
In the Topic Details, press Create Subscription. Complete the Subscription Name field then press Create to save.
![](../__attachments/3900407966/att_9_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
![](../__attachments/3900407966/att_24_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
Setting up Windows environment variables
This section describes how to setup the Google service account key (in JSON format) as the Windows environment variable GOOGLE_APPLICATION_CREDENTIALS. Please follow the steps below:
At the target computer, right-click ‘This PC’ and select Properties.
![](../__attachments/3900407966/att_15_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
Go to the Advanced Tab and click Environment Variables.
![](../__attachments/3900407966/att_16_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
![](../__attachments/3900407966/att_10_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
In System Variables, press the New button. Complete the fields below, then press OK to save.
![](../__attachments/3900407966/att_17_for_3897589833.jpeg?inst-v=2845edaa-e6e3-43f5-9228-1f7e2ed76e18)
Restart the machine for the new setting to take effect.