This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
/
dbm_to_bigquery.json
executable file
·107 lines (107 loc) · 4.08 KB
/
dbm_to_bigquery.json
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"setup":{
"license":"Licensed under the Apache License, Version 2.0",
"copyright":"Copyright 2020 Google LLC"
},
"tasks":[
{ "include":{
"script":"scripts/dbm.json",
"parameters":{
"report":{
"filters": {
"FILTER_PARTNER": {
"values": {"field":{ "name":"partner_ids", "kind":"integer_list", "order":5, "default":[], "description":"DBM partner id." }}
},
"FILTER_ADVERTISER": {
"values": {"field":{ "name":"advertiser_ids", "kind":"integer_list", "order":6, "default":[], "description":"Comma delimited list of DBM advertiser ids." }}
}
},
"body": {
"timezoneCode":"America/Los_Angeles",
"metadata":{
"title":"Test Report ( StarThinker )",
"dataRange":"LAST_7_DAYS",
"format": "CSV"
},
"params": {
"type":"TYPE_CROSS_PARTNER",
"groupBys":[
"FILTER_DATE",
"FILTER_ADVERTISER",
"FILTER_INSERTION_ORDER",
"FILTER_CREATIVE_ID",
"FILTER_ADVERTISER_CURRENCY"
],
"metrics":[
"METRIC_REVENUE_ADVERTISER",
"METRIC_IMPRESSIONS"
]
}
}
},
"delete":true
}
}},
{ "dbm":{
"auth":"user",
"report":{
"name":"Test Report ( StarThinker )",
"timeout":5
},
"out":{
"bigquery":{
"dataset":"Test",
"table":"DBM_Report",
"header":true,
"schema":[
{ "name":"Report_Day", "type":"DATE" },
{ "name":"Advertiser", "type":"STRING" },
{ "name":"Advertiser_Id", "type":"INTEGER" },
{ "name":"Advertiser_Status", "type":"STRING" },
{ "name":"Advertiser_Integration_Code", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Insertion_Order", "type":"STRING" },
{ "name":"Insertion_Order_Id", "type":"INTEGER" },
{ "name":"Insertion_Order_Status", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Insertion_Order_Integration_Code", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Creative", "type":"STRING" },
{ "name":"Creative_Id", "type":"INTEGER" },
{ "name":"Dcm_Placement_Id", "type":"INTEGER" },
{ "name":"Creative_Status", "type":"STRING" },
{ "name":"Creative_Source", "type":"STRING" },
{ "name":"Creative_Integration_Code", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Advertiser_Currency", "type":"STRING" },
{ "name":"Revenue", "type":"FLOAT" },
{ "name":"Impressions", "type":"INTEGER" }
]
}
}
}},
{ "test": {
"auth":"user",
"bigquery":{
"dataset":"Test",
"table": "DBM_Report",
"schema":[
{ "name":"Report_Day", "type":"DATE" },
{ "name":"Advertiser", "type":"STRING" },
{ "name":"Advertiser_Id", "type":"INTEGER" },
{ "name":"Advertiser_Status", "type":"STRING" },
{ "name":"Advertiser_Integration_Code", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Insertion_Order", "type":"STRING" },
{ "name":"Insertion_Order_Id", "type":"INTEGER" },
{ "name":"Insertion_Order_Status", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Insertion_Order_Integration_Code", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Creative", "type":"STRING" },
{ "name":"Creative_Id", "type":"INTEGER" },
{ "name":"Dcm_Placement_Id", "type":"INTEGER" },
{ "name":"Creative_Status", "type":"STRING" },
{ "name":"Creative_Source", "type":"STRING" },
{ "name":"Creative_Integration_Code", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Advertiser_Currency", "type":"STRING" },
{ "name":"Revenue", "type":"FLOAT" },
{ "name":"Impressions", "type":"INTEGER" }
]
}
}}
]
}