Edit in GitHubLog an issue

Setting up Marketo Notification Data Stream with Adobe I/O Events

These instructions describe how to set up and get started using Adobe I/O Events for Marketo notification events. This will provide you with an event stream for all Marketo in-app notifications, in near-real-time.

Introduction

The Marketo Notification Data Stream provides a near real-time stream of all Marketo in-app notifications. This includes Campaign Abort, Campaign Failure, and Web Services / API errors as well as quota notifications.

Setup User Audit Data Stream in Marketo

Data Streams are available to those that have purchased a Marketo Engage Performance Tier Package. Once a Performance Tier agreement is in place, work with your TAM and Customer Engineering team to enable this Data Stream for your subscription.

We typically just need to know the MunchkinId for the subscription, and the associated Adobe OrgId, which enables access to the Adobe IO Developer Console.

Setup Adobe I/O

See Getting Started with Adobe I/O Events

For basic instructions for this use case, starting from console.adobe.io:

When prompted, click the designated button to proceed

  • Select Create new project

    Create new project

  • Select Add event

    Add event

  • Filter by Experience Cloud

  • Select Marketo Notification Data Stream

    Provider selection

  • Subscribe to the notification event types of your choosing

    Event selection

  • Set up OAuth Server-to-Server Credentials

    Set up credentials

  • Set up Event Registration

    Complete registration

    • Provide a name and description for this event subscription
    • Optionally choose whether to enable Webhook or Runtime action
      • Enable Webhook
        • We recommend batch over single webhooks
        • For Webhook URL a public https endpoint must be provided
        • The endpoint must be able to handle get and post requests
        • The get request must respond with the challenge query if it exists
        • The post request must respond that it received the message or the webhook will re-attempt to send several times before giving up and automatically disabling the webhook sends
      • Enable Runtime action
  • After Saving

    Verify setup

    • Verify that the Status is Active
    • If Webhook was selected, verify that it successfully passed the challenge without errors

Developer Guidelines

When setting up a project to subscribe to events, there are three ways to interact with those event subscriptions in order to receive the events. The first is Journaling, which provides a pull model in which events can be pulled via API and stores up to 7 days of past events. The second is Webhooks, which can be configured to send events either as single events or batched to a webhook endpoint in near real-time with the event occurrence. Third is Runtime, where you can set up your own custom function within Adobe that events will automatically run through near-real time.

Journaling

Getting Started with Journaling

Important Takeaways:

  • Stores up to 7 days of history
  • Can be iterated through from any previous event within the history
  • Will still receive and store events even if webhook is failing
  • Useful for fetching events that were missed due to webhook issues or for a pulling mechanism instead of webhook push

Webhooks

Getting Started with Adobe I/O Events Webhooks

Webhook Endpoint Requirements:

  • Handle GET and POST requests
  • Respond with a 200-type response within a reasonable time period
  • Challenge Request
    • GET request with challenge query parameter
    • Must respond with value of challenge query parameter
  • Webhook Events
    • POST request with JSON data body with one or more events
    • Recommended to set up webhook as batch

Event Data Structure

Events are structured in JSON format using the CloudEvents spec

Example Event (batch)

Copied to your clipboard
[
{
"event_id": "64e73a16-c903-4faf-9502-9603ce887759",
"event": {
"body": {
"specversion": "1.0",
"source": "https://www.marketo.com",
"time": "2024-12-18T07:32:30Z",
"type": "com.adobe.platform.marketo.notification.web_services",
"dataschema": "V1.0",
"datacontenttype": "application/json",
"data": {
"munchkinId": "123-ABC-456",
"imsOrgId": "<your_ims_org_id>@AdobeOrg",
"componentType": "web_services",
"subType": "dailyQuota",
"eventAction": {
"dailyQuota": 1000000,
"percent": 25,
"serviceNames": [
"service"
]
}
}
}
},
"recipient_client_id": "0f13cce22f4645328e01b90262b3ee51"
},
{
"event_id": "1519a09d-0331-4e96-a91a-908037d78e88",
"event": {
"body": {
"specversion": "1.0",
"source": "https://www.marketo.com",
"time": "2024-12-18T07:34:20Z",
"type": "com.adobe.platform.marketo.notification.campaign_failure",
"dataschema": "V1.0",
"datacontenttype": "application/json",
"data": {
"munchkinId": "123-ABC-456",
"imsOrgId": "<your_ims_org_id>@AdobeOrg",
"componentType": "campaign_abort",
"subType": "user_campaign_abort",
"eventAction": {
"campaignId": 1234,
"userId": "foo@bar.com"
}
}
}
},
"recipient_client_id": "0f13cce22f4645328e01b90262b3ee51"
}
]

Example Event (single)

Copied to your clipboard
{
"event_id": "661cbe45-753a-49fc-95f7-1bb2378d13d5",
"event": {
"body": {
"specversion": "1.0",
"source": "https://www.marketo.com",
"time": "2024-12-18T07:35:12Z",
"type": "com.adobe.platform.marketo.notification.campaign_abort",
"dataschema": "V1.0",
"datacontenttype": "application/json",
"data": {
"munchkinId": "123-ABC-456",
"imsOrgId": "<your_ims_org_id>@AdobeOrg",
"componentType": "campaign_abort",
"subType": "user_campaign_abort",
"eventAction": {
"campaignId": 1234,
"userId": "foo@bar.com"
}
}
}
},
"recipient_client_id": "0f13cce22f4645328e01b90262b3ee51"
}

Data Field Definitions

Many of the fields are common across the different types of events. The event.body.data object will contain the specific details of the event.

FieldTypeDescription
event_id
String
Unique UUID generated per event
specversion
String
CloudEvents version specification being used
type
String
Type of event used for event subscription routing
source
String
Context in which an event happened
time
String (DateTime)
Timestamp of the completion of the action
datacontenttype
String
Content type of the data object
dataschema
String
User Audit Data Stream event schema version
data
Object
Event data object

The data object contains the following fields:

FieldTypeDescription
munchkinId
String
Internal Marketo subscription identifier
imsOrgId
String
Internal Adobe organization identifier
componentType
String
The type of notification event
subType
String
The specific type of event under the subtype
eventAction
Object
Details about the notification event (varies by type)

The eventAction object will vary depending on the componentType of the event. The following are examples of the eventAction object fields for the different componentType values:

componentTypeFieldTypeDescription
web_services
dailyQuota
Number
The current daily quota allowance
web_services
percent
Number
The percentage of the daily quota used
web_services
serviceNames
Array (String)
The services that are using the quota
campaign_abort
campaignId
Number
The ID of the campaign that was aborted
campaign_abort
userId
String
The user that aborted the campaign

Event List

Note - This is a snapshot listing of most available events. There may be some events that don't show up or no longer exist.

Campaign Abort
Campaign Failure
Web Services Daily Quota

Debug

Debug Tracing

Once you have successfully completed your setup and event subscription registration, events should start being stored in the journal. In addition, if you have webhooks or runtime set up, the events will go through those flows. From the project's page in the event registration details, you should see a tab for Debug Tracing. For webhooks, this will show a record of failed and successful challenge attempts as well as webhook attempts. Each request includes the request/response details to help debug.

There is also an Event Browser tab which lets you manually look at events in the Journal from the Developer Console UI

  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.