pub struct LinkedInAdsPlatformData {Show 16 fields
pub cost_type: Option<CostType>,
pub unit_cost: Option<f64>,
pub optimization_target_type: Option<String>,
pub creative_selection: Option<CreativeSelection>,
pub audience_expansion_enabled: Option<bool>,
pub offsite_delivery_enabled: Option<bool>,
pub connected_television_only: Option<bool>,
pub carousel: Option<Box<LinkedInAdsPlatformDataCarousel>>,
pub document: Option<Box<LinkedInAdsPlatformDataDocument>>,
pub spotlight: Option<Box<LinkedInAdsPlatformDataSpotlight>>,
pub follower: Option<Box<LinkedInAdsPlatformDataFollower>>,
pub jobs: Option<Box<LinkedInAdsPlatformDataJobs>>,
pub text_ad: Option<Box<LinkedInAdsPlatformDataTextAd>>,
pub conversation: Option<Box<LinkedInAdsPlatformDataConversation>>,
pub event: Option<Box<LinkedInAdsPlatformDataEvent>>,
pub thought_leader: Option<Box<LinkedInAdsPlatformDataThoughtLeader>>,
}Expand description
LinkedInAdsPlatformData : LinkedIn-specific options for POST /v1/ads/boost and POST /v1/ads/create: campaign bidding and delivery controls, plus the LinkedIn-only creative formats on /v1/ads/create. Unknown keys are rejected.
Fields§
§cost_type: Option<CostType>Campaign cost model (billing event). Defaults to CPM. Required when unitCost is set so the manual bid applies to an explicit cost model.
unit_cost: Option<f64>Manual bid in WHOLE account-currency units (e.g. 2.5 = $2.50). Requires costType. Omit for LinkedIn’s automated (max delivery) bidding. LinkedIn enforces its own per-audience min/max bid bounds.
optimization_target_type: Option<String>Campaign optimizationTargetType (e.g. MAX_CLICK, TARGET_COST_PER_CLICK, MAX_IMPRESSION). Forwarded verbatim, LinkedIn validates compatibility with the objective and costType. Omit for the objective-derived default: awareness gets MAX_IMPRESSION, video_views gets MAX_VIDEO_VIEW, and every other goal gets MAX_CLICK. lead_generation and conversions also get MAX_CLICK, because MAX_LEAD and MAX_CONVERSION need a lead gen form or a conversion rule that neither creation flow attaches. The default applies only to SPONSORED_UPDATES campaigns (every boost, and the image, video and carousel standalone ads), never to the TEXT_AD, DYNAMIC and SPONSORED_INMAILS campaigns the other creative formats produce. It is also skipped when unitCost or a non-CPM costType is set, since those select manual bidding and the bid is then yours to choose.
creative_selection: Option<CreativeSelection>How LinkedIn rotates creatives within the campaign. Defaults to OPTIMIZED.
audience_expansion_enabled: Option<bool>Enable LinkedIn audience expansion. Defaults to false.
offsite_delivery_enabled: Option<bool>Deliver on the LinkedIn Audience Network. Defaults to false.
connected_television_only: Option<bool>Restrict delivery to Connected TV inventory.
carousel: Option<Box<LinkedInAdsPlatformDataCarousel>>§document: Option<Box<LinkedInAdsPlatformDataDocument>>§spotlight: Option<Box<LinkedInAdsPlatformDataSpotlight>>§follower: Option<Box<LinkedInAdsPlatformDataFollower>>§jobs: Option<Box<LinkedInAdsPlatformDataJobs>>§text_ad: Option<Box<LinkedInAdsPlatformDataTextAd>>§conversation: Option<Box<LinkedInAdsPlatformDataConversation>>§event: Option<Box<LinkedInAdsPlatformDataEvent>>§thought_leader: Option<Box<LinkedInAdsPlatformDataThoughtLeader>>Implementations§
Source§impl LinkedInAdsPlatformData
impl LinkedInAdsPlatformData
Sourcepub fn new() -> LinkedInAdsPlatformData
pub fn new() -> LinkedInAdsPlatformData
LinkedIn-specific options for POST /v1/ads/boost and POST /v1/ads/create: campaign bidding and delivery controls, plus the LinkedIn-only creative formats on /v1/ads/create. Unknown keys are rejected.
Trait Implementations§
Source§impl Clone for LinkedInAdsPlatformData
impl Clone for LinkedInAdsPlatformData
Source§fn clone(&self) -> LinkedInAdsPlatformData
fn clone(&self) -> LinkedInAdsPlatformData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more