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
/
dcm_to_bigquery.json
executable file
·66 lines (66 loc) · 2.63 KB
/
dcm_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
{
"setup":{
"license":"Licensed under the Apache License, Version 2.0",
"copyright":"Copyright 2020 Google LLC"
},
"tasks":[
{ "dataset":{
"auth":"service",
"dataset":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker_Test_CM_Report_", "default": "Manual"}},
"clear":true
}},
{ "dcm":{
"auth":"user",
"report":{
"account":{"field":{ "name":"account_id", "kind":"string", "default":"" }},
"body":{
"criteria": {
"dateRange": {"kind": "dfareporting#dateRange", "relativeDateRange": "LAST_7_DAYS"},
"dimensions": [
{"kind": "dfareporting#sortedDimension", "name": "date"},
{"kind": "dfareporting#sortedDimension", "name": "platformType"}],
"metricNames": ["impressions"]
},
"type": "STANDARD",
"delivery": {"emailOwner": false},
"format": "CSV",
"kind": "dfareporting#report",
"name": {"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker Test CM Report ", "default": "Manual"}}
}
},
"delete":true
}},
{ "dcm":{
"auth":"user",
"report":{
"account":{"field":{ "name":"account_id", "kind":"string", "default":"" }},
"name":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker Test CM Report ", "default": "Manual"}},
"timeout":5
},
"out":{
"bigquery":{
"auth":"service",
"dataset":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker_Test_CM_Report_", "default": "Manual"}},
"table":"DCM_Report"
}
}
}},
{ "test": {
"auth":"service",
"bigquery":{
"dataset":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker_Test_CM_Report_", "default": "Manual"}},
"table":"DCM_Report",
"schema":[
{ "name":"Report_Day", "type":"DATE", "mode":"NULLABLE" },
{ "name":"Platform_Type", "type":"STRING", "mode":"NULLABLE" },
{ "name":"Impressions", "type":"INTEGER", "mode":"NULLABLE" }
]
}
}},
{ "dataset":{
"auth":"service",
"dataset":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker_Test_CM_Report_", "default": "Manual"}},
"delete":true
}}
]
}