# Node-red-contrib-google publish

**URL:** <https://discourse.nodered.org/t/node-red-contrib-google-publish/3699>\
**Category:** General\
**Created:** [4 October 2018 22:20 UTC](https://discourse.nodered.org/t/node-red-contrib-google-publish/3699 "2018-10-04T22:20:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgilkerson](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@tgilkerson](https://discourse.nodered.org/u/tgilkerson)\
**Post date:** [4 October 2018 22:20 UTC](https://discourse.nodered.org/t/node-red-contrib-google-publish/3699/1 "2018-10-04T22:20:23Z")

</div>

Does anyone know how to format a message for the "google node" (node-red-contrib-google) I am trying the following:  
Connection: {{my connections info}}  
API: pubsub:v1  
Operation: projects.topic.publish

I was able to pull a message but I cant figure out how to publish a message. Here is my best guess at the input message:  
{  
"payload": {  
"topic": "projects/nchannelqa/topics/a10003.gatewayq"  
},  
"messages": [  
{  
"data": "SGVsbG8gQ2xvdWQgUHViL1N1YiEgSGVyZSBpcyBteSBtZXNzYWdlIQ"  
}  
]  
}

When I call it I get:  
Error: The value for 0 is too small. You passed message\_count in the request, but the minimum value is 1.

I just don't know how to specify the message, any ideas?
