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



总结
边栏推荐
- PM也要学会每天反省
- npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)
- Jericho may have some chips with fast music playing speed [chapter]
- kotlin 继承、类、重载
- Gatling 性能测试
- These default routes and static routes can not be configured and deployed. What kind of network workers are they!
- Google waymo proposed r4d: remote distance estimation using reference target
- kotlin 语言特性
- Explain kubernetes backup and recovery tools velero | learn more about carina series phase III
- 数学之英文写作——基本中英文词汇(几何与三角的常用词汇)
猜你喜欢

杰理之TIMER0 用默认的 PA13 来检测脉宽【篇】

Activity生命周期

谷歌WayMo提出R4D: 采用参考目标做远程距离估计

Huawei PC grows against the trend, and product power determines everything

Cloud native essay solicitation progress case practice

首席信息安全官仍然会犯的漏洞管理错误
![Jerrys timer0 uses the default pa13 to detect the pulse width [chapter]](/img/4e/de0951c8be5ddd765b15b773c04fa7.png)
Jerrys timer0 uses the default pa13 to detect the pulse width [chapter]

AutoRF:从单视角观察中学习3D物体辐射场(CVPR 2022)

HarmonyOS.2

2022 Quality Officer - Equipment direction - post skills (Quality Officer) recurrent training question bank and online simulation examination
随机推荐
万用表测量电阻图解及使用注意事项
#21Set经典案例
kotlin 初始化块
Simulated 100 questions and answers of fluorination process examination in 2022
项目经理搭建团队,需要看6个特征
杰理之TIMER0 用默认的 PA13 来检测脉宽【篇】
知识经济时代,教会你做好知识管理
2022年江西省安全员B证考试题库模拟考试平台操作
国内首款开源MySQL HTAP数据库即将发布,三大看点提前告知
Kotlin inheritance, class, overload
[5g NR] 5g NR system architecture
PM也要学会每天反省
kotlin 协程上下文和调度器
Hands on data analysis unit 3 model building and evaluation
【5G NR】5G NR系统架构
Jerry's infrared filtering [chapter]
Docker安装redis
PM should also learn to reflect every day
kotlin 匿名函数 与 Lambda
pip uninstall all packages except builtin package