-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblocks.xml
More file actions
executable file
·219 lines (201 loc) · 6.21 KB
/
blocks.xml
File metadata and controls
executable file
·219 lines (201 loc) · 6.21 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<palette>
<block
tag="initUnityAds"
spec="initialize unity ads [c:unityads]"
code="UnityAds.init();"
type="action"
color="charcoal"
returns="void">
<fields>
</fields>
</block>
<block
tag="loadVideoUnityAds"
spec="load video ad with ad unit id: %0 [c:unityads]"
code="UnityAds.loadVideo(~);"
type="action"
color="charcoal"
returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block
tag="loadRewardedUnityAds"
spec="load rewarded ad with ad unit id: %0 [c:unityads]"
code="UnityAds.loadRewarded(~);"
type="action"
color="charcoal"
returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block
tag="showVideoUnityAds"
spec="show video ad with ad unit id: %0 [c:unityads]"
code="UnityAds.showVideo(~);"
type="action"
color="charcoal"
returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block
tag="showRewardedUnityAds"
spec="show rewarded ad with ad unit id: %0 and alert title: %1 with message: %2 [c:unityads]"
code="UnityAds.showRewarded(~,~,~);"
help="If alert title is empty, no alert will show."
type="action"
color="charcoal"
returns="void">
<fields>
<text order="0"></text>
<text order="1"></text>
<text order="2"></text>
</fields>
</block>
<block
tag="showBannerUnityAds"
spec="show banner ad with ad unit id: %0 [c:unityads]"
code="UnityAds.showBanner(~);"
type="action"
color="charcoal"
returns="void">
<fields>
<text order="0"></text>
</fields>
</block>
<block
tag="hideBannerUnityAds"
spec="hide banner ad [c:unityads]"
code="UnityAds.hideBanner();"
type="action"
color="charcoal"
returns="void">
<fields>
</fields>
</block>
<block
tag="moveBannerUnityAds"
spec="move banner ad to: %0 [c:unityads]"
code="UnityAds.moveBanner(~);"
type="action"
color="charcoal"
returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="bottom" code=""BOTTOM""></c>
<c text="top" code=""TOP""></c>
</choices>
</dropdown>
</fields>
</block>
<block
tag="setConsentUnityAds"
spec="set consent to: %0 [c:unityads]"
code="UnityAds.setConsent(~);"
help="Set users consent programmatically"
type="action"
color="charcoal"
returns="void">
<fields>
<dropdown order="0">
<choices>
<c text="YES" code="true"></c>
<c text="NO" code="false"></c>
</choices>
</dropdown>
</fields>
</block>
<block
tag="getConsentUnityAds"
spec="get consented [c:unityads]"
code="UnityAds.getConsent()"
help="Returns true when consent is set to YES and returns false when consent is set to NO"
type="normal"
color="charcoal"
returns="boolean">
<fields>
</fields>
</block>
<block
tag="isSupportdUnityAds"
spec="unity ads is supported on device [c:unityads]"
code="UnityAds.isSupported()"
help="Check if Unity Ads is supported on device"
type="normal"
color="charcoal"
returns="boolean">
<fields>
</fields>
</block>
<block
tag="getAdInfoUnityAds"
spec="can show ad with ad unit id: %0 [c:unityads]"
code="UnityAds.canShowAds(~)"
type="normal"
color="charcoal"
returns="boolean">
<fields>
<text order="0"></text>
</fields>
</block>
<dropdown id="unityads-ad-status">
<choices>
<c text="did show" code="AdDidShow" />
<c text="is completed" code="Completed" />
<c text="is skipped" code="IsSkipped" />
<c text="did click" code="DidClick" />
<c text="failed to show" code="AdFailedToShow" />
<c text="did load" code="AdDidFetch" />
<c text="failed to load" code="AdFailedToFetch" />
</choices>
</dropdown>
<block
tag="getVideoAdInfoUnityAds"
spec="video ad %0 [c:unityads]"
code="UnityAds.video~()"
help="Each flag is reset only when queried. To simulate events, check each state you're interested in every game step."
type="normal"
color="charcoal"
returns="boolean">
<fields>
<dropdown order="0" id="unityads-ad-status" />
</fields>
</block>
<block
tag="getRewardedAdInfoUnityAds"
spec="rewarded video ad %0 [c:unityads]"
code="UnityAds.rewarded~()"
help="Each flag is reset only when queried. To simulate events, check each state you're interested in every game step."
type="normal"
color="charcoal"
returns="boolean">
<fields>
<dropdown order="0" id="unityads-ad-status" />
</fields>
</block>
<block
tag="getBannerAdInfoUnityAds"
spec="banner ad %0 [c:unityads]"
code="UnityAds.~()"
help="Each flag is reset only when queried. To simulate events, check each state you're interested in every game step."
type="normal"
color="charcoal"
returns="boolean">
<fields>
<dropdown order="0">
<choices>
<c text="did show" code="bannerDidShow"></c>
<c text="did hide" code="bannerDidHide"></c>
<c text="did click" code="bannerDidClick"></c>
<c text="did error" code="bannerDidError"></c>
</choices>
</dropdown>
</fields>
</block>
</palette>