Click or drag to resize
Infosoft Logo

InfoWebXMLWebServiceGetCampaigns2 Method

Returns all of the campaigncodes for a title. This method can also return offers that is not visible on web. It will return all campaigns that are active on the supplied date. If no date is set, it will use todays date.

Namespace: Infosoft.Webservices
Assembly: Infosoft.Webservices (in Infosoft.Webservices.dll) Version: 4.00.0.0
Syntax
public InfoWebCampaignCode[] GetCampaigns2(
	string titleCode,
	DateTime? ondate,
	bool filterOnWebVisibleOffers
)

Parameters

titleCode  String
The code for the susbcription title
ondate  NullableDateTime
Ondate - it will only be returned campaigns that are active on this date. If no date is supplied it will be set to todays date.
filterOnWebVisibleOffers  Boolean
If true: only active and web visible offers would be added to the campaign collection. If false: all active offers would be added to the campaign collection

Return Value

InfoWebCampaignCode
A collection of InfoWebCampaignCode objects, if no campaign was found it returns an empty collection.
See Also