-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
sponsored_brands.py
59 lines (47 loc) · 1.17 KB
/
sponsored_brands.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
from decimal import Decimal
from typing import Dict, List, Optional
from .common import CatalogModel
class LandingPage(CatalogModel):
pageType: str
url: str
class BidAdjustment(CatalogModel):
bidAdjustmentPredicate: str
bidAdjustmentPercent: int
class Creative(CatalogModel):
brandName: str
brandLogoAssetID: str
brandLogoUrl: str
asins: List[str]
shouldOptimizeAsins: bool
class BrandsCampaign(CatalogModel):
campaignId: Decimal
name: str
tags: Dict[str, str]
budget: Decimal
budgetType: str
startDate: str
endDate: str
state: str
servingStatus: str
brandEntityId: str
portfolioId: int
bidOptimization: bool = None
bidMultiplier: Decimal = None
adFormat: str
bidAdjustments: Optional[List[BidAdjustment]]
creative: Optional[Creative]
landingPage: Optional[LandingPage]
supplySource: Optional[str]
class BrandsAdGroup(CatalogModel):
campaignId: Decimal
adGroupId: Decimal
name: str
bid: int
keywordId: Decimal
keywordText: str
nativeLanguageKeyword: str
matchType: str
state: str