public class BulkCampaignNegativeSites extends MultiRecordBulkEntity
Represents one or more negative sites that are assigned to a campaign. Each negative site can be read or written in a bulk file. This class exposes properties that can be read and written as fields of the Campaign Negative Site record in a bulk file.
For more information, see Campaign Negative Site at https://go.microsoft.com/fwlink/?linkid=846127
One BulkCampaignNegativeSites
has one or more
BulkCampaignNegativeSite
. Each BulkCampaignNegativeSite
instance corresponds to one Campaign Negative Site record in the bulk file.
If you upload a BulkCampaignNegativeSites
, then you are effectively
replacing any existing negative sites assigned to the campaign.
BulkServiceManager
,
BulkOperation
,
BulkFileReader
,
BulkFileWriter
Constructor and Description |
---|
BulkCampaignNegativeSites()
Initializes a new instance of the BulkCampaignNegativeSites class.
|
BulkCampaignNegativeSites(BulkCampaignNegativeSitesIdentifier identifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
allChildrenPresent() |
protected Iterable<BulkCampaignNegativeSite> |
convertApiToBulkNegativeSites()
Reserved for internal use.
|
protected BulkCampaignNegativeSitesIdentifier |
createIdentifier()
Reserved for internal use.
|
String |
getCampaignName()
Gets the name of the campaign that the negative site is assigned.
|
CampaignNegativeSites |
getCampaignNegativeSites()
Gets the CampaignNegativeSites Data Object of the Campaign Management Service.
|
List<? extends BulkEntity> |
getChildEntities()
The child entities that this multi record entity contains.
|
List<TNegativeSite> |
getNegativeSites() |
Status |
getStatus() |
void |
readRelatedData(BulkRecordReader reader)
Reads object data from consecutive rows.
|
protected void |
reconstructApiObjects()
Reserved for internal use.
|
void |
setCampaignName(String campaignName)
Sets the name of the campaign that the negative site is assigned.
|
void |
setCampaignNegativeSites(CampaignNegativeSites campaignNegativeSites)
Sets the CampaignNegativeSites Data Object of the Campaign Management Service.
|
void |
setStatus(Status status) |
protected void |
validatePropertiesNotNull()
Reserved for internal use.
|
void |
write(BulkObjectWriter rowWriter,
boolean excludeReadonlyData)
Writes object data to consecutive rows.
|
getLastModifiedTime, hasErrors
validateListNotNullOrEmpty, validatePropertyNotNull
canEncloseInMultilineEntity, encloseInMultilineEntity, readFromRowValues, writeToRowValues
public BulkCampaignNegativeSites()
public BulkCampaignNegativeSites(BulkCampaignNegativeSitesIdentifier identifier)
public CampaignNegativeSites getCampaignNegativeSites()
For more information, see Campaign Negative Site at https://go.microsoft.com/fwlink/?linkid=846127.
public void setCampaignNegativeSites(CampaignNegativeSites campaignNegativeSites)
For more information, see Campaign Negative Site at https://go.microsoft.com/fwlink/?linkid=846127.
public String getCampaignName()
Corresponds to the 'Campaign' field in the bulk file.
public void setCampaignName(String campaignName)
Corresponds to the 'Campaign' field in the bulk file.
protected Iterable<BulkCampaignNegativeSite> convertApiToBulkNegativeSites()
protected void reconstructApiObjects()
protected BulkCampaignNegativeSitesIdentifier createIdentifier()
protected void validatePropertiesNotNull()
public Status getStatus()
public void setStatus(Status status)
public List<TNegativeSite> getNegativeSites()
public List<? extends BulkEntity> getChildEntities()
MultiRecordBulkEntity
getChildEntities
in class MultiRecordBulkEntity
public void write(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException
BulkObject
write
in class BulkObject
IOException
public void readRelatedData(BulkRecordReader reader)
BulkObject
readRelatedData
in class BulkObject
public boolean allChildrenPresent()
allChildrenPresent
in class MultiRecordBulkEntity
Copyright © 2024. All rights reserved.