Support layout
Fixed-height
Fixed
Example
Non-custom basic use
<div class= "MIP-ADBD" >
<mip-ad
Type= "Ad-baidu"
Cproid= "u2697398" >
</mip-ad>
</div>
Non-customizable Add layout
Component layout: Document
<div class= "MIP-ADBD" >
<mip-ad
layout= "Responsive"
Width= "414"
height= "80"
Type= "Ad-baidu"
Cproid= "u2697398" >
</mip-ad>
</div>
Custom Advertising Use
It is to be noted that:
The parameters in the Script tab of a custom advertisement must be in double quotes, which means that the data in the script tag must be in JSON format
The mip-embed or mip-ad tag must have a DIV child node, and the node must have a property ID, and the attribute value of the ID is "Cpro_" as the prefix, and the cproid in the script tag is the suffix of the string, this example should be "cproid=" u1908671 "
The parameters of the custom ad are consistent with the original page parameters, and the following code is for reference only
layout= "responsive" for component layout settings, document
<mip-embed
layout= "Responsive"
Width= "414"
height= "157"
Type= "Ad-baidu"
Cproid= "u1908671" >
<script type= "Application/json" >
{
"At": "3",
"HN": "0",
"WN": "0",
"Imgradio": "1.7",
"Scale": "20.6",
"Pat": "6",
"TN": "Template_inlay_all_mobile_lu_native",
"Rss1": "#FFFFFF",
"ADP": "1",
"PTT": "0",
"TITFF": "%E",
"Rss2": "#FFFFFF",
"Titsu": "0",
"PTBG": "70",
"PTP": "1"
}
</script>
<div id= "cpro_u1908671" ></div>
</mip-embed>
Property
Type
Description: Advertising Type
Required option: Yes
Type: string
Take value: Ad-baidu
Default value: None
Cproid
Description: Network Alliance advertising ID
Required option: Yes
Type: string
Default value: None