| IKomfoProviderCreateCustomAudienceAsync Method |
Creates the custom audience asynchronously.
Namespace: KomfoSharp.ProviderAssembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxTask<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.
Examplesvar customAudienceId = await komfoProvider.CreateCustomAudienceAsync("<your_access_token>", "Sportsmen", "People who like sport");
Console.WriteLine("Custom Audience ID: {0}", customAudienceId);
See Also