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
1mutation pubSubServerPixelUpdate($pubSubProject: String!, $pubSubTopic: String!) {2 pubSubServerPixelUpdate(pubSubProject: $pubSubProject, pubSubTopic: $pubSubTopic) {3 serverPixel {4 # ServerPixel fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "pubSubProject": "<your-pubSubProject>",3 "pubSubTopic": "<your-pubSubTopic>"4}
{
"pubSubProject": "<your-pubSubProject>",
"pubSubTopic": "<your-pubSubTopic>"
}