Linking a new lead to a campaign in custom function

Linking a new lead to a campaign in custom function

Hi all,

I have leads that automatically come into Zoho CRM from Facebook Lead Ads via Zapier. I'd like to link a new lead to a specific campaign when the lead is created in Zoho. I was thinking of doing this via a workflow. Can anyone please help out with the code for the custom function?

Much appreciated.

Matt