com.microsoft.bingads.v13.bulk.entities.BulkCampaignNegativeKeyword Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microsoft.bingads Show documentation
Show all versions of microsoft.bingads Show documentation
The Bing Ads Java SDK is a library improving developer experience when working with the Bing Ads services by providing high-level access to features such as Bulk API, OAuth Authorization and SOAP API.
package com.microsoft.bingads.v13.bulk.entities;
import com.microsoft.bingads.v13.bulk.BulkFileReader;
import com.microsoft.bingads.v13.bulk.BulkFileWriter;
import com.microsoft.bingads.v13.bulk.BulkOperation;
import com.microsoft.bingads.v13.bulk.BulkServiceManager;
import com.microsoft.bingads.v13.internal.bulk.StringTable;
/**
* Represents a negative keyword that is assigned to a campaign. Each negative keyword can be read or written in a bulk file.
* This class exposes the {@link #setNegativeKeyword} and {@link #getNegativeKeyword} methods that can be used to read and write
* fields of the Campaign Negative Keyword record in a bulk file.
*
*
* For more information, see Campaign Negative Keyword at
* https://go.microsoft.com/fwlink/?linkid=846127.
*
*
* @see BulkServiceManager
* @see BulkOperation
* @see BulkFileReader
* @see BulkFileWriter
*/
public class BulkCampaignNegativeKeyword extends BulkEntityNegativeKeyword {
/**
* Gets the identifier of the campaign that the negative keyword is assigned.
*
*
* Corresponds to the 'Parent Id' field in the bulk file.
*
*/
public Long getCampaignId() {
return this.getParentId();
}
/**
* Sets the identifier of the campaign that the negative keyword is assigned.
*
*
* Corresponds to the 'Parent Id' field in the bulk file.
*
*/
public void setCampaignId(Long campaignId) {
this.setParentId(campaignId);
}
/**
* Gets the name of the campaign that the negative keyword is assigned.
*
*
* Corresponds to the 'Campaign' field in the bulk file.
*
*/
public String getCampaignName() {
return this.getEntityName();
}
/**
* Sets the name of the campaign that the negative keyword is assigned.
*
*
* Corresponds to the 'Campaign' field in the bulk file.
*
*/
public void setCampaignName(String campaignName) {
setEntityName(campaignName);
}
@Override
String getEntityColumnName() {
return StringTable.Campaign;
}
}