Click or drag to resize
KomfoProviderCreateCampaignAsync Method
Creates the campaign asynchronously.

Namespace: KomfoSharp.Provider
Assembly: KomfoSharp (in KomfoSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public virtual Task<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: TaskString
The ID of the newly created campaign. The ID is a string with maximum size 200 characters and is case sensitive.

Implements

IKomfoProviderCreateCampaignAsync(String, String, String, String, String)
Examples
var 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