Account Sitelink Ad Extension Record - Bulk
Defines an association record between an Account and a Sitelink Ad Extension that can be uploaded and downloaded in a bulk file. To upload or download the account or sitelink ad extension, use the Account or Sitelink Ad Extension record.
You can download all Account Sitelink Ad Extension records in the account by including the DownloadEntity value of AccountSitelinkAdExtensions in the DownloadCampaignsByAccountIds or DownloadCampaignsByCampaignIds service request. Additionally the download request must include the EntityData scope. For more details about the Bulk service including best practices, see Bulk Download and Upload.
The following Bulk CSV example would associate a sitelink ad extension to an account if the valid Id is provided.
Type,Status,Id,Parent Id,Client Id,Modified Time,Name
Format Version,,,,,,6.0
Account Sitelink Ad Extension,Active,-11,,ClientIdGoesHere,,
If you are using the Bing Ads SDKs for .NET, Java, or Python, you can save time using the BulkServiceManager to upload and download the BulkAccountSitelinkAdExtension object, instead of calling the service operations directly and writing custom code to parse each field in the bulk file.
var uploadEntities = new List<BulkEntity>();
// Map properties in the Bulk file to the BulkAccountSitelinkAdExtension
var bulkAccountSitelinkAdExtension = new BulkAccountSitelinkAdExtension
{
// Map properties in the Bulk file to the
// AdExtensionIdToEntityIdAssociation object of the Campaign Management service.
AdExtensionIdToEntityIdAssociation = new AdExtensionIdToEntityIdAssociation
{
// 'Id' column header in the Bulk file
AdExtensionId = sitelinkAdExtensionIdKey,
// 'Parent Id' column header in the Bulk file
EntityId = accountIdKey,
},
// 'Client Id' column header in the Bulk file
ClientId = "ClientIdGoesHere",
// 'Status' column header in the Bulk file
Status = Status.Active,
};
uploadEntities.Add(bulkAccountSitelinkAdExtension);
var entityUploadParameters = new EntityUploadParameters
{
Entities = uploadEntities,
ResponseMode = ResponseMode.ErrorsAndResults,
ResultFileDirectory = FileDirectory,
ResultFileName = DownloadFileName,
OverwriteResultFile = true,
};
var uploadResultEntities = (await BulkServiceManager.UploadEntitiesAsync(entityUploadParameters)).ToList();
For an Account Sitelink Ad Extension record, the following attribute fields are available in the Bulk File Schema.
- Client Id
- Editorial Location
- Editorial Reason Code
- Editorial Status
- Editorial Term
- Id
- Modified Time
- Parent Id
- Publisher Countries
- Status
Client Id
Used to associate records in the bulk upload file with records in the results file. The value of this field is not used or stored by the server; it is simply copied from the uploaded record to the corresponding result record. It may be any valid string to up 100 in length.
Add: Optional
Delete: Read-only
Editorial Location
The component or property of the ad extension that failed editorial review.
Add: Read-only
Delete: Read-only
Editorial Reason Code
A code that identifies the reason for the failure. For a list of possible reason codes, see Editorial Reason Codes.
Add: Read-only
Delete: Read-only
Editorial Status
The editorial status of the ad extension.
Possible values are described in the table below.
Add: Read-only
Delete: Read-only
Editorial Term
The term that failed editorial review.
This field will not be set if a combination of terms caused the failure or if the failure was based on a policy violation.
Add: Read-only
Delete: Read-only
Id
The identifier of the ad extension that is associated or removed from the account.
This bulk field maps to the Id field of the Sitelink Ad Extension record.
Add: Read-only and Required. You must either specify an existing ad extension identifier, or specify a negative identifier that is equal to the Id field of the parent Sitelink Ad Extension record. This is recommended if you are adding new ad extensions and associations in the same Bulk file. For more information, see Bulk File Schema Reference Keys.
Update: Read-only and Required
Delete: Read-only and Required
Modified Time
The date and time that the entity was last updated. The value is in Coordinated Universal Time (UTC).
Note
The date and time value reflects the date and time at the server, not the client. For information about the format of the date and time, see the dateTime entry in Primitive XML Data Types.
Add: Read-only
Delete: Read-only
Parent Id
The identifier of the account where this ad extension is associated or removed.
This bulk field maps to the Id field of the Account record.
Add: Read-only
Delete: Read-only
Publisher Countries
The list of publisher countries or regions whose editorial guidelines do not allow the specified term.
In a bulk file, the list of publisher countries or regions are delimited with a semicolon (;).
Add: Read-only
Delete: Read-only
Status
Represents the association status between the account and the ad extension.
Possible values are Active and Deleted. If the ad extension is associated with the account, this field's value is Active.
Add: Read-only
Delete: Required. The Status must be set to Deleted.