Skip to main content
Level 2
Mar 27, 2026 8:25 PM UTC
Solved

Marketo API to set expiration date for local assets

Is there any Marketo API to set expiration date for local assets?

I am using an integration tool to setup campaigns. Once the campaign has ended, I would like the API to end the campaign based on the expiration date. Currently, we do it manually. Is there a way to do it through API?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Mar 31, 2026 5:32 AM UTC

You can’t call this native feature using the API, but you could write your own logic that behaves similarly. Store a deactivation schedule on your server, then use the API to deactivate campaigns and change LP URLs so they redirect to the default page.

3 replies

SanfordWhiteman
User Group Leader
User Group Leader
Mar 28, 2026 4:40 AM UTC

What do you mean by "end the campaign"? Deactivate a trigger campaign? Unschedule a batch campaign?

 

Please detail exactly what you want to happen to each kind of asset after a certain date.

Translate
Level 2
Mar 29, 2026 8:00 PM UTC



Thank you ​@SanfordWhiteman for looking into my query. Basically, in the above screenshot, there is an “Set local asset expiration” option.

Once I click on it, it will show me all assets related to my program i.e. Landing Pages and Trigger/Batch campaigns. I can then set an expiration date on it on the UI manually.

Is there a way to set this expiration date on Trigger/Batch campaigns through an API call?

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Mar 31, 2026 5:32 AM UTC

You can’t call this native feature using the API, but you could write your own logic that behaves similarly. Store a deactivation schedule on your server, then use the API to deactivate campaigns and change LP URLs so they redirect to the default page.

Translate