当前位置:网站首页>SAP Marketing Cloud 功能概述(四)
SAP Marketing Cloud 功能概述(四)
2022-06-24 12:59:00 【InfoQ】
Marketing Calendar


Success
- 热门类别:最常用的五个营销活动的类别。
- 帖子情绪:针对情绪评分从“强烈支持”到“强烈反对”和“无评估”, 显示社交媒体消息数。
- 热门关注对象(消息)和情绪评分(消息):社交媒体消息数最多的关注对象及其情绪评分。

Spend
- 总金额:所选营销活动的总计划支出。
- 热门支出类型:最常用的支出类型以及每个支出类型的总支出。

Sentiment

Marketing Plan









Budget Plans










为营销活动上传支出数据


使用nodejs实现OData的batch操作在Marketing Cloud里读取

var request = require('request');
var config = require("./mcConfig");
var url = config.getContactBatchURL;
var sBody = "--batch_c914-a60c-1877" + "\n" +
"Content-Type: application/http" + "\n" +
"Content-Transfer-Encoding: binary" + "\n" +
"\n" +
"GET InteractionContacts?sap-client=100&$skip=0&$top=2&$select=ImageURL%2cName%2cContactLevelName%2cCountryName%2cCity%2cEMailAddress%2cPhoneNumber%2cMobilePhoneNumber%2cCorporateAccountName%2cInteractionContactUUID%2cRelationship%2cType&$inlinecount=allpages HTTP/1.1" +
"sap-cancel-on-close: true" + "\n" +
"Cache-Control: max-age=360" + "\n" +
"sap-contextid-accept: header" + "\n" +
"Accept: application/json" + "\n" +
"Accept-Language: en" + "\n" +
"DataServiceVersion: 2.0" + "\n" +
"MaxDataServiceVersion: 2.0" + "\n" +
"\n" + "\n" +
"--batch_c914-a60c-1877--";
var getContactOptions = {
url: url,
method: "POST",
json:false,
headers: {
"content-type": "multipart/mixed;boundary=batch_c914-a60c-1877",
'Authorization': 'Basic ' + new Buffer(config.user + ":" + config.password).toString('base64')
},
body: sBody
};
function getContact() {
return new Promise(function(resolve,reject){
var requestC = request.defaults({jar: true});
console.log("Step1: get contact via url: " + url );
requestC(getContactOptions,function(error,response,body){
if( error){
console.log("error occurred: " + error);
reject(error);
}
console.log("response:" + body);
var nStartIndex = body.indexOf("{");
var nLastIndex = body.lastIndexOf("}");
if( nStartIndex < 0 || nLastIndex < 0)
return;
var sPayload = body.substring(nStartIndex, ++nLastIndex);
resolve(JSON.parse(sPayload));
});
});
}
function displayResult(oResult){
console.log(oResult);
}
getContact().then(displayResult);


使用postman创建Marketing Cloud的Contact





{"CountryCode":"CN","City":"Chengdu","FirstName":"Jerry1","LastName":"Wang1","PostalCode":"610093","RegionCode":"","Street":"天府软件园","HouseNumber":"天府软件园","DateofBirth":null,"ContactPersonFacets":[{"Id":"[email protected]","IdOrigin":"EMAIL","Obsolete":false,"Invalid":false},{"Id":"","IdOrigin":"PHONE","Obsolete":false,"Invalid":false},{"Id":"","IdOrigin":"MOBILE","Obsolete":false,"Invalid":false},{"Id":"","IdOrigin":"FAX","Obsolete":false,"Invalid":false}],"IsConsumer":true,"Filter":{"MarketingAreaId":"CXXGLOBAL"}}



总结
边栏推荐
- pip uninstall all packages except builtin package
- Kotlin language features
- 2022年施工升降机司机(建筑特殊工种)考试试题及在线模拟考试
- [5g NR] 5g NR system architecture
- Jerry has opened a variety of decoding formats, and the waiting time from card insertion to playback is long [chapter]
- [R language data science] (XIV): random variables and basic statistics
- Gatling 性能测试
- 钛星数安加入龙蜥社区,共同打造网络安全生态
- 杰理之串口接收 IO 需要设置数字功能【篇】
- HarmonyOS.2
猜你喜欢
HarmonyOS. two
快手实时数仓保障体系研发实践
图扑软件数字孪生海上风电 | 向海图强,奋楫争先
The first open source MySQL HTAP database in China will be released soon, and the three highlights will be notified in advance
Hands on data analysis unit 3 model building and evaluation
Hardware development notes (6): basic process of hardware development, making a USB to RS232 module (5): creating USB package library and associating principle graphic devices
吉时利静电计宽测量范围
Harmony os. (2)
10 reduce common "tricks"
Developer survey: rust/postgresql is the most popular, and PHP salary is low
随机推荐
[5g NR] 5g NR system architecture
Rasa 3.x 学习系列-非常荣幸成为 Rasa contributors 源码贡献者,和全世界的Rasa源码贡献者共建共享Rasa社区!
[sdx62] wcn685x IPA failure analysis and solution
Prometheus pushgateway
Jericho turns on shouting in all modes to increase mic automatic mute [chapter]
HarmonyOS.2
HarmonyOS. two
杰理之增加一个输入捕捉通道【篇】
Redis scenario
【5G NR】5G NR系统架构
【AI玩家养成记】用AI识别邻居家旺财是什么品种
kotlin 组合挂起函数
2022年烟花爆竹生产单位安全生产管理人员考试题模拟考试题库模拟考试平台操作
90%的项目经理都跳过的坑,你现在还在坑里吗?
杰理之可能出现有些芯片音乐播放速度快【篇】
**Unity中莫名其妙得小问题-灯光和天空盒
redis 数据类型详解
项目经理搭建团队,需要看6个特征
90% of the project managers have skipped the pit. Are you still in the pit?
万用表的使用方法