Anchor to pubSubServerPixelUpdatepub
pubSubServerPixelUpdate
mutation
Requires access scope. Also: The app must have the read_customer_events and write_server_pixels access scopes.
Updates the server pixel to connect to a Google PubSub endpoint. Running this mutation deletes any previous subscriptions for the server pixel.
Anchor to Arguments
Arguments
- Anchor to pubSubProjectpub•
Sub Project String!required The Google PubSub project ID.
- Anchor to pubSubTopicpub•
Sub Topic String!required The Google PubSub topic ID.
Was this section helpful?
Anchor to PubSubServerPixelUpdatePayload returnsPubSubServerPixelUpdatePayload returns
- Anchor to serverPixelserver•
Pixel The server pixel as configured by the mutation.
- Anchor to userErrorsuser•
Errors [ErrorsServer non-nullPixel User Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation pubSubServerPixelUpdate($pubSubProject: String!, $pubSubTopic: String!) {
pubSubServerPixelUpdate(pubSubProject: $pubSubProject, pubSubTopic: $pubSubTopic) {
serverPixel {
# ServerPixel fields
}
userErrors {
field
message
}
}
}
Input
{
"pubSubProject": "<your-pubSubProject>",
"pubSubTopic": "<your-pubSubTopic>"
}
{
"pubSubProject": "<your-pubSubProject>",
"pubSubTopic": "<your-pubSubTopic>"
}