| IKomfoProviderCreateCampaignAsync Method |
Creates the campaign asynchronously.
Namespace: KomfoSharp.ProviderAssembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxTask<string> CreateCampaignAsync(
string accessToken,
string extCampaignId,
string extCampaignKey,
string name = null,
string description = null
)
Parameters
- accessToken
- Type: SystemString
The access token. - extCampaignId
- Type: SystemString
The ID of the campaign in the external system (maximum 100 characters). - extCampaignKey
- Type: SystemString
The URL parameter name used to pass extCampaignId. - name (Optional)
- Type: SystemString
The name (maximum 100 characters). - description (Optional)
- Type: SystemString
The description (maximum 500 characters).
Return Value
Type:
TaskStringThe ID of the newly created campaign. The ID is a string with maximum size 200 characters and is case sensitive.
Examplesvar campaignId = await komfoProvider.CreateCampaignAsync("<your_access_token>", "ABSDFFEHJDU0031239UEE", "ad_camp");
Console.WriteLine("Campaign ID: {0}", campaignId);var campaignId = await komfoProvider.CreateCampaignAsync("<your_access_token>", "ABSDFFEHJDU0031239UEE", "ad_camp", "Summer 2015", "Targeted to coming summer 2015");
Console.WriteLine("Campaign ID: {0}", campaignId);
See Also