Versions in this module Expand all Collapse all v0 v0.0.2 Sep 22, 2023 Changes in this version type Client + ResponseEditors []ResponseEditorFn + UserAgent string type ClientOption + func WithResponseEditorFn(fn ResponseEditorFn) ClientOption + type ResponseEditorFn func(ctx context.Context, rsp *http.Response) error v0.0.1 Sep 16, 2023 Changes in this version + func NewGetAssetRequest(server string, params *GetAssetParams) (*http.Request, error) + func NewGetUploadLocationRequest(server string, params *GetUploadLocationParams, ...) (*http.Request, error) + func NewGetUploadLocationRequestWithBody(server string, params *GetUploadLocationParams, contentType string, ...) (*http.Request, error) + func NewRegisterAssetRequest(server string, params *RegisterAssetParams, body RegisterAssetJSONRequestBody) (*http.Request, error) + func NewRegisterAssetRequestWithBody(server string, params *RegisterAssetParams, contentType string, body io.Reader) (*http.Request, error) + func NewSearchAssetsRequest(server string, params *SearchAssetsParams, body SearchAssetsJSONRequestBody) (*http.Request, error) + func NewSearchAssetsRequestWithBody(server string, params *SearchAssetsParams, contentType string, body io.Reader) (*http.Request, error) + type CaAccounts = []string + type CaAdPolicyModerationResult struct + Locale *string + MarketplaceId *string + ModerationStatus *CaModerationStatus + PolicyName *string + type CaArgumentList = []string + type CaAsins = []string + type CaAsset struct + AssetId *string + AssetSubTypes *[]CaAssetSubType + AssetType *CaAssetType + AssociatedAccountIds *[]string + AssociatedContexts *CaAssociatedContextTypeMapping + Collections *[]string + CreatedBy *string + CreationTime *int64 + FileMetadata *CaFileMetadata + LastUpdatedBy *string + LastUpdatedTime *int64 + Marketplaces *[]string + ModerationPolicyMap *CaModerationPolicyMap + Name *string + SpecCheckApprovedPrograms *CaSpecCheckApprovedPrograms + Status *CaAssetStatus + StorageLocationUrls *CaStorageLocationUrls + Tags *[]string + Version *string + type CaAssetFiles struct + DefaultUrl *string + ProcessedFiles *[]CaProcessedFile + type CaAssetGlobal struct + AccountIds *CaAccounts + AssetId *CaAssetId + AssetType *CaAssetType + MarketplaceId *CaMarketplaceIds + type CaAssetId = string + type CaAssetIdentifier struct + AssetId *CaAssetId + Version *CaVersion + type CaAssetName = string + type CaAssetSortCriteria struct + Field *CaAssetSortCriteriaField + Order *CaAssetSortCriteriaOrder + type CaAssetSortCriteriaField string + const CaAssetSortCriteriaFieldCREATEDTIME + const CaAssetSortCriteriaFieldEXTENSION + const CaAssetSortCriteriaFieldIMAGEHEIGHT + const CaAssetSortCriteriaFieldIMAGEWIDTH + const CaAssetSortCriteriaFieldNAME + const CaAssetSortCriteriaFieldSIZE + type CaAssetSortCriteriaOrder string + const ASC + const DESC + type CaAssetStatus string + const ACTIVE + const ARCHIVED + const PROCESSING + type CaAssetSubType string + const AUTHORIMAGE + const BACKGROUNDVIDEO + const LIFESTYLEIMAGE + const LOGO + const OTHERIMAGE + const PRODUCTIMAGE + type CaAssetType string + const IMAGE + const VIDEO + type CaAssetUploadLocation = string + type CaAssetVersion struct + AssetFiles *CaAssetFiles + AssetIdentifier *CaAssetIdentifier + AssetStatus *CaAssetStatus + AssetSubTypes *CaassetSubTypes + CreatedBy *string + CreationTime *int64 + FailedSpecChecks *CaProgramSpecificationsList + FileMetadata *CaFileMetadata + LastUpdatedBy *string + LastUpdatedTime *int64 + ModerationContentList *[]CaModerationContent + Name *CaFileName + OtherMetadata *CaMetadataMap + SpecCheckApprovedPrograms *CaSpecCheckApprovedPrograms + StorageLocationUrls *CaStorageLocationUrls + Url *CaURL + VersionNotes *string + type CaAssetVersionList = []CaAssetVersion + type CaAssociatedContextTypeMapping = map[string]interface + type CaAssociatedProgram struct + Metadata *CaMetadataMap + ProgramName *CaProgram + type CaAssociatedSubEntity struct + BrandEntityId *string + type CaAssociatedSubEntityList = []CaAssociatedSubEntity + type CaAudioStreamMetadata struct + BitRate *int64 + ChannelLayout *string + CodecName *string + CodecType *string + Duration *float64 + Profile *string + SampleRate *int64 + type CaBadRequest struct + Message *string + type CaFileMetadata struct + AspectRatio *string + AudioSampleRate *float64 + ContentType *CaFileMetadataContentType + Duration *float64 + Extension *string + FileSize *float32 + Height *float32 + ResolutionHeight *int + ResolutionWidth *int + Width *float32 + type CaFileMetadataContentType string + const Imagejpeg + const Imagejpg + const Imagepng + const Jpeg + const Jpg + const Mp4 + const Png + type CaFileName = string + type CaFilterCriteria struct + RangeFilters *[]CaRangeFilter + ValueFilters *[]CaValueFilter + type CaForbiddenRequest struct + Message *string + type CaInternalError struct + Message *string + type CaMarketplaceIds = []string + type CaMetadataMap map[string]string + type CaModerationContent struct + AdPolicyModerationResultList *[]CaAdPolicyModerationResult + AssetSubType *CaAssetSubType + ModerationContentStatus *CaModerationContentStatus + type CaModerationContentStatus string + const COMPLETED + const FAILED + const INPROGRESS + type CaModerationPolicyMap = map[string]interface + type CaModerationStatus string + const APPROVED + const PENDING + const REJECTED + type CaPageCriteria struct + Identifier *CaPageIdentifier + Size *CaPageSize + type CaPageIdentifier struct + PageNumber *int + Token *string + type CaPageSize = int + type CaProcessedFile struct + FileMetadata *CaProcessedFileMetadata + Profile *CaProcessedUrlType + Programs *[]CaProgram + Url *string + type CaProcessedFileMetadata struct + AudioStreams *[]CaAudioStreamMetadata + ContentHash *string + ContentType *string + VideoStreams *[]CaVideoStreamMetadata + type CaProcessedUrlType string + const BACKGROUNDVIDEOTILE + const IMAGETHUMBNAIL500 + const INTROSPLASH + const MODERATION + const MP410000KBS30FPS48KHZ320KBS1080P + const MP410000KBS30FPS48KHZ320KBS1080PH264HIGH + const MP41350KBS25FPS48KHZ128KBS540PH264MAIN + const MP41350KBS30FPS48KHZ96KBS720P + const MP41350KBS30FPS48KHZ96KBS720PH264HIGH + const MP41500KBS24FPS48KHZ96KBS576P + const MP41500KBS25FPS48KHZ128KBS576PH264HIGH + const MP41500KBS30FPS48KHZ192KBS540PH264HIGH + const MP420000KBSAUTOFPS48KHZ320KBS + const MP420000KBSAUTOFPS48KHZ320KBS1080PH264HIGH + const MP42000KBS30FPS48KHZ192KBS720PH264HIGH + const MP42000KBS30FPS48KHZ96KBS720P + const MP42000KBS30FPS48KHZ96KBS720PH264HIGH + const MP42100KBS30FPS48KHZ192KBS480PH264MAIN + const MP42100KBS30FPS48KHZ192KBS576PH264HIGH + const MP425000KBS30FPS48KHZ192KBS1080PH264HIGH + const MP425000KBS30FPS48KHZ192KBS1080PH264MAIN + const MP4260KBS25FPS48KHZ64KBS180PH264BASELINE + const MP4300KBS15FPS48KHZ96KBS360P + const MP4300KBS30FPS48KHZ96KBS360PH264BASELINE + const MP4320KBS25FPS48KHZ96KBS576PH264HIGH + const MP43400KBS30FPS48KHZ192KBS1080PH264HIGH + const MP43500KBS24FPS48KHZ96KBS1080P + const MP43500KBS30FPS48KHZ128KBS720PH264HIGH + const MP4375KBS30FPS48KHZ192KBS360PH264HIGH + const MP44000KBS30FPS48KHZ192KBS1080P + const MP44000KBS30FPS48KHZ192KBS1080PH264HIGH + const MP4450KBS15FPS48KHZ96KBS360P + const MP4450KBS30FPS48KHZ96KBS360PH264BASELINE + const MP4600KBS15FPS48KHZ96KBS480P + const MP4600KBS25FPS48KHZ128KBS360PH264BASELINE + const MP4600KBS30FPS48KHZ128KBS360PH264BASELINE + const MP4600KBS30FPS48KHZ96KBS480PH264BASELINE + const MP4700KBS24FPS48KHZ96KBS360P + const MP4750KBS25FPS48KHZ96KBS576PH264HIGH + const MP4750KBS30FPS48KHZ192KBS432PH264HIGH + const MP4900KBS15FPS48KHZ96KBS480P + const MP4900KBS30FPS48KHZ96KBS480PH264BASELINE + const PRODUCTVIDEOOPTIMIZED + const VIDEODEFAULTOPTIMIZED + const VIDEOTILE + type CaProcessedUrlsMap map[string]map[string]interface + type CaProgram string + const AMAZONDSP + type CaProgramSpecifications struct + SpecProgramName *CaSpecificationProgram + Specifications *CaSpecificationList + type CaProgramSpecificationsList = []CaProgramSpecifications + type CaRange struct + End *string + Start *string + type CaRangeFilter struct + Range *[]CaRange + RangeField *CaValueRangeFilterOptions + type CaRegistrationContext struct + AssociatedPrograms *[]CaAssociatedProgram + type CaResourceNotFound struct + Message *string + type CaSearchAssetText = string + type CaSearchRequestCommon struct + FilterCriteria *CaFilterCriteria + PageCriteria *CaPageCriteria + SortCriteria *CaAssetSortCriteria + Text *CaSearchAssetText + type CaSpecCheckApprovedPrograms = []CaSpecificationProgram + type CaSpecification struct + ActualValue *string + Arguments *CaArgumentList + FailureReason *string + IsPassed *bool + StringId *string + type CaSpecificationList = []CaSpecification + type CaSpecificationProgram string + const DEMANDSIDEPLATFORMOLV + const DEMANDSIDEPLATFORMOTT + const SPONSOREDBRANDSVIDEO + const SPONSOREDDISPLAYVIDEO + const STORESBACKGROUNDVIDEOTILE + const STORESINTROSPLASH + const STORESVIDEOTILE + type CaStorageLocationUrls struct + DefaultUrl *string + ProcessedUrls *CaProcessedUrlsMap + type CaURL = string + type CaUnauthorizedRequest struct + Message *string + type CaValueFilter struct + ValueField *CaValueFilterValueField + Values *[]string + type CaValueFilterValueField string + const APPROVEDADPOLICY + const ASIN + const ASSETEXTENSION + const ASSETSUBTYPE + const ASSETTYPE + const CAMPAIGNID + const CAMPAIGNNAME + const PROGRAM + const TAG + type CaValueRangeFilterOptions struct + func (t *CaValueRangeFilterOptions) FromDATEUPLOADED(v DATEUPLOADED) error + func (t *CaValueRangeFilterOptions) FromSIZE(v SIZE) error + func (t *CaValueRangeFilterOptions) MergeDATEUPLOADED(v DATEUPLOADED) error + func (t *CaValueRangeFilterOptions) MergeSIZE(v SIZE) error + func (t *CaValueRangeFilterOptions) UnmarshalJSON(b []byte) error + func (t CaValueRangeFilterOptions) AsDATEUPLOADED() (DATEUPLOADED, error) + func (t CaValueRangeFilterOptions) AsSIZE() (SIZE, error) + func (t CaValueRangeFilterOptions) MarshalJSON() ([]byte, error) + type CaVersion = string + type CaVersionInfo struct + LinkedAssetId *string + VersionNotes *string + type CaVideoStreamMetadata struct + BitRate *int64 + CodecName *string + CodecType *string + DisplayAspectRatio *string + Duration *float64 + FrameRate *float64 + Height *int + Profile *string + Width *int + type CaassetSubTypes = []CaAssetSubType + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) GetAsset(ctx context.Context, params *GetAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetUploadLocation(ctx context.Context, params *GetUploadLocationParams, ...) (*http.Response, error) + func (c *Client) GetUploadLocationWithBody(ctx context.Context, params *GetUploadLocationParams, contentType string, ...) (*http.Response, error) + func (c *Client) RegisterAsset(ctx context.Context, params *RegisterAssetParams, ...) (*http.Response, error) + func (c *Client) RegisterAssetWithBody(ctx context.Context, params *RegisterAssetParams, contentType string, ...) (*http.Response, error) + func (c *Client) SearchAssets(ctx context.Context, params *SearchAssetsParams, ...) (*http.Response, error) + func (c *Client) SearchAssetsWithBody(ctx context.Context, params *SearchAssetsParams, contentType string, ...) (*http.Response, error) + type ClientInterface interface + GetAsset func(ctx context.Context, params *GetAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error) + GetUploadLocation func(ctx context.Context, params *GetUploadLocationParams, ...) (*http.Response, error) + GetUploadLocationWithBody func(ctx context.Context, params *GetUploadLocationParams, contentType string, ...) (*http.Response, error) + RegisterAsset func(ctx context.Context, params *RegisterAssetParams, ...) (*http.Response, error) + RegisterAssetWithBody func(ctx context.Context, params *RegisterAssetParams, contentType string, ...) (*http.Response, error) + SearchAssets func(ctx context.Context, params *SearchAssetsParams, ...) (*http.Response, error) + SearchAssetsWithBody func(ctx context.Context, params *SearchAssetsParams, contentType string, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) GetAssetWithResponse(ctx context.Context, params *GetAssetParams, reqEditors ...RequestEditorFn) (*GetAssetResp, error) + func (c *ClientWithResponses) GetUploadLocationWithBodyWithResponse(ctx context.Context, params *GetUploadLocationParams, contentType string, ...) (*GetUploadLocationResp, error) + func (c *ClientWithResponses) GetUploadLocationWithResponse(ctx context.Context, params *GetUploadLocationParams, ...) (*GetUploadLocationResp, error) + func (c *ClientWithResponses) RegisterAssetWithBodyWithResponse(ctx context.Context, params *RegisterAssetParams, contentType string, ...) (*RegisterAssetResp, error) + func (c *ClientWithResponses) RegisterAssetWithResponse(ctx context.Context, params *RegisterAssetParams, ...) (*RegisterAssetResp, error) + func (c *ClientWithResponses) SearchAssetsWithBodyWithResponse(ctx context.Context, params *SearchAssetsParams, contentType string, ...) (*SearchAssetsResp, error) + func (c *ClientWithResponses) SearchAssetsWithResponse(ctx context.Context, params *SearchAssetsParams, ...) (*SearchAssetsResp, error) + type ClientWithResponsesInterface interface + GetAssetWithResponse func(ctx context.Context, params *GetAssetParams, reqEditors ...RequestEditorFn) (*GetAssetResp, error) + GetUploadLocationWithBodyWithResponse func(ctx context.Context, params *GetUploadLocationParams, contentType string, ...) (*GetUploadLocationResp, error) + GetUploadLocationWithResponse func(ctx context.Context, params *GetUploadLocationParams, ...) (*GetUploadLocationResp, error) + RegisterAssetWithBodyWithResponse func(ctx context.Context, params *RegisterAssetParams, contentType string, ...) (*RegisterAssetResp, error) + RegisterAssetWithResponse func(ctx context.Context, params *RegisterAssetParams, ...) (*RegisterAssetResp, error) + SearchAssetsWithBodyWithResponse func(ctx context.Context, params *SearchAssetsParams, contentType string, ...) (*SearchAssetsResp, error) + SearchAssetsWithResponse func(ctx context.Context, params *SearchAssetsParams, ...) (*SearchAssetsResp, error) + type DATEUPLOADED = string + type GetAssetParams struct + AmazonAdvertisingAPIClientId string + AmazonAdvertisingAPIScope string + AssetId string + Version *string + type GetAssetResp struct + ApplicationvndCreativeassetsgetresponseV3JSON200 ... + ApplicationvndCreativeassetsgetresponseV3JSON400 *CaBadRequest + ApplicationvndCreativeassetsgetresponseV3JSON401 *CaUnauthorizedRequest + ApplicationvndCreativeassetsgetresponseV3JSON403 *CaForbiddenRequest + ApplicationvndCreativeassetsgetresponseV3JSON500 *CaInternalError + Body []byte + HTTPResponse *http.Response + func ParseGetAssetResp(rsp *http.Response) (*GetAssetResp, error) + func (r GetAssetResp) Status() string + func (r GetAssetResp) StatusCode() int + type GetUploadLocationJSONBody struct + FileName *CaFileName + type GetUploadLocationJSONRequestBody GetUploadLocationJSONBody + type GetUploadLocationParams struct + AmazonAdvertisingAPIClientId string + AmazonAdvertisingAPIScope string + type GetUploadLocationResp struct + ApplicationvndCreativeassetsuploadresponseV3JSON200 ... + ApplicationvndCreativeassetsuploadresponseV3JSON400 *CaBadRequest + ApplicationvndCreativeassetsuploadresponseV3JSON401 *CaUnauthorizedRequest + ApplicationvndCreativeassetsuploadresponseV3JSON403 *CaForbiddenRequest + ApplicationvndCreativeassetsuploadresponseV3JSON500 *CaInternalError + Body []byte + HTTPResponse *http.Response + func ParseGetUploadLocationResp(rsp *http.Response) (*GetUploadLocationResp, error) + func (r GetUploadLocationResp) Status() string + func (r GetUploadLocationResp) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type RegisterAssetJSONBody struct + AsinList *CaAsins + AssetSubTypeList *CaassetSubTypes + AssetType *CaAssetType + AssociatedSubEntityList *CaAssociatedSubEntityList + Name *CaAssetName + RegistrationContext *CaRegistrationContext + SkipAssetSubTypesDetection *bool + Tags *[]string + Url *CaAssetUploadLocation + VersionInfo *CaVersionInfo + type RegisterAssetJSONRequestBody RegisterAssetJSONBody + type RegisterAssetParams struct + AmazonAdvertisingAPIClientId string + AmazonAdvertisingAPIScope string + type RegisterAssetResp struct + ApplicationvndCreativeassetsregisterresponseV3JSON200 ... + ApplicationvndCreativeassetsregisterresponseV3JSON400 *CaBadRequest + ApplicationvndCreativeassetsregisterresponseV3JSON401 *CaUnauthorizedRequest + ApplicationvndCreativeassetsregisterresponseV3JSON403 *CaForbiddenRequest + ApplicationvndCreativeassetsregisterresponseV3JSON404 *CaResourceNotFound + ApplicationvndCreativeassetsregisterresponseV3JSON500 *CaInternalError + Body []byte + HTTPResponse *http.Response + func ParseRegisterAssetResp(rsp *http.Response) (*RegisterAssetResp, error) + func (r RegisterAssetResp) Status() string + func (r RegisterAssetResp) StatusCode() int + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type SIZE = string + type SearchAssetsJSONRequestBody = CaSearchRequestCommon + type SearchAssetsParams struct + AmazonAdvertisingAPIClientId string + AmazonAdvertisingAPIScope string + type SearchAssetsResp struct + ApplicationvndCreativeassetssearchassetsresponseV3JSON200 ... + ApplicationvndCreativeassetssearchassetsresponseV3JSON400 *CaBadRequest + ApplicationvndCreativeassetssearchassetsresponseV3JSON401 *CaUnauthorizedRequest + ApplicationvndCreativeassetssearchassetsresponseV3JSON403 *CaForbiddenRequest + ApplicationvndCreativeassetssearchassetsresponseV3JSON500 *CaInternalError + Body []byte + HTTPResponse *http.Response + func ParseSearchAssetsResp(rsp *http.Response) (*SearchAssetsResp, error) + func (r SearchAssetsResp) Status() string + func (r SearchAssetsResp) StatusCode() int