Type: ad-baidu network alliance advertising


Type: ad-baidu network alliance advertising

Network alliance advertising.

Support layout

  • fixed-height
  • fixed

Example

Non-customized basic use

<div class="mip-adbd">
    <mip-ad
        type="ad-baidu" 
        cproid="u2697398">
    </mip-ad>
</div>

Non-customized plus layout

Component layout:Documentation. Please fill in width and height according to the actual width and height of the ad.

<div class="mip-adbd">
    <mip-ad
        layout="responsive"
        width="414"
        height="80" 
        type="ad-baidu" 
        cproid="u2697398">
    </mip-ad>
</div>

When using customized ads

It should be noted that:

  • The parameters in the script tag of customized ads must be in double quotes, that is to say, the parameters in the script tag The data must be in json format
  • mip-ad The tag must have a div child node, and this node must have an attribute id, and the attribute value of the id is "cpro_" as the prefix, and cproid in the script tag is the suffix The string, in this example should be "cproid="u1908671"
  • The parameters of the customized advertisement should be consistent with the original page parameters. The following code is for reference only.
  • layout="responsive" is the component layout Settings, Document
<mip-ad 
    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-ad>

Attribute

type

Description: Advertisement type
Required option: Yes
Type: String
Value: ad-baidu
Default value: None

cproid

Description: Network alliance advertising id
Required option: Yes
Type: Character String
Default value: None