forked from line/line-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manage-audience.yml
1045 lines (1020 loc) · 36.2 KB
/
manage-audience.yml
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
openapi: 3.0.0
info:
title: LINE Messaging API
version: '0.0.1'
description:
This document describes LINE Messaging API.
servers:
- url: 'https://api.line.me'
security:
- Bearer: []
tags:
- name: manage-audience
- name: manage-audience-blob
paths:
"/v2/bot/audienceGroup/upload":
post:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group
tags:
- manage-audience
operationId: createAudienceGroup
description: Create audience for uploading user IDs (by JSON)
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/CreateAudienceGroupRequest"
required: true
responses:
'200':
description: OK
content:
"application/json":
schema:
"$ref": "#/components/schemas/CreateAudienceGroupResponse"
example:
audienceGroupId: 1234567890123
createRoute: MESSAGING_API
type: UPLOAD
description: audienceGroupName_01
created: 1613698278
permission: READ_WRITE
expireTimestamp: 1629250278
isIfaAudience: false
put:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
tags:
- manage-audience
operationId: addAudienceToAudienceGroup
description: Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON)
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/AddAudienceToAudienceGroupRequest"
required: true
responses:
'200':
description: OK
# empty JSON object
"/v2/bot/audienceGroup/click":
post:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
tags:
- manage-audience
operationId: createClickBasedAudienceGroup
description: Create audience for click-based retargeting
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/CreateClickBasedAudienceGroupRequest"
required: true
responses:
'200':
description: OK
content:
"application/json":
schema:
"$ref": "#/components/schemas/CreateClickBasedAudienceGroupResponse"
example:
audienceGroupId: 1234567890123
createRoute: MESSAGING_API
type: CLICK
description: audienceGroupName_01
created: 1613705240
permission: READ_WRITE
expireTimestamp: 1629257239
isIfaAudience: false
requestId: bb9744f9-47fa-4a29-941e-1234567890ab
clickUrl: https://developers.line.biz/
"/v2/bot/audienceGroup/imp":
post:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
tags:
- manage-audience
operationId: createImpBasedAudienceGroup
description: Create audience for impression-based retargeting
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/CreateImpBasedAudienceGroupRequest"
required: true
responses:
'200':
description: OK
content:
"application/json":
schema:
"$ref": "#/components/schemas/CreateImpBasedAudienceGroupResponse"
example:
audienceGroupId: 1234567890123
createRoute: MESSAGING_API
type: IMP
description: audienceGroupName_01
created: 1613707097
permission: READ_WRITE
expireTimestamp: 1629259095
isIfaAudience: false
requestId: bb9744f9-47fa-4a29-941e-1234567890ab
"/v2/bot/audienceGroup/{audienceGroupId}/updateDescription":
put:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
tags:
- manage-audience
operationId: updateAudienceGroupDescription
description: Renames an existing audience.
parameters:
- name: audienceGroupId
in: path
required: true
description: The audience ID.
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/UpdateAudienceGroupDescriptionRequest"
required: true
responses:
'200':
description: OK
"/v2/bot/audienceGroup/{audienceGroupId}/activate":
put:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#activate-audience-group
tags:
- manage-audience
operationId: activateAudienceGroup
description: Activate audience
parameters:
- name: audienceGroupId
in: path
required: true
description: The audience ID.
schema:
type: integer
format: int64
responses:
'202':
description: Accepted
"/v2/bot/audienceGroup/{audienceGroupId}":
parameters:
- name: audienceGroupId
in: path
required: true
description: The audience ID.
schema:
type: integer
format: int64
delete:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#delete-audience-group
tags:
- manage-audience
operationId: deleteAudienceGroup
description: Delete audience
responses:
'200':
description: OK
# an empty JSON object
get:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-audience-group
tags:
- manage-audience
operationId: getAudienceData
description: Gets audience data.
responses:
'200':
description: OK
content:
"application/json":
schema:
"$ref": "#/components/schemas/GetAudienceDataResponse"
examples:
UPLOADING_USER_IDS:
summary: Example of an audience used for uploading user IDs
value:
audienceGroup:
audienceGroupId: 1234567890123
createRoute: OA_MANAGER
type: UPLOAD
description: audienceGroupName_01
status: READY
audienceCount: 1887
created: 1608617466
permission: READ
isIfaAudience: false
expireTimestamp: 1624342266
jobs:
- audienceGroupJobId: 12345678
audienceGroupId: 1234567890123
description: audience_list.txt
type: DIFF_ADD
status: FINISHED
failedType: ~
audienceCount: 0
created: 1608617472
jobStatus: FINISHED
CLICK_BASED:
summary: Example of an audience used for click-based retargeting
value:
audienceGroup:
audienceGroupId: 1234567890987
createRoute: OA_MANAGER
type: CLICK
description: audienceGroupName_02
status: IN_PROGRESS
audienceCount: 8619
created: 1611114828
permission: READ
isIfaAudience: false
expireTimestamp: 1626753228
requestId: c10c3d86-f565-...
clickUrl: https://example.com/
jobs: [ ]
APP_EVENTS:
summary: Example of an audience used for app events
value:
audienceGroup:
audienceGroupId: 2345678909876
createRoute: AD_MANAGER
type: APP_EVENT
description: audienceGroupName_03
status: READY
audienceCount: 8619
created: 1608619802
permission: READ
activated: 1610068515
inactiveTimestamp: 1625620516
isIfaAudience: false
jobs: [ ]
adaccount:
name: Ad Account Name
'400':
description: Bad request
content:
'application/json':
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
message: audience group not found
details:
- message: AUDIENCE_GROUP_NOT_FOUND
"/v2/bot/audienceGroup/list":
get:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-audience-groups
tags:
- manage-audience
operationId: getAudienceGroups
description: Gets data for more than one audience.
parameters:
- name: page
in: query
required: true
schema:
type: integer
format: int64
minimum: 1
description: The page to return when getting (paginated) results. Must be 1 or higher.
- name: description
in: query
required: true
schema:
type: string
description: |+
The name of the audience(s) to return.
You can search for partial matches.
This is case-insensitive, meaning AUDIENCE and audience are considered identical.
If omitted, the name of the audience(s) will not be used as a search criterion.
- name: status
in: query
required: true
schema:
"$ref": "#/components/schemas/AudienceGroupStatus"
description: |+
The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
- name: size
in: query
required: true
schema:
type: integer
format: int64
example: 20
maximum: 40
description: |+
The number of audiences per page. Default: 20
Max: 40
- name: includesExternalPublicGroups
in: query
required: true
schema:
type: boolean
example: true
description: |+
true (default): Get public audiences created in all channels linked to the same bot.
false: Get audiences created in the same channel.
- name: createRoute
in: query
required: true
schema:
"$ref": "#/components/schemas/AudienceGroupCreateRoute"
description: |+
How the audience was created. If omitted, all audiences are included.
`OA_MANAGER`: Return only audiences created with LINE Official Account Manager (opens new window).
`MESSAGING_API`: Return only audiences created with Messaging API.
responses:
'200':
description: OK
content:
"application/json":
schema:
"$ref": "#/components/schemas/GetAudienceGroupsResponse"
examples:
TWO_AUDIENCES:
summary: Example of when there are two audiences that match the specified filter
value:
audienceGroups:
- audienceGroupId: 1234567890123
createRoute: OA_MANAGER
type: CLICK
description: audienceGroupName_01
status: IN_PROGRESS
audienceCount: 8619
created: 1611114828
permission: READ
isIfaAudience: false
expireTimestamp: 1626753228
requestId: c10c3d86-f565-...
clickUrl: https://example.com/
- audienceGroupId: 2345678901234
createRoute: AD_MANAGER
type: APP_EVENT
description: audienceGroupName_02
status: READY
audienceCount: 3368
created: 1608619802
permission: READ
activated: 1610068515
inactiveTimestamp: 1625620516
isIfaAudience: false
hasNextPage: false
totalCount: 2
readWriteAudienceGroupTotalCount: 0
size: 40
page: 1
NO_AUDIENCE:
summary: Example of when there is no audience that matches the specified filter
value:
audienceGroups: []
hasNextPage: false
totalCount: 0
readWriteAudienceGroupTotalCount: 0
size: 40
page: 1
"/v2/bot/audienceGroup/authorityLevel":
get:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-authority-level
tags:
- manage-audience
operationId: getAudienceGroupAuthorityLevel
description: Get the authority level of the audience
responses:
'200':
description: OK
content:
"application/json":
schema:
"$ref": "#/components/schemas/GetAudienceGroupAuthorityLevelResponse"
example:
authorityLevel: PUBLIC
put:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#change-authority-level
tags:
- manage-audience
operationId: updateAudienceGroupAuthorityLevel
description: Change the authority level of the audience
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/UpdateAudienceGroupAuthorityLevelRequest"
required: true
responses:
'200':
description: OK
# empty json response
"/v2/bot/audienceGroup/upload/byFile":
post:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group-by-file
servers:
- url: 'https://api-data.line.me'
tags:
- manage-audience-blob
operationId: createAudienceForUploadingUserIds
description: Create audience for uploading user IDs (by file).
requestBody:
content:
multipart/form-data:
schema:
description: Request for createAudienceForUploadingUserIds
type: object
required:
- file
properties:
description:
type: string
maxLength: 120
description: |+
The audience's name. This is case-insensitive, meaning AUDIENCE and audience are considered identical.
Max character limit: 120
isIfaAudience:
type: boolean
description: |+
To specify recipients by IFAs: set `true`.
To specify recipients by user IDs: set `false` or omit isIfaAudience property.
uploadDescription:
type: string
description: |+
The description to register for the job (in `jobs[].description`).
file:
type: string
format: binary
description: |+
A text file with one user ID or IFA entered per line. Specify text/plain as Content-Type. Max file number: 1
Max number: 1,500,000
encoding:
file:
contentType: text/plain
required: true
responses:
'200':
description: OK
content:
"application/json":
schema:
$ref: "#/components/schemas/CreateAudienceForUploadingResponse"
example:
audienceGroupId: 1234567890123
createRoute: MESSAGING_API
type: UPLOAD
description: audienceGroupName_01
created: 1613700237
permission: READ_WRITE
expireTimestamp: 1629252237
isIfaAudience: false
put:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group-by-file
servers:
- url: 'https://api-data.line.me'
tags:
- manage-audience-blob
operationId: addUserIdsToAudience
description: Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by file).
requestBody:
required: true
content:
multipart/form-data:
schema:
description: Request of the addUserIdsToAudience
type: object
required:
- file
properties:
audienceGroupId:
type: integer
format: int64
description: The audience ID.
uploadDescription:
type: string
description: The description to register with the job
file:
type: string
format: binary
description: |+
A text file with one user ID or IFA entered per line. Specify text/plain as Content-Type. Max file number: 1
Max number: 1,500,000
encoding:
file:
contentType: text/plain
responses:
'202':
description: OK
# empty response
components:
securitySchemes:
Bearer:
type: http
scheme: bearer
description: Channel access token
schemas:
CreateAudienceGroupRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group
type: object
description: Create audience for uploading user IDs (by JSON)
properties:
description:
type: string
description: |+
The audience's name. This is case-insensitive, meaning AUDIENCE and audience are considered identical.
Max character limit: 120
maxLength: 120
isIfaAudience:
type: boolean
description: |+
To specify recipients by IFAs: set true.
To specify recipients by user IDs: set false or omit isIfaAudience property.
uploadDescription:
type: string
description: |+
The description to register for the job (in jobs[].description).
audiences:
type: array
items:
"$ref": "#/components/schemas/Audience"
description: |+
An array of user IDs or IFAs.
Max number: 10,000
maxItems: 10000
Audience:
description: Audience
type: object
properties:
id:
type: string
description: A user ID or IFA. You can specify an empty array.
CreateAudienceGroupResponse:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group
type: object
description: Create audience for uploading user IDs (by JSON)
properties:
audienceGroupId:
type: integer
format: int64
description: The audience ID.
createRoute:
type: string
enum:
- MESSAGING_API
description: |+
How the audience was created.
`MESSAGING_API`: An audience created with Messaging API.
type:
"$ref": "#/components/schemas/AudienceGroupType"
description:
type: string
description: The audience's name.
created:
type: integer
format: int64
description: When the audience was created (in UNIX time).
permission:
type: string
enum:
- READ
- READ_WRITE
description: |+
Audience's update permission. Audiences linked to the same channel will be READ_WRITE.
`READ`: Can use only.
`READ_WRITE`: Can use and update.
expireTimestamp:
type: number
format: int64
description: |+
Time of audience expiration. Only returned for specific audiences.
isIfaAudience:
type: boolean
description: |+
The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. One of:
`true`: Accounts are specified with IFAs.
`false` (default): Accounts are specified with user IDs.
AudienceGroupType:
description: Audience group type
type: string
enum:
- UPLOAD
- CLICK
- IMP
- CHAT_TAG
- FRIEND_PATH
- RESERVATION
- APP_EVENT
- VIDEO_VIEW
- WEBTRAFFIC
- IMAGE_CLICK
AddAudienceToAudienceGroupRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group
type: object
description: Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON)
properties:
audienceGroupId:
type: integer
format: int64
description: The audience ID.
uploadDescription:
type: string
description: The audience's name.
audiences:
description: An array of up to 10,000 user IDs or IFAs.
type: array
items:
"$ref": "#/components/schemas/Audience"
maxItems: 10000
CreateClickBasedAudienceGroupRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
type: object
description: Create audience for click-based retargeting
properties:
description:
type: string
description: |+
The audience's name. This is case-insensitive, meaning AUDIENCE and audience are considered identical.
Max character limit: 120
maxLength: 120
requestId:
type: string
description: |+
The request ID of a broadcast or narrowcast message sent in the past 60 days.
Each Messaging API request has a request ID.
clickUrl:
type: string
format: uri
description: |+
The URL clicked by the user. If empty, users who clicked any URL in the message are added to the list of recipients.
Max character limit: 2,000
maxLength: 2000
CreateClickBasedAudienceGroupResponse:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group
type: object
description: Create audience for click-based retargeting
properties:
audienceGroupId:
type: integer
format: int64
description: The audience ID.
type:
"$ref": "#/components/schemas/AudienceGroupType"
description:
type: string
description: The audience's name.
created:
type: integer
format: int64
description: When the audience was created (in UNIX time).
requestId:
type: string
description: The request ID that was specified when the audience was created.
clickUrl:
type: string
format: uri
description: The URL that was specified when the audience was created.
createRoute:
type: string
enum:
- MESSAGING_API
description: |+
How the audience was created.
`MESSAGING_API`: An audience created with Messaging API.
permission:
type: string
enum:
- READ
- READ_WRITE
description: |+
Audience's update permission. Audiences linked to the same channel will be READ_WRITE.
- `READ`: Can use only.
- `READ_WRITE`: Can use and update.
expireTimestamp:
type: integer
format: int64
description: Time of audience expiration. Only returned for specific audiences.
isIfaAudience:
type: boolean
default: false
description: |+
The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. One of:
true: Accounts are specified with IFAs.
false (default): Accounts are specified with user IDs.
CreateImpBasedAudienceGroupRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
type: object
description: Create audience for impression-based retargeting
properties:
description:
type: string
description: |+
The audience's name.
This is case-insensitive, meaning `AUDIENCE` and `audience` are considered identical.
Max character limit: 120
maxLength: 120
minLength: 1
requestId:
type: string
description: |+
The request ID of a broadcast or narrowcast message sent in the past 60 days.
Each Messaging API request has a request ID.
CreateImpBasedAudienceGroupResponse:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group
type: object
description: Create audience for impression-based retargeting
properties:
audienceGroupId:
type: integer
format: int64
description: The audience ID.
type:
"$ref": "#/components/schemas/AudienceGroupType"
description:
type: string
description: The audience's name.
created:
type: integer
format: int64
description: When the audience was created (in UNIX time).
requestId:
type: string
description: The request ID that was specified when the audience was created.
UpdateAudienceGroupDescriptionRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group
type: object
description: Rename an audience
properties:
description:
type: string
description: |+
The audience's name. This is case-insensitive, meaning AUDIENCE and audience are considered identical.
Max character limit: 120
maxLength: 120
minLength: 1
GetAudienceDataResponse:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-audience-group
type: object
description: Get audience data
properties:
audienceGroup:
"$ref": "#/components/schemas/AudienceGroup"
jobs:
type: array
description: |+
An array of jobs.
This array is used to keep track of each attempt to add new user IDs or IFAs to an audience for uploading user IDs.
Empty array is returned for any other type of audience.
Max: 50
maxItems: 50
items:
"$ref": "#/components/schemas/AudienceGroupJob"
AudienceGroup:
# https://developers.line.biz/en/reference/messaging-api/#get-audience-groups
# https://developers.line.biz/en/reference/messaging-api/#get-audience-group
type: object
description: Audience group
properties:
audienceGroupId:
type: integer
format: int64
description: The audience ID.
type:
"$ref": "#/components/schemas/AudienceGroupType"
description:
type: string
description: The audience's name.
status:
"$ref": "#/components/schemas/AudienceGroupStatus"
failedType:
"$ref": "#/components/schemas/AudienceGroupFailedType"
audienceCount:
type: integer
format: int64
description: The number of users included in the audience.
created:
type: integer
format: int64
description: When the audience was created (in UNIX time).
requestId:
type: string
description: |+
The request ID that was specified when the audience was created.
This is only included when `audienceGroup.type` is CLICK or IMP.
clickUrl:
type: string
format: uri
description: |+
The URL that was specified when the audience was created.
This is only included when `audienceGroup.type` is CLICK and link URL is specified.
isIfaAudience:
type: boolean
description: |+
The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs.
permission:
"$ref": "#/components/schemas/AudienceGroupPermission"
createRoute:
"$ref": "#/components/schemas/AudienceGroupCreateRoute"
AudienceGroupJob:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-audience-group
description: Audience group job
type: object
properties:
audienceGroupJobId:
type: integer
format: int64
description: A job ID.
audienceGroupId:
type: integer
format: int64
description: An audience ID.
description:
type: string
description: The job's description.
type:
"$ref": "#/components/schemas/AudienceGroupJobType"
jobStatus:
"$ref": "#/components/schemas/AudienceGroupJobStatus"
failedType:
"$ref": "#/components/schemas/AudienceGroupJobFailedType"
audienceCount:
type: integer
format: int64
description: The number of accounts (recipients) that were added or removed.
created:
type: integer
format: int64
description: When the job was created (in UNIX time).
AudienceGroupStatus:
# https://developers.line.biz/en/reference/messaging-api/#get-audience-groups
# https://developers.line.biz/en/reference/messaging-api/#get-audience-group
description: Status
type: string
enum:
- IN_PROGRESS
- READY
- FAILED
- EXPIRED
- INACTIVE
- ACTIVATING
AudienceGroupFailedType:
description: Failed type
type: string
nullable: true
enum:
- AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT
- INTERNAL_ERROR
- null
AudienceGroupPermission:
description: Permission
type: string
enum:
- READ
- READ_WRITE
AudienceGroupCreateRoute:
description: |+
How the audience was created. One of:
- `OA_MANAGER`: Audience created with [LINE Official Account Manager](https://manager.line.biz/).
- `MESSAGING_API`: Audience created with Messaging API.
- `POINT_AD`: Audience created with [LINE Points Ads](https://www.linebiz.com/jp/service/line-point-ad/) (Japanese only).
- `AD_MANAGER`: Audience created with [LINE Ads](https://admanager.line.biz/).
type: string
enum:
- OA_MANAGER
- MESSAGING_API
- POINT_AD
- AD_MANAGER
AudienceGroupJobType:
description: Job Type
type: string
enum:
- DIFF_ADD
AudienceGroupJobStatus:
description: Job status
type: string
enum:
- QUEUED
- WORKING
- FINISHED
- FAILED
AudienceGroupJobFailedType:
description: Failed type
type: string
enum:
- INTERNAL_ERROR
- AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT
GetAudienceGroupsResponse:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-audience-groups
type: object
description: Gets data for more than one audience.
properties:
audienceGroups:
description: An array of audience data. If there are no audiences that match the specified filter, an empty array will be returned.
type: array
items:
"$ref": "#/components/schemas/AudienceGroup"
hasNextPage:
type: boolean
description: true when this is not the last page.
totalCount:
type: integer
format: int64
description: The total number of audiences that can be returned with the specified filter.
readWriteAudienceGroupTotalCount:
type: integer
format: int64
description: Of the audiences you can get with the specified filter, the number of audiences with the update permission set to READ_WRITE.
page:
type: integer
format: int64
description: The current page number.
size:
type: integer
format: int64
description: The maximum number of audiences on the current page.
GetAudienceGroupAuthorityLevelResponse:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#get-authority-level
type: object
description: Get the authority level of the audience
properties:
authorityLevel:
"$ref": "#/components/schemas/AudienceGroupAuthorityLevel"
AudienceGroupAuthorityLevel:
description: authority level
type: string
enum:
- PUBLIC
- PRIVATE
UpdateAudienceGroupAuthorityLevelRequest:
externalDocs:
url: https://developers.line.biz/en/reference/messaging-api/#change-authority-level
type: object
description: Change the authority level of the audience
properties:
authorityLevel:
"$ref": "#/components/schemas/AudienceGroupAuthorityLevel"