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
Add includesOwnedAudienceGroups Parameter to Audience API (#1247)
line/line-openapi#105
# Enhancement to Shared Audiences API
This PR introduces a new query parameter `includesOwnedAudienceGroups`
to the `/v2/bot/audienceGroup/shared/list` endpoint in the Business
Manager API. This enhancement allows users to specify whether to include
audience groups owned by the user in the response.
## Changes Made
- Added the `includesOwnedAudienceGroups` parameter to the API endpoint.
- **Type**: Boolean
- **Default**: false
- **Description**:
- `true`: Include audience groups owned by the LINE Official Account
Manager.
- `false`: Respond only with audience groups shared by Business Manager.
- Removed the `/v2/bot/audienceGroup/{audienceGroupId}/activate` and
`/v2/bot/audienceGroup/authorityLevel` endpoints.
## Purpose
This update provides more flexibility in retrieving audience groups by
allowing users to filter based on ownership. It is especially useful for
users who manage both shared and owned audience groups. The removal of
certain endpoints is part of a cleanup effort to streamline the API.
Please review the changes and let me know if there are any questions or
further modifications needed.
## Documents and Reference
- [Get List of Shared
Audiences](https://developers.line.biz/en/reference/messaging-api/#get-shared-audience-list)
- [Removed
Endpoints](https://developers.line.biz/en/news/2025/03/26/cross-targeting-closing/)
For more information, please refer to the links provided above.
Co-authored-by: github-actions <[email protected]>
* @param page The page to return when getting (paginated) results. Must be 1 or higher.
@@ -434,6 +375,7 @@ export class ManageAudienceClient {
434
375
* @param status The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
435
376
* @param size The number of audiences per page. Default: 20 Max: 40
436
377
* @param createRoute 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.
378
+
* @param includesOwnedAudienceGroups true: Include audienceGroups owned by LINE Official Account Manager false: Respond only audienceGroups shared by Business Manager
@@ -443,6 +385,7 @@ export class ManageAudienceClient {
443
385
status?: AudienceGroupStatus,
444
386
size?: number,
445
387
createRoute?: AudienceGroupCreateRoute,
388
+
includesOwnedAudienceGroups?: boolean,
446
389
): Promise<GetSharedAudienceGroupsResponse>{
447
390
return(
448
391
awaitthis.getSharedAudienceGroupsWithHttpInfo(
@@ -451,6 +394,7 @@ export class ManageAudienceClient {
451
394
status,
452
395
size,
453
396
createRoute,
397
+
includesOwnedAudienceGroups,
454
398
)
455
399
).body;
456
400
}
@@ -463,6 +407,7 @@ export class ManageAudienceClient {
463
407
* @param status The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.
464
408
* @param size The number of audiences per page. Default: 20 Max: 40
465
409
* @param createRoute 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.
410
+
* @param includesOwnedAudienceGroups true: Include audienceGroups owned by LINE Official Account Manager false: Respond only audienceGroups shared by Business Manager
0 commit comments