-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdv360_spend.json
65 lines (65 loc) · 1.75 KB
/
dv360_spend.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
{ "tasks": [
{ "dataset": {
"description": "Create dataset.",
"auth": "service",
"dataset": "DV360_Mapper"
}},
{ "dv_report": {
"description": "Create Spend Report",
"auth": "service",
"report": {
"filters": {
"FILTER_PARTNER": {
"bigquery":{
"query":"SELECT partnerId FROM DV360_Mapper.DV360_Partners",
"dataset": "DV360_Mapper"
}
}
},
"body": {
"metadata": {
"title": "Pacing Dashboard Report",
"dataRange": {
"range": "LAST_30_DAYS"
},
"format": "CSV"
},
"params": {
"type": "STANDARD",
"filters": [],
"groupBys": [
"FILTER_ADVERTISER_CURRENCY",
"FILTER_ADVERTISER",
"FILTER_MEDIA_PLAN",
"FILTER_INSERTION_ORDER",
"FILTER_LINE_ITEM"
],
"metrics": [
"METRIC_BILLABLE_IMPRESSIONS",
"METRIC_TOTAL_MEDIA_COST_ADVERTISER"
],
"options": {
"includeOnlyTargetedUserLists": false
}
}
}
},
"out":{
"bigquery":{
"auth":"service",
"dataset":"DV360_Mapper",
"table":"DV360_Spend",
"header":true,
"schema":[
{ "name": "Advertiser_Currency", "type": "STRING" },
{ "name": "Advertiser_Id", "type": "INTEGER" },
{ "name": "Campaign_Id", "type": "INTEGER" },
{ "name": "InsertionOrder_Id", "type": "INTEGER" },
{ "name": "LineItem_Id", "type": "INTEGER" },
{ "name": "Billable_Impressions", "type": "FLOAT" },
{ "name": "Total_Media_Cost_Advertiser_Currency", "type": "FLOAT" }
]
}
}
}}
]}