use crate::Request;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct AdUnitBids {
#[serde(rename = "bidId")]
pub bid_id: Option<i64>,
#[serde(rename = "bidValue")]
pub bid_value: Option<i64>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddAdApiUnitBidUpdate {
#[serde(rename = "adId")]
pub ad_id: Option<i64>,
#[serde(rename = "adUnitBids")]
pub ad_unit_bids: Option<Vec<AdUnitBids>>,
#[serde(rename = "bidReferenceType")]
pub bid_reference_type: Option<i32>,
}
impl Request for PddAdApiUnitBidUpdate {
fn get_type() -> String {
"pdd.ad.api.unit.bid.update".to_string()
}
fn get_response_name() -> String {
"response".to_string()
}
}