Skip to content

Commit

Permalink
Merge pull request #45 from adzerk/rs/48366
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichis authored Aug 14, 2023
2 parents 2a03ed9 + 5abb905 commit e6fd1ae
Show file tree
Hide file tree
Showing 10 changed files with 228 additions and 14 deletions.
36 changes: 33 additions & 3 deletions management/ad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ paths:
type: integer
format: int32
nullable: true
enum: [1, 2, 3, 7, 8, 9]
enum: [1, 2, 3, 7, 8, 9, 10]
Goal:
type: integer
format: int32
Expand All @@ -132,6 +132,21 @@ paths:
format: int32
nullable: true
enum: [1, 2, 3]
Price:
type: number
format: float
nullable: true
ExternalMetadata:
type: string
nullable: true
CustomRelevancyScore:
type: integer
format: int32
nullable: true
ProductId:
type: integer
format: int32
nullable: true
responses:
200:
description: The newly created Ad
Expand Down Expand Up @@ -317,7 +332,7 @@ paths:
type: integer
format: int32
nullable: true
enum: [1, 2, 3, 7, 8, 9]
enum: [1, 2, 3, 7, 8, 9, 10]
Goal:
type: integer
format: int32
Expand All @@ -344,6 +359,21 @@ paths:
format: int32
nullable: true
enum: [1, 2, 3]
Price:
type: number
format: float
nullable: true
ExternalMetadata:
type: string
nullable: true
CustomRelevancyScore:
type: integer
format: int32
nullable: true
ProductId:
type: integer
format: int32
nullable: true

responses:
200:
Expand Down Expand Up @@ -444,4 +474,4 @@ paths:
$ref: './schemas/ad.yaml#/schemas/TrackingDetails'
components:
securitySchemes:
$ref: './components/security-schemes.yaml#/components/securitySchemes'
$ref: './components/security-schemes.yaml#/components/securitySchemes'
8 changes: 8 additions & 0 deletions management/creative-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ paths:
IsArchived:
type: boolean
default: false
MaxBytes:
type: integer
format: int32
nullable: true
Fields:
type: array
items:
Expand Down Expand Up @@ -170,6 +174,10 @@ paths:
required:
- Updates
properties:
MaxBytes:
type: integer
format: int32
nullable: true
Updates:
type: array
items:
Expand Down
68 changes: 64 additions & 4 deletions management/flight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ paths:
GoalType:
type: integer
format: int32
enum: [1, 2, 3, 8, 9]
enum: [1, 2, 3, 7, 8, 9, 10]
Impressions:
type: integer
format: int32
Expand All @@ -198,7 +198,7 @@ paths:
RateType:
type: integer
format: int32
enum: [1, 2, 3, 4, 5]
enum: [1, 2, 3, 4, 5, 6]
nullable: true
Price:
type: number
Expand Down Expand Up @@ -378,6 +378,36 @@ paths:
type: boolean
nullable: true
deprecated: true
AttributionClick:
type: object
nullable: true
properties:
MatchType:
type: string
nullable: false
enum: ["SameProduct", "SameCategoryBrand", "SameBrand"]
LookbackWindow:
type: integer
format: int32
nullable: false
enum: [1, 7, 14, 30]
AttributionView:
type: object
nullable: true
properties:
MatchType:
type: string
nullable: false
enum: ["SameProduct", "SameCategoryBrand", "SameBrand"]
LookbackWindow:
type: integer
format: int32
nullable: false
enum: [1, 7, 14, 30]
TargetROAS:
type: number
format: float
nullable: true
responses:
200:
description: Flight Updated
Expand Down Expand Up @@ -444,7 +474,7 @@ paths:
GoalType:
type: integer
format: int32
enum: [1, 2, 3, 8, 9]
enum: [1, 2, 3, 7, 8, 9, 10]
Impressions:
type: integer
format: int32
Expand All @@ -461,7 +491,7 @@ paths:
RateType:
type: integer
format: int32
enum: [1, 2, 3, 4, 5]
enum: [1, 2, 3, 4, 5, 6]
nullable: true
Price:
type: number
Expand Down Expand Up @@ -641,6 +671,36 @@ paths:
type: boolean
nullable: true
deprecated: true
AttributionClick:
type: object
nullable: true
properties:
MatchType:
type: string
nullable: false
enum: ["SameProduct", "SameCategoryBrand", "SameBrand"]
LookbackWindow:
type: integer
format: int32
nullable: false
enum: [1, 7, 14, 30]
AttributionView:
type: object
nullable: true
properties:
MatchType:
type: string
nullable: false
enum: ["SameProduct", "SameCategoryBrand", "SameBrand"]
LookbackWindow:
type: integer
format: int32
nullable: false
enum: [1, 7, 14, 30]
TargetROAS:
type: number
format: float
nullable: true
responses:
200:
description: Flight Created
Expand Down
16 changes: 15 additions & 1 deletion management/priority.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ paths:
type: integer
format: int32
nullable: true
FloorCPC:
type: number
format: float
nullable: true
SecondPriceGroupBy:
type: string
nullable: true
responses:
200:
description: The newly created priority
Expand Down Expand Up @@ -159,6 +166,13 @@ paths:
PassbackTimeout:
type: boolean
nullable: true
FloorCPC:
type: number
format: float
nullable: true
SecondPriceGroupBy:
type: string
nullable: true
responses:
200:
description: The updated priority
Expand Down Expand Up @@ -186,4 +200,4 @@ paths:
description: Successfully Deleted
components:
securitySchemes:
$ref: './components/security-schemes.yaml#/components/securitySchemes'
$ref: './components/security-schemes.yaml#/components/securitySchemes'
29 changes: 28 additions & 1 deletion management/schemas/ad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,33 @@ schemas:
type: integer
format: int32
nullable: true
Price:
type: number
format: float
nullable: true
ExternalMetadata:
type: string
nullable: true
CustomRelevancyScore:
type: integer
format: int32
nullable: true
ProductId:
type: integer
format: int32
nullable: true
Created:
type: string
format: date-time
nullable: true
LastModified:
type: string
format: date-time
nullable: true
Version:
type: integer
format: int32
nullable: true

AdList:
type: object
Expand Down Expand Up @@ -141,4 +168,4 @@ schemas:
format: uri
ImpressionPixelUrl:
type: string
format: uri
format: uri
10 changes: 9 additions & 1 deletion management/schemas/advertiser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ schemas:
Id:
type: integer
nullable: true
LastModified:
type: string
format: date-time
nullable: true
Version:
type: integer
format: int32
nullable: true

AdvertiserList:
type: object
Expand Down Expand Up @@ -87,4 +95,4 @@ schemas:
type: object
properties:
advertiserName:
type: string
type: string
18 changes: 17 additions & 1 deletion management/schemas/campaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@ schemas:
type: string
nullable: true
deprecated: true
Created:
type: string
format: date-time
nullable: true
LastModified:
type: string
format: date-time
nullable: true
Version:
type: integer
format: int32
nullable: true
SalespersonId:
type: integer
format: int32
nullable: true

CampaignList:
type: object
Expand All @@ -108,4 +124,4 @@ schemas:
type: object
properties:
campaignName:
type: string
type: string
6 changes: 5 additions & 1 deletion management/schemas/creative-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ schemas:
type: array
items:
$ref: '#/schemas/CreativeTemplateContents'
MaxBytes:
type: integer
format: int32
nullable: true

CreativeTemplateUpdateOperation:
type: object
Expand Down Expand Up @@ -87,4 +91,4 @@ schemas:
items:
type: array
items:
$ref: '#/schemas/CreativeTemplate'
$ref: '#/schemas/CreativeTemplate'
Loading

0 comments on commit e6fd1ae

Please sign in to comment.