We integrated Marketo smart campaign with our product, Would like to get campaign name and program name using campaign id, but not able to find any SOAP api to get this.
Currently we are getting all smart campaign using below api and filtering using campaign id, then splitting campaign name using dot(.) to get program name and campaign name, since below api returns program name and campaign name as dot(.) separated.
But, program or campaign name can have dot(.), hence we are not able to identify campaign and program name.
NOTE : request campaign is made with parameters - campaignName,programName and programTokens
You want to try this Rest API - Get Campaigns by ID.
This gives both Campaign Name and Program Name as separate fields.