Skip to main content

What this is

The Pub/Sub Batch source brings data into Zeotap CDP: you publish batched messages to a Google Pub/Sub topic in your own Google Cloud project, and Zeotap CDP subscribes to that topic and ingests the messages as a source. It is one of the Message Queue source integrations, alongside the real-time Pub/Sub Stream source. Use it when you want to hand Zeotap many messages per request rather than one at a time — see Pub/Sub Batch for the concept. This page covers the source direction only. To send data out of Zeotap CDP to a Pub/Sub topic you own, use the Google Pub/Sub destination instead.

Prerequisites

Before you start, gather the following. The first item blocks ingestion if you skip it, so arrange it before you begin the setup.
  • Storage access for the Zeotap service account — arrange this first. Your Pub/Sub service account will not have the permissions it needs to access the storage bucket, and until those permissions are granted, Batch Pub/Sub subscriptions will be unable to push files to cloud storage. Reach out to your Zeotap POC before setting up the Pub/Sub Batch source so that the required access permissions are granted.
  • A Topic ID from your Google Pub/Sub account, in the fully qualified form described under Get the Topic ID below. Use a topic that is not already attached to a Pub/Sub Stream source.
  • Permission to attach a subscription granted to the Zeotap service account on your Pub/Sub instance, as described under Grant the Zeotap service account access.
  • A decision on the Data Entity you will ingest — Customer Data or Non Customer Data. See Supported data entities.
  • Messages in the expected JSON shape, minified, as shown under Format your messages.

How the Pub/Sub Batch source works

Pub/Sub Batch upload sends multiple messages to a Pub/Sub topic in a single request, which saves network requests and improves the performance and scalability of your applications. Zeotap CDP consumes those messages from your side of the integration:
  1. Your application publishes batched messages to a topic in your Google Cloud project.
  2. You grant the Zeotap service account permission to attach a subscription to that topic.
  3. Zeotap CDP attaches a subscription, and the Batch Pub/Sub subscription pushes the messages to cloud storage as files — which is why the service account also needs the storage access covered in the prerequisites.
  4. The records arrive on your Zeotap CDP source, where you can preview and map them.

Gather your Pub/Sub details

1. Get the Topic ID

A Topic ID in Google Pub/Sub represents the unique identifier for the topic. Topics enable the categorisation or grouping of messages according to specific subjects or themes. It allows consumers to selectively subscribe to and receive messages based on their interest in specific topics. To obtain the Topic ID, navigate to the Pub/Sub catalog on the Google Cloud console, locate the desired topic and click on its name to view its details, where you can find the Topic ID. Note that while creating a source in Zeotap CDP, you need to furnish the fully qualified Topic ID in the format: project/folder/topic/topic_id.
We recommend using different Topic IDs for Pub/Sub Batch and Pub/Sub Stream sources. If you use the same Topic ID for both sources, you will receive the same data in both sources.

2. Grant the Zeotap service account access

In Pub/Sub, a service account is a type of identity that is used to authenticate and authorise communication between Zeotap CDP and your Pub/Sub account. You can find the service account details while creating a source for Pub/Sub Batch in Zeotap CDP, and again on the IMPLEMENTATION DETAILS tab after the source is created. Provide the following permission to that service account in your Pub/Sub instance: Attach a subscription to a topic: pubsub.topics.attachSubscription

3. Format your messages

When sending data from the Pub/Sub Batch source to Zeotap CDP, adhere to the following format, and keep the JSON data in minified/compact form.
The records for the country and city columns are blacklisted for ingestion because Zeotap resolves them from the user’s IP address automatically. For the complete list, see Blacklisted fields for data ingestion.

Create the Pub/Sub Batch source

Perform the following steps to create a Pub/Sub Batch source:
  1. Log into the Zeotap CDP App and navigate to the Sources application under Integrate.
  2. Click CREATE SOURCE.
  3. Choose Message Queue as the Category.
    Source creation flow with Message Queue selected as the Category

    The Category step of the source creation flow. Screenshot captured on the Pub/Sub Stream source form.

  4. Click Pub/Sub - Batch as the Data Source.
    Data Source picker with Pub/Sub - Batch selected

    Selecting Pub/Sub - Batch as the Data Source.

  5. Enter a short and descriptive name for the source.
  6. By default, the region is chosen as Europe (EU). See Region of storage for what the region controls.
  7. Under Data Entity, depending on the type of data that you want to ingest, choose either Customer Data or Non Customer Data and proceed with the source creation. To know more about Customer Data and Non Customer Data, refer to Supported data entities.
  8. Enter the Topic ID obtained from your Pub/Sub account, as described under Get the Topic ID above.
  9. Under Service Account, the Zeotap service account is displayed. Ensure that you provide access to that service account on the Google Cloud console. This allows Zeotap CDP to fetch data from Pub/Sub.
    Source creation form showing the Zeotap service account under the Service Account field

    The Service Account field on the source creation form. Screenshot captured on the Pub/Sub Stream source form.

  10. Click CREATE SOURCE. Expected result: the source is created, and the Topic ID and Service Account used for the integration are displayed under the IMPLEMENTATION DETAILS tab, along with all the important information related to the integration.
    IMPLEMENTATION DETAILS tab showing the Topic ID and service account used for the integration

    The IMPLEMENTATION DETAILS tab of a created Pub/Sub Batch source.

Verify the source

You have set the source up correctly when all of the following hold:
  • The new source appears on the Sources listing page.
  • The IMPLEMENTATION DETAILS tab of the source displays the Topic ID and the Service Account used for the integration, along with the rest of the information related to the integration.
  • After you publish messages to the topic, records appear on the source’s PREVIEW tab. See the fields on the Preview Data tab for how to read it.
If no records appear, work through the troubleshooting table below.

Troubleshoot the Pub/Sub Batch source

If you need any assistance to set up this integration, you can reach out to your Zeotap POC.

FAQ

No. The Pub/Sub Batch source brings data from your Pub/Sub topic into Zeotap CDP. The Google Pub/Sub destination sends data out of Zeotap CDP to a topic you own. Despite the similar names, the two are not interchangeable — pick the one that matches the direction your data needs to travel.
Use different Topic IDs. If you configure the same Topic ID on both sources, you will receive the same data in both sources.
Pub/Sub Batch sends multiple messages to a topic in a single request, which saves network requests and improves the performance and scalability of your applications. Pub/Sub Stream publishes to a topic and delivers to subscribers as soon as new messages arrive, for real-time exchange. The two sources also expect different payload shapes — compare the sample under Format your messages on this page with the sample on Create a Pub/Sub Stream Source.
Both Customer Data (CE) and Non-Customer Entity (NCE) Data. You choose which one applies under Data Entity during source creation.
No. Delta fetch is not supported on the Pub/Sub Batch source, nor on the Pub/Sub Stream source.
It is displayed under Service Account while you are creating the source, and again on the IMPLEMENTATION DETAILS tab after the source is created.

Next steps

Last modified on November 17, 2026