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
-
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 IDvoid
setAccountId
(String accountId) ID of the ad account that owns this campaignvoid
setAdlabels
(List<AdLabel> adlabels) Ad Labels associated with this campaignvoid
setBidStrategy
(String bidStrategy) Bid strategy for this campaignvoid
setBoostedObjectId
(String boostedObjectId) The Boosted Object this campaign has associated, if anyvoid
setBrandLiftStudies
(List<AdStudy> brandLiftStudies) Automated Brand Lift V2 studies for this ad set.void
setBudgetRebalanceFlag
(Boolean budgetRebalanceFlag) Whether to automatically rebalance budgets daily for all the adsets under this campaign.void
setBudgetRemaining
(String budgetRemaining) Remaining budgetvoid
setBuyingType
(String buyingType) Buying type, possible values are: AUCTION: default RESERVED: for reach and frequency adsvoid
setCanCreateBrandLiftStudy
(Boolean canCreateBrandLiftStudy) If we can create a new automated brand lift study for the ad set.void
setCanUseSpendCap
(Boolean canUseSpendCap) Whether the campaign can set the spend capvoid
setConfiguredStatus
(String configuredStatus) If this status is PAUSED, all its active ad sets and ads will be paused and have an effective status CAMPAIGN_PAUSED.void
setCreatedTime
(Date createdTime) Created Timevoid
setDailyBudget
(String dailyBudget) The daily budget of the campaignvoid
setEffectiveStatus
(String effectiveStatus) The effective status of this campaign.void
setIssuesInfo
(List<AdCampaignIssuesInfo> issuesInfo) Issues for this campaign that prevented it from deliverying.void
setLastBudgetTogglingTime
(Date lastBudgetTogglingTime) Last budget toggling timevoid
setLifetimeBudget
(String lifetimeBudget) The lifetime budget of the campaignvoid
setObjective
(String objective) Campaign's objectivevoid
setRecommendations
(List<AdRecommendation> recommendations) If there are recommendations for this campaign, this field includes them.void
setSourceCampaign
(Campaign sourceCampaign) The source campaign that this campaign is copied fromvoid
setSourceCampaignId
(String sourceCampaignId) The source campaign id that this campaign is copied fromvoid
setSpecialAdCategories
(List<String> specialAdCategories) void
setSpecialAdCategory
(String specialAdCategory) Deprecated.void
setSpendCap
(String spendCap) A spend cap for the campaign, such that it will not spend more than this cap.void
setStartTime
(Date startTime) Start Timevoid
If this status is PAUSED, all its active ad sets and ads will be paused and have an effective status CAMPAIGN_PAUSED.void
setStopTime
(Date stopTime) Stop Timevoid
setToplineId
(String toplineId) Topline IDvoid
setUpdatedTime
(Date updatedTime) Updated TimeMethods inherited from class com.restfb.types.ads.NamedAdsObject
getName, setName
Methods inherited from class com.restfb.types.ads.BaseAdsObject
getId, setId
Methods 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:
getCreatedTime
in 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
-