SearchAdsAssetServiceDownloadImage
Download the submitted image file.
Stored Procedure Specific Information
Yahoo! Ads allows only a small subset of columns to be used in the Exec query. These columns can typically be used with only = comparison. The required columns in SearchAdsAssetServiceDownloadImage are AccountId and AssetId.
For example:
EXEC SearchAdsAssetServiceDownloadImage accountId=1234566, assetid=5363471; EXEC SearchAdsAssetServiceDownloadImage accountId=1234566, assetid=5363471, DownloadLocation='D:/image.jpg';
Input
| Name | Type | Accepts Output Streams | Description |
| AccountId | Int64 | False | Account ID. |
| AssetId | Int64 | False | Asset ID. |
| DownloadLocation | String | False | Download location. For example: C:\Image.png |
| Encoding | String | False | The FileData input encoding type.
使用できる値は次のとおりです。NONE, BASE64 デフォルト値はBASE64です。 |
| FileStream | String | True | An instance of an output stream where file data is written to. Only used if DownloadPath is not provided. |
Result Set Columns
| Name | Type | Description |
| Status | String | Execution status of the stored procedure |
| FileData | String | If the DownloadLocation and FileStream are not provided, this contains the content of the file. |