Package com.restfb.types.ads
Class Campaign
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.ads.BaseAdsObject
com.restfb.types.ads.NamedAdsObject
com.restfb.types.ads.Campaign
- All Implemented Interfaces:
 HasCreatedTime,Serializable
Represents the Campaign
 Marketing API type
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionBid strategy for this campaignThe Boosted Object this campaign has associated, if anyAutomated Brand Lift V2 studies for this ad set.Whether to automatically rebalance budgets daily for all the adsets under this campaign.Remaining budgetIf we can create a new automated brand lift study for the ad set.The daily budget of the campaignLast budget toggling timeThe lifetime budget of the campaignThe source campaign that this campaign is copied fromThe source campaign id that this campaign is copied fromDeprecated.Topline IDvoidsetAccountId(String accountId) ID of the ad account that owns this campaignvoidsetAdlabels(List<AdLabel> adlabels) Ad Labels associated with this campaignvoidsetBidStrategy(String bidStrategy) Bid strategy for this campaignvoidsetBoostedObjectId(String boostedObjectId) The Boosted Object this campaign has associated, if anyvoidsetBrandLiftStudies(List<AdStudy> brandLiftStudies) Automated Brand Lift V2 studies for this ad set.voidsetBudgetRebalanceFlag(Boolean budgetRebalanceFlag) Whether to automatically rebalance budgets daily for all the adsets under this campaign.voidsetBudgetRemaining(String budgetRemaining) Remaining budgetvoidsetBuyingType(String buyingType) Buying type, possible values are: AUCTION: default RESERVED: for reach and frequency adsvoidsetCanCreateBrandLiftStudy(Boolean canCreateBrandLiftStudy) If we can create a new automated brand lift study for the ad set.voidsetCanUseSpendCap(Boolean canUseSpendCap) Whether the campaign can set the spend capvoidsetConfiguredStatus(String configuredStatus) If this status is PAUSED, all its active ad sets and ads will be paused and have an effective status CAMPAIGN_PAUSED.voidsetCreatedTime(Date createdTime) Created TimevoidsetDailyBudget(String dailyBudget) The daily budget of the campaignvoidsetEffectiveStatus(String effectiveStatus) The effective status of this campaign.voidsetIssuesInfo(List<AdCampaignIssuesInfo> issuesInfo) Issues for this campaign that prevented it from deliverying.voidsetLastBudgetTogglingTime(Date lastBudgetTogglingTime) Last budget toggling timevoidsetLifetimeBudget(String lifetimeBudget) The lifetime budget of the campaignvoidsetObjective(String objective) Campaign's objectivevoidsetRecommendations(List<AdRecommendation> recommendations) If there are recommendations for this campaign, this field includes them.voidsetSourceCampaign(Campaign sourceCampaign) The source campaign that this campaign is copied fromvoidsetSourceCampaignId(String sourceCampaignId) The source campaign id that this campaign is copied fromvoidsetSpecialAdCategories(List<String> specialAdCategories) voidsetSpecialAdCategory(String specialAdCategory) Deprecated.voidsetSpendCap(String spendCap) A spend cap for the campaign, such that it will not spend more than this cap.voidsetStartTime(Date startTime) Start TimevoidIf this status is PAUSED, all its active ad sets and ads will be paused and have an effective status CAMPAIGN_PAUSED.voidsetStopTime(Date stopTime) Stop TimevoidsetToplineId(String toplineId) Topline IDvoidsetUpdatedTime(Date updatedTime) Updated TimeMethods inherited from class com.restfb.types.ads.NamedAdsObject
getName, setNameMethods inherited from class com.restfb.types.ads.BaseAdsObject
getId, setIdMethods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString 
- 
Constructor Details
- 
Campaign
public Campaign() 
 - 
 - 
Method Details
- 
getAccountId
- Returns:
 - ID of the ad account that owns this campaign
 
 - 
setAccountId
ID of the ad account that owns this campaign - 
getAdlabels
- Returns:
 - Ad Labels associated with this campaign
 
 - 
setAdlabels
Ad Labels associated with this campaign - 
getBidStrategy
Bid strategy for this campaign - 
setBidStrategy
Bid strategy for this campaign - 
getBoostedObjectId
The Boosted Object this campaign has associated, if any - 
setBoostedObjectId
The Boosted Object this campaign has associated, if any - 
getBrandLiftStudies
Automated Brand Lift V2 studies for this ad set. - 
setBrandLiftStudies
Automated Brand Lift V2 studies for this ad set. - 
getBudgetRebalanceFlag
Whether to automatically rebalance budgets daily for all the adsets under this campaign. - 
setBudgetRebalanceFlag
Whether to automatically rebalance budgets daily for all the adsets under this campaign. - 
getBudgetRemaining
Remaining budget - 
setBudgetRemaining
Remaining budget - 
getBuyingType
- Returns:
 - Buying type
 
 - 
setBuyingType
Buying type, possible values are:- AUCTION: default
 - RESERVED: for reach and frequency ads
 
 - 
getCanCreateBrandLiftStudy
If we can create a new automated brand lift study for the ad set. - 
setCanCreateBrandLiftStudy
If we can create a new automated brand lift study for the ad set. - 
getCanUseSpendCap
- Returns:
 - Whether the campaign can set the spend cap
 
 - 
setCanUseSpendCap
Whether the campaign can set the spend cap - 
getConfiguredStatus
- Returns:
 - the configured status
 
 - 
setConfiguredStatus
If this status is PAUSED, all its active ad sets and ads will be paused and have an effective status CAMPAIGN_PAUSED. Prefer using 'status' instead of this. possible values: ACTIVE, PAUSED, DELETED, ARCHIVED - 
getCreatedTime
- Specified by:
 getCreatedTimein interfaceHasCreatedTime- Returns:
 - Created Time
 
 - 
setCreatedTime
Created Time - 
getDailyBudget
The daily budget of the campaign - 
setDailyBudget
The daily budget of the campaign - 
getEffectiveStatus
- Returns:
 - The effective status of this campaign
 
 - 
setEffectiveStatus
The effective status of this campaign. possible values: ACTIVE, PAUSED, DELETED, PENDING_REVIEW, DISAPPROVED, PREAPPROVED, PENDING_BILLING_INFO, CAMPAIGN_PAUSED, ARCHIVED, ADSET_PAUSED - 
getIssuesInfo
- Returns:
 - List of issues for this campaign that prevented it from deliverying.
 
 - 
setIssuesInfo
Issues for this campaign that prevented it from deliverying. - 
getLastBudgetTogglingTime
Last budget toggling time - 
setLastBudgetTogglingTime
Last budget toggling time - 
getLifetimeBudget
The lifetime budget of the campaign - 
setLifetimeBudget
The lifetime budget of the campaign - 
getObjective
- Returns:
 - Campaign's objective
 
 - 
setObjective
Campaign's objective - 
getRecommendations
- Returns:
 - If there are recommendations for this campaign, this field includes them.
 
 - 
setRecommendations
If there are recommendations for this campaign, this field includes them. - 
getSourceCampaign
The source campaign that this campaign is copied from - 
setSourceCampaign
The source campaign that this campaign is copied from - 
getSourceCampaignId
The source campaign id that this campaign is copied from - 
setSourceCampaignId
The source campaign id that this campaign is copied from - 
getSpecialAdCategory
Deprecated.The campaign's Special Ad Category. One ofHOUSING,EMPLOYMENT,CREDIT, orNONE. - 
setSpecialAdCategory
Deprecated.The campaign's Special Ad Category. One ofHOUSING,EMPLOYMENT,CREDIT, orNONE. - 
getSpecialAdCategories
 - 
setSpecialAdCategories
 - 
getSpendCap
- Returns:
 - A spend cap for the campaign, such that it will not spend more than this cap.
 
 - 
setSpendCap
A spend cap for the campaign, such that it will not spend more than this cap. Expressed as integer value of the subunit in your currency. - 
getStartTime
- Returns:
 - Start Time
 
 - 
setStartTime
Start Time - 
getStatus
- Returns:
 - the status
 
 - 
setStatus
If this status is PAUSED, all its active ad sets and ads will be paused and have an effective status CAMPAIGN_PAUSED. The field returns the same value as 'configured_status', and is the suggested one to use. - 
getStopTime
- Returns:
 - Stop Time
 
 - 
setStopTime
Stop Time - 
getToplineId
Topline ID - 
setToplineId
Topline ID - 
getUpdatedTime
- Returns:
 - Updated Time
 
 - 
setUpdatedTime
Updated Time 
 -