Skip to content

Commit

Permalink
add TargetingInput placements #12
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopaunov committed Mar 29, 2024
1 parent 136f6e6 commit 05a96ee
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/types/Dsp/Campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,22 @@ export type AdvancedInputSingle = {
[key in AdvancedInputProps]: boolean
}

export type Placement = 'site' | 'app'

export type TargetingPlacementInput = {
in: Placement[]
nin: Placement[]
apply: TargetingInputApplyProp
}

export type TargetingInput = {
version: string
inputs: {
location: TargetingInputSingle
categories: TargetingInputSingle
publishers: TargetingInputSingle
advanced: AdvancedInputSingle
placements: TargetingInputSingle
advanced: TargetingPlacementInput
}
}

Expand Down

0 comments on commit 05a96ee

Please # to comment.