当前位置:网站首页>Overview of SAP marketing cloud functions (IV)

Overview of SAP marketing cloud functions (IV)

2022-06-24 14:18:00 InfoQ

The previous three articles in this series , The author shared with you in turn the  SAP Marketing Cloud Contacts,Profiles,Target Group, And the content design of marketing activities , Product recommendation , Experience in lead and customer management modules .

This is the last article in this series , Introduce  Marketing Cloud  Sales plan management module in .

First of all, let's understand some basic concepts in the sales plan :

(1) Allocated Budget Allocated budget : The marketing manager is Budget Plans Budget for evolutionary allocation and planning of marketing activities in the application .

(2) Planned Budget Plan and budget : The marketing manager is Budget Plans Budget for planned marketing activities in the application ,  It can be more than the allocated budget .

(3) Proposed Spend Recommended expenditure : Marketing managers and experts are Campaigns Recommended expenses in the application by media type of the scheme ,  Can be more than budget .

(4) Planned Spend Planned expenditure :Campaign Planned expenditure .

(5) Actual Spend Actual expenditure : from Campaign produce , And get the amount of marketing budget support ,  Happened in the past .

(6) Committed Spend Committed expenditure : be based on Campaign Request and order requests and receive marketing budget funding ,  Happen in the future .

(7) Latest Estimate The latest estimate : According to the plan 、 Actual and committed expenditures calculate the latest expenditure estimates .

Marketing Calendar

Through this app, we can get an overview of marketing activities within a specified time frame .

In the calendar view , Use different colors to show the status of different marketing activities . By clicking on the campaign , You can view details about this campaign , And in Campaign Open it in the app . You can use the slider to select different dates and use the filter according to different conditions ( For example, category 、 Priority and media type ) To filter marketing campaigns .

null
In the calendar view, you can create a marketing campaign by clicking the plus sign , It can be created based on standard or customized marketing campaign templates . When saving the campaign , If it meets the filter conditions , The campaign will be displayed in the calendar and list views .

null
The top area of the calendar shows three major marketing activities KPI:Success, Spend, Sentiment.

Success

  • Popular categories : The five most commonly used categories of marketing campaigns .
  • Post emotion : Score emotions from “ Strongly support ” To “ Strongly opposed ” and “ No assessment ”,  Show number of social media messages .
  • Hot followers ( news ) And emotional rating ( news ): The audience with the largest number of social media messages and their emotional scores .

null

Spend

  • Total sum : Total planned expenditure for the selected campaign .
  • Popular expense types : The most common expenditure types and the total expenditure of each expenditure type .

null

Sentiment

Displays the emotional scores of all social media messages in the selected time . So that we can change the marketing campaign strategy according to the change of emotional score .

null

Marketing Plan

First of all, understand Plan, Program, Campaign, Activity The relationship between the four , The former, in turn, is the container of the latter .

(1) Creating Marketing Plans

Create a marketing plan : Marketing Plan The application overview page shows the current list of plans , Click to view the details of the plan . Click on Create I can create a new one Plan.

null
null
(2) Creating Programs and Assigning a Budget Plan Allocate budget plan :  For a specific Marketing Plan establish Program.

null
It can be for Program By time Phase, And for each Phase Set recommended expenses by time and media type .

null
Select a Program, You can open or delete this Program.

null
open Program This can be the Program establish Campaign Or specify a previously created Campaign.

null
by Campaign Set planned expenditures .

null
null
Planned expenditures are shown in the chart .

null

Budget Plans

stay Budget Plans Application , We can select from the list on the left Plan see budget Allocation details .

null
Click on Allocate Budget It can be for Plan Allocate budget .

null
Click... After the budget allocation is completed Edit Budget It can be viewed .

null
Click on Measures→Show, Select data to compare with current data .

null
On the basis of comparison , Choose products , Budget adjustments can be made 、 View budget comparisons in different markets 、 Budget comparison of different media types .

null
Based on the comparison of different markets, you can also view the comparison of different countries .

null
On the basis of comparison between different countries, you can also view specific Program Budget comparison .

null
Click on the histogram , You can view the selected Program details .

null
choice Program Medium Campaign Check the details .

null
stay Campaign Of Spend Module can be used for Spend To view and edit .

null

Upload spending data for marketing campaigns

stay Campaigns Application details page Spend modular , We can view the actual expenditure 、 Committed and planned expenditures . You can directly add planned expenditure data here .

null
stay Import Data Application , We can import external data of actual expenditure and committed expenditure . The imported data will be displayed in Campaigns Of Spend The module displays .

null

Use nodejs Realization OData Of batch Operation in Marketing Cloud Read in

Yes  Marketing Cloud  Have a basic understanding of the function modules of , We can then learn how to use programming methods , consumption  Marketing Cloud  Master data of the system .

Let's take a look at the author first  Marketing Cloud In the system contact Information : altogether 1218374 Data .

null
We use the following nodejs The code passes OData To get the data :

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);

Use node The command executes this directly .js file :

null
Get results that are consistent with those observed on the browser :

null

Use postman establish Marketing Cloud Of Contact

except  Node.js  And so on , We can also use  Postman  This routine  Restful API  Testing tools , To create  Marketing Cloud  Of  Contact  data .

First, in the Marketing Cloud Of UI Create a contact:

null
Observe Chrome Developer tools network In the tab HTTP request :https://jerry.hybris.com/sap/opu/odata/sap/CUAN_COMMON_SRV/?sap-client=100 This request is used to read CSRF token:

null
Click save , Will send a new HTTP post request :

null
request url:https://jerry.hybris.com/sap/opu/odata/sap/CUAN_COMMON_SRV/ContactPersons?sap-client=100

Then look at the important request header fields :

null
Take the first step CSRF token Fill in Postman Inside header In the field , Pictured :

null
body:

{&quot;CountryCode&quot;:&quot;CN&quot;,&quot;City&quot;:&quot;Chengdu&quot;,&quot;FirstName&quot;:&quot;Jerry1&quot;,&quot;LastName&quot;:&quot;Wang1&quot;,&quot;PostalCode&quot;:&quot;610093&quot;,&quot;RegionCode&quot;:&quot;&quot;,&quot;Street&quot;:&quot; Tianfu Software Park &quot;,&quot;HouseNumber&quot;:&quot; Tianfu Software Park &quot;,&quot;DateofBirth&quot;:null,&quot;ContactPersonFacets&quot;:[{&quot;Id&quot;:&quot;[email protected]&quot;,&quot;IdOrigin&quot;:&quot;EMAIL&quot;,&quot;Obsolete&quot;:false,&quot;Invalid&quot;:false},{&quot;Id&quot;:&quot;&quot;,&quot;IdOrigin&quot;:&quot;PHONE&quot;,&quot;Obsolete&quot;:false,&quot;Invalid&quot;:false},{&quot;Id&quot;:&quot;&quot;,&quot;IdOrigin&quot;:&quot;MOBILE&quot;,&quot;Obsolete&quot;:false,&quot;Invalid&quot;:false},{&quot;Id&quot;:&quot;&quot;,&quot;IdOrigin&quot;:&quot;FAX&quot;,&quot;Obsolete&quot;:false,&quot;Invalid&quot;:false}],&quot;IsConsumer&quot;:true,&quot;Filter&quot;:{&quot;MarketingAreaId&quot;:&quot;CXXGLOBAL&quot;}}

null
Status code 201, Prove that the creation was successful :

null
You can see the successful creation in the front end contact:

null

summary

This is the last article in the series , It introduces  SAP Marketing Cloud  Marketing plan module of , And how to use it  Node.js  and  Postman  These two tools , To create  Marketing Cloud Contact  Method of master data .
原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241226164740.html