Media
Create, Read, Update or delete the media submission.
Table Specific Information
Select
The 本製品 will use the Yahoo! Ads API to process WHERE clause conditions built with the following column and operator. The AccountId is required to make a request and the rest of the filter is executed client-side within the 本製品.
- AccountId supports the '='.
- MediaId supports the '=,IN'.
- ApprovalStatus supports the '=,IN'.
- UserStatus supports the '=,IN'.
- StartDate supports the '='.
- EndDate supports the '='.
For example:
SELECT * FROM Media WHERE AccountId = '1002504155' SELECT * FROM Media WHERE AccountId = '1002504155' AND MediaId = '12345' SELECT * FROM Media WHERE AccountId = '1002504155' AND StartDate = '20210703' SELECT * FROM Media WHERE AccountId = '1002504155' AND EndDate = '20210703'
INSERT
Insert can be executed by specifying the AccountId, MediaName, MediaTitle, UserStatus and ImageMediaData columns. The columns that are not read-only can be inserted optionally. Following is an example of how to insert into this table.
INSERT INTO Media (AccountId, MediaName, MediaTitle, UserStatus, ImageMediaData) VALUES ('1002504155', 'test.JPEG', 'vtest', 'ACTIVE', 'iVBORw0KGgoAAAANSUhEUgAAAcsAAABuCAMAAAB')
UPADTE
Update can be executed by specifying the AccountId and MediaId in the WHERE Clause. The columns that are not read-only can be Updated.
For example:
UPDATE Media SET MediaName = 'Test', ImageMediaAspectRatio = '10', ImageMediaData = 'iVBORw0KGgoAAAANSUhEUg', ImageMediaFileSize = '10', ImageMediaHeight = '100', ImageMediaMediaAdFormat = 'png', ImageMediaMediaFileType = 'GIF', ImageMediaMediaType = 'ANIMATION_IMAGE', ImageMediaWidth = '100' WHERE Accountid = '1002504155' AND MediaId = '123456'
DELETE
Delete can be executed by specifying the AccountId and MediaId in the WHERE Clause.
For example:
DELETE FROM Media WHERE Accountid = '1002504155' AND MediaId = '123456'
Columns
Name | Type | ReadOnly | References | Description |
MediaId [KEY] | Int64 | True |
Media ID. | |
AccountId | Int64 | True |
DisplayAdsAccounts.AccountId |
Account ID. |
ApprovalStatus | String | False |
Serves the approval status of media. 使用できる値は次のとおりです。POST_DISAPPROVED, APPROVED, REVIEW, PRE_DISAPPROVED, UNKNOWN | |
CampaignBannerFlg | String | False |
Displays the flag settings of Campaign banner image. 使用できる値は次のとおりです。TRUE, FALSE, UNKNOWN | |
CreatedDate | Date | True |
Date of Media made. | |
CreationTime | String | False |
Date and time of creation. | |
DisapprovalReasonCodes | String | False |
Reason code why it's disapproved on the review. | |
ImageMediaAspectRatio | String | False |
The type of aspect ratio. | |
ImageMediaData | String | False |
The image file in base64 encode. | |
ImageMediaFileSize | Int64 | False |
The file size of image. | |
ImageMediaHeight | Int64 | False |
The height of image. | |
ImageMediaMediaAdFormat | String | False |
The type of image format.Available values can be referred to adFormat field of DictionaryServiceMediaAdFormat object obtained by getMediaAdFormat operation of DictionaryService. | |
ImageMediaMediaFileType | String | False |
Serves the file type of media. 使用できる値は次のとおりです。GIF, PNG, JPEG, UNKNOWN | |
ImageMediaMediaType | String | False |
Serves the type of media. 使用できる値は次のとおりです。IMAGE, ANIMATION_IMAGE, UNKNOWN | |
ImageMediaWidth | Int64 | False |
The width of image. | |
LogoFlg | String | False |
Displays the flag settings of Logo image. 使用できる値は次のとおりです。FALSE, TRUE, UNKNOWN | |
MediaName | String | False |
File name. | |
MediaRichFormatFlg | String | False |
Displays the flag settings of rich format image of guaranteed campaign. 使用できる値は次のとおりです。TRUE, FALSE, UNKNOWN | |
MediaTitle | String | False |
Image name. | |
ThumbnailFlg | String | False |
Displays the setting flag for the thumbnail image. 使用できる値は次のとおりです。FALSE, TRUE, UNKNOWN | |
UserStatus | String | False |
Serves ad delivery status that can be set by an user. 使用できる値は次のとおりです。ACTIVE, PAUSED, UNKNOWN | |
ImageMediaUpscaleImageEnabled | Boolean | False |
It displays the flag settings of automatic image up-conversion. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
Name | Type | Description |
StartDate | Date |
This is the start date of the search target period. |
EndDate | Date |
This is the end date of the search target period. |
ReferenceNumber | String |
This column will be used in Bulk operations to get specific values from the Temp tables. |