LUCampaign Class Reference
| Inherits from | LUAPIModel : NSObject | 
| Declared in | LUCampaign.h LUCampaign.m  | 
Overview
LevelUp campaigns are general objects used by merchants and advertisers. They are typically used by merchants to acquire new customers and/or re-engage new customers.
Campaigns
Applications built on the LevelUp SDK will usually interact with campaigns in one of several ways:
- Users may scan QR codes representing a campaign, which will then claim the campaign for them, and show a success screen providing more information about the campaign, and ways to share the campaign online.
 - Each user has a unique referral code which they can share with their friends. If someone joins LevelUp using their code, both the referring user and the new user will get LevelUp credit. Behind the scenes, these referral programs are implemented using “Refer-a-Friend” campaigns.
 - Some merchants support migration of loyalty cards into LevelUp credit. These are handled by “Legacy Loyalty” campaigns.
 
Sharing
Some campaigns can be shared by users. Currently, sharing by email, Facebook, and Twitter is supported. If the campaign allows sharing, the campaign will contain initial text that can be used to prefill the sharing dialogs.
Tasks
- 
	
		
campaignIDproperty - 
	
		
confirmationHTMLproperty - 
	
		
globalproperty - 
	
		
messageForEmailBodyproperty - 
	
		
messageForEmailSubjectproperty - 
	
		
messageForFacebookproperty - 
	
		
messageForTwitterproperty - 
	
		
nameproperty - 
	
		
offerHTMLproperty - 
	
		
shareableproperty - 
	
		
shareURLEmailproperty - 
	
		
shareURLFacebookproperty - 
	
		
shareURLTwitterproperty - 
	
		
sponsorproperty - 
	
		
valueproperty - 
	
		
– confirmationText - 
	
		
– imageURL - 
	
		
– offerText 
Properties
campaignID
The unique identifier for this campaign.
@property (nonatomic, copy, readonly) NSNumber *campaignIDDiscussion
The unique identifier for this campaign.
Declared In
LUCampaign.hconfirmationHTML
An HTML message to show the user after claiming the campaign.
@property (nonatomic, copy, readonly) NSString *confirmationHTMLDiscussion
An HTML message to show the user after claiming the campaign.
Declared In
LUCampaign.hglobal
Specifies that the campaign is global, which means that it applies to all merchants – if a user claims it, they will receive global credit that can be used at any LevelUp merchant.
@property (nonatomic, assign, readonly) BOOL globalDiscussion
Specifies that the campaign is global, which means that it applies to all merchants – if a user claims it, they will receive global credit that can be used at any LevelUp merchant.
Declared In
LUCampaign.hmessageForEmailBody
A suggested initial email body to use when a user shares this campaign over email.
@property (nonatomic, copy, readonly) NSString *messageForEmailBodyDiscussion
A suggested initial email body to use when a user shares this campaign over email.
Declared In
LUCampaign.hmessageForEmailSubject
A suggested initial email subject to use when a user shares this campaign over email.
@property (nonatomic, copy, readonly) NSString *messageForEmailSubjectDiscussion
A suggested initial email subject to use when a user shares this campaign over email.
Declared In
LUCampaign.hmessageForFacebook
A suggested initial post to use when a user shares this campaign over Facebook.
@property (nonatomic, copy, readonly) NSString *messageForFacebookDiscussion
A suggested initial post to use when a user shares this campaign over Facebook.
Declared In
LUCampaign.hmessageForTwitter
A suggested initial post to use when a user shares this campaign over Twitter.
@property (nonatomic, copy, readonly) NSString *messageForTwitterDiscussion
A suggested initial post to use when a user shares this campaign over Twitter.
Declared In
LUCampaign.hname
The name of the campaign.
@property (nonatomic, copy, readonly) NSString *nameDiscussion
The name of the campaign.
Declared In
LUCampaign.hofferHTML
An HTML message describing the campaign.
@property (nonatomic, copy, readonly) NSString *offerHTMLDiscussion
An HTML message describing the campaign.
Declared In
LUCampaign.hshareURLEmail
The URL to use when sharing this campaign via email. Note that this will be included in the email body by the server, so it does not need to be added to the email body.
@property (nonatomic, copy, readonly) NSURL *shareURLEmailDiscussion
The URL to use when sharing this campaign via email. Note that this will be included in the email body by the server, so it does not need to be added to the email body.
Declared In
LUCampaign.hshareURLFacebook
The URL to use when sharing this campaign via Facebook.
@property (nonatomic, copy, readonly) NSURL *shareURLFacebookDiscussion
The URL to use when sharing this campaign via Facebook.
Declared In
LUCampaign.hshareURLTwitter
The URL to use when sharing this campaign via Twitter.
@property (nonatomic, copy, readonly) NSURL *shareURLTwitterDiscussion
The URL to use when sharing this campaign via Twitter.
Declared In
LUCampaign.hshareable
Specifies if this campaign can be shared.
@property (nonatomic, assign, readonly) BOOL shareableDiscussion
Specifies if this campaign can be shared.
Declared In
LUCampaign.hsponsor
The campaign’s sponsor.
@property (nonatomic, copy, readonly) NSString *sponsorDiscussion
The campaign’s sponsor.
Declared In
LUCampaign.hvalue
The monetary value of the campaign. This is the amount of credit the user will receive after claiming.
@property (nonatomic, strong, readonly) LUMonetaryValue *valueDiscussion
The monetary value of the campaign. This is the amount of credit the user will receive after claiming.
Declared In
LUCampaign.hInstance Methods
confirmationText
A helper method which returns confirmationHTML stripped of HTML tags.
- (NSString *)confirmationTextDiscussion
A helper method which returns confirmationHTML stripped of HTML tags.
Declared In
LUCampaign.himageURL
An associated image for the campaign. Will automatically return a retina or non-retina scaled image based on the screen scale of the device. The resolution of the image is 320x212.
- (NSURL *)imageURLDiscussion
An associated image for the campaign. Will automatically return a retina or non-retina scaled image based on the screen scale of the device. The resolution of the image is 320x212.
Declared In
LUCampaign.h