当前位置:网站首页>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"}}



总结
边栏推荐
- Daily question 8-515 Find the maximum value in each tree row
- Hands on data analysis unit 3 model building and evaluation
- Liux command
- Can a team do both projects and products?
- Detailed explanation of kotlin collaboration lanch
- Rasa 3.x 学习系列-非常荣幸成为 Rasa contributors 源码贡献者,和全世界的Rasa源码贡献者共建共享Rasa社区!
- npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)
- Jerry's infrared filtering [chapter]
- 一个团队可以既做项目又做产品吗?
- 杰理之可能出现有些芯片音乐播放速度快【篇】
猜你喜欢

HarmonyOS-3

Research and development practice of Kwai real-time data warehouse support system

**Unity中莫名其妙得小问题-灯光和天空盒

【5G NR】5G NR系统架构

Eight major trends in the industrial Internet of things (iiot)

Golden age ticket: Web3.0 Security Manual
![NPM package [details] (including NPM package development, release, installation, update, search, uninstall, view, version number update rules, package.json details, etc.)](/img/b0/85ac6274b239e42c9543fa296df456.png)
NPM package [details] (including NPM package development, release, installation, update, search, uninstall, view, version number update rules, package.json details, etc.)

杰理之红外滤波【篇】

Hands on data analysis unit 3 model building and evaluation

图扑软件数字孪生海上风电 | 向海图强,奋楫争先
随机推荐
Docker安装redis
The project manager needs to look at six characteristics to build a team
Cloud native essay solicitation progress case practice
杰理之可能出现有些芯片音乐播放速度快【篇】
HarmonyOS. two
杰理之在所有模式下打开喊话增加 mic 自动 mute【篇】
杰理之增加一个输入捕捉通道【篇】
详解kubernetes备份恢复利器 Velero | 深入了解Carina系列第三期
Hands on data analysis unit 3 model building and evaluation
龙蜥开发者说:首次触电,原来你是这样的龙蜥社区? | 第 8 期
Jericho After sleep, the system will wake up regularly and continue to run without resetting [chapter]
kotlin 协程 lanch 详解
2022年煤炭生产经营单位(安全生产管理人员)考试题模拟考试平台操作
kotlin 初始化块
硬件开发笔记(六): 硬件开发基本流程,制作一个USB转RS232的模块(五):创建USB封装库并关联原理图元器件
HarmonyOS.2
Jerrys timer0 uses the default pa13 to detect the pulse width [chapter]
MIT-6.824-lab4A-2022(万字讲解-代码构建)
2022 recurrent training question bank and answers for hoisting signal Rigger (special type of construction work)
钛星数安加入龙蜥社区,共同打造网络安全生态