Reference

Table Campaigns


Description

No description available

Supported Operations

Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.
Method Supported Reference EndPoint
SELECT get_campaigns
INSERT
UPDATE
UPSERT
DELETE
LOOKUP get_campaign

Examples

SSIS

Use Mailchimp Connector in API Source component to read data or in API Destination component to read/write data:

Read from Campaigns table using API Source

API Source - Mailchimp
Read and write Mailchimp data effortlessly. Integrate, manage, and automate campaigns, lists, members, and reports — almost no coding required.
Mailchimp
Campaigns
Optional Parameters
Campaign type
Status of the campaign
Campaign sent before (Format: 2015-10-21T15:41:36)
Campaign sent after (Format: 2015-10-21T15:41:36)
Campaign created before (Format: 2015-10-21T15:41:36)
Campaign created after (Format: 2015-10-21T15:41:36)
Using list Id
Using folder Id
To customer
ContineOnErrorForStatusCode True
ErrorStatusCodeToMatchRegex 404|405
SSIS API Source - Read from table or endpoint

Read/write to Campaigns table using API Destination

API Destination - Mailchimp
Read and write Mailchimp data effortlessly. Integrate, manage, and automate campaigns, lists, members, and reports — almost no coding required.
Mailchimp
Campaigns
Select
Optional Parameters
Campaign type
Status of the campaign
Campaign sent before (Format: 2015-10-21T15:41:36)
Campaign sent after (Format: 2015-10-21T15:41:36)
Campaign created before (Format: 2015-10-21T15:41:36)
Campaign created after (Format: 2015-10-21T15:41:36)
Using list Id
Using folder Id
To customer
ContineOnErrorForStatusCode True
ErrorStatusCodeToMatchRegex 404|405
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

Read campaigns

<p>Gets all campaigns. Pagination is handled automatically. Use the <code>Fields</code> parameter or list columns in the <code>SELECT</code> clause to limit returned columns.</p>

SELECT * FROM Campaigns

Read campaigns (selected columns)

<p>Gets only the columns you specify from the <code>Campaigns</code> table to reduce payload size. List the columns in the <code>SELECT</code> clause or use the <code>Fields</code> parameter.</p>

SELECT Id, WebId, Type, CreateTime, ArchiveUrl, LongArchiveUrl, Status, EmailsSent, SendTime, ContentType, NeedsBlockRefresh, Resendable, RecipientsListId, RecipientsListIsActive, RecipientsListName, RecipientsSegmentText, RecipientsRecipientCount, SettingsSubjectLine, SettingsTitle, SettingsFromName, SettingsReplyTo, SettingsUseConversation, SettingsToName, SettingsFolderId, SettingsAuthenticate, SettingsAutoFooter, SettingsInlineCss, SettingsAutoTweet, SettingsFbComments, SettingsTimeWarp, SettingsTemplateId, SettingsDragAndDrop, TrackingOpens, TrackingHtmlClicks, TrackingTextClicks, TrackingGoalTracking, TrackingEcomm360, TrackingGoogleAnalytics, TrackingClicktale, DeliveryStatusEnabled 
FROM Campaigns

Read a campaign by ID

<p>Gets a single campaign by its ID. Use <code>WHERE Id='...'</code> with the campaign ID.</p>

SELECT * FROM Campaigns 
WHERE Id='328e99cbc4'

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Read campaigns

<p>Gets all campaigns. Pagination is handled automatically. Use the <code>Fields</code> parameter or list columns in the <code>SELECT</code> clause to limit returned columns.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Campaigns';

EXEC (@MyQuery) AT [LS_TO_MAILCHIMP_IN_GATEWAY];

Read campaigns (selected columns)

<p>Gets only the columns you specify from the <code>Campaigns</code> table to reduce payload size. List the columns in the <code>SELECT</code> clause or use the <code>Fields</code> parameter.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT Id, WebId, Type, CreateTime, ArchiveUrl, LongArchiveUrl, Status, EmailsSent, SendTime, ContentType, NeedsBlockRefresh, Resendable, RecipientsListId, RecipientsListIsActive, RecipientsListName, RecipientsSegmentText, RecipientsRecipientCount, SettingsSubjectLine, SettingsTitle, SettingsFromName, SettingsReplyTo, SettingsUseConversation, SettingsToName, SettingsFolderId, SettingsAuthenticate, SettingsAutoFooter, SettingsInlineCss, SettingsAutoTweet, SettingsFbComments, SettingsTimeWarp, SettingsTemplateId, SettingsDragAndDrop, TrackingOpens, TrackingHtmlClicks, TrackingTextClicks, TrackingGoalTracking, TrackingEcomm360, TrackingGoogleAnalytics, TrackingClicktale, DeliveryStatusEnabled 
FROM Campaigns';

EXEC (@MyQuery) AT [LS_TO_MAILCHIMP_IN_GATEWAY];

Read a campaign by ID

<p>Gets a single campaign by its ID. Use <code>WHERE Id='...'</code> with the campaign ID.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Campaigns 
WHERE Id=''328e99cbc4''';

EXEC (@MyQuery) AT [LS_TO_MAILCHIMP_IN_GATEWAY];