Skip to content

Instantly share code, notes, and snippets.

Avatar

Jackson Chen jacksonpchen

View GitHub Profile
@jacksonpchen
jacksonpchen / gmail-deal-badge
Created Mar 11, 2020
Gmail Promotions Tab Deal Badge
View gmail-deal-badge
<!-- Deal Badge -->
<div itemscope="" itemtype="http://schema.org/DiscountOffer">
<meta itemprop="description" content="AMPscript.com">
<meta itemprop="discountCode" content="AMPSCRIPT">
<meta itemprop="availabilityStarts" content="2020-03-10T00:00:00Z">
<meta itemprop="availabilityEnds" content="2020-04-05T00:00:00Z">
</div>
@jacksonpchen
jacksonpchen / gmail-custom-logo
Created Mar 11, 2020
Gmail Promotions Tab Custom Logo
View gmail-custom-logo
View add-to-publication-list
SET @rr = CreateObject("RetrieveRequest")
SetObjectProperty(@rr, "ObjectType", "List")
AddObjectArrayItem(@rr,"Properties","ListName")
AddObjectArrayItem(@rr,"Properties","ID")
SET @sfp = CreateObject("SimpleFilterPart")
SetObjectProperty(@sfp, "Property", "ListName")
SetObjectProperty(@sfp, "SimpleOperator", "equals")
AddObjectArrayItem(@sfp, "Value",@PublicationType)
@jacksonpchen
jacksonpchen / ssjs-run-automation
Last active Oct 21, 2020
Marketing Cloud SSJS Run Automation
View ssjs-run-automation
/*
AMPscript.com
https://ampscript.com/how-to-run-automations-more-frequently-using-ssjs/
*/
<script runat="server">
Platform.Load("Core","1.1.1");
var automationCustomerKey = "[Customer Key Goes Here]"
var rr = Platform.Function.CreateObject("RetrieveRequest");
Platform.Function.SetObjectProperty(rr, "ObjectType", "Automation");
Platform.Function.AddObjectArrayItem(rr, "Properties", "ProgramID");
You can’t perform that action at this time.