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_sheets.json
executable file
·67 lines (67 loc) · 2.64 KB
/
dcm_to_sheets.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
{
"setup":{
"license":"Licensed under the Apache License, Version 2.0",
"copyright":"Copyright 2020 Google LLC"
},
"tasks":[
{ "sheets":{
"__comment__":"Create a blank sheet for this test. The tab is deleted if exists and re-created.",
"auth":"user",
"sheet":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker Test CM Report ", "default": "Manual"}},
"tab":"Report",
"range":"A1",
"delete":true,
"template":{}
}},
{ "dcm":{
"__comment__":"Create a basic report to run.",
"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 Sheet Report ", "default": "Manual"}}
}
},
"delete":true
}},
{ "dcm":{
"__comment__":"Move the report to sheets. Wait indefinately as we expect the report to run quickly.",
"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 Sheet Report ", "default": "Manual"}},
"timeout":5
},
"out":{
"sheets":{
"sheet":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker Test CM Report ", "default": "Manual"}},
"tab":"Report",
"range":"A1"
}
}
}},
{ "test": {
"__comment__":"Check if sheet headers are valid. Rest of rows are random.",
"auth":"user",
"sheets": {
"sheet":{"field":{ "name":"test_run_id", "kind":"string", "description":"The dataset to use for the test.", "prefix":"StarThinker Test CM Report ", "default": "Manual"}},
"tab":"Report",
"range":"A1:C1",
"values":[
["Report_Day", "Platform_Type", "Impressions"]
]
}
}}
]
}