public class BulkAdGroupNegativeSites extends MultiRecordBulkEntity
Represents one or more negative sites that are assigned to an ad group. 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 Ad Group Negative Site record in a bulk file.
For more information, see Ad Group Negative Site at https://go.microsoft.com/fwlink/?linkid=846127
One BulkAdGroupNegativeSites
has one or more
BulkAdGroupNegativeSite
. Each BulkAdGroupNegativeSite
instance corresponds to one Ad Group Negative Site record in the bulk file.
If you upload a BulkAdGroupNegativeSites
, then you are effectively
replacing any existing negative sites assigned to the ad group.
BulkServiceManager
,
BulkOperation
,
BulkFileReader
,
BulkFileWriter
Constructor and Description |
---|
BulkAdGroupNegativeSites()
Initializes a new instance of the BulkAdGroupNegativeSites class.
|
BulkAdGroupNegativeSites(BulkAdGroupNegativeSitesIdentifier identifier)
Reserved for internal use.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allChildrenPresent() |
protected Iterable<BulkAdGroupNegativeSite> |
convertApiToBulkNegativeSites()
Reserved for internal use.
|
protected BulkAdGroupNegativeSitesIdentifier |
createIdentifier()
Reserved for internal use.
|
String |
getAdGroupName()
Gets the name of the ad group that the negative site is assigned.
|
AdGroupNegativeSites |
getAdGroupNegativeSites()
Gets the AdGroupNegativeSites Data Object of the Campaign Management Service.
|
String |
getCampaignName()
Gets the name of the campaign that the negative site is assigned.
|
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 |
setAdGroupName(String adGroupName)
Sets the name of the ad group that the negative site is assigned.
|
void |
setAdGroupNegativeSites(AdGroupNegativeSites adGroupNegativeSites)
Sets the AdGroupNegativeSites Data Object of the Campaign Management Service.
|
void |
setCampaignName(String campaignName)
Sets the name of the campaign that the negative site is assigned.
|
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 BulkAdGroupNegativeSites()
public BulkAdGroupNegativeSites(BulkAdGroupNegativeSitesIdentifier identifier)
public AdGroupNegativeSites getAdGroupNegativeSites()
A subset of AdGroupNegativeSites properties are available in the Ad Group Negative Site record. For more information, see Ad Group Negative Site at https://go.microsoft.com/fwlink/?linkid=846127.
public void setAdGroupNegativeSites(AdGroupNegativeSites adGroupNegativeSites)
A subset of AdGroupNegativeSites properties are available in the Ad Group Negative Site record. For more information, see Ad Group Negative Site at https://go.microsoft.com/fwlink/?linkid=846127.
public String getAdGroupName()
Corresponds to the 'Ad Group' field in the bulk file.
public void setAdGroupName(String adGroupName)
Corresponds to the 'Ad Group' field in the bulk file.
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<BulkAdGroupNegativeSite> convertApiToBulkNegativeSites()
protected void reconstructApiObjects()
protected BulkAdGroupNegativeSitesIdentifier 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.