com.microsoft.bingads.v10.bulk.entities.BulkAdGroupGenderTarget Maven / Gradle / Ivy
Show all versions of microsoft.bingads Show documentation
package com.microsoft.bingads.v10.bulk.entities;
import com.microsoft.bingads.v10.bulk.BulkServiceManager;
import com.microsoft.bingads.v10.bulk.BulkFileReader;
import com.microsoft.bingads.v10.bulk.BulkFileWriter;
import com.microsoft.bingads.v10.bulk.BulkOperation;
/**
* Represents a gender target that is associated with an ad group.
*
* This class exposes the {@link BulkGenderTarget#setGenderTarget} and {@link BulkGenderTarget#getGenderTarget}
* methods that can be used to read and write fields of the Ad Group Gender Target record in a bulk file.
*
*
* One {@link BulkAdGroupGenderTarget} exposes a read only list of {@link BulkAdGroupGenderTargetBid}.
* Each {@link BulkAdGroupGenderTargetBid} instance corresponds to one Ad Group Gender Target record in the bulk file.
* If you upload a {@link BulkAdGroupGenderTarget},
* then you are effectively replacing any existing bids for the corresponding gender target.
*
*
*
* For more information, see Ad Group Gender Target at
* http://go.microsoft.com/fwlink/?LinkID=620258.
*
*
* @see BulkServiceManager
* @see BulkOperation
* @see BulkFileReader
* @see BulkFileWriter
*/
public class BulkAdGroupGenderTarget extends BulkGenderTarget {
/**
* Initializes a new instanced of the BulkAdGroupGenderTarget class.
*/
public BulkAdGroupGenderTarget() {
super(BulkAdGroupGenderTargetBid.class);
}
/**
* Gets the identifier of the ad group that the target is associated.
*
*
* Corresponds to the 'Parent Id' field in the bulk file.
*
*/
public Long getAdGroupId() {
return getEntityId();
}
/**
* Sets the identifier of the ad group that the target is associated.
*
*
* Corresponds to the 'Parent Id' field in the bulk file.
*
*/
public void setAdGroupId(Long adGroupId) {
setEntityId(adGroupId);
}
/**
* Gets the name of the ad group that the target is associated.
*
*
* Corresponds to the 'Ad Group' field in the bulk file.
*
*/
public String getAdGroupName() {
return getEntityName();
}
/**
* Sets the name of the ad group that the target is associated.
*
*
* Corresponds to the 'Ad Group' field in the bulk file.
*
*/
public void setAdGroupName(String adGroupName) {
setEntityName(adGroupName);
}
/**
* Gets the name of the campaign that target is associated.
*
*
* Corresponds to the 'Campaign' field in the bulk file.
*
*/
public String getCampaignName() {
return getParentEntityName();
}
/**
* Sets the name of the campaign that target is associated.
*
*
* Corresponds to the 'Campaign' field in the bulk file.
*
*/
public void setCampaignName(String campaignName) {
setParentEntityName(campaignName);
}
/**
* Reserved for internal use.
*/
@Override
BulkAdGroupGenderTargetBid createBid() {
return new BulkAdGroupGenderTargetBid();
}
}