1. Feiyu CRM Configuration
Go to Feiyu CRM, and automatically synchronize the leads generated by Toutiao's own website building tools to the CRM sales leads pool, and automatically associate the advertising groups and advertising plans of ocean engine.

Leads that support synchronization
Push Configuration Entry: Settings > API Settings > Leads Push Rule > New Rule.
2.1 Set Field Mapping Relationship
A. Set Standard Fields: The following five parameters must be set, and the api name of the mapping field is not allowed to be modified. If you need to obtain other related parameters, you can also select to add it. Fill in the corresponding field apiName in the CRM sales leads in the mapping field on the right. If it's a simple one-to-one parameter, leads can be inserted directly through this map. If there are complex multi-select or single-item configurations, you need to write a function map.
Original Field Name | Mapping Fields |
Lead id | Fill in the fixed value "clueId" |
Name | Fill in the apiname of the name field in CRM, usually "name" |
Telephone | Fill in the apiname of the phone field in CRM, and pay attention to whether "mobile" or "tel" is used in CRM |
Created Time | Fill in the fixed value "create_time" |
Plan id | Fill in the fixed value "ad_id" |


B. Form fields and industry fields can not be set, and can be configured similarly if required
C. Custom Field Settings:
Field Name | Specific Value |
ea | required. Funshare enterprise account, which can be obtained in the upper right corner of the management page |
source | required. The specific option apiName of the "source field" in the sales lead, here is the apiName of the headline advertisement option |
adSource | required. Fixed value field "toutiao" |
leads_pool_id | Not required. The specific option apiName of "lead pool" in sales leads |
funApiName | Not required. The function name of the mapping background configuration, the function can support multi-option related mapping |
Other required fields apiName | Not required. Other required fields, such as: company is a required field in sales leads, but this field may not be found in Feiyu leads. In order to ensure that leads are successfully saved to CRM sales leads, you can set a default value such as "unknown" |

2.2 Set Interface Type & Dimension
Service Settings: secret key and token are not filled
http_post url:
https://www.fxiaoke.com/marketing/adThridCallBack/recvData
Filter Conditions: depending on the specific needs, if there is no need, it can not be set
Failure Notification: you can set it as if failed, notify the responsible person

2.3 Set Data Sending Format
The data format cannot use the default format and needs to be changed to a format with data, where function name, enterprise account ID, lead ID are not placed in data, and other parameters that need to be transferred are placed in data. For example:
{
"funApiName": "Function Name",
"ea": "Enterprise Account ID",
"clueId": "",
"data": {
"name": "",
"mobile": "",
"create_time": "",
"source": "naask_kakd",
"ad_id": "",
"company":"unknown"
}
}

2.4 Set Return Status
The return status is changed to the following two English characters:
Status Code Key: errCode
Message Key: errMsg

2.5 Interface Debugging
Click Send Test, after the sending is successful, check the relevant leads in the CRM leads. When it's successful, click Save.

2.6 Enable Push Rule & View Push History
