LINE. Bot. ManageAudience
(line_bot_sdk v0.2.0)
Copy Markdown
API calls for all endpoints tagged ManageAudience.
Summary
Functions
Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON)
Create audience for uploading user IDs (by JSON)
Create audience for click-based retargeting
Create audience for impression-based retargeting
Gets audience data.
Gets data for more than one audience.
Gets audience data.
Gets data for more than one audience, including those shared by the Business Manager.
Create a new ManageAudience client.
Functions
Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON)
Parameters
client(Req.Request.t/0): Client to make request withadd_audience_to_audience_group_request(t:AddAudienceToAudienceGroupRequest/0):client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, nil}on success{:error, Req.Response.t}on failure
Create audience for uploading user IDs (by JSON)
Parameters
client(Req.Request.t/0): Client to make request withcreate_audience_group_request(t:CreateAudienceGroupRequest/0):client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, LINE.Bot.Model.CreateAudienceGroupResponse.t}on success{:error, Req.Response.t}on failure
create_click_based_audience_group(client, create_click_based_audience_group_request, client_opts \\ [])
Create audience for click-based retargeting
Parameters
client(Req.Request.t/0): Client to make request withcreate_click_based_audience_group_request(t:CreateClickBasedAudienceGroupRequest/0):client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, LINE.Bot.Model.CreateClickBasedAudienceGroupResponse.t}on success{:error, Req.Response.t}on failure
Create audience for impression-based retargeting
Parameters
client(Req.Request.t/0): Client to make request withcreate_imp_based_audience_group_request(t:CreateImpBasedAudienceGroupRequest/0):client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, LINE.Bot.Model.CreateImpBasedAudienceGroupResponse.t}on success{:error, Req.Response.t}on failure
Delete audience
Parameters
client(Req.Request.t/0): Client to make request withaudience_group_id(integer()/0): The audience ID.client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, nil}on success{:error, Req.Response.t}on failure
Gets audience data.
Parameters
client(Req.Request.t/0): Client to make request withaudience_group_id(integer()/0): The audience ID.client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, LINE.Bot.Model.GetAudienceDataResponse.t}on success{:error, Req.Response.t}on failure
Gets data for more than one audience.
Parameters
client(Req.Request.t/0): Client to make request withpage(integer()/0): The page to return when getting (paginated) results. Must be 1 or higher.optional_args(keyword): Optional parameters:description(String.t/0): 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.:status(t:AudienceGroupStatus/0): The status of the audience(s) to return. If omitted, the status of the audience(s) will not be used as a search criterion.:size(integer()/0): The number of audiences per page. Default: 20 Max: 40:includes_external_public_groups(boolean()/0): true (default): Get public audiences created in all channels linked to the same bot. false: Get audiences created in the same channel.:create_route(t:AudienceGroupCreateRoute/0): 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.
client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, LINE.Bot.Model.GetAudienceGroupsResponse.t}on success{:error, Req.Response.t}on failure
Create a new ManageAudience client.
Options
:base_url- base URL for requests (default:"https://api.line.me"):channel_token(required) - channel access token for Bearer authorization:plug- plug to use for testing (seeReq.new/1)
update_audience_group_description(client, audience_group_id, update_audience_group_description_request, client_opts \\ [])
Renames an existing audience.
Parameters
client(Req.Request.t/0): Client to make request withaudience_group_id(integer()/0): The audience ID.update_audience_group_description_request(t:UpdateAudienceGroupDescriptionRequest/0):client_opts(keyword/0): Options to pass toReq.request
Returns
{:ok, nil}on success{:error, Req.Response.t}on failure