-
Notifications
You must be signed in to change notification settings - Fork 2
/
topads_product_query.go
90 lines (89 loc) · 1.99 KB
/
topads_product_query.go
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package query
const (
TopadsProductQuery = `query TopadsProductQuery($adParams: String) {
displayAdsV3(displayParams: $adParams) {
data {
clickTrackUrl: product_click_url
product_wishlist_url
product {
id
name
wishlist
image {
imageUrl: s_ecs
trackerImageUrl: s_url
__typename
}
url: uri
relative_uri
price: price_format
wholeSalePrice: wholesale_price {
quantityMin: quantity_min_format
quantityMax: quantity_max_format
price: price_format
__typename
}
count_talk_format
countReviewFormat: count_review_format
category {
id
__typename
}
categoryBreadcrumb: category_breadcrumb
preorder: product_preorder
product_wholesale
free_return
isNewProduct: product_new_label
cashback: product_cashback_rate
rating: product_rating
ratingAverage: product_rating_format
top_label
bottomLabel: bottom_label
labelGroups: label_group {
position
type
title
url
__typename
}
campaign {
discountPercentage: discount_percentage
originalPrice: original_price
__typename
}
customvideo_url
__typename
}
shop {
shopId: id
name
domain
city
tagline
uri
isOfficial: shop_is_official
isPowerBadge: gold_shop
badges {
title
imageURL: image_url
show
__typename
}
__typename
}
tag
__typename
}
header {
meta {
ab_test
templating
__typename
}
__typename
}
__typename
}
}
`
)