Getting Started Guide: BulkService OverviewBulkService provides operations to download accounts or campaigns along with the complete hierarchy and to create or modify campaigns, adgroups and keywords by uploading a bulk file based on the YSM template. BulkService also provides an operation to download a bulk template with headers. About BulkBulkService provides operations to upload/download accounts and campaigns.
Download:
Upload:
Bulk Download FlowThe following steps are executed when a bulk download request is made. It is also depicted pictorially in the sequence diagram after the steps are listed.
Please note the following with respect to the flow provided above:
Bulk Upload FlowThe following steps are executed while uploading a bulk file.
Please note the following with respect to the flow provided above:
File TypesOnce the bulk download request is successful, it will return a URL to download the file. Based on the request you made, this file contains the account or campaign information,or it can simply be a template file with header information, if you made such a request. You must specify the file format or type that you want when you make the request. You will have to choose from one of the file types supported by the BulkService. The file types supported are:
File EncodingFor encoding examples, use any of the following resources. Java
PerlEncode::Unicode - http://perldoc.perl.org/Encode/Unicode.html http://search.cpan.org/~rgarcia/perl-5.10.0/pod/perlunitut.pod Pythonhttp://www.reportlab.com/i18n/python_unicode_tutorial.html http://www.amk.ca/python/howto/unicode PHP.NEThttp://msdn.microsoft.com/en-us/library/zs0350fy(VS.71).aspx http://www.yoda.arachsys.com/csharp/unicode.html Download HierarchyIf you are downloading accounts or campaings, the file returned will conatin data for the complete hierarchy. The hierarchy is shown in the diagram below. Note that only non-deleted objects will be included in the file returned.
Bulk ServicesBulkService provides operations that allow you to request, retrieve or check the status of bulk downloads. Download Accounts and CampaignsTo download the entire spend account, use the downloadAccount operation. This operation will download all the non-deleted items in the hierarchy under the spend account. The spend account downloaded will be for the account ID specified in the request header. To download specific campaigns under the spend account, use the downloadCampaigns operation. This operation will download all the non-deleted items in the hierarchy under the campaigns. Only campaigns whose IDs are specified in the request, and those which belong to the spend account specified in the request header are downloaded. Download TemplateTo download an empty bulk template, along with the headers, use the downloadBulkTemplate operation. The template is localized based on the locale of the user. Check Download StatusTo check the status of the bulk download request, use the getBulkDownloadStatus operation. The possible statuses are listed on the bulk download status page. Check Download Status InfoTo check the status of the bulk download request along with remaining time to download, use the getBulkDownloadStatusInfo operation. The possible statuses are listed on the bulk download status page. Get Upload Token URLTo retrieve the upload token url, use the getBulkUploadTokenUrl operation. This operation will also return a job-id which is used to poll the status of a uploaded file. Check Upload StatusTo check the status of the bulk upload, use the getBulkUploadStatus operation. The possible status values are listed on the bulk upload status page. |