Click or drag to resize
KomfoProviderCreateCustomAudienceAsync Method
Creates the custom audience asynchronously.

Namespace: KomfoSharp.Provider
Assembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual Task<string> CreateCustomAudienceAsync(
	string accessToken,
	string name,
	string description
)

Parameters

accessToken
Type: SystemString
The access token.
name
Type: SystemString
The name (up to 100 characters).
description
Type: SystemString
The description (up to 500 characters).

Return Value

Type: TaskString
The ID of the newly created empty custom audience. The ID is a string of digits and letters and is case sensitive. Maximum size 200 characters.

Implements

IKomfoProviderCreateCustomAudienceAsync(String, String, String)
Examples
var customAudienceId = await komfoProvider.CreateCustomAudienceAsync("<your_access_token>", "Sportsmen", "People who like sport");
Console.WriteLine("Custom Audience ID: {0}", customAudienceId);
See Also