1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use crate::Request;

use serde::{Deserialize, Serialize};


/// 删除单元
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddAdApiUnitDelete {
    
    /// 广告单元Id
    #[serde(rename = "adId")]
    pub ad_id: Option<i64>,
    
    /// 场景类型。0表示搜索,2表示展示。
    #[serde(rename = "scenesType")]
    pub scenes_type: Option<i32>,
    
}


impl Request for PddAdApiUnitDelete {
    fn get_type() -> String {
        "pdd.ad.api.unit.delete".to_string()
    }

    fn get_response_name() -> String {
        "response".to_string()
    }
}