You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/youtube_analytics_api/actions/common/reports-query.mjs
+19-32Lines changed: 19 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -6,34 +6,19 @@ export default {
6
6
props: {
7
7
app,
8
8
startDate: {
9
-
propDefinition: [
10
-
app,
11
-
"startDate",
12
-
],
9
+
propDefinition: [app,"startDate"],
13
10
},
14
11
endDate: {
15
-
propDefinition: [
16
-
app,
17
-
"endDate",
18
-
],
12
+
propDefinition: [app,"endDate"],
19
13
},
20
14
dimensions: {
21
-
propDefinition: [
22
-
app,
23
-
"dimensions",
24
-
],
15
+
propDefinition: [app,"dimensions"],
25
16
},
26
17
sort: {
27
-
propDefinition: [
28
-
app,
29
-
"sort",
30
-
],
18
+
propDefinition: [app,"sort"],
31
19
},
32
20
maxResults: {
33
-
propDefinition: [
34
-
app,
35
-
"maxResults",
36
-
],
21
+
propDefinition: [app,"maxResults"],
37
22
},
38
23
idType: {
39
24
type: "string",
@@ -44,6 +29,14 @@ export default {
44
29
default: constants.ID_TYPE.CHANNEL.value,
45
30
reloadProps: true,
46
31
},
32
+
ids: {
33
+
type: "string",
34
+
label: "Channel ID OR Content Owner Name",
35
+
description:
36
+
"The use of this property depends on the value of the `idType` prop. If `idType` is set to `MINE`, then this property is unused. If `idType` is set to `channelId`, then this property is used to specify the Channel ID for this action. If `idType` is set to `contentOwner`, then this property is used to specify the Content Owner Name for this action.",
37
+
optional: true,
38
+
hidden: true,
39
+
},
47
40
},
48
41
methods: {
49
42
getIdsProps(){
@@ -56,27 +49,27 @@ export default {
56
49
label: "Content Owner Name",
57
50
description:
58
51
"The content owner name for the user. Eg. `MyContentOwnerName`.",
52
+
optional: false,
53
+
hidden: false,
59
54
},
60
55
};
61
56
}
62
-
63
57
if(idType===constants.ID_TYPE.CHANNEL_ID.value){
64
58
return{
65
59
ids: {
66
60
type: "string",
67
61
label: "Channel ID",
68
62
description:
69
63
"The channel ID for the user. Eg. `UC_x5XG1OV2P6uZZ5FSM9Ttw`. You can find the ID using the [YouTube Data API](https://developers.google.com/youtube/v3/docs/channels/list).",
0 commit comments