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
- 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:- Your application publishes batched messages to a topic in your Google Cloud project.
- You grant the Zeotap service account permission to attach a subscription to that topic.
- 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.
- 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.
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.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:- Log into the Zeotap CDP App and navigate to the Sources application under Integrate.
- Click CREATE SOURCE.
-
Choose Message Queue as the Category.

The Category step of the source creation flow. Screenshot captured on the Pub/Sub Stream source form.
-
Click Pub/Sub - Batch as the Data Source.

Selecting Pub/Sub - Batch as the Data Source.
- Enter a short and descriptive name for the source.
- By default, the region is chosen as Europe (EU). See Region of storage for what the region controls.
- 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.
- Enter the Topic ID obtained from your Pub/Sub account, as described under Get the Topic ID above.
-
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.

The Service Account field on the source creation form. Screenshot captured on the Pub/Sub Stream source form.
-
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.

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.
Troubleshoot the Pub/Sub Batch source
FAQ
Is the Pub/Sub Batch source the same as the Google Pub/Sub destination?
Is the Pub/Sub Batch source the same as the Google Pub/Sub destination?
Can I use the same Topic ID for my Pub/Sub Batch and Pub/Sub Stream sources?
Can I use the same Topic ID for my Pub/Sub Batch and Pub/Sub Stream sources?
How is the Pub/Sub Batch source different from the Pub/Sub Stream source?
How is the Pub/Sub Batch source different from the Pub/Sub Stream source?
Which data entities can a Pub/Sub Batch source ingest?
Which data entities can a Pub/Sub Batch source ingest?
Does the Pub/Sub Batch source support delta fetch?
Does the Pub/Sub Batch source support delta fetch?
Where do I find the Zeotap service account I need to grant access to?
Where do I find the Zeotap service account I need to grant access to?
Next steps
- Explore Pub/Sub Batch → for what this source does and when to choose it.
- Explore Create a Pub/Sub Stream Source → for the real-time counterpart.
- Explore Message Queue → for the other queue-based source integrations.
- Explore the Google Pub/Sub destination → for sending data out of Zeotap CDP.
- Explore Blacklisted fields for data ingestion → before you finalise your payload.
- Explore Source alerts → to be notified when this source stops receiving data.