Documentation ¶
Overview ¶
Package sponsoredbrandsreportv2 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.15.0 DO NOT EDIT.
Index ¶
- Constants
- func NewArchiveCampaignRequest(server string, campaignId int64, params *ArchiveCampaignParams) (*http.Request, error)
- func NewArchiveKeywordRequest(server string, keywordId int64, params *ArchiveKeywordParams) (*http.Request, error)
- func NewArchiveNegativeKeywordRequest(server string, keywordId int64, params *ArchiveNegativeKeywordParams) (*http.Request, error)
- func NewArchiveNegativeTargetRequest(server string, negativeTargetId SBNegativeTargetId) (*http.Request, error)
- func NewArchiveTargetRequest(server string, targetId SBTargetId) (*http.Request, error)
- func NewCompleteUploadRequest(server string, params *CompleteUploadParams, ...) (*http.Request, error)
- func NewCompleteUploadRequestWithBody(server string, params *CompleteUploadParams, contentType string, ...) (*http.Request, error)
- func NewCreateAssetRequestWithBody(server string, params *CreateAssetParams, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV32PlusJSONBody(server string, params *CreateCampaignsParams, ...) (*http.Request, error)
- func NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV33PlusJSONBody(server string, params *CreateCampaignsParams, ...) (*http.Request, error)
- func NewCreateCampaignsRequestWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody(server string, params *CreateCampaignsParams, ...) (*http.Request, error)
- func NewCreateCampaignsRequestWithBody(server string, params *CreateCampaignsParams, contentType string, ...) (*http.Request, error)
- func NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody(server string, params *CreateDraftCampaignsParams, ...) (*http.Request, error)
- func NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody(server string, params *CreateDraftCampaignsParams, ...) (*http.Request, error)
- func NewCreateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(server string, params *CreateDraftCampaignsParams, ...) (*http.Request, error)
- func NewCreateDraftCampaignsRequestWithBody(server string, params *CreateDraftCampaignsParams, contentType string, ...) (*http.Request, error)
- func NewCreateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *CreateKeywordsParams, ...) (*http.Request, error)
- func NewCreateKeywordsRequestWithBody(server string, params *CreateKeywordsParams, contentType string, ...) (*http.Request, error)
- func NewCreateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *CreateNegativeKeywordsParams, ...) (*http.Request, error)
- func NewCreateNegativeKeywordsRequestWithBody(server string, params *CreateNegativeKeywordsParams, contentType string, ...) (*http.Request, error)
- func NewCreateNegativeTargetsRequest(server string, body CreateNegativeTargetsJSONRequestBody) (*http.Request, error)
- func NewCreateNegativeTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTargetsRequest(server string, body CreateTargetsJSONRequestBody) (*http.Request, error)
- func NewCreateTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUploadResourceRequest(server string, params *CreateUploadResourceParams, ...) (*http.Request, error)
- func NewCreateUploadResourceRequestWithBody(server string, params *CreateUploadResourceParams, contentType string, ...) (*http.Request, error)
- func NewDeleteDraftCampaignRequest(server string, draftCampaignId int64, params *DeleteDraftCampaignParams) (*http.Request, error)
- func NewDescribeMediaRequest(server string, params *DescribeMediaParams) (*http.Request, error)
- func NewDownloadReportRequest(server string, reportId string, params *DownloadReportParams) (*http.Request, error)
- func NewGetAdGroupRequest(server string, adGroupId int64, params *GetAdGroupParams) (*http.Request, error)
- func NewGetBidsRecommendationsRequest(server string, params *GetBidsRecommendationsParams, ...) (*http.Request, error)
- func NewGetBidsRecommendationsRequestWithBody(server string, params *GetBidsRecommendationsParams, contentType string, ...) (*http.Request, error)
- func NewGetBrandRecommendationsRequestWithApplicationVndSbbrandrecommendationsV30PlusJSONBody(server string, params *GetBrandRecommendationsParams, ...) (*http.Request, error)
- func NewGetBrandRecommendationsRequestWithBody(server string, params *GetBrandRecommendationsParams, contentType string, ...) (*http.Request, error)
- func NewGetBrandsRequest(server string, params *GetBrandsParams) (*http.Request, error)
- func NewGetCampaignRequest(server string, campaignId int64, params *GetCampaignParams) (*http.Request, error)
- func NewGetDraftCampaignRequest(server string, draftCampaignId int64, params *GetDraftCampaignParams) (*http.Request, error)
- func NewGetKeywordRequest(server string, keywordId int64, params *GetKeywordParams) (*http.Request, error)
- func NewGetNegativeKeywordRequest(server string, keywordId int64, params *GetNegativeKeywordParams) (*http.Request, error)
- func NewGetNegativeTargetRequest(server string, negativeTargetId SBNegativeTargetId) (*http.Request, error)
- func NewGetProductRecommendationsRequestWithApplicationVndSbproductrecommendationsV30PlusJSONBody(server string, params *GetProductRecommendationsParams, ...) (*http.Request, error)
- func NewGetProductRecommendationsRequestWithBody(server string, params *GetProductRecommendationsParams, contentType string, ...) (*http.Request, error)
- func NewGetSbModerationCampaignsCampaignIdRequest(server string, campaignId int64, ...) (*http.Request, error)
- func NewGetTargetRequest(server string, targetId SBTargetId, params *GetTargetParams) (*http.Request, error)
- func NewGetTargetingCategoriesRequest(server string, params *GetTargetingCategoriesParams, ...) (*http.Request, error)
- func NewGetTargetingCategoriesRequestWithBody(server string, params *GetTargetingCategoriesParams, contentType string, ...) (*http.Request, error)
- func NewGetV2ReportsReportIdRequest(server string, reportId string, params *GetV2ReportsReportIdParams) (*http.Request, error)
- func NewListAdGroupsRequest(server string, params *ListAdGroupsParams) (*http.Request, error)
- func NewListAsinsRequest(server string, params *ListAsinsParams) (*http.Request, error)
- func NewListAssetsRequest(server string, params *ListAssetsParams) (*http.Request, error)
- func NewListCampaignsRequest(server string, params *ListCampaignsParams) (*http.Request, error)
- func NewListDraftCampaignsRequest(server string, params *ListDraftCampaignsParams) (*http.Request, error)
- func NewListKeywordsRequest(server string, params *ListKeywordsParams) (*http.Request, error)
- func NewListNegativeKeywordsRequest(server string, params *ListNegativeKeywordsParams) (*http.Request, error)
- func NewListNegativeTargetsRequest(server string, body ListNegativeTargetsJSONRequestBody) (*http.Request, error)
- func NewListNegativeTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListTargetsRequest(server string, body ListTargetsJSONRequestBody) (*http.Request, error)
- func NewListTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostV2HsaRecordTypeReportRequest(server string, recordType string, params *PostV2HsaRecordTypeReportParams, ...) (*http.Request, error)
- func NewPostV2HsaRecordTypeReportRequestWithBody(server string, recordType string, params *PostV2HsaRecordTypeReportParams, ...) (*http.Request, error)
- func NewSbCreateThemesRequestWithApplicationVndSbthemescreaterequestV3PlusJSONBody(server string, params *SbCreateThemesParams, ...) (*http.Request, error)
- func NewSbCreateThemesRequestWithBody(server string, params *SbCreateThemesParams, contentType string, ...) (*http.Request, error)
- func NewSbListThemesRequestWithApplicationVndSbthemeslistrequestV3PlusJSONBody(server string, params *SbListThemesParams, ...) (*http.Request, error)
- func NewSbListThemesRequestWithBody(server string, params *SbListThemesParams, contentType string, body io.Reader) (*http.Request, error)
- func NewSbUpdateThemesRequestWithApplicationVndSbathemessupdaterequestV3PlusJSONBody(server string, params *SbUpdateThemesParams, ...) (*http.Request, error)
- func NewSbUpdateThemesRequestWithBody(server string, params *SbUpdateThemesParams, contentType string, ...) (*http.Request, error)
- func NewSubmitDraftCampaignRequestWithApplicationVndSbcampaignV3PlusJSONBody(server string, params *SubmitDraftCampaignParams, ...) (*http.Request, error)
- func NewSubmitDraftCampaignRequestWithBody(server string, params *SubmitDraftCampaignParams, contentType string, ...) (*http.Request, error)
- func NewUpdateCampaignsRequestWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody(server string, params *UpdateCampaignsParams, ...) (*http.Request, error)
- func NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody(server string, params *UpdateCampaignsParams, ...) (*http.Request, error)
- func NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody(server string, params *UpdateCampaignsParams, ...) (*http.Request, error)
- func NewUpdateCampaignsRequestWithBody(server string, params *UpdateCampaignsParams, contentType string, ...) (*http.Request, error)
- func NewUpdateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(server string, params *UpdateDraftCampaignsParams, ...) (*http.Request, error)
- func NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody(server string, params *UpdateDraftCampaignsParams, ...) (*http.Request, error)
- func NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody(server string, params *UpdateDraftCampaignsParams, ...) (*http.Request, error)
- func NewUpdateDraftCampaignsRequestWithBody(server string, params *UpdateDraftCampaignsParams, contentType string, ...) (*http.Request, error)
- func NewUpdateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *UpdateKeywordsParams, ...) (*http.Request, error)
- func NewUpdateKeywordsRequestWithBody(server string, params *UpdateKeywordsParams, contentType string, ...) (*http.Request, error)
- func NewUpdateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *UpdateNegativeKeywordsParams, ...) (*http.Request, error)
- func NewUpdateNegativeKeywordsRequestWithBody(server string, params *UpdateNegativeKeywordsParams, contentType string, ...) (*http.Request, error)
- func NewUpdateNegativeTargetsRequest(server string, body UpdateNegativeTargetsJSONRequestBody) (*http.Request, error)
- func NewUpdateNegativeTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTargetsRequest(server string, body UpdateTargetsJSONRequestBody) (*http.Request, error)
- func NewUpdateTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type AdFormat
- type AdFormatError
- type AdFormatV32
- type AdGroupError
- type ArchiveCampaignParams
- type ArchiveCampaignResp
- type ArchiveKeywordParams
- type ArchiveKeywordResp
- type ArchiveNegativeKeywordParams
- type ArchiveNegativeKeywordResp
- type ArchiveNegativeTargetResp
- type ArchiveTargetResp
- type AssetsError
- type AuthorizationError
- type BadRequest400
- type BasicErrorObject
- type Bid
- type BidAdjustment
- type BidAdjustmentBidAdjustmentPredicate
- type BidAdjustmentV33
- type BidAdjustmentV33BidAdjustmentPredicate
- type BidError
- type BidOptimizationStrategy
- type BrandType
- type BrandsError
- type BudgetError
- type BudgetType
- type CampaignError
- type CampaignTags
- type Client
- func (c *Client) ArchiveCampaign(ctx context.Context, campaignId int64, params *ArchiveCampaignParams) (*http.Response, error)
- func (c *Client) ArchiveKeyword(ctx context.Context, keywordId int64, params *ArchiveKeywordParams) (*http.Response, error)
- func (c *Client) ArchiveNegativeKeyword(ctx context.Context, keywordId int64, params *ArchiveNegativeKeywordParams) (*http.Response, error)
- func (c *Client) ArchiveNegativeTarget(ctx context.Context, negativeTargetId SBNegativeTargetId) (*http.Response, error)
- func (c *Client) ArchiveTarget(ctx context.Context, targetId SBTargetId) (*http.Response, error)
- func (c *Client) CompleteUpload(ctx context.Context, params *CompleteUploadParams, ...) (*http.Response, error)
- func (c *Client) CompleteUploadWithBody(ctx context.Context, params *CompleteUploadParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateAssetWithBody(ctx context.Context, params *CreateAssetParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, ...) (*http.Response, error)
- func (c *Client) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, ...) (*http.Response, error)
- func (c *Client) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, ...) (*http.Response, error)
- func (c *Client) CreateCampaignsWithBody(ctx context.Context, params *CreateCampaignsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, ...) (*http.Response, error)
- func (c *Client) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, ...) (*http.Response, error)
- func (c *Client) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, ...) (*http.Response, error)
- func (c *Client) CreateDraftCampaignsWithBody(ctx context.Context, params *CreateDraftCampaignsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *CreateKeywordsParams, ...) (*http.Response, error)
- func (c *Client) CreateKeywordsWithBody(ctx context.Context, params *CreateKeywordsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *CreateNegativeKeywordsParams, ...) (*http.Response, error)
- func (c *Client) CreateNegativeKeywordsWithBody(ctx context.Context, params *CreateNegativeKeywordsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateNegativeTargets(ctx context.Context, body CreateNegativeTargetsJSONRequestBody) (*http.Response, error)
- func (c *Client) CreateNegativeTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) CreateTargets(ctx context.Context, body CreateTargetsJSONRequestBody) (*http.Response, error)
- func (c *Client) CreateTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) CreateUploadResource(ctx context.Context, params *CreateUploadResourceParams, ...) (*http.Response, error)
- func (c *Client) CreateUploadResourceWithBody(ctx context.Context, params *CreateUploadResourceParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteDraftCampaign(ctx context.Context, draftCampaignId int64, params *DeleteDraftCampaignParams) (*http.Response, error)
- func (c *Client) DescribeMedia(ctx context.Context, params *DescribeMediaParams) (*http.Response, error)
- func (c *Client) DownloadReport(ctx context.Context, reportId string, params *DownloadReportParams) (*http.Response, error)
- func (c *Client) GetAdGroup(ctx context.Context, adGroupId int64, params *GetAdGroupParams) (*http.Response, error)
- func (c *Client) GetBidsRecommendations(ctx context.Context, params *GetBidsRecommendationsParams, ...) (*http.Response, error)
- func (c *Client) GetBidsRecommendationsWithBody(ctx context.Context, params *GetBidsRecommendationsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBody(ctx context.Context, params *GetBrandRecommendationsParams, ...) (*http.Response, error)
- func (c *Client) GetBrandRecommendationsWithBody(ctx context.Context, params *GetBrandRecommendationsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetBrands(ctx context.Context, params *GetBrandsParams) (*http.Response, error)
- func (c *Client) GetCampaign(ctx context.Context, campaignId int64, params *GetCampaignParams) (*http.Response, error)
- func (c *Client) GetDraftCampaign(ctx context.Context, draftCampaignId int64, params *GetDraftCampaignParams) (*http.Response, error)
- func (c *Client) GetKeyword(ctx context.Context, keywordId int64, params *GetKeywordParams) (*http.Response, error)
- func (c *Client) GetNegativeKeyword(ctx context.Context, keywordId int64, params *GetNegativeKeywordParams) (*http.Response, error)
- func (c *Client) GetNegativeTarget(ctx context.Context, negativeTargetId SBNegativeTargetId) (*http.Response, error)
- func (c *Client) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBody(ctx context.Context, params *GetProductRecommendationsParams, ...) (*http.Response, error)
- func (c *Client) GetProductRecommendationsWithBody(ctx context.Context, params *GetProductRecommendationsParams, ...) (*http.Response, error)
- func (c *Client) GetSbModerationCampaignsCampaignId(ctx context.Context, campaignId int64, ...) (*http.Response, error)
- func (c *Client) GetTarget(ctx context.Context, targetId SBTargetId, params *GetTargetParams) (*http.Response, error)
- func (c *Client) GetTargetingCategories(ctx context.Context, params *GetTargetingCategoriesParams, ...) (*http.Response, error)
- func (c *Client) GetTargetingCategoriesWithBody(ctx context.Context, params *GetTargetingCategoriesParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetV2ReportsReportId(ctx context.Context, reportId string, params *GetV2ReportsReportIdParams) (*http.Response, error)
- func (c *Client) ListAdGroups(ctx context.Context, params *ListAdGroupsParams) (*http.Response, error)
- func (c *Client) ListAsins(ctx context.Context, params *ListAsinsParams) (*http.Response, error)
- func (c *Client) ListAssets(ctx context.Context, params *ListAssetsParams) (*http.Response, error)
- func (c *Client) ListCampaigns(ctx context.Context, params *ListCampaignsParams) (*http.Response, error)
- func (c *Client) ListDraftCampaigns(ctx context.Context, params *ListDraftCampaignsParams) (*http.Response, error)
- func (c *Client) ListKeywords(ctx context.Context, params *ListKeywordsParams) (*http.Response, error)
- func (c *Client) ListNegativeKeywords(ctx context.Context, params *ListNegativeKeywordsParams) (*http.Response, error)
- func (c *Client) ListNegativeTargets(ctx context.Context, body ListNegativeTargetsJSONRequestBody) (*http.Response, error)
- func (c *Client) ListNegativeTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) ListTargets(ctx context.Context, body ListTargetsJSONRequestBody) (*http.Response, error)
- func (c *Client) ListTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) PostV2HsaRecordTypeReport(ctx context.Context, recordType string, ...) (*http.Response, error)
- func (c *Client) PostV2HsaRecordTypeReportWithBody(ctx context.Context, recordType string, ...) (*http.Response, error)
- func (c *Client) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBody(ctx context.Context, params *SbCreateThemesParams, ...) (*http.Response, error)
- func (c *Client) SbCreateThemesWithBody(ctx context.Context, params *SbCreateThemesParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBody(ctx context.Context, params *SbListThemesParams, ...) (*http.Response, error)
- func (c *Client) SbListThemesWithBody(ctx context.Context, params *SbListThemesParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBody(ctx context.Context, params *SbUpdateThemesParams, ...) (*http.Response, error)
- func (c *Client) SbUpdateThemesWithBody(ctx context.Context, params *SbUpdateThemesParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBody(ctx context.Context, params *SubmitDraftCampaignParams, ...) (*http.Response, error)
- func (c *Client) SubmitDraftCampaignWithBody(ctx context.Context, params *SubmitDraftCampaignParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, ...) (*http.Response, error)
- func (c *Client) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, ...) (*http.Response, error)
- func (c *Client) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, ...) (*http.Response, error)
- func (c *Client) UpdateCampaignsWithBody(ctx context.Context, params *UpdateCampaignsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, ...) (*http.Response, error)
- func (c *Client) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, ...) (*http.Response, error)
- func (c *Client) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, ...) (*http.Response, error)
- func (c *Client) UpdateDraftCampaignsWithBody(ctx context.Context, params *UpdateDraftCampaignsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *UpdateKeywordsParams, ...) (*http.Response, error)
- func (c *Client) UpdateKeywordsWithBody(ctx context.Context, params *UpdateKeywordsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *UpdateNegativeKeywordsParams, ...) (*http.Response, error)
- func (c *Client) UpdateNegativeKeywordsWithBody(ctx context.Context, params *UpdateNegativeKeywordsParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateNegativeTargets(ctx context.Context, body UpdateNegativeTargetsJSONRequestBody) (*http.Response, error)
- func (c *Client) UpdateNegativeTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) UpdateTargets(ctx context.Context, body UpdateTargetsJSONRequestBody) (*http.Response, error)
- func (c *Client) UpdateTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- type ClientHeader
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ArchiveCampaignWithResponse(ctx context.Context, campaignId int64, params *ArchiveCampaignParams) (*ArchiveCampaignResp, error)
- func (c *ClientWithResponses) ArchiveKeywordWithResponse(ctx context.Context, keywordId int64, params *ArchiveKeywordParams) (*ArchiveKeywordResp, error)
- func (c *ClientWithResponses) ArchiveNegativeKeywordWithResponse(ctx context.Context, keywordId int64, params *ArchiveNegativeKeywordParams) (*ArchiveNegativeKeywordResp, error)
- func (c *ClientWithResponses) ArchiveNegativeTargetWithResponse(ctx context.Context, negativeTargetId SBNegativeTargetId) (*ArchiveNegativeTargetResp, error)
- func (c *ClientWithResponses) ArchiveTargetWithResponse(ctx context.Context, targetId SBTargetId) (*ArchiveTargetResp, error)
- func (c *ClientWithResponses) CompleteUploadWithBodyWithResponse(ctx context.Context, params *CompleteUploadParams, contentType string, ...) (*CompleteUploadResp, error)
- func (c *ClientWithResponses) CompleteUploadWithResponse(ctx context.Context, params *CompleteUploadParams, ...) (*CompleteUploadResp, error)
- func (c *ClientWithResponses) CreateAssetWithBodyWithResponse(ctx context.Context, params *CreateAssetParams, contentType string, ...) (*CreateAssetResp, error)
- func (c *ClientWithResponses) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, ...) (*CreateCampaignsResp, error)
- func (c *ClientWithResponses) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, ...) (*CreateCampaignsResp, error)
- func (c *ClientWithResponses) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, ...) (*CreateCampaignsResp, error)
- func (c *ClientWithResponses) CreateCampaignsWithBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, contentType string, ...) (*CreateCampaignsResp, error)
- func (c *ClientWithResponses) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, ...) (*CreateDraftCampaignsResp, error)
- func (c *ClientWithResponses) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, ...) (*CreateDraftCampaignsResp, error)
- func (c *ClientWithResponses) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, ...) (*CreateDraftCampaignsResp, error)
- func (c *ClientWithResponses) CreateDraftCampaignsWithBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, contentType string, ...) (*CreateDraftCampaignsResp, error)
- func (c *ClientWithResponses) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateKeywordsParams, ...) (*CreateKeywordsResp, error)
- func (c *ClientWithResponses) CreateKeywordsWithBodyWithResponse(ctx context.Context, params *CreateKeywordsParams, contentType string, ...) (*CreateKeywordsResp, error)
- func (c *ClientWithResponses) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateNegativeKeywordsParams, ...) (*CreateNegativeKeywordsResp, error)
- func (c *ClientWithResponses) CreateNegativeKeywordsWithBodyWithResponse(ctx context.Context, params *CreateNegativeKeywordsParams, contentType string, ...) (*CreateNegativeKeywordsResp, error)
- func (c *ClientWithResponses) CreateNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateNegativeTargetsResp, error)
- func (c *ClientWithResponses) CreateNegativeTargetsWithResponse(ctx context.Context, body CreateNegativeTargetsJSONRequestBody) (*CreateNegativeTargetsResp, error)
- func (c *ClientWithResponses) CreateTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateTargetsResp, error)
- func (c *ClientWithResponses) CreateTargetsWithResponse(ctx context.Context, body CreateTargetsJSONRequestBody) (*CreateTargetsResp, error)
- func (c *ClientWithResponses) CreateUploadResourceWithBodyWithResponse(ctx context.Context, params *CreateUploadResourceParams, contentType string, ...) (*CreateUploadResourceResp, error)
- func (c *ClientWithResponses) CreateUploadResourceWithResponse(ctx context.Context, params *CreateUploadResourceParams, ...) (*CreateUploadResourceResp, error)
- func (c *ClientWithResponses) DeleteDraftCampaignWithResponse(ctx context.Context, draftCampaignId int64, params *DeleteDraftCampaignParams) (*DeleteDraftCampaignResp, error)
- func (c *ClientWithResponses) DescribeMediaWithResponse(ctx context.Context, params *DescribeMediaParams) (*DescribeMediaResp, error)
- func (c *ClientWithResponses) DownloadReportWithResponse(ctx context.Context, reportId string, params *DownloadReportParams) (*DownloadReportResp, error)
- func (c *ClientWithResponses) GetAdGroupWithResponse(ctx context.Context, adGroupId int64, params *GetAdGroupParams) (*GetAdGroupResp, error)
- func (c *ClientWithResponses) GetBidsRecommendationsWithBodyWithResponse(ctx context.Context, params *GetBidsRecommendationsParams, contentType string, ...) (*GetBidsRecommendationsResp, error)
- func (c *ClientWithResponses) GetBidsRecommendationsWithResponse(ctx context.Context, params *GetBidsRecommendationsParams, ...) (*GetBidsRecommendationsResp, error)
- func (c *ClientWithResponses) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBodyWithResponse(ctx context.Context, params *GetBrandRecommendationsParams, ...) (*GetBrandRecommendationsResp, error)
- func (c *ClientWithResponses) GetBrandRecommendationsWithBodyWithResponse(ctx context.Context, params *GetBrandRecommendationsParams, contentType string, ...) (*GetBrandRecommendationsResp, error)
- func (c *ClientWithResponses) GetBrandsWithResponse(ctx context.Context, params *GetBrandsParams) (*GetBrandsResp, error)
- func (c *ClientWithResponses) GetCampaignWithResponse(ctx context.Context, campaignId int64, params *GetCampaignParams) (*GetCampaignResp, error)
- func (c *ClientWithResponses) GetDraftCampaignWithResponse(ctx context.Context, draftCampaignId int64, params *GetDraftCampaignParams) (*GetDraftCampaignResp, error)
- func (c *ClientWithResponses) GetKeywordWithResponse(ctx context.Context, keywordId int64, params *GetKeywordParams) (*GetKeywordResp, error)
- func (c *ClientWithResponses) GetNegativeKeywordWithResponse(ctx context.Context, keywordId int64, params *GetNegativeKeywordParams) (*GetNegativeKeywordResp, error)
- func (c *ClientWithResponses) GetNegativeTargetWithResponse(ctx context.Context, negativeTargetId SBNegativeTargetId) (*GetNegativeTargetResp, error)
- func (c *ClientWithResponses) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBodyWithResponse(ctx context.Context, params *GetProductRecommendationsParams, ...) (*GetProductRecommendationsResp, error)
- func (c *ClientWithResponses) GetProductRecommendationsWithBodyWithResponse(ctx context.Context, params *GetProductRecommendationsParams, ...) (*GetProductRecommendationsResp, error)
- func (c *ClientWithResponses) GetSbModerationCampaignsCampaignIdWithResponse(ctx context.Context, campaignId int64, ...) (*GetSbModerationCampaignsCampaignIdResp, error)
- func (c *ClientWithResponses) GetTargetWithResponse(ctx context.Context, targetId SBTargetId, params *GetTargetParams) (*GetTargetResp, error)
- func (c *ClientWithResponses) GetTargetingCategoriesWithBodyWithResponse(ctx context.Context, params *GetTargetingCategoriesParams, contentType string, ...) (*GetTargetingCategoriesResp, error)
- func (c *ClientWithResponses) GetTargetingCategoriesWithResponse(ctx context.Context, params *GetTargetingCategoriesParams, ...) (*GetTargetingCategoriesResp, error)
- func (c *ClientWithResponses) GetV2ReportsReportIdWithResponse(ctx context.Context, reportId string, params *GetV2ReportsReportIdParams) (*GetV2ReportsReportIdResp, error)
- func (c *ClientWithResponses) ListAdGroupsWithResponse(ctx context.Context, params *ListAdGroupsParams) (*ListAdGroupsResp, error)
- func (c *ClientWithResponses) ListAsinsWithResponse(ctx context.Context, params *ListAsinsParams) (*ListAsinsResp, error)
- func (c *ClientWithResponses) ListAssetsWithResponse(ctx context.Context, params *ListAssetsParams) (*ListAssetsResp, error)
- func (c *ClientWithResponses) ListCampaignsWithResponse(ctx context.Context, params *ListCampaignsParams) (*ListCampaignsResp, error)
- func (c *ClientWithResponses) ListDraftCampaignsWithResponse(ctx context.Context, params *ListDraftCampaignsParams) (*ListDraftCampaignsResp, error)
- func (c *ClientWithResponses) ListKeywordsWithResponse(ctx context.Context, params *ListKeywordsParams) (*ListKeywordsResp, error)
- func (c *ClientWithResponses) ListNegativeKeywordsWithResponse(ctx context.Context, params *ListNegativeKeywordsParams) (*ListNegativeKeywordsResp, error)
- func (c *ClientWithResponses) ListNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ListNegativeTargetsResp, error)
- func (c *ClientWithResponses) ListNegativeTargetsWithResponse(ctx context.Context, body ListNegativeTargetsJSONRequestBody) (*ListNegativeTargetsResp, error)
- func (c *ClientWithResponses) ListTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ListTargetsResp, error)
- func (c *ClientWithResponses) ListTargetsWithResponse(ctx context.Context, body ListTargetsJSONRequestBody) (*ListTargetsResp, error)
- func (c *ClientWithResponses) PostV2HsaRecordTypeReportWithBodyWithResponse(ctx context.Context, recordType string, ...) (*PostV2HsaRecordTypeReportResp, error)
- func (c *ClientWithResponses) PostV2HsaRecordTypeReportWithResponse(ctx context.Context, recordType string, ...) (*PostV2HsaRecordTypeReportResp, error)
- func (c *ClientWithResponses) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbCreateThemesParams, ...) (*SbCreateThemesResp, error)
- func (c *ClientWithResponses) SbCreateThemesWithBodyWithResponse(ctx context.Context, params *SbCreateThemesParams, contentType string, ...) (*SbCreateThemesResp, error)
- func (c *ClientWithResponses) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbListThemesParams, ...) (*SbListThemesResp, error)
- func (c *ClientWithResponses) SbListThemesWithBodyWithResponse(ctx context.Context, params *SbListThemesParams, contentType string, ...) (*SbListThemesResp, error)
- func (c *ClientWithResponses) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbUpdateThemesParams, ...) (*SbUpdateThemesResp, error)
- func (c *ClientWithResponses) SbUpdateThemesWithBodyWithResponse(ctx context.Context, params *SbUpdateThemesParams, contentType string, ...) (*SbUpdateThemesResp, error)
- func (c *ClientWithResponses) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBodyWithResponse(ctx context.Context, params *SubmitDraftCampaignParams, ...) (*SubmitDraftCampaignResp, error)
- func (c *ClientWithResponses) SubmitDraftCampaignWithBodyWithResponse(ctx context.Context, params *SubmitDraftCampaignParams, contentType string, ...) (*SubmitDraftCampaignResp, error)
- func (c *ClientWithResponses) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, ...) (*UpdateCampaignsResp, error)
- func (c *ClientWithResponses) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, ...) (*UpdateCampaignsResp, error)
- func (c *ClientWithResponses) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, ...) (*UpdateCampaignsResp, error)
- func (c *ClientWithResponses) UpdateCampaignsWithBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, contentType string, ...) (*UpdateCampaignsResp, error)
- func (c *ClientWithResponses) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, ...) (*UpdateDraftCampaignsResp, error)
- func (c *ClientWithResponses) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, ...) (*UpdateDraftCampaignsResp, error)
- func (c *ClientWithResponses) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, ...) (*UpdateDraftCampaignsResp, error)
- func (c *ClientWithResponses) UpdateDraftCampaignsWithBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, contentType string, ...) (*UpdateDraftCampaignsResp, error)
- func (c *ClientWithResponses) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateKeywordsParams, ...) (*UpdateKeywordsResp, error)
- func (c *ClientWithResponses) UpdateKeywordsWithBodyWithResponse(ctx context.Context, params *UpdateKeywordsParams, contentType string, ...) (*UpdateKeywordsResp, error)
- func (c *ClientWithResponses) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateNegativeKeywordsParams, ...) (*UpdateNegativeKeywordsResp, error)
- func (c *ClientWithResponses) UpdateNegativeKeywordsWithBodyWithResponse(ctx context.Context, params *UpdateNegativeKeywordsParams, contentType string, ...) (*UpdateNegativeKeywordsResp, error)
- func (c *ClientWithResponses) UpdateNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateNegativeTargetsResp, error)
- func (c *ClientWithResponses) UpdateNegativeTargetsWithResponse(ctx context.Context, body UpdateNegativeTargetsJSONRequestBody) (*UpdateNegativeTargetsResp, error)
- func (c *ClientWithResponses) UpdateTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateTargetsResp, error)
- func (c *ClientWithResponses) UpdateTargetsWithResponse(ctx context.Context, body UpdateTargetsJSONRequestBody) (*UpdateTargetsResp, error)
- type ClientWithResponsesInterface
- type CompleteUploadJSONBody
- type CompleteUploadJSONRequestBody
- type CompleteUploadParams
- type CompleteUploadResp
- type CreateAssetMultipartBody
- type CreateAssetMultipartRequestBody
- type CreateAssetParams
- type CreateAssetResp
- type CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONBody
- type CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody
- type CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONBody
- type CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody
- type CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONBody
- type CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody
- type CreateCampaignsParams
- type CreateCampaignsResp
- type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody
- type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody
- type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody
- type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody
- type CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody
- type CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody
- type CreateDraftCampaignsParams
- type CreateDraftCampaignsResp
- type CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
- type CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody
- type CreateKeywordsParams
- type CreateKeywordsResp
- type CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
- type CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody
- type CreateNegativeKeywordsParams
- type CreateNegativeKeywordsResp
- type CreateNegativeTargetsJSONBody
- type CreateNegativeTargetsJSONRequestBody
- type CreateNegativeTargetsResp
- type CreateTargetsJSONBody
- type CreateTargetsJSONRequestBody
- type CreateTargetsResp
- type CreateUploadResourceJSONRequestBody
- type CreateUploadResourceParams
- type CreateUploadResourceResp
- type CreativeError
- type CreativeType
- type DeleteDraftCampaignParams
- type DeleteDraftCampaignResp
- type DescribeMediaParams
- type DescribeMediaResp
- type DownloadReportParams
- type DownloadReportResp
- type DraftsError
- type EndDate
- type Error
- type ErrorEntry
- func (t ErrorEntry) AsAdFormatError() (AdFormatError, error)
- func (t ErrorEntry) AsAdGroupError() (AdGroupError, error)
- func (t ErrorEntry) AsAssetsError() (AssetsError, error)
- func (t ErrorEntry) AsAuthorizationError() (AuthorizationError, error)
- func (t ErrorEntry) AsBidError() (BidError, error)
- func (t ErrorEntry) AsBrandsError() (BrandsError, error)
- func (t ErrorEntry) AsBudgetError() (BudgetError, error)
- func (t ErrorEntry) AsCampaignError() (CampaignError, error)
- func (t ErrorEntry) AsCreativeError() (CreativeError, error)
- func (t ErrorEntry) AsDraftsError() (DraftsError, error)
- func (t ErrorEntry) AsError() (Error, error)
- func (t ErrorEntry) AsFilterError() (FilterError, error)
- func (t ErrorEntry) AsKDPError() (KDPError, error)
- func (t ErrorEntry) AsKeywordError() (KeywordError, error)
- func (t ErrorEntry) AsLandingPageError() (LandingPageError, error)
- func (t ErrorEntry) AsMarketplaceError() (MarketplaceError, error)
- func (t ErrorEntry) AsPageAsinsError() (PageAsinsError, error)
- func (t ErrorEntry) AsPaginationError() (PaginationError, error)
- func (t ErrorEntry) AsProductItemsError() (ProductItemsError, error)
- func (t ErrorEntry) AsProfileError() (ProfileError, error)
- func (t ErrorEntry) AsRecommendationError() (RecommendationError, error)
- func (t ErrorEntry) AsSpooferError() (SpooferError, error)
- func (t ErrorEntry) AsTargetError() (TargetError, error)
- func (t *ErrorEntry) FromAdFormatError(v AdFormatError) error
- func (t *ErrorEntry) FromAdGroupError(v AdGroupError) error
- func (t *ErrorEntry) FromAssetsError(v AssetsError) error
- func (t *ErrorEntry) FromAuthorizationError(v AuthorizationError) error
- func (t *ErrorEntry) FromBidError(v BidError) error
- func (t *ErrorEntry) FromBrandsError(v BrandsError) error
- func (t *ErrorEntry) FromBudgetError(v BudgetError) error
- func (t *ErrorEntry) FromCampaignError(v CampaignError) error
- func (t *ErrorEntry) FromCreativeError(v CreativeError) error
- func (t *ErrorEntry) FromDraftsError(v DraftsError) error
- func (t *ErrorEntry) FromError(v Error) error
- func (t *ErrorEntry) FromFilterError(v FilterError) error
- func (t *ErrorEntry) FromKDPError(v KDPError) error
- func (t *ErrorEntry) FromKeywordError(v KeywordError) error
- func (t *ErrorEntry) FromLandingPageError(v LandingPageError) error
- func (t *ErrorEntry) FromMarketplaceError(v MarketplaceError) error
- func (t *ErrorEntry) FromPageAsinsError(v PageAsinsError) error
- func (t *ErrorEntry) FromPaginationError(v PaginationError) error
- func (t *ErrorEntry) FromProductItemsError(v ProductItemsError) error
- func (t *ErrorEntry) FromProfileError(v ProfileError) error
- func (t *ErrorEntry) FromRecommendationError(v RecommendationError) error
- func (t *ErrorEntry) FromSpooferError(v SpooferError) error
- func (t *ErrorEntry) FromTargetError(v TargetError) error
- func (t ErrorEntry) MarshalJSON() ([]byte, error)
- func (t *ErrorEntry) MergeAdFormatError(v AdFormatError) error
- func (t *ErrorEntry) MergeAdGroupError(v AdGroupError) error
- func (t *ErrorEntry) MergeAssetsError(v AssetsError) error
- func (t *ErrorEntry) MergeAuthorizationError(v AuthorizationError) error
- func (t *ErrorEntry) MergeBidError(v BidError) error
- func (t *ErrorEntry) MergeBrandsError(v BrandsError) error
- func (t *ErrorEntry) MergeBudgetError(v BudgetError) error
- func (t *ErrorEntry) MergeCampaignError(v CampaignError) error
- func (t *ErrorEntry) MergeCreativeError(v CreativeError) error
- func (t *ErrorEntry) MergeDraftsError(v DraftsError) error
- func (t *ErrorEntry) MergeError(v Error) error
- func (t *ErrorEntry) MergeFilterError(v FilterError) error
- func (t *ErrorEntry) MergeKDPError(v KDPError) error
- func (t *ErrorEntry) MergeKeywordError(v KeywordError) error
- func (t *ErrorEntry) MergeLandingPageError(v LandingPageError) error
- func (t *ErrorEntry) MergeMarketplaceError(v MarketplaceError) error
- func (t *ErrorEntry) MergePageAsinsError(v PageAsinsError) error
- func (t *ErrorEntry) MergePaginationError(v PaginationError) error
- func (t *ErrorEntry) MergeProductItemsError(v ProductItemsError) error
- func (t *ErrorEntry) MergeProfileError(v ProfileError) error
- func (t *ErrorEntry) MergeRecommendationError(v RecommendationError) error
- func (t *ErrorEntry) MergeSpooferError(v SpooferError) error
- func (t *ErrorEntry) MergeTargetError(v TargetError) error
- func (t *ErrorEntry) UnmarshalJSON(b []byte) error
- type FilterError
- type GetAdGroupParams
- type GetAdGroupResp
- type GetBatchGetCampaignsresponseV32Response
- type GetBatchGetCampaignsresponseV32Response_Item
- func (t GetBatchGetCampaignsresponseV32Response_Item) AsSBCampaignResponseCommon32() (SBCampaignResponseCommon32, error)
- func (t GetBatchGetCampaignsresponseV32Response_Item) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
- func (t *GetBatchGetCampaignsresponseV32Response_Item) FromSBCampaignResponseCommon32(v SBCampaignResponseCommon32) error
- func (t *GetBatchGetCampaignsresponseV32Response_Item) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t GetBatchGetCampaignsresponseV32Response_Item) MarshalJSON() ([]byte, error)
- func (t *GetBatchGetCampaignsresponseV32Response_Item) MergeSBCampaignResponseCommon32(v SBCampaignResponseCommon32) error
- func (t *GetBatchGetCampaignsresponseV32Response_Item) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t *GetBatchGetCampaignsresponseV32Response_Item) UnmarshalJSON(b []byte) error
- type GetBatchGetCampaignsresponseV33Response
- type GetBatchGetCampaignsresponseV33Response_Item
- func (t GetBatchGetCampaignsresponseV33Response_Item) AsSBCampaignResponseCommonV33() (SBCampaignResponseCommonV33, error)
- func (t GetBatchGetCampaignsresponseV33Response_Item) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
- func (t *GetBatchGetCampaignsresponseV33Response_Item) FromSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
- func (t *GetBatchGetCampaignsresponseV33Response_Item) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t GetBatchGetCampaignsresponseV33Response_Item) MarshalJSON() ([]byte, error)
- func (t *GetBatchGetCampaignsresponseV33Response_Item) MergeSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
- func (t *GetBatchGetCampaignsresponseV33Response_Item) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t *GetBatchGetCampaignsresponseV33Response_Item) UnmarshalJSON(b []byte) error
- type GetBidsRecommendationsJSONBody
- type GetBidsRecommendationsJSONRequestBody
- type GetBidsRecommendationsParams
- type GetBidsRecommendationsResp
- type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody
- type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody0
- type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody1
- type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody
- type GetBrandRecommendationsParams
- type GetBrandRecommendationsResp
- type GetBrandResponse
- type GetBrandsParams
- type GetBrandsResp
- type GetCampaignParams
- type GetCampaignResp
- type GetDraftCampaignParams
- type GetDraftCampaignResp
- type GetKeywordParams
- type GetKeywordResp
- type GetMediaDescriberResponse
- type GetNegativeKeywordParams
- type GetNegativeKeywordResp
- type GetNegativeTargetResp
- type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody
- type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBodyFilters0
- type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody_Filters_Item
- type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody
- type GetProductRecommendationsParams
- type GetProductRecommendationsResp
- type GetSbModerationCampaignsCampaignIdParams
- type GetSbModerationCampaignsCampaignIdResp
- type GetSbNegativeKeywords
- type GetStoresAssetsResponse
- type GetTargetParams
- type GetTargetResp
- type GetTargetingCategoriesJSONBody
- type GetTargetingCategoriesJSONBodySupplySource
- type GetTargetingCategoriesJSONRequestBody
- type GetTargetingCategoriesParams
- type GetTargetingCategoriesParamsLocale
- type GetTargetingCategoriesResp
- type GetV2ReportsReportIdParams
- type GetV2ReportsReportIdResp
- type HttpRequestDoer
- type KDPError
- type KeywordError
- type LandingPageError
- type ListAdGroupsParams
- type ListAdGroupsResp
- type ListAsinsParams
- type ListAsinsResp
- type ListAssetsParams
- type ListAssetsResp
- type ListCampaignsParams
- type ListCampaignsResp
- type ListDraftCampaignsParams
- type ListDraftCampaignsResp
- type ListKeywordsParams
- type ListKeywordsParamsStateFilter
- type ListKeywordsResp
- type ListNegativeKeywordsParams
- type ListNegativeKeywordsResp
- type ListNegativeTargets
- type ListNegativeTargetsJSONBody
- type ListNegativeTargetsJSONBodyFilters0
- type ListNegativeTargetsJSONBodyFilters1
- type ListNegativeTargetsJSONBodyFilters2
- type ListNegativeTargetsJSONBodyFilters3
- type ListNegativeTargetsJSONBody_Filters_Item
- type ListNegativeTargetsJSONRequestBody
- type ListNegativeTargetsResp
- type ListRecommendationsRequest
- type ListRequest
- type ListResponse
- type ListSbTargetsResponse
- type ListTargetsJSONBody
- type ListTargetsJSONBodyFilters0
- type ListTargetsJSONBodyFilters1
- type ListTargetsJSONBodyFilters2
- type ListTargetsJSONBodyFilters3
- type ListTargetsJSONBody_Filters_Item
- type ListTargetsJSONRequestBody
- type ListTargetsResp
- type MarketplaceError
- type MatchType
- type MaxResults
- type MaxResultsRecommendations
- type MediaId
- type MediaPublisherAPIError
- type MediaStatus
- type MediaType
- type NegativeMatchType
- type NextToken
- type NotFound404
- type OutcomeType
- type PageAsinsError
- type PageAsinsResponse
- type PaginationError
- type PostSbCampaignsResponse
- type PostSbThemesListResponse
- type PostStoresAssetsResponse
- type PostV2HsaRecordTypeReportJSONBody
- type PostV2HsaRecordTypeReportJSONBodyCreativeType
- type PostV2HsaRecordTypeReportJSONBodySegment
- type PostV2HsaRecordTypeReportJSONRequestBody
- type PostV2HsaRecordTypeReportParams
- type PostV2HsaRecordTypeReportResp
- type ProductItemsError
- type ProductPredicateType
- type ProfileError
- type ProfileHeader
- type Program
- type ProgramCreativeType
- type ProgramProgramType
- type PutSbNegativeTargets
- type PutSbTargetResponse
- type PutSbThemesResponse
- type RecommendationError
- type RecommendedBid
- type RequestEditorFn
- type ResponseEditorFn
- type SBAPIBid
- type SBAdGroup
- type SBAdGroupId
- type SBBidRecommendationKeyword
- type SBBidRecommendationKeywordIndex
- type SBBidRecommendationThemeIndex
- type SBBrandLogoCrop
- type SBBrandResponse
- type SBCampaignBase
- type SBCampaignBase32
- type SBCampaignBase32ServingStatus
- type SBCampaignBaseServingStatus
- type SBCampaignName
- type SBCampaignResponse
- func (t SBCampaignResponse) AsSBCampaignResponseCommon() (SBCampaignResponseCommon, error)
- func (t SBCampaignResponse) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
- func (t *SBCampaignResponse) FromSBCampaignResponseCommon(v SBCampaignResponseCommon) error
- func (t *SBCampaignResponse) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t SBCampaignResponse) MarshalJSON() ([]byte, error)
- func (t *SBCampaignResponse) MergeSBCampaignResponseCommon(v SBCampaignResponseCommon) error
- func (t *SBCampaignResponse) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t *SBCampaignResponse) UnmarshalJSON(b []byte) error
- type SBCampaignResponseCommon
- type SBCampaignResponseCommon32
- type SBCampaignResponseCommon32ServingStatus
- type SBCampaignResponseCommon32_Creative
- func (t SBCampaignResponseCommon32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCampaignResponseCommon32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCampaignResponseCommon32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCampaignResponseCommon32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCampaignResponseCommon32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCampaignResponseCommon32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCampaignResponseCommon32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCampaignResponseCommon32_Creative) UnmarshalJSON(b []byte) error
- type SBCampaignResponseCommon32_LandingPage
- func (t SBCampaignResponseCommon32_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
- func (t SBCampaignResponseCommon32_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
- func (t SBCampaignResponseCommon32_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
- func (t *SBCampaignResponseCommon32_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBCampaignResponseCommon32_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBCampaignResponseCommon32_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
- func (t SBCampaignResponseCommon32_LandingPage) MarshalJSON() ([]byte, error)
- func (t *SBCampaignResponseCommon32_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBCampaignResponseCommon32_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBCampaignResponseCommon32_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
- func (t *SBCampaignResponseCommon32_LandingPage) UnmarshalJSON(b []byte) error
- type SBCampaignResponseCommonServingStatus
- type SBCampaignResponseCommonV33
- type SBCampaignResponseCommonV33ServingStatus
- type SBCampaignResponseCommonV33_Creative
- func (t SBCampaignResponseCommonV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCampaignResponseCommonV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCampaignResponseCommonV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCampaignResponseCommonV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCampaignResponseCommonV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCampaignResponseCommonV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCampaignResponseCommonV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCampaignResponseCommonV33_Creative) UnmarshalJSON(b []byte) error
- type SBCampaignResponseCommonV33_LandingPage
- func (t SBCampaignResponseCommonV33_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
- func (t SBCampaignResponseCommonV33_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
- func (t SBCampaignResponseCommonV33_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
- func (t *SBCampaignResponseCommonV33_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBCampaignResponseCommonV33_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBCampaignResponseCommonV33_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
- func (t SBCampaignResponseCommonV33_LandingPage) MarshalJSON() ([]byte, error)
- func (t *SBCampaignResponseCommonV33_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBCampaignResponseCommonV33_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBCampaignResponseCommonV33_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
- func (t *SBCampaignResponseCommonV33_LandingPage) UnmarshalJSON(b []byte) error
- type SBCampaignResponseCommon_LandingPage
- func (t SBCampaignResponseCommon_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
- func (t SBCampaignResponseCommon_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
- func (t SBCampaignResponseCommon_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
- func (t *SBCampaignResponseCommon_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBCampaignResponseCommon_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBCampaignResponseCommon_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
- func (t SBCampaignResponseCommon_LandingPage) MarshalJSON() ([]byte, error)
- func (t *SBCampaignResponseCommon_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBCampaignResponseCommon_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBCampaignResponseCommon_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
- func (t *SBCampaignResponseCommon_LandingPage) UnmarshalJSON(b []byte) error
- type SBCampaignResponseV33
- func (t SBCampaignResponseV33) AsSBCampaignResponseCommonV33() (SBCampaignResponseCommonV33, error)
- func (t SBCampaignResponseV33) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
- func (t *SBCampaignResponseV33) FromSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
- func (t *SBCampaignResponseV33) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t SBCampaignResponseV33) MarshalJSON() ([]byte, error)
- func (t *SBCampaignResponseV33) MergeSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
- func (t *SBCampaignResponseV33) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
- func (t *SBCampaignResponseV33) UnmarshalJSON(b []byte) error
- type SBCategoryResponse
- type SBCollectionCreative
- type SBCommonKeywords
- type SBCommonTargets
- type SBCreateCampaignRequest
- func (t SBCreateCampaignRequest) AsSBCreateCampaignWithExpressions() (SBCreateCampaignWithExpressions, error)
- func (t SBCreateCampaignRequest) AsSBCreateCampaignWithKeywords() (SBCreateCampaignWithKeywords, error)
- func (t SBCreateCampaignRequest) AsSBVideoCreateCampaignWithExpressions() (SBVideoCreateCampaignWithExpressions, error)
- func (t SBCreateCampaignRequest) AsSBVideoCreateCampaignWithKeywords() (SBVideoCreateCampaignWithKeywords, error)
- func (t *SBCreateCampaignRequest) FromSBCreateCampaignWithExpressions(v SBCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequest) FromSBCreateCampaignWithKeywords(v SBCreateCampaignWithKeywords) error
- func (t *SBCreateCampaignRequest) FromSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequest) FromSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
- func (t SBCreateCampaignRequest) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignRequest) MergeSBCreateCampaignWithExpressions(v SBCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequest) MergeSBCreateCampaignWithKeywords(v SBCreateCampaignWithKeywords) error
- func (t *SBCreateCampaignRequest) MergeSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequest) MergeSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
- func (t *SBCreateCampaignRequest) UnmarshalJSON(b []byte) error
- type SBCreateCampaignRequestCommon
- type SBCreateCampaignRequestCommonV32
- type SBCreateCampaignRequestCommonV32_Creative
- func (t SBCreateCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateCampaignRequestCommonV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateCampaignRequestCommonV32_Creative) UnmarshalJSON(b []byte) error
- type SBCreateCampaignRequestCommonV33
- type SBCreateCampaignRequestCommonV33_Creative
- func (t SBCreateCampaignRequestCommonV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateCampaignRequestCommonV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateCampaignRequestCommonV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignRequestCommonV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateCampaignRequestCommonV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignRequestCommonV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignRequestCommonV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateCampaignRequestCommonV33_Creative) UnmarshalJSON(b []byte) error
- type SBCreateCampaignRequestV32
- func (t SBCreateCampaignRequestV32) AsSBCreateCampaignWithExpressionsV32() (SBCreateCampaignWithExpressionsV32, error)
- func (t SBCreateCampaignRequestV32) AsSBCreateCampaignWithKeywordsV32() (SBCreateCampaignWithKeywordsV32, error)
- func (t SBCreateCampaignRequestV32) AsSBVideoCreateCampaignWithExpressions() (SBVideoCreateCampaignWithExpressions, error)
- func (t SBCreateCampaignRequestV32) AsSBVideoCreateCampaignWithKeywords() (SBVideoCreateCampaignWithKeywords, error)
- func (t *SBCreateCampaignRequestV32) FromSBCreateCampaignWithExpressionsV32(v SBCreateCampaignWithExpressionsV32) error
- func (t *SBCreateCampaignRequestV32) FromSBCreateCampaignWithKeywordsV32(v SBCreateCampaignWithKeywordsV32) error
- func (t *SBCreateCampaignRequestV32) FromSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequestV32) FromSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
- func (t SBCreateCampaignRequestV32) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignRequestV32) MergeSBCreateCampaignWithExpressionsV32(v SBCreateCampaignWithExpressionsV32) error
- func (t *SBCreateCampaignRequestV32) MergeSBCreateCampaignWithKeywordsV32(v SBCreateCampaignWithKeywordsV32) error
- func (t *SBCreateCampaignRequestV32) MergeSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequestV32) MergeSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
- func (t *SBCreateCampaignRequestV32) UnmarshalJSON(b []byte) error
- type SBCreateCampaignRequestV33
- func (t SBCreateCampaignRequestV33) AsSBCreateCampaignWithExpressionsV33() (SBCreateCampaignWithExpressionsV33, error)
- func (t SBCreateCampaignRequestV33) AsSBCreateCampaignWithKeywordsV33() (SBCreateCampaignWithKeywordsV33, error)
- func (t SBCreateCampaignRequestV33) AsSBVideoCreateCampaignWithExpressions() (SBVideoCreateCampaignWithExpressions, error)
- func (t SBCreateCampaignRequestV33) AsSBVideoCreateCampaignWithKeywords() (SBVideoCreateCampaignWithKeywords, error)
- func (t *SBCreateCampaignRequestV33) FromSBCreateCampaignWithExpressionsV33(v SBCreateCampaignWithExpressionsV33) error
- func (t *SBCreateCampaignRequestV33) FromSBCreateCampaignWithKeywordsV33(v SBCreateCampaignWithKeywordsV33) error
- func (t *SBCreateCampaignRequestV33) FromSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequestV33) FromSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
- func (t SBCreateCampaignRequestV33) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignRequestV33) MergeSBCreateCampaignWithExpressionsV33(v SBCreateCampaignWithExpressionsV33) error
- func (t *SBCreateCampaignRequestV33) MergeSBCreateCampaignWithKeywordsV33(v SBCreateCampaignWithKeywordsV33) error
- func (t *SBCreateCampaignRequestV33) MergeSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
- func (t *SBCreateCampaignRequestV33) MergeSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
- func (t *SBCreateCampaignRequestV33) UnmarshalJSON(b []byte) error
- type SBCreateCampaignWithExpressions
- type SBCreateCampaignWithExpressionsV32
- type SBCreateCampaignWithExpressionsV32_Creative
- func (t SBCreateCampaignWithExpressionsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateCampaignWithExpressionsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateCampaignWithExpressionsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithExpressionsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateCampaignWithExpressionsV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignWithExpressionsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithExpressionsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateCampaignWithExpressionsV32_Creative) UnmarshalJSON(b []byte) error
- type SBCreateCampaignWithExpressionsV33
- type SBCreateCampaignWithExpressionsV33_Creative
- func (t SBCreateCampaignWithExpressionsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateCampaignWithExpressionsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateCampaignWithExpressionsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithExpressionsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateCampaignWithExpressionsV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignWithExpressionsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithExpressionsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateCampaignWithExpressionsV33_Creative) UnmarshalJSON(b []byte) error
- type SBCreateCampaignWithKeywords
- type SBCreateCampaignWithKeywordsV32
- type SBCreateCampaignWithKeywordsV32_Creative
- func (t SBCreateCampaignWithKeywordsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateCampaignWithKeywordsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateCampaignWithKeywordsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithKeywordsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateCampaignWithKeywordsV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignWithKeywordsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateCampaignWithKeywordsV32_Creative) UnmarshalJSON(b []byte) error
- type SBCreateCampaignWithKeywordsV33
- type SBCreateCampaignWithKeywordsV33_Creative
- func (t SBCreateCampaignWithKeywordsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateCampaignWithKeywordsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateCampaignWithKeywordsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithKeywordsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateCampaignWithKeywordsV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateCampaignWithKeywordsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateCampaignWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateCampaignWithKeywordsV33_Creative) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignRequest
- func (t SBCreateDraftCampaignRequest) AsSBCreateDraftCampaignWithKeywords() (SBCreateDraftCampaignWithKeywords, error)
- func (t SBCreateDraftCampaignRequest) AsSBCreateDraftCampaignWithProductTargets() (SBCreateDraftCampaignWithProductTargets, error)
- func (t SBCreateDraftCampaignRequest) AsSBVideoCreateDraftCampaignWithKeywords() (SBVideoCreateDraftCampaignWithKeywords, error)
- func (t SBCreateDraftCampaignRequest) AsSBVideoCreateDraftCampaignWithProductTargets() (SBVideoCreateDraftCampaignWithProductTargets, error)
- func (t *SBCreateDraftCampaignRequest) FromSBCreateDraftCampaignWithKeywords(v SBCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequest) FromSBCreateDraftCampaignWithProductTargets(v SBCreateDraftCampaignWithProductTargets) error
- func (t *SBCreateDraftCampaignRequest) FromSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequest) FromSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
- func (t SBCreateDraftCampaignRequest) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignRequest) MergeSBCreateDraftCampaignWithKeywords(v SBCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequest) MergeSBCreateDraftCampaignWithProductTargets(v SBCreateDraftCampaignWithProductTargets) error
- func (t *SBCreateDraftCampaignRequest) MergeSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequest) MergeSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
- func (t *SBCreateDraftCampaignRequest) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignRequestCommon
- type SBCreateDraftCampaignRequestCommonV32
- type SBCreateDraftCampaignRequestCommonV32_Creative
- func (t SBCreateDraftCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateDraftCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateDraftCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateDraftCampaignRequestCommonV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateDraftCampaignRequestCommonV32_Creative) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignRequestCommonV33
- type SBCreateDraftCampaignRequestCommonV33_Creative
- func (t SBCreateDraftCampaignRequestCommonV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateDraftCampaignRequestCommonV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateDraftCampaignRequestCommonV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignRequestCommonV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateDraftCampaignRequestCommonV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignRequestCommonV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignRequestCommonV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateDraftCampaignRequestCommonV33_Creative) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignRequestV32
- func (t SBCreateDraftCampaignRequestV32) AsSBCreateDraftCampaignWithKeywordsV32() (SBCreateDraftCampaignWithKeywordsV32, error)
- func (t SBCreateDraftCampaignRequestV32) AsSBCreateDraftCampaignWithProductTargetsV32() (SBCreateDraftCampaignWithProductTargetsV32, error)
- func (t SBCreateDraftCampaignRequestV32) AsSBVideoCreateDraftCampaignWithKeywords() (SBVideoCreateDraftCampaignWithKeywords, error)
- func (t SBCreateDraftCampaignRequestV32) AsSBVideoCreateDraftCampaignWithProductTargets() (SBVideoCreateDraftCampaignWithProductTargets, error)
- func (t *SBCreateDraftCampaignRequestV32) FromSBCreateDraftCampaignWithKeywordsV32(v SBCreateDraftCampaignWithKeywordsV32) error
- func (t *SBCreateDraftCampaignRequestV32) FromSBCreateDraftCampaignWithProductTargetsV32(v SBCreateDraftCampaignWithProductTargetsV32) error
- func (t *SBCreateDraftCampaignRequestV32) FromSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequestV32) FromSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
- func (t SBCreateDraftCampaignRequestV32) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignRequestV32) MergeSBCreateDraftCampaignWithKeywordsV32(v SBCreateDraftCampaignWithKeywordsV32) error
- func (t *SBCreateDraftCampaignRequestV32) MergeSBCreateDraftCampaignWithProductTargetsV32(v SBCreateDraftCampaignWithProductTargetsV32) error
- func (t *SBCreateDraftCampaignRequestV32) MergeSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequestV32) MergeSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
- func (t *SBCreateDraftCampaignRequestV32) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignRequestV33
- func (t SBCreateDraftCampaignRequestV33) AsSBCreateDraftCampaignWithKeywordsV33() (SBCreateDraftCampaignWithKeywordsV33, error)
- func (t SBCreateDraftCampaignRequestV33) AsSBCreateDraftCampaignWithProductTargetsV33() (SBCreateDraftCampaignWithProductTargetsV33, error)
- func (t SBCreateDraftCampaignRequestV33) AsSBVideoCreateDraftCampaignWithKeywords() (SBVideoCreateDraftCampaignWithKeywords, error)
- func (t SBCreateDraftCampaignRequestV33) AsSBVideoCreateDraftCampaignWithProductTargets() (SBVideoCreateDraftCampaignWithProductTargets, error)
- func (t *SBCreateDraftCampaignRequestV33) FromSBCreateDraftCampaignWithKeywordsV33(v SBCreateDraftCampaignWithKeywordsV33) error
- func (t *SBCreateDraftCampaignRequestV33) FromSBCreateDraftCampaignWithProductTargetsV33(v SBCreateDraftCampaignWithProductTargetsV33) error
- func (t *SBCreateDraftCampaignRequestV33) FromSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequestV33) FromSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
- func (t SBCreateDraftCampaignRequestV33) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignRequestV33) MergeSBCreateDraftCampaignWithKeywordsV33(v SBCreateDraftCampaignWithKeywordsV33) error
- func (t *SBCreateDraftCampaignRequestV33) MergeSBCreateDraftCampaignWithProductTargetsV33(v SBCreateDraftCampaignWithProductTargetsV33) error
- func (t *SBCreateDraftCampaignRequestV33) MergeSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
- func (t *SBCreateDraftCampaignRequestV33) MergeSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
- func (t *SBCreateDraftCampaignRequestV33) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignWithKeywords
- type SBCreateDraftCampaignWithKeywordsV32
- type SBCreateDraftCampaignWithKeywordsV32_Creative
- func (t SBCreateDraftCampaignWithKeywordsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateDraftCampaignWithKeywordsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateDraftCampaignWithKeywordsV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignWithKeywordsV33
- type SBCreateDraftCampaignWithKeywordsV33_Creative
- func (t SBCreateDraftCampaignWithKeywordsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateDraftCampaignWithKeywordsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateDraftCampaignWithKeywordsV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignWithProductTargets
- type SBCreateDraftCampaignWithProductTargetsV32
- type SBCreateDraftCampaignWithProductTargetsV32_Creative
- func (t SBCreateDraftCampaignWithProductTargetsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateDraftCampaignWithProductTargetsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateDraftCampaignWithProductTargetsV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) UnmarshalJSON(b []byte) error
- type SBCreateDraftCampaignWithProductTargetsV33
- type SBCreateDraftCampaignWithProductTargetsV33_Creative
- func (t SBCreateDraftCampaignWithProductTargetsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBCreateDraftCampaignWithProductTargetsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBCreateDraftCampaignWithProductTargetsV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) UnmarshalJSON(b []byte) error
- type SBCreateNegativeTargetingClauseRequest
- type SBCreateTargetingClauseRequest
- type SBCreateTargetsResponse
- type SBCreateThemesRequest
- type SBCreateThemesResponse
- type SBCreative
- type SBCustomImageCrop
- type SBCustomUrlLandingPage
- type SBDetailPageLandingPage
- type SBDraftCampaign
- func (t SBDraftCampaign) AsSBDraftCampaign0() (SBDraftCampaign0, error)
- func (t SBDraftCampaign) AsSBDraftCampaign1() (SBDraftCampaign1, error)
- func (t SBDraftCampaign) AsSBDraftCampaign2() (SBDraftCampaign2, error)
- func (t SBDraftCampaign) AsSBDraftCampaign3() (SBDraftCampaign3, error)
- func (t *SBDraftCampaign) FromSBDraftCampaign0(v SBDraftCampaign0) error
- func (t *SBDraftCampaign) FromSBDraftCampaign1(v SBDraftCampaign1) error
- func (t *SBDraftCampaign) FromSBDraftCampaign2(v SBDraftCampaign2) error
- func (t *SBDraftCampaign) FromSBDraftCampaign3(v SBDraftCampaign3) error
- func (t SBDraftCampaign) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaign) MergeSBDraftCampaign0(v SBDraftCampaign0) error
- func (t *SBDraftCampaign) MergeSBDraftCampaign1(v SBDraftCampaign1) error
- func (t *SBDraftCampaign) MergeSBDraftCampaign2(v SBDraftCampaign2) error
- func (t *SBDraftCampaign) MergeSBDraftCampaign3(v SBDraftCampaign3) error
- func (t *SBDraftCampaign) UnmarshalJSON(b []byte) error
- type SBDraftCampaign0
- type SBDraftCampaign1
- type SBDraftCampaign2
- type SBDraftCampaign3
- type SBDraftCampaignBase
- type SBDraftCampaignBaseV32
- type SBDraftCampaignBaseV32_Creative
- func (t SBDraftCampaignBaseV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBDraftCampaignBaseV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBDraftCampaignBaseV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBDraftCampaignBaseV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBDraftCampaignBaseV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignBaseV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBDraftCampaignBaseV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBDraftCampaignBaseV32_Creative) UnmarshalJSON(b []byte) error
- type SBDraftCampaignBaseV32_LandingPage
- func (t SBDraftCampaignBaseV32_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
- func (t SBDraftCampaignBaseV32_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
- func (t SBDraftCampaignBaseV32_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
- func (t *SBDraftCampaignBaseV32_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBDraftCampaignBaseV32_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBDraftCampaignBaseV32_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
- func (t SBDraftCampaignBaseV32_LandingPage) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignBaseV32_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBDraftCampaignBaseV32_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBDraftCampaignBaseV32_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
- func (t *SBDraftCampaignBaseV32_LandingPage) UnmarshalJSON(b []byte) error
- type SBDraftCampaignBaseV33
- type SBDraftCampaignBaseV33_Creative
- func (t SBDraftCampaignBaseV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBDraftCampaignBaseV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBDraftCampaignBaseV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBDraftCampaignBaseV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBDraftCampaignBaseV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignBaseV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBDraftCampaignBaseV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBDraftCampaignBaseV33_Creative) UnmarshalJSON(b []byte) error
- type SBDraftCampaignBaseV33_LandingPage
- func (t SBDraftCampaignBaseV33_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
- func (t SBDraftCampaignBaseV33_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
- func (t SBDraftCampaignBaseV33_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
- func (t *SBDraftCampaignBaseV33_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBDraftCampaignBaseV33_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBDraftCampaignBaseV33_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
- func (t SBDraftCampaignBaseV33_LandingPage) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignBaseV33_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBDraftCampaignBaseV33_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBDraftCampaignBaseV33_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
- func (t *SBDraftCampaignBaseV33_LandingPage) UnmarshalJSON(b []byte) error
- type SBDraftCampaignBase_LandingPage
- func (t SBDraftCampaignBase_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
- func (t SBDraftCampaignBase_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
- func (t SBDraftCampaignBase_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
- func (t *SBDraftCampaignBase_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBDraftCampaignBase_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBDraftCampaignBase_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
- func (t SBDraftCampaignBase_LandingPage) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignBase_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBDraftCampaignBase_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBDraftCampaignBase_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
- func (t *SBDraftCampaignBase_LandingPage) UnmarshalJSON(b []byte) error
- type SBDraftCampaignDeleteResponse
- type SBDraftCampaignResponse
- func (t SBDraftCampaignResponse) AsSBDraftCampaignResponseWithExpressions() (SBDraftCampaignResponseWithExpressions, error)
- func (t SBDraftCampaignResponse) AsSBDraftCampaignResponseWithKeywords() (SBDraftCampaignResponseWithKeywords, error)
- func (t *SBDraftCampaignResponse) FromSBDraftCampaignResponseWithExpressions(v SBDraftCampaignResponseWithExpressions) error
- func (t *SBDraftCampaignResponse) FromSBDraftCampaignResponseWithKeywords(v SBDraftCampaignResponseWithKeywords) error
- func (t SBDraftCampaignResponse) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignResponse) MergeSBDraftCampaignResponseWithExpressions(v SBDraftCampaignResponseWithExpressions) error
- func (t *SBDraftCampaignResponse) MergeSBDraftCampaignResponseWithKeywords(v SBDraftCampaignResponseWithKeywords) error
- func (t *SBDraftCampaignResponse) UnmarshalJSON(b []byte) error
- type SBDraftCampaignResponseCommon
- type SBDraftCampaignResponseWithExpressions
- type SBDraftCampaignResponseWithKeywords
- type SBDraftCampaignV32
- func (t SBDraftCampaignV32) AsSBDraftCampaignV320() (SBDraftCampaignV320, error)
- func (t SBDraftCampaignV32) AsSBDraftCampaignV321() (SBDraftCampaignV321, error)
- func (t SBDraftCampaignV32) AsSBDraftCampaignV322() (SBDraftCampaignV322, error)
- func (t SBDraftCampaignV32) AsSBDraftCampaignV323() (SBDraftCampaignV323, error)
- func (t *SBDraftCampaignV32) FromSBDraftCampaignV320(v SBDraftCampaignV320) error
- func (t *SBDraftCampaignV32) FromSBDraftCampaignV321(v SBDraftCampaignV321) error
- func (t *SBDraftCampaignV32) FromSBDraftCampaignV322(v SBDraftCampaignV322) error
- func (t *SBDraftCampaignV32) FromSBDraftCampaignV323(v SBDraftCampaignV323) error
- func (t SBDraftCampaignV32) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignV32) MergeSBDraftCampaignV320(v SBDraftCampaignV320) error
- func (t *SBDraftCampaignV32) MergeSBDraftCampaignV321(v SBDraftCampaignV321) error
- func (t *SBDraftCampaignV32) MergeSBDraftCampaignV322(v SBDraftCampaignV322) error
- func (t *SBDraftCampaignV32) MergeSBDraftCampaignV323(v SBDraftCampaignV323) error
- func (t *SBDraftCampaignV32) UnmarshalJSON(b []byte) error
- type SBDraftCampaignV320
- type SBDraftCampaignV321
- type SBDraftCampaignV322
- type SBDraftCampaignV323
- type SBDraftCampaignV33
- func (t SBDraftCampaignV33) AsSBDraftCampaignV330() (SBDraftCampaignV330, error)
- func (t SBDraftCampaignV33) AsSBDraftCampaignV331() (SBDraftCampaignV331, error)
- func (t SBDraftCampaignV33) AsSBDraftCampaignV332() (SBDraftCampaignV332, error)
- func (t SBDraftCampaignV33) AsSBDraftCampaignV333() (SBDraftCampaignV333, error)
- func (t *SBDraftCampaignV33) FromSBDraftCampaignV330(v SBDraftCampaignV330) error
- func (t *SBDraftCampaignV33) FromSBDraftCampaignV331(v SBDraftCampaignV331) error
- func (t *SBDraftCampaignV33) FromSBDraftCampaignV332(v SBDraftCampaignV332) error
- func (t *SBDraftCampaignV33) FromSBDraftCampaignV333(v SBDraftCampaignV333) error
- func (t SBDraftCampaignV33) MarshalJSON() ([]byte, error)
- func (t *SBDraftCampaignV33) MergeSBDraftCampaignV330(v SBDraftCampaignV330) error
- func (t *SBDraftCampaignV33) MergeSBDraftCampaignV331(v SBDraftCampaignV331) error
- func (t *SBDraftCampaignV33) MergeSBDraftCampaignV332(v SBDraftCampaignV332) error
- func (t *SBDraftCampaignV33) MergeSBDraftCampaignV333(v SBDraftCampaignV333) error
- func (t *SBDraftCampaignV33) UnmarshalJSON(b []byte) error
- type SBDraftCampaignV330
- type SBDraftCampaignV331
- type SBDraftCampaignV332
- type SBDraftCampaignV333
- type SBDraftKeyword
- type SBDraftKeywordState
- type SBDraftNegativeKeyword
- type SBDraftNegativeKeywordState
- type SBDraftNegativeTargetingClause
- type SBDraftTargetingClause
- type SBExpression
- type SBExpressionResponse
- type SBGetDraftCampaignResponse
- func (t SBGetDraftCampaignResponse) AsSBDraftCampaignBase() (SBDraftCampaignBase, error)
- func (t SBGetDraftCampaignResponse) AsSBVideoDraftCampaignBase() (SBVideoDraftCampaignBase, error)
- func (t *SBGetDraftCampaignResponse) FromSBDraftCampaignBase(v SBDraftCampaignBase) error
- func (t *SBGetDraftCampaignResponse) FromSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
- func (t SBGetDraftCampaignResponse) MarshalJSON() ([]byte, error)
- func (t *SBGetDraftCampaignResponse) MergeSBDraftCampaignBase(v SBDraftCampaignBase) error
- func (t *SBGetDraftCampaignResponse) MergeSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
- func (t *SBGetDraftCampaignResponse) UnmarshalJSON(b []byte) error
- type SBGetDraftCampaignResponseV32
- func (t SBGetDraftCampaignResponseV32) AsSBDraftCampaignBaseV32() (SBDraftCampaignBaseV32, error)
- func (t SBGetDraftCampaignResponseV32) AsSBVideoDraftCampaignBase() (SBVideoDraftCampaignBase, error)
- func (t *SBGetDraftCampaignResponseV32) FromSBDraftCampaignBaseV32(v SBDraftCampaignBaseV32) error
- func (t *SBGetDraftCampaignResponseV32) FromSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
- func (t SBGetDraftCampaignResponseV32) MarshalJSON() ([]byte, error)
- func (t *SBGetDraftCampaignResponseV32) MergeSBDraftCampaignBaseV32(v SBDraftCampaignBaseV32) error
- func (t *SBGetDraftCampaignResponseV32) MergeSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
- func (t *SBGetDraftCampaignResponseV32) UnmarshalJSON(b []byte) error
- type SBGetDraftCampaignResponseV33
- func (t SBGetDraftCampaignResponseV33) AsSBDraftCampaignBaseV33() (SBDraftCampaignBaseV33, error)
- func (t SBGetDraftCampaignResponseV33) AsSBVideoDraftCampaignBase() (SBVideoDraftCampaignBase, error)
- func (t *SBGetDraftCampaignResponseV33) FromSBDraftCampaignBaseV33(v SBDraftCampaignBaseV33) error
- func (t *SBGetDraftCampaignResponseV33) FromSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
- func (t SBGetDraftCampaignResponseV33) MarshalJSON() ([]byte, error)
- func (t *SBGetDraftCampaignResponseV33) MergeSBDraftCampaignBaseV33(v SBDraftCampaignBaseV33) error
- func (t *SBGetDraftCampaignResponseV33) MergeSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
- func (t *SBGetDraftCampaignResponseV33) UnmarshalJSON(b []byte) error
- type SBKeyword
- type SBKeywordExpression
- type SBKeywordResponse
- type SBKeywordState
- type SBLandingPage
- type SBListCampaignsResponse
- func (t SBListCampaignsResponse) AsSBListCampaignsResponse0() (SBListCampaignsResponse0, error)
- func (t SBListCampaignsResponse) AsSBListCampaignsResponse1() (SBListCampaignsResponse1, error)
- func (t *SBListCampaignsResponse) FromSBListCampaignsResponse0(v SBListCampaignsResponse0) error
- func (t *SBListCampaignsResponse) FromSBListCampaignsResponse1(v SBListCampaignsResponse1) error
- func (t SBListCampaignsResponse) MarshalJSON() ([]byte, error)
- func (t *SBListCampaignsResponse) MergeSBListCampaignsResponse0(v SBListCampaignsResponse0) error
- func (t *SBListCampaignsResponse) MergeSBListCampaignsResponse1(v SBListCampaignsResponse1) error
- func (t *SBListCampaignsResponse) UnmarshalJSON(b []byte) error
- type SBListCampaignsResponse0
- type SBListCampaignsResponse1
- type SBListCampaignsResponseCommon
- type SBListCampaignsResponseCommonServingStatus
- type SBListCampaignsResponseCommon_LandingPage
- func (t SBListCampaignsResponseCommon_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
- func (t SBListCampaignsResponseCommon_LandingPage) AsSBDetailPageLandingPage() (SBDetailPageLandingPage, error)
- func (t SBListCampaignsResponseCommon_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
- func (t SBListCampaignsResponseCommon_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
- func (t *SBListCampaignsResponseCommon_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBListCampaignsResponseCommon_LandingPage) FromSBDetailPageLandingPage(v SBDetailPageLandingPage) error
- func (t *SBListCampaignsResponseCommon_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBListCampaignsResponseCommon_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
- func (t SBListCampaignsResponseCommon_LandingPage) MarshalJSON() ([]byte, error)
- func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
- func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBDetailPageLandingPage(v SBDetailPageLandingPage) error
- func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
- func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
- func (t *SBListCampaignsResponseCommon_LandingPage) UnmarshalJSON(b []byte) error
- type SBNegativeExpression
- type SBNegativeExpressionType
- type SBNegativeKeyword
- type SBNegativeKeywordState
- type SBNegativeTarget
- type SBNegativeTargetId
- type SBNegativeTargetRequestIndex
- type SBNegativeTargetState
- type SBNegativeTargetingClause
- type SBNegativeTargetingExpressions
- type SBProductCollectionCreative
- type SBProductListLandingPage
- type SBProductTargetState
- type SBResolvedExpression
- type SBStoreLandingPage
- type SBStoreSpotlightCreative
- type SBSubmitDraftCampaignResponse
- func (t SBSubmitDraftCampaignResponse) AsSBSubmitDraftCampaignResponse0() (SBSubmitDraftCampaignResponse0, error)
- func (t SBSubmitDraftCampaignResponse) AsSBSubmitDraftCampaignResponse1() (SBSubmitDraftCampaignResponse1, error)
- func (t *SBSubmitDraftCampaignResponse) FromSBSubmitDraftCampaignResponse0(v SBSubmitDraftCampaignResponse0) error
- func (t *SBSubmitDraftCampaignResponse) FromSBSubmitDraftCampaignResponse1(v SBSubmitDraftCampaignResponse1) error
- func (t SBSubmitDraftCampaignResponse) MarshalJSON() ([]byte, error)
- func (t *SBSubmitDraftCampaignResponse) MergeSBSubmitDraftCampaignResponse0(v SBSubmitDraftCampaignResponse0) error
- func (t *SBSubmitDraftCampaignResponse) MergeSBSubmitDraftCampaignResponse1(v SBSubmitDraftCampaignResponse1) error
- func (t *SBSubmitDraftCampaignResponse) UnmarshalJSON(b []byte) error
- type SBSubmitDraftCampaignResponse0
- type SBSubmitDraftCampaignResponse1
- type SBTarget
- type SBTargetId
- type SBTargetRequestIndex
- type SBTargetingClause
- type SBTargetingClauseResponse
- type SBTargetingExpressions
- type SBTargetsNegativeTargets
- type SBTheme
- type SBThemeId
- type SBThemeState
- type SBUpdateCampaignResponse
- type SBUpdateCampaignResponseDefault
- type SBUpdateDraftCampaignRequest
- func (t SBUpdateDraftCampaignRequest) AsSBUpdateDraftCampaignRequestWithKeywords() (SBUpdateDraftCampaignRequestWithKeywords, error)
- func (t SBUpdateDraftCampaignRequest) AsSBUpdateDraftCampaignRequestWithProductTargets() (SBUpdateDraftCampaignRequestWithProductTargets, error)
- func (t SBUpdateDraftCampaignRequest) AsSBVideoUpdateDraftCampaignRequestWithKeywords() (SBVideoUpdateDraftCampaignRequestWithKeywords, error)
- func (t SBUpdateDraftCampaignRequest) AsSBVideoUpdateDraftCampaignRequestWithProductTargets() (SBVideoUpdateDraftCampaignRequestWithProductTargets, error)
- func (t *SBUpdateDraftCampaignRequest) FromSBUpdateDraftCampaignRequestWithKeywords(v SBUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequest) FromSBUpdateDraftCampaignRequestWithProductTargets(v SBUpdateDraftCampaignRequestWithProductTargets) error
- func (t *SBUpdateDraftCampaignRequest) FromSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequest) FromSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
- func (t SBUpdateDraftCampaignRequest) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequest) MergeSBUpdateDraftCampaignRequestWithKeywords(v SBUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequest) MergeSBUpdateDraftCampaignRequestWithProductTargets(v SBUpdateDraftCampaignRequestWithProductTargets) error
- func (t *SBUpdateDraftCampaignRequest) MergeSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequest) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
- func (t *SBUpdateDraftCampaignRequest) UnmarshalJSON(b []byte) error
- type SBUpdateDraftCampaignRequestCommon
- type SBUpdateDraftCampaignRequestCommonV32
- type SBUpdateDraftCampaignRequestCommonV32_Creative
- func (t SBUpdateDraftCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBUpdateDraftCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBUpdateDraftCampaignRequestCommonV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) UnmarshalJSON(b []byte) error
- type SBUpdateDraftCampaignRequestV32
- func (t SBUpdateDraftCampaignRequestV32) AsSBUpdateDraftCampaignRequestWithKeywordsV32() (SBUpdateDraftCampaignRequestWithKeywordsV32, error)
- func (t SBUpdateDraftCampaignRequestV32) AsSBUpdateDraftCampaignRequestWithProductTargetsV32() (SBUpdateDraftCampaignRequestWithProductTargetsV32, error)
- func (t SBUpdateDraftCampaignRequestV32) AsSBVideoUpdateDraftCampaignRequestWithKeywords() (SBVideoUpdateDraftCampaignRequestWithKeywords, error)
- func (t SBUpdateDraftCampaignRequestV32) AsSBVideoUpdateDraftCampaignRequestWithProductTargets() (SBVideoUpdateDraftCampaignRequestWithProductTargets, error)
- func (t *SBUpdateDraftCampaignRequestV32) FromSBUpdateDraftCampaignRequestWithKeywordsV32(v SBUpdateDraftCampaignRequestWithKeywordsV32) error
- func (t *SBUpdateDraftCampaignRequestV32) FromSBUpdateDraftCampaignRequestWithProductTargetsV32(v SBUpdateDraftCampaignRequestWithProductTargetsV32) error
- func (t *SBUpdateDraftCampaignRequestV32) FromSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequestV32) FromSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
- func (t SBUpdateDraftCampaignRequestV32) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequestV32) MergeSBUpdateDraftCampaignRequestWithKeywordsV32(v SBUpdateDraftCampaignRequestWithKeywordsV32) error
- func (t *SBUpdateDraftCampaignRequestV32) MergeSBUpdateDraftCampaignRequestWithProductTargetsV32(v SBUpdateDraftCampaignRequestWithProductTargetsV32) error
- func (t *SBUpdateDraftCampaignRequestV32) MergeSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequestV32) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
- func (t *SBUpdateDraftCampaignRequestV32) UnmarshalJSON(b []byte) error
- type SBUpdateDraftCampaignRequestV33
- func (t SBUpdateDraftCampaignRequestV33) AsSBUpdateDraftCampaignRequestWithKeywordsV33() (SBUpdateDraftCampaignRequestWithKeywordsV33, error)
- func (t SBUpdateDraftCampaignRequestV33) AsSBUpdateDraftCampaignRequestWithProductTargetsV33() (SBUpdateDraftCampaignRequestWithProductTargetsV33, error)
- func (t SBUpdateDraftCampaignRequestV33) AsSBVideoUpdateDraftCampaignRequestWithKeywords() (SBVideoUpdateDraftCampaignRequestWithKeywords, error)
- func (t SBUpdateDraftCampaignRequestV33) AsSBVideoUpdateDraftCampaignRequestWithProductTargets() (SBVideoUpdateDraftCampaignRequestWithProductTargets, error)
- func (t *SBUpdateDraftCampaignRequestV33) FromSBUpdateDraftCampaignRequestWithKeywordsV33(v SBUpdateDraftCampaignRequestWithKeywordsV33) error
- func (t *SBUpdateDraftCampaignRequestV33) FromSBUpdateDraftCampaignRequestWithProductTargetsV33(v SBUpdateDraftCampaignRequestWithProductTargetsV33) error
- func (t *SBUpdateDraftCampaignRequestV33) FromSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequestV33) FromSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
- func (t SBUpdateDraftCampaignRequestV33) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequestV33) MergeSBUpdateDraftCampaignRequestWithKeywordsV33(v SBUpdateDraftCampaignRequestWithKeywordsV33) error
- func (t *SBUpdateDraftCampaignRequestV33) MergeSBUpdateDraftCampaignRequestWithProductTargetsV33(v SBUpdateDraftCampaignRequestWithProductTargetsV33) error
- func (t *SBUpdateDraftCampaignRequestV33) MergeSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
- func (t *SBUpdateDraftCampaignRequestV33) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
- func (t *SBUpdateDraftCampaignRequestV33) UnmarshalJSON(b []byte) error
- type SBUpdateDraftCampaignRequestWithKeywords
- type SBUpdateDraftCampaignRequestWithKeywordsV32
- type SBUpdateDraftCampaignRequestWithKeywordsV32_Creative
- func (t SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) UnmarshalJSON(b []byte) error
- type SBUpdateDraftCampaignRequestWithKeywordsV33
- type SBUpdateDraftCampaignRequestWithKeywordsV33_Creative
- func (t SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) UnmarshalJSON(b []byte) error
- type SBUpdateDraftCampaignRequestWithProductTargets
- type SBUpdateDraftCampaignRequestWithProductTargetsV32
- type SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative
- func (t SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) UnmarshalJSON(b []byte) error
- type SBUpdateDraftCampaignRequestWithProductTargetsV33
- type SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative
- func (t SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
- func (t SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MarshalJSON() ([]byte, error)
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
- func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) UnmarshalJSON(b []byte) error
- type SBUpdateNegativeTargetingClauseRequest
- type SBUpdateTargetingClauseRequest
- type SBUpdateThemesRequest
- type SBVideoCampaignResponseCommon
- type SBVideoCampaignResponseCommonServingStatus
- type SBVideoCreateCampaignRequestCommon
- type SBVideoCreateCampaignWithExpressions
- type SBVideoCreateCampaignWithKeywords
- type SBVideoCreateDraftCampaignRequestCommon
- type SBVideoCreateDraftCampaignWithKeywords
- type SBVideoCreateDraftCampaignWithProductTargets
- type SBVideoCreative
- type SBVideoCreativeType
- type SBVideoDraftCampaignBase
- type SBVideoUpdateDraftCampaignRequestCommon
- type SBVideoUpdateDraftCampaignRequestWithKeywords
- type SBVideoUpdateDraftCampaignRequestWithProductTargets
- type SDRecommendationsBids
- type SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONBody
- type SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody
- type SbCreateThemesParams
- type SbCreateThemesResp
- type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBody
- type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude
- type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody
- type SbListThemesParams
- type SbListThemesResp
- type SbModerationCampaignsResponse
- type SbModerationCampaignsResponseModerationStatus
- type SbRecommendationsTargetsBrand
- type SbRecommendationsTargetsCategory
- type SbRecommendationsTargetsProductList
- type SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONBody
- type SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody
- type SbUpdateThemesParams
- type SbUpdateThemesResp
- type ShopperSegmentBiddingControls
- type SpooferError
- type StartDate
- type State
- type SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONBody
- type SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody
- type SubmitDraftCampaignParams
- type SubmitDraftCampaignResp
- type TargetError
- type ThemeType
- type UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONBody
- type UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody
- type UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONBody
- type UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody
- type UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONBody
- type UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody
- type UpdateCampaignsParams
- type UpdateCampaignsResp
- type UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody
- type UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody
- type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody
- type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody
- type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody
- type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody
- type UpdateDraftCampaignsParams
- type UpdateDraftCampaignsResp
- type UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
- type UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody
- type UpdateKeywordsParams
- type UpdateKeywordsResp
- type UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
- type UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody
- type UpdateNegativeKeywordsParams
- type UpdateNegativeKeywordsResp
- type UpdateNegativeTargetsJSONBody
- type UpdateNegativeTargetsJSONRequestBody
- type UpdateNegativeTargetsResp
- type UpdateTargetsJSONBody
- type UpdateTargetsJSONRequestBody
- type UpdateTargetsResp
- type UploadLocation
- type V2HsaReportResponse
- type V2ReportIdResponse
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewArchiveCampaignRequest ¶
func NewArchiveCampaignRequest(server string, campaignId int64, params *ArchiveCampaignParams) (*http.Request, error)
NewArchiveCampaignRequest generates requests for ArchiveCampaign
func NewArchiveKeywordRequest ¶
func NewArchiveKeywordRequest(server string, keywordId int64, params *ArchiveKeywordParams) (*http.Request, error)
NewArchiveKeywordRequest generates requests for ArchiveKeyword
func NewArchiveNegativeKeywordRequest ¶
func NewArchiveNegativeKeywordRequest(server string, keywordId int64, params *ArchiveNegativeKeywordParams) (*http.Request, error)
NewArchiveNegativeKeywordRequest generates requests for ArchiveNegativeKeyword
func NewArchiveNegativeTargetRequest ¶
func NewArchiveNegativeTargetRequest(server string, negativeTargetId SBNegativeTargetId) (*http.Request, error)
NewArchiveNegativeTargetRequest generates requests for ArchiveNegativeTarget
func NewArchiveTargetRequest ¶
func NewArchiveTargetRequest(server string, targetId SBTargetId) (*http.Request, error)
NewArchiveTargetRequest generates requests for ArchiveTarget
func NewCompleteUploadRequest ¶
func NewCompleteUploadRequest(server string, params *CompleteUploadParams, body CompleteUploadJSONRequestBody) (*http.Request, error)
NewCompleteUploadRequest calls the generic CompleteUpload builder with application/json body
func NewCompleteUploadRequestWithBody ¶
func NewCompleteUploadRequestWithBody(server string, params *CompleteUploadParams, contentType string, body io.Reader) (*http.Request, error)
NewCompleteUploadRequestWithBody generates requests for CompleteUpload with any type of body
func NewCreateAssetRequestWithBody ¶
func NewCreateAssetRequestWithBody(server string, params *CreateAssetParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateAssetRequestWithBody generates requests for CreateAsset with any type of body
func NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV32PlusJSONBody ¶
func NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV32PlusJSONBody(server string, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody) (*http.Request, error)
NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV32PlusJSONBody calls the generic CreateCampaigns builder with application/vnd.createcampaignsresponse.v3.2+json body
func NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV33PlusJSONBody ¶
func NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV33PlusJSONBody(server string, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody) (*http.Request, error)
NewCreateCampaignsRequestWithApplicationVndCreatecampaignsresponseV33PlusJSONBody calls the generic CreateCampaigns builder with application/vnd.createcampaignsresponse.v3.3+json body
func NewCreateCampaignsRequestWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody ¶
func NewCreateCampaignsRequestWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody(server string, params *CreateCampaignsParams, body CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody) (*http.Request, error)
NewCreateCampaignsRequestWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody calls the generic CreateCampaigns builder with application/vnd.sbcreatecampaignresponse.v3+json body
func NewCreateCampaignsRequestWithBody ¶
func NewCreateCampaignsRequestWithBody(server string, params *CreateCampaignsParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateCampaignsRequestWithBody generates requests for CreateCampaigns with any type of body
func NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody ¶
func NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody(server string, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody) (*http.Request, error)
NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody calls the generic CreateDraftCampaigns builder with application/vnd.createdraftcampaignsresponse.v3.2+json body
func NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody ¶
func NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody(server string, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody) (*http.Request, error)
NewCreateDraftCampaignsRequestWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody calls the generic CreateDraftCampaigns builder with application/vnd.createdraftcampaignsresponse.v3.3+json body
func NewCreateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody ¶
func NewCreateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(server string, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*http.Request, error)
NewCreateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody calls the generic CreateDraftCampaigns builder with application/vnd.sbdraftcampaignresponse.v3+json body
func NewCreateDraftCampaignsRequestWithBody ¶
func NewCreateDraftCampaignsRequestWithBody(server string, params *CreateDraftCampaignsParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateDraftCampaignsRequestWithBody generates requests for CreateDraftCampaigns with any type of body
func NewCreateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func NewCreateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *CreateKeywordsParams, body CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Request, error)
NewCreateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody calls the generic CreateKeywords builder with application/vnd.sbkeywordresponse.v3+json body
func NewCreateKeywordsRequestWithBody ¶
func NewCreateKeywordsRequestWithBody(server string, params *CreateKeywordsParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateKeywordsRequestWithBody generates requests for CreateKeywords with any type of body
func NewCreateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func NewCreateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *CreateNegativeKeywordsParams, body CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Request, error)
NewCreateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody calls the generic CreateNegativeKeywords builder with application/vnd.sbkeywordresponse.v3+json body
func NewCreateNegativeKeywordsRequestWithBody ¶
func NewCreateNegativeKeywordsRequestWithBody(server string, params *CreateNegativeKeywordsParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateNegativeKeywordsRequestWithBody generates requests for CreateNegativeKeywords with any type of body
func NewCreateNegativeTargetsRequest ¶
func NewCreateNegativeTargetsRequest(server string, body CreateNegativeTargetsJSONRequestBody) (*http.Request, error)
NewCreateNegativeTargetsRequest calls the generic CreateNegativeTargets builder with application/json body
func NewCreateNegativeTargetsRequestWithBody ¶
func NewCreateNegativeTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNegativeTargetsRequestWithBody generates requests for CreateNegativeTargets with any type of body
func NewCreateTargetsRequest ¶
func NewCreateTargetsRequest(server string, body CreateTargetsJSONRequestBody) (*http.Request, error)
NewCreateTargetsRequest calls the generic CreateTargets builder with application/json body
func NewCreateTargetsRequestWithBody ¶
func NewCreateTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTargetsRequestWithBody generates requests for CreateTargets with any type of body
func NewCreateUploadResourceRequest ¶
func NewCreateUploadResourceRequest(server string, params *CreateUploadResourceParams, body CreateUploadResourceJSONRequestBody) (*http.Request, error)
NewCreateUploadResourceRequest calls the generic CreateUploadResource builder with application/json body
func NewCreateUploadResourceRequestWithBody ¶
func NewCreateUploadResourceRequestWithBody(server string, params *CreateUploadResourceParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateUploadResourceRequestWithBody generates requests for CreateUploadResource with any type of body
func NewDeleteDraftCampaignRequest ¶
func NewDeleteDraftCampaignRequest(server string, draftCampaignId int64, params *DeleteDraftCampaignParams) (*http.Request, error)
NewDeleteDraftCampaignRequest generates requests for DeleteDraftCampaign
func NewDescribeMediaRequest ¶
func NewDescribeMediaRequest(server string, params *DescribeMediaParams) (*http.Request, error)
NewDescribeMediaRequest generates requests for DescribeMedia
func NewDownloadReportRequest ¶
func NewDownloadReportRequest(server string, reportId string, params *DownloadReportParams) (*http.Request, error)
NewDownloadReportRequest generates requests for DownloadReport
func NewGetAdGroupRequest ¶
func NewGetAdGroupRequest(server string, adGroupId int64, params *GetAdGroupParams) (*http.Request, error)
NewGetAdGroupRequest generates requests for GetAdGroup
func NewGetBidsRecommendationsRequest ¶
func NewGetBidsRecommendationsRequest(server string, params *GetBidsRecommendationsParams, body GetBidsRecommendationsJSONRequestBody) (*http.Request, error)
NewGetBidsRecommendationsRequest calls the generic GetBidsRecommendations builder with application/json body
func NewGetBidsRecommendationsRequestWithBody ¶
func NewGetBidsRecommendationsRequestWithBody(server string, params *GetBidsRecommendationsParams, contentType string, body io.Reader) (*http.Request, error)
NewGetBidsRecommendationsRequestWithBody generates requests for GetBidsRecommendations with any type of body
func NewGetBrandRecommendationsRequestWithApplicationVndSbbrandrecommendationsV30PlusJSONBody ¶
func NewGetBrandRecommendationsRequestWithApplicationVndSbbrandrecommendationsV30PlusJSONBody(server string, params *GetBrandRecommendationsParams, body GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody) (*http.Request, error)
NewGetBrandRecommendationsRequestWithApplicationVndSbbrandrecommendationsV30PlusJSONBody calls the generic GetBrandRecommendations builder with application/vnd.sbbrandrecommendations.v3.0+json body
func NewGetBrandRecommendationsRequestWithBody ¶
func NewGetBrandRecommendationsRequestWithBody(server string, params *GetBrandRecommendationsParams, contentType string, body io.Reader) (*http.Request, error)
NewGetBrandRecommendationsRequestWithBody generates requests for GetBrandRecommendations with any type of body
func NewGetBrandsRequest ¶
func NewGetBrandsRequest(server string, params *GetBrandsParams) (*http.Request, error)
NewGetBrandsRequest generates requests for GetBrands
func NewGetCampaignRequest ¶
func NewGetCampaignRequest(server string, campaignId int64, params *GetCampaignParams) (*http.Request, error)
NewGetCampaignRequest generates requests for GetCampaign
func NewGetDraftCampaignRequest ¶
func NewGetDraftCampaignRequest(server string, draftCampaignId int64, params *GetDraftCampaignParams) (*http.Request, error)
NewGetDraftCampaignRequest generates requests for GetDraftCampaign
func NewGetKeywordRequest ¶
func NewGetKeywordRequest(server string, keywordId int64, params *GetKeywordParams) (*http.Request, error)
NewGetKeywordRequest generates requests for GetKeyword
func NewGetNegativeKeywordRequest ¶
func NewGetNegativeKeywordRequest(server string, keywordId int64, params *GetNegativeKeywordParams) (*http.Request, error)
NewGetNegativeKeywordRequest generates requests for GetNegativeKeyword
func NewGetNegativeTargetRequest ¶
func NewGetNegativeTargetRequest(server string, negativeTargetId SBNegativeTargetId) (*http.Request, error)
NewGetNegativeTargetRequest generates requests for GetNegativeTarget
func NewGetProductRecommendationsRequestWithApplicationVndSbproductrecommendationsV30PlusJSONBody ¶
func NewGetProductRecommendationsRequestWithApplicationVndSbproductrecommendationsV30PlusJSONBody(server string, params *GetProductRecommendationsParams, body GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody) (*http.Request, error)
NewGetProductRecommendationsRequestWithApplicationVndSbproductrecommendationsV30PlusJSONBody calls the generic GetProductRecommendations builder with application/vnd.sbproductrecommendations.v3.0+json body
func NewGetProductRecommendationsRequestWithBody ¶
func NewGetProductRecommendationsRequestWithBody(server string, params *GetProductRecommendationsParams, contentType string, body io.Reader) (*http.Request, error)
NewGetProductRecommendationsRequestWithBody generates requests for GetProductRecommendations with any type of body
func NewGetSbModerationCampaignsCampaignIdRequest ¶
func NewGetSbModerationCampaignsCampaignIdRequest(server string, campaignId int64, params *GetSbModerationCampaignsCampaignIdParams) (*http.Request, error)
NewGetSbModerationCampaignsCampaignIdRequest generates requests for GetSbModerationCampaignsCampaignId
func NewGetTargetRequest ¶
func NewGetTargetRequest(server string, targetId SBTargetId, params *GetTargetParams) (*http.Request, error)
NewGetTargetRequest generates requests for GetTarget
func NewGetTargetingCategoriesRequest ¶
func NewGetTargetingCategoriesRequest(server string, params *GetTargetingCategoriesParams, body GetTargetingCategoriesJSONRequestBody) (*http.Request, error)
NewGetTargetingCategoriesRequest calls the generic GetTargetingCategories builder with application/json body
func NewGetTargetingCategoriesRequestWithBody ¶
func NewGetTargetingCategoriesRequestWithBody(server string, params *GetTargetingCategoriesParams, contentType string, body io.Reader) (*http.Request, error)
NewGetTargetingCategoriesRequestWithBody generates requests for GetTargetingCategories with any type of body
func NewGetV2ReportsReportIdRequest ¶
func NewGetV2ReportsReportIdRequest(server string, reportId string, params *GetV2ReportsReportIdParams) (*http.Request, error)
NewGetV2ReportsReportIdRequest generates requests for GetV2ReportsReportId
func NewListAdGroupsRequest ¶
func NewListAdGroupsRequest(server string, params *ListAdGroupsParams) (*http.Request, error)
NewListAdGroupsRequest generates requests for ListAdGroups
func NewListAsinsRequest ¶
func NewListAsinsRequest(server string, params *ListAsinsParams) (*http.Request, error)
NewListAsinsRequest generates requests for ListAsins
func NewListAssetsRequest ¶
func NewListAssetsRequest(server string, params *ListAssetsParams) (*http.Request, error)
NewListAssetsRequest generates requests for ListAssets
func NewListCampaignsRequest ¶
func NewListCampaignsRequest(server string, params *ListCampaignsParams) (*http.Request, error)
NewListCampaignsRequest generates requests for ListCampaigns
func NewListDraftCampaignsRequest ¶
func NewListDraftCampaignsRequest(server string, params *ListDraftCampaignsParams) (*http.Request, error)
NewListDraftCampaignsRequest generates requests for ListDraftCampaigns
func NewListKeywordsRequest ¶
func NewListKeywordsRequest(server string, params *ListKeywordsParams) (*http.Request, error)
NewListKeywordsRequest generates requests for ListKeywords
func NewListNegativeKeywordsRequest ¶
func NewListNegativeKeywordsRequest(server string, params *ListNegativeKeywordsParams) (*http.Request, error)
NewListNegativeKeywordsRequest generates requests for ListNegativeKeywords
func NewListNegativeTargetsRequest ¶
func NewListNegativeTargetsRequest(server string, body ListNegativeTargetsJSONRequestBody) (*http.Request, error)
NewListNegativeTargetsRequest calls the generic ListNegativeTargets builder with application/json body
func NewListNegativeTargetsRequestWithBody ¶
func NewListNegativeTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListNegativeTargetsRequestWithBody generates requests for ListNegativeTargets with any type of body
func NewListTargetsRequest ¶
func NewListTargetsRequest(server string, body ListTargetsJSONRequestBody) (*http.Request, error)
NewListTargetsRequest calls the generic ListTargets builder with application/json body
func NewListTargetsRequestWithBody ¶
func NewListTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListTargetsRequestWithBody generates requests for ListTargets with any type of body
func NewPostV2HsaRecordTypeReportRequest ¶
func NewPostV2HsaRecordTypeReportRequest(server string, recordType string, params *PostV2HsaRecordTypeReportParams, body PostV2HsaRecordTypeReportJSONRequestBody) (*http.Request, error)
NewPostV2HsaRecordTypeReportRequest calls the generic PostV2HsaRecordTypeReport builder with application/json body
func NewPostV2HsaRecordTypeReportRequestWithBody ¶
func NewPostV2HsaRecordTypeReportRequestWithBody(server string, recordType string, params *PostV2HsaRecordTypeReportParams, contentType string, body io.Reader) (*http.Request, error)
NewPostV2HsaRecordTypeReportRequestWithBody generates requests for PostV2HsaRecordTypeReport with any type of body
func NewSbCreateThemesRequestWithApplicationVndSbthemescreaterequestV3PlusJSONBody ¶
func NewSbCreateThemesRequestWithApplicationVndSbthemescreaterequestV3PlusJSONBody(server string, params *SbCreateThemesParams, body SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody) (*http.Request, error)
NewSbCreateThemesRequestWithApplicationVndSbthemescreaterequestV3PlusJSONBody calls the generic SbCreateThemes builder with application/vnd.sbthemescreaterequest.v3+json body
func NewSbCreateThemesRequestWithBody ¶
func NewSbCreateThemesRequestWithBody(server string, params *SbCreateThemesParams, contentType string, body io.Reader) (*http.Request, error)
NewSbCreateThemesRequestWithBody generates requests for SbCreateThemes with any type of body
func NewSbListThemesRequestWithApplicationVndSbthemeslistrequestV3PlusJSONBody ¶
func NewSbListThemesRequestWithApplicationVndSbthemeslistrequestV3PlusJSONBody(server string, params *SbListThemesParams, body SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody) (*http.Request, error)
NewSbListThemesRequestWithApplicationVndSbthemeslistrequestV3PlusJSONBody calls the generic SbListThemes builder with application/vnd.sbthemeslistrequest.v3+json body
func NewSbListThemesRequestWithBody ¶
func NewSbListThemesRequestWithBody(server string, params *SbListThemesParams, contentType string, body io.Reader) (*http.Request, error)
NewSbListThemesRequestWithBody generates requests for SbListThemes with any type of body
func NewSbUpdateThemesRequestWithApplicationVndSbathemessupdaterequestV3PlusJSONBody ¶
func NewSbUpdateThemesRequestWithApplicationVndSbathemessupdaterequestV3PlusJSONBody(server string, params *SbUpdateThemesParams, body SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody) (*http.Request, error)
NewSbUpdateThemesRequestWithApplicationVndSbathemessupdaterequestV3PlusJSONBody calls the generic SbUpdateThemes builder with application/vnd.sbathemessupdaterequest.v3+json body
func NewSbUpdateThemesRequestWithBody ¶
func NewSbUpdateThemesRequestWithBody(server string, params *SbUpdateThemesParams, contentType string, body io.Reader) (*http.Request, error)
NewSbUpdateThemesRequestWithBody generates requests for SbUpdateThemes with any type of body
func NewSubmitDraftCampaignRequestWithApplicationVndSbcampaignV3PlusJSONBody ¶
func NewSubmitDraftCampaignRequestWithApplicationVndSbcampaignV3PlusJSONBody(server string, params *SubmitDraftCampaignParams, body SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody) (*http.Request, error)
NewSubmitDraftCampaignRequestWithApplicationVndSbcampaignV3PlusJSONBody calls the generic SubmitDraftCampaign builder with application/vnd.sbcampaign.v3+json body
func NewSubmitDraftCampaignRequestWithBody ¶
func NewSubmitDraftCampaignRequestWithBody(server string, params *SubmitDraftCampaignParams, contentType string, body io.Reader) (*http.Request, error)
NewSubmitDraftCampaignRequestWithBody generates requests for SubmitDraftCampaign with any type of body
func NewUpdateCampaignsRequestWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody ¶
func NewUpdateCampaignsRequestWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody(server string, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody) (*http.Request, error)
NewUpdateCampaignsRequestWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody calls the generic UpdateCampaigns builder with application/vnd.sbupdatecampaignresponse.v3+json body
func NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody ¶
func NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody(server string, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody) (*http.Request, error)
NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody calls the generic UpdateCampaigns builder with application/vnd.updatecampaignsresponse.v3.2+json body
func NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody ¶
func NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody(server string, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody) (*http.Request, error)
NewUpdateCampaignsRequestWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody calls the generic UpdateCampaigns builder with application/vnd.updatecampaignsresponse.v3.3+json body
func NewUpdateCampaignsRequestWithBody ¶
func NewUpdateCampaignsRequestWithBody(server string, params *UpdateCampaignsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCampaignsRequestWithBody generates requests for UpdateCampaigns with any type of body
func NewUpdateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody ¶
func NewUpdateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(server string, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*http.Request, error)
NewUpdateDraftCampaignsRequestWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody calls the generic UpdateDraftCampaigns builder with application/vnd.sbdraftcampaignresponse.v3+json body
func NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody ¶
func NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody(server string, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody) (*http.Request, error)
NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody calls the generic UpdateDraftCampaigns builder with application/vnd.updatedraftcampaignsresponse.v3.2+json body
func NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody ¶
func NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody(server string, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody) (*http.Request, error)
NewUpdateDraftCampaignsRequestWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody calls the generic UpdateDraftCampaigns builder with application/vnd.updatedraftcampaignsresponse.v3.3+json body
func NewUpdateDraftCampaignsRequestWithBody ¶
func NewUpdateDraftCampaignsRequestWithBody(server string, params *UpdateDraftCampaignsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateDraftCampaignsRequestWithBody generates requests for UpdateDraftCampaigns with any type of body
func NewUpdateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func NewUpdateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *UpdateKeywordsParams, body UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Request, error)
NewUpdateKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody calls the generic UpdateKeywords builder with application/vnd.sbkeywordresponse.v3+json body
func NewUpdateKeywordsRequestWithBody ¶
func NewUpdateKeywordsRequestWithBody(server string, params *UpdateKeywordsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateKeywordsRequestWithBody generates requests for UpdateKeywords with any type of body
func NewUpdateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func NewUpdateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody(server string, params *UpdateNegativeKeywordsParams, body UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Request, error)
NewUpdateNegativeKeywordsRequestWithApplicationVndSbkeywordresponseV3PlusJSONBody calls the generic UpdateNegativeKeywords builder with application/vnd.sbkeywordresponse.v3+json body
func NewUpdateNegativeKeywordsRequestWithBody ¶
func NewUpdateNegativeKeywordsRequestWithBody(server string, params *UpdateNegativeKeywordsParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNegativeKeywordsRequestWithBody generates requests for UpdateNegativeKeywords with any type of body
func NewUpdateNegativeTargetsRequest ¶
func NewUpdateNegativeTargetsRequest(server string, body UpdateNegativeTargetsJSONRequestBody) (*http.Request, error)
NewUpdateNegativeTargetsRequest calls the generic UpdateNegativeTargets builder with application/json body
func NewUpdateNegativeTargetsRequestWithBody ¶
func NewUpdateNegativeTargetsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateNegativeTargetsRequestWithBody generates requests for UpdateNegativeTargets with any type of body
func NewUpdateTargetsRequest ¶
func NewUpdateTargetsRequest(server string, body UpdateTargetsJSONRequestBody) (*http.Request, error)
NewUpdateTargetsRequest calls the generic UpdateTargets builder with application/json body
Types ¶
type AdFormatError ¶
type AdFormatError struct {
AdFormatError *BasicErrorObject `json:"AdFormatError,omitempty"`
}
AdFormatError defines model for AdFormatError.
type AdFormatV32 ¶
type AdFormatV32 string
AdFormatV32 The type of ad format.
const ( AdFormatV32ProductCollection AdFormatV32 = "productCollection" AdFormatV32StoreSpotlight AdFormatV32 = "storeSpotlight" AdFormatV32Video AdFormatV32 = "video" )
Defines values for AdFormatV32.
type AdGroupError ¶
type AdGroupError struct {
AdGroupError *BasicErrorObject `json:"AdGroupError,omitempty"`
}
AdGroupError defines model for AdGroupError.
type ArchiveCampaignParams ¶
type ArchiveCampaignParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ArchiveCampaignParams defines parameters for ArchiveCampaign.
type ArchiveCampaignResp ¶
type ArchiveCampaignResp struct { Body []byte HTTPResponse *http.Response ApplicationvndArchivecampaignsresponseV33JSON200 *SBUpdateCampaignResponseDefault ApplicationvndSbupdatecampaignresponseV3JSON200 *SBUpdateCampaignResponse ApplicationvndErrorV3JSON404 *Error }
func ParseArchiveCampaignResp ¶
func ParseArchiveCampaignResp(rsp *http.Response) (*ArchiveCampaignResp, error)
ParseArchiveCampaignResp parses an HTTP response from a ArchiveCampaignWithResponse call
func (ArchiveCampaignResp) Status ¶
func (r ArchiveCampaignResp) Status() string
Status returns HTTPResponse.Status
func (ArchiveCampaignResp) StatusCode ¶
func (r ArchiveCampaignResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ArchiveKeywordParams ¶
type ArchiveKeywordParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ArchiveKeywordParams defines parameters for ArchiveKeyword.
type ArchiveKeywordResp ¶
type ArchiveKeywordResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordresponseV3JSON200 *SBKeywordResponse ApplicationvndErrorV3JSON404 *Error }
func ParseArchiveKeywordResp ¶
func ParseArchiveKeywordResp(rsp *http.Response) (*ArchiveKeywordResp, error)
ParseArchiveKeywordResp parses an HTTP response from a ArchiveKeywordWithResponse call
func (ArchiveKeywordResp) Status ¶
func (r ArchiveKeywordResp) Status() string
Status returns HTTPResponse.Status
func (ArchiveKeywordResp) StatusCode ¶
func (r ArchiveKeywordResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ArchiveNegativeKeywordParams ¶
type ArchiveNegativeKeywordParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ArchiveNegativeKeywordParams defines parameters for ArchiveNegativeKeyword.
type ArchiveNegativeKeywordResp ¶
type ArchiveNegativeKeywordResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordresponseV3JSON200 *SBKeywordResponse ApplicationvndErrorV3JSON404 *Error }
func ParseArchiveNegativeKeywordResp ¶
func ParseArchiveNegativeKeywordResp(rsp *http.Response) (*ArchiveNegativeKeywordResp, error)
ParseArchiveNegativeKeywordResp parses an HTTP response from a ArchiveNegativeKeywordWithResponse call
func (ArchiveNegativeKeywordResp) Status ¶
func (r ArchiveNegativeKeywordResp) Status() string
Status returns HTTPResponse.Status
func (ArchiveNegativeKeywordResp) StatusCode ¶
func (r ArchiveNegativeKeywordResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ArchiveNegativeTargetResp ¶
type ArchiveNegativeTargetResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbnegativetargetV3JSON200 *SBTargetingClauseResponse ApplicationvndSberrorV30JSON400 *BadRequest400 ApplicationvndSberrorV30JSON404 *NotFound404 }
func ParseArchiveNegativeTargetResp ¶
func ParseArchiveNegativeTargetResp(rsp *http.Response) (*ArchiveNegativeTargetResp, error)
ParseArchiveNegativeTargetResp parses an HTTP response from a ArchiveNegativeTargetWithResponse call
func (ArchiveNegativeTargetResp) Status ¶
func (r ArchiveNegativeTargetResp) Status() string
Status returns HTTPResponse.Status
func (ArchiveNegativeTargetResp) StatusCode ¶
func (r ArchiveNegativeTargetResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ArchiveTargetResp ¶
type ArchiveTargetResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbtargetresponseV3JSON200 *SBTargetingClauseResponse ApplicationvndSberrorV30JSON400 *BadRequest400 ApplicationvndSberrorV30JSON404 *NotFound404 }
func ParseArchiveTargetResp ¶
func ParseArchiveTargetResp(rsp *http.Response) (*ArchiveTargetResp, error)
ParseArchiveTargetResp parses an HTTP response from a ArchiveTargetWithResponse call
func (ArchiveTargetResp) Status ¶
func (r ArchiveTargetResp) Status() string
Status returns HTTPResponse.Status
func (ArchiveTargetResp) StatusCode ¶
func (r ArchiveTargetResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AssetsError ¶
type AssetsError struct {
AssetsError *BasicErrorObject `json:"AssetsError,omitempty"`
}
AssetsError defines model for AssetsError.
type AuthorizationError ¶
type AuthorizationError struct {
AuthorizationError *BasicErrorObject `json:"AuthorizationError,omitempty"`
}
AuthorizationError defines model for AuthorizationError.
type BasicErrorObject ¶
type BasicErrorObject struct { Location *string `json:"location,omitempty"` Message string `json:"message"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` }
BasicErrorObject defines model for BasicErrorObject.
type Bid ¶
type Bid = float32
Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features).
type BidAdjustment ¶
type BidAdjustment struct { // BidAdjustmentPercent Bid adjustment for placement group. Value is a percentage to two decimal places. Example: If this is set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidAdjustmentPercent *float32 `json:"bidAdjustmentPercent,omitempty"` // BidAdjustmentPredicate The enum for placement group name BidAdjustmentPredicate *BidAdjustmentBidAdjustmentPredicate `json:"bidAdjustmentPredicate,omitempty"` }
BidAdjustment defines model for BidAdjustment.
type BidAdjustmentBidAdjustmentPredicate ¶
type BidAdjustmentBidAdjustmentPredicate string
BidAdjustmentBidAdjustmentPredicate The enum for placement group name
const ( BidAdjustmentBidAdjustmentPredicatePlacementGroupDetailPage BidAdjustmentBidAdjustmentPredicate = "placementGroupDetailPage" BidAdjustmentBidAdjustmentPredicatePlacementGroupHome BidAdjustmentBidAdjustmentPredicate = "placementGroupHome" BidAdjustmentBidAdjustmentPredicatePlacementGroupOther BidAdjustmentBidAdjustmentPredicate = "placementGroupOther" )
Defines values for BidAdjustmentBidAdjustmentPredicate.
type BidAdjustmentV33 ¶
type BidAdjustmentV33 struct { // BidAdjustmentPercent Bid adjustment for placement groups and shopper segments. Value is a percentage to two decimal places. For bid adjustments in placement groups, min is -99.00 and max is 900.00. For bid adjustments in shopper segments, min is 0.00 and max is 900.00. For example: If -40.00 is set for a $5.00 bid, the resulting bid is $3.00. BidAdjustmentPercent *float32 `json:"bidAdjustmentPercent,omitempty"` // BidAdjustmentPredicate Determines the predicate (placement groups and shopper segments) that the bid adjustment will be made for. // |BidAdjustmentPredicate|Description| // |------|-----------| // |PLACEMENT_GROUP_DETAIL_PAGE|Predicate for adjusting bids at detail page placement.| // |PLACEMENT_GROUP_HOME|Predicate for adjusting bids at home page placement.| // |PLACEMENT_GROUP_OTHER|Predicate for adjusting bids at pages other than detail and home pages placement.| // |SHOPPER_SEGMENT_NEW_TO_BRAND_PURCHASE|Predicate for adjusting bids for new-to-brand purchase shopper segment.| BidAdjustmentPredicate *BidAdjustmentV33BidAdjustmentPredicate `json:"bidAdjustmentPredicate,omitempty"` }
BidAdjustmentV33 defines model for BidAdjustmentV3_3.
type BidAdjustmentV33BidAdjustmentPredicate ¶
type BidAdjustmentV33BidAdjustmentPredicate string
BidAdjustmentV33BidAdjustmentPredicate Determines the predicate (placement groups and shopper segments) that the bid adjustment will be made for. |BidAdjustmentPredicate|Description| |------|-----------| |PLACEMENT_GROUP_DETAIL_PAGE|Predicate for adjusting bids at detail page placement.| |PLACEMENT_GROUP_HOME|Predicate for adjusting bids at home page placement.| |PLACEMENT_GROUP_OTHER|Predicate for adjusting bids at pages other than detail and home pages placement.| |SHOPPER_SEGMENT_NEW_TO_BRAND_PURCHASE|Predicate for adjusting bids for new-to-brand purchase shopper segment.|
const ( BidAdjustmentV33BidAdjustmentPredicatePlacementGroupDetailPage BidAdjustmentV33BidAdjustmentPredicate = "placementGroupDetailPage" BidAdjustmentV33BidAdjustmentPredicatePlacementGroupHome BidAdjustmentV33BidAdjustmentPredicate = "placementGroupHome" BidAdjustmentV33BidAdjustmentPredicatePlacementGroupOther BidAdjustmentV33BidAdjustmentPredicate = "placementGroupOther" BidAdjustmentV33BidAdjustmentPredicateShopperSegmentNewToBrandPurchase BidAdjustmentV33BidAdjustmentPredicate = "shopperSegmentNewToBrandPurchase" )
Defines values for BidAdjustmentV33BidAdjustmentPredicate.
type BidError ¶
type BidError struct { BidError *struct { Location *string `json:"location,omitempty"` LowerLimit *string `json:"lowerLimit,omitempty"` Message string `json:"message"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` UpperLimit *string `json:"upperLimit,omitempty"` } `json:"BidError,omitempty"` }
BidError defines model for BidError.
type BidOptimizationStrategy ¶
type BidOptimizationStrategy string
BidOptimizationStrategy Automated bid optimization strategy. |Bid optimization strategy|Description| |------|-----------| |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| `Not supported for video campaigns`
const ( MAXIMIZEIMMEDIATESALES BidOptimizationStrategy = "MAXIMIZE_IMMEDIATE_SALES" MAXIMIZENEWTOBRANDCUSTOMERS BidOptimizationStrategy = "MAXIMIZE_NEW_TO_BRAND_CUSTOMERS" )
Defines values for BidOptimizationStrategy.
type BrandType ¶
type BrandType string
BrandType | brandType | description | |-----------|-------------| | brandRegistry | The brand is in the brand registry. | | bookAuthor | The brand is a book author. |
type BrandsError ¶
type BrandsError struct {
BrandsError *BasicErrorObject `json:"BrandsError,omitempty"`
}
BrandsError defines model for BrandsError.
type BudgetError ¶
type BudgetError struct { BudgetError *struct { BudgetType *string `json:"budgetType,omitempty"` Location *string `json:"location,omitempty"` MaxBudget *string `json:"maxBudget,omitempty"` Message string `json:"message"` MinBudget *string `json:"minBudget,omitempty"` Precision *string `json:"precision,omitempty"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` } `json:"BudgetError,omitempty"` }
BudgetError defines model for BudgetError.
type BudgetType ¶
type BudgetType string
BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000.
const ( Daily BudgetType = "daily" Lifetime BudgetType = "lifetime" )
Defines values for BudgetType.
type CampaignError ¶
type CampaignError struct { CampaignError *struct { InvalidCharacters *string `json:"invalidCharacters,omitempty"` Location *string `json:"location,omitempty"` MaxCampaigns *string `json:"maxCampaigns,omitempty"` MaxLength *string `json:"maxLength,omitempty"` Message string `json:"message"` Note *string `json:"note,omitempty"` Reason string `json:"reason"` SupportedStates *string `json:"supportedStates,omitempty"` Trigger *string `json:"trigger,omitempty"` } `json:"CampaignError,omitempty"` }
CampaignError defines model for CampaignError.
type CampaignTags ¶
CampaignTags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn // A callback for modifying response which are generated after receive from the network. ResponseEditors []ResponseEditorFn // The user agent header identifies your application, its version number, and the platform and programming language you are using. // You must include a user agent header in each request submitted to the sales partner API. UserAgent string }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ArchiveCampaign ¶
func (*Client) ArchiveKeyword ¶
func (*Client) ArchiveNegativeKeyword ¶
func (*Client) ArchiveNegativeTarget ¶
func (*Client) ArchiveTarget ¶
func (*Client) CompleteUpload ¶
func (c *Client) CompleteUpload(ctx context.Context, params *CompleteUploadParams, body CompleteUploadJSONRequestBody) (*http.Response, error)
func (*Client) CompleteUploadWithBody ¶
func (*Client) CreateAssetWithBody ¶
func (*Client) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBody ¶
func (c *Client) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBody ¶
func (c *Client) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody ¶
func (c *Client) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateCampaignsWithBody ¶
func (*Client) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody ¶
func (c *Client) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody ¶
func (c *Client) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody ¶
func (c *Client) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateDraftCampaignsWithBody ¶
func (*Client) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func (c *Client) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *CreateKeywordsParams, body CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateKeywordsWithBody ¶
func (*Client) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func (c *Client) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *CreateNegativeKeywordsParams, body CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) CreateNegativeKeywordsWithBody ¶
func (*Client) CreateNegativeTargets ¶
func (*Client) CreateNegativeTargetsWithBody ¶
func (*Client) CreateTargets ¶
func (*Client) CreateTargetsWithBody ¶
func (*Client) CreateUploadResource ¶
func (c *Client) CreateUploadResource(ctx context.Context, params *CreateUploadResourceParams, body CreateUploadResourceJSONRequestBody) (*http.Response, error)
func (*Client) CreateUploadResourceWithBody ¶
func (*Client) DeleteDraftCampaign ¶
func (*Client) DescribeMedia ¶
func (*Client) DownloadReport ¶
func (*Client) GetAdGroup ¶
func (*Client) GetBidsRecommendations ¶
func (c *Client) GetBidsRecommendations(ctx context.Context, params *GetBidsRecommendationsParams, body GetBidsRecommendationsJSONRequestBody) (*http.Response, error)
func (*Client) GetBidsRecommendationsWithBody ¶
func (*Client) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBody ¶
func (c *Client) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBody(ctx context.Context, params *GetBrandRecommendationsParams, body GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody) (*http.Response, error)
func (*Client) GetBrandRecommendationsWithBody ¶
func (*Client) GetCampaign ¶
func (*Client) GetDraftCampaign ¶
func (*Client) GetKeyword ¶
func (*Client) GetNegativeKeyword ¶
func (*Client) GetNegativeTarget ¶
func (*Client) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBody ¶
func (c *Client) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBody(ctx context.Context, params *GetProductRecommendationsParams, body GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody) (*http.Response, error)
func (*Client) GetProductRecommendationsWithBody ¶
func (*Client) GetSbModerationCampaignsCampaignId ¶
func (*Client) GetTarget ¶
func (c *Client) GetTarget(ctx context.Context, targetId SBTargetId, params *GetTargetParams) (*http.Response, error)
func (*Client) GetTargetingCategories ¶
func (c *Client) GetTargetingCategories(ctx context.Context, params *GetTargetingCategoriesParams, body GetTargetingCategoriesJSONRequestBody) (*http.Response, error)
func (*Client) GetTargetingCategoriesWithBody ¶
func (*Client) GetV2ReportsReportId ¶
func (*Client) ListAdGroups ¶
func (*Client) ListAssets ¶
func (*Client) ListCampaigns ¶
func (*Client) ListDraftCampaigns ¶
func (*Client) ListKeywords ¶
func (*Client) ListNegativeKeywords ¶
func (*Client) ListNegativeTargets ¶
func (*Client) ListNegativeTargetsWithBody ¶
func (*Client) ListTargets ¶
func (*Client) ListTargetsWithBody ¶
func (*Client) PostV2HsaRecordTypeReport ¶
func (c *Client) PostV2HsaRecordTypeReport(ctx context.Context, recordType string, params *PostV2HsaRecordTypeReportParams, body PostV2HsaRecordTypeReportJSONRequestBody) (*http.Response, error)
func (*Client) PostV2HsaRecordTypeReportWithBody ¶
func (*Client) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBody ¶
func (c *Client) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBody(ctx context.Context, params *SbCreateThemesParams, body SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) SbCreateThemesWithBody ¶
func (*Client) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBody ¶
func (c *Client) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBody(ctx context.Context, params *SbListThemesParams, body SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) SbListThemesWithBody ¶
func (*Client) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBody ¶
func (c *Client) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBody(ctx context.Context, params *SbUpdateThemesParams, body SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) SbUpdateThemesWithBody ¶
func (*Client) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBody ¶
func (c *Client) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBody(ctx context.Context, params *SubmitDraftCampaignParams, body SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) SubmitDraftCampaignWithBody ¶
func (*Client) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody ¶
func (c *Client) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody ¶
func (c *Client) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody ¶
func (c *Client) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateCampaignsWithBody ¶
func (*Client) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody ¶
func (c *Client) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody ¶
func (c *Client) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody ¶
func (c *Client) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateDraftCampaignsWithBody ¶
func (*Client) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func (c *Client) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *UpdateKeywordsParams, body UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateKeywordsWithBody ¶
func (*Client) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody ¶
func (c *Client) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *UpdateNegativeKeywordsParams, body UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error)
func (*Client) UpdateNegativeKeywordsWithBody ¶
func (*Client) UpdateNegativeTargets ¶
func (*Client) UpdateNegativeTargetsWithBody ¶
func (*Client) UpdateTargets ¶
type ClientInterface ¶
type ClientInterface interface { // GetBrands request GetBrands(ctx context.Context, params *GetBrandsParams) (*http.Response, error) // CompleteUploadWithBody request with any body CompleteUploadWithBody(ctx context.Context, params *CompleteUploadParams, contentType string, body io.Reader) (*http.Response, error) CompleteUpload(ctx context.Context, params *CompleteUploadParams, body CompleteUploadJSONRequestBody) (*http.Response, error) // DescribeMedia request DescribeMedia(ctx context.Context, params *DescribeMediaParams) (*http.Response, error) // CreateUploadResourceWithBody request with any body CreateUploadResourceWithBody(ctx context.Context, params *CreateUploadResourceParams, contentType string, body io.Reader) (*http.Response, error) CreateUploadResource(ctx context.Context, params *CreateUploadResourceParams, body CreateUploadResourceJSONRequestBody) (*http.Response, error) // ListAsins request ListAsins(ctx context.Context, params *ListAsinsParams) (*http.Response, error) // ListAdGroups request ListAdGroups(ctx context.Context, params *ListAdGroupsParams) (*http.Response, error) // GetAdGroup request GetAdGroup(ctx context.Context, adGroupId int64, params *GetAdGroupParams) (*http.Response, error) // ListCampaigns request ListCampaigns(ctx context.Context, params *ListCampaignsParams) (*http.Response, error) // CreateCampaignsWithBody request with any body CreateCampaignsWithBody(ctx context.Context, params *CreateCampaignsParams, contentType string, body io.Reader) (*http.Response, error) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody) (*http.Response, error) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody) (*http.Response, error) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBody(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody) (*http.Response, error) // UpdateCampaignsWithBody request with any body UpdateCampaignsWithBody(ctx context.Context, params *UpdateCampaignsParams, contentType string, body io.Reader) (*http.Response, error) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody) (*http.Response, error) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody) (*http.Response, error) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBody(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody) (*http.Response, error) // ArchiveCampaign request ArchiveCampaign(ctx context.Context, campaignId int64, params *ArchiveCampaignParams) (*http.Response, error) // GetCampaign request GetCampaign(ctx context.Context, campaignId int64, params *GetCampaignParams) (*http.Response, error) // ListDraftCampaigns request ListDraftCampaigns(ctx context.Context, params *ListDraftCampaignsParams) (*http.Response, error) // CreateDraftCampaignsWithBody request with any body CreateDraftCampaignsWithBody(ctx context.Context, params *CreateDraftCampaignsParams, contentType string, body io.Reader) (*http.Response, error) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody) (*http.Response, error) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody) (*http.Response, error) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*http.Response, error) // UpdateDraftCampaignsWithBody request with any body UpdateDraftCampaignsWithBody(ctx context.Context, params *UpdateDraftCampaignsParams, contentType string, body io.Reader) (*http.Response, error) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*http.Response, error) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody) (*http.Response, error) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody) (*http.Response, error) // SubmitDraftCampaignWithBody request with any body SubmitDraftCampaignWithBody(ctx context.Context, params *SubmitDraftCampaignParams, contentType string, body io.Reader) (*http.Response, error) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBody(ctx context.Context, params *SubmitDraftCampaignParams, body SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody) (*http.Response, error) // DeleteDraftCampaign request DeleteDraftCampaign(ctx context.Context, draftCampaignId int64, params *DeleteDraftCampaignParams) (*http.Response, error) // GetDraftCampaign request GetDraftCampaign(ctx context.Context, draftCampaignId int64, params *GetDraftCampaignParams) (*http.Response, error) // ListKeywords request ListKeywords(ctx context.Context, params *ListKeywordsParams) (*http.Response, error) // CreateKeywordsWithBody request with any body CreateKeywordsWithBody(ctx context.Context, params *CreateKeywordsParams, contentType string, body io.Reader) (*http.Response, error) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *CreateKeywordsParams, body CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error) // UpdateKeywordsWithBody request with any body UpdateKeywordsWithBody(ctx context.Context, params *UpdateKeywordsParams, contentType string, body io.Reader) (*http.Response, error) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *UpdateKeywordsParams, body UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error) // ArchiveKeyword request ArchiveKeyword(ctx context.Context, keywordId int64, params *ArchiveKeywordParams) (*http.Response, error) // GetKeyword request GetKeyword(ctx context.Context, keywordId int64, params *GetKeywordParams) (*http.Response, error) // GetSbModerationCampaignsCampaignId request GetSbModerationCampaignsCampaignId(ctx context.Context, campaignId int64, params *GetSbModerationCampaignsCampaignIdParams) (*http.Response, error) // ListNegativeKeywords request ListNegativeKeywords(ctx context.Context, params *ListNegativeKeywordsParams) (*http.Response, error) // CreateNegativeKeywordsWithBody request with any body CreateNegativeKeywordsWithBody(ctx context.Context, params *CreateNegativeKeywordsParams, contentType string, body io.Reader) (*http.Response, error) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *CreateNegativeKeywordsParams, body CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error) // UpdateNegativeKeywordsWithBody request with any body UpdateNegativeKeywordsWithBody(ctx context.Context, params *UpdateNegativeKeywordsParams, contentType string, body io.Reader) (*http.Response, error) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBody(ctx context.Context, params *UpdateNegativeKeywordsParams, body UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*http.Response, error) // ArchiveNegativeKeyword request ArchiveNegativeKeyword(ctx context.Context, keywordId int64, params *ArchiveNegativeKeywordParams) (*http.Response, error) // GetNegativeKeyword request GetNegativeKeyword(ctx context.Context, keywordId int64, params *GetNegativeKeywordParams) (*http.Response, error) // CreateNegativeTargetsWithBody request with any body CreateNegativeTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) CreateNegativeTargets(ctx context.Context, body CreateNegativeTargetsJSONRequestBody) (*http.Response, error) // UpdateNegativeTargetsWithBody request with any body UpdateNegativeTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) UpdateNegativeTargets(ctx context.Context, body UpdateNegativeTargetsJSONRequestBody) (*http.Response, error) // ListNegativeTargetsWithBody request with any body ListNegativeTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) ListNegativeTargets(ctx context.Context, body ListNegativeTargetsJSONRequestBody) (*http.Response, error) // ArchiveNegativeTarget request ArchiveNegativeTarget(ctx context.Context, negativeTargetId SBNegativeTargetId) (*http.Response, error) // GetNegativeTarget request GetNegativeTarget(ctx context.Context, negativeTargetId SBNegativeTargetId) (*http.Response, error) // GetBidsRecommendationsWithBody request with any body GetBidsRecommendationsWithBody(ctx context.Context, params *GetBidsRecommendationsParams, contentType string, body io.Reader) (*http.Response, error) GetBidsRecommendations(ctx context.Context, params *GetBidsRecommendationsParams, body GetBidsRecommendationsJSONRequestBody) (*http.Response, error) // GetBrandRecommendationsWithBody request with any body GetBrandRecommendationsWithBody(ctx context.Context, params *GetBrandRecommendationsParams, contentType string, body io.Reader) (*http.Response, error) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBody(ctx context.Context, params *GetBrandRecommendationsParams, body GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody) (*http.Response, error) // GetTargetingCategoriesWithBody request with any body GetTargetingCategoriesWithBody(ctx context.Context, params *GetTargetingCategoriesParams, contentType string, body io.Reader) (*http.Response, error) GetTargetingCategories(ctx context.Context, params *GetTargetingCategoriesParams, body GetTargetingCategoriesJSONRequestBody) (*http.Response, error) // GetProductRecommendationsWithBody request with any body GetProductRecommendationsWithBody(ctx context.Context, params *GetProductRecommendationsParams, contentType string, body io.Reader) (*http.Response, error) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBody(ctx context.Context, params *GetProductRecommendationsParams, body GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody) (*http.Response, error) // CreateTargetsWithBody request with any body CreateTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) CreateTargets(ctx context.Context, body CreateTargetsJSONRequestBody) (*http.Response, error) // UpdateTargetsWithBody request with any body UpdateTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) UpdateTargets(ctx context.Context, body UpdateTargetsJSONRequestBody) (*http.Response, error) // ListTargetsWithBody request with any body ListTargetsWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) ListTargets(ctx context.Context, body ListTargetsJSONRequestBody) (*http.Response, error) // ArchiveTarget request ArchiveTarget(ctx context.Context, targetId SBTargetId) (*http.Response, error) // GetTarget request GetTarget(ctx context.Context, targetId SBTargetId, params *GetTargetParams) (*http.Response, error) // SbCreateThemesWithBody request with any body SbCreateThemesWithBody(ctx context.Context, params *SbCreateThemesParams, contentType string, body io.Reader) (*http.Response, error) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBody(ctx context.Context, params *SbCreateThemesParams, body SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody) (*http.Response, error) // SbUpdateThemesWithBody request with any body SbUpdateThemesWithBody(ctx context.Context, params *SbUpdateThemesParams, contentType string, body io.Reader) (*http.Response, error) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBody(ctx context.Context, params *SbUpdateThemesParams, body SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody) (*http.Response, error) // SbListThemesWithBody request with any body SbListThemesWithBody(ctx context.Context, params *SbListThemesParams, contentType string, body io.Reader) (*http.Response, error) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBody(ctx context.Context, params *SbListThemesParams, body SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody) (*http.Response, error) // ListAssets request ListAssets(ctx context.Context, params *ListAssetsParams) (*http.Response, error) // CreateAssetWithBody request with any body CreateAssetWithBody(ctx context.Context, params *CreateAssetParams, contentType string, body io.Reader) (*http.Response, error) // PostV2HsaRecordTypeReportWithBody request with any body PostV2HsaRecordTypeReportWithBody(ctx context.Context, recordType string, params *PostV2HsaRecordTypeReportParams, contentType string, body io.Reader) (*http.Response, error) PostV2HsaRecordTypeReport(ctx context.Context, recordType string, params *PostV2HsaRecordTypeReportParams, body PostV2HsaRecordTypeReportJSONRequestBody) (*http.Response, error) // GetV2ReportsReportId request GetV2ReportsReportId(ctx context.Context, reportId string, params *GetV2ReportsReportIdParams) (*http.Response, error) // DownloadReport request DownloadReport(ctx context.Context, reportId string, params *DownloadReportParams) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
func WithResponseEditorFn ¶ added in v0.0.2
func WithResponseEditorFn(fn ResponseEditorFn) ClientOption
WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ArchiveCampaignWithResponse ¶
func (c *ClientWithResponses) ArchiveCampaignWithResponse(ctx context.Context, campaignId int64, params *ArchiveCampaignParams) (*ArchiveCampaignResp, error)
ArchiveCampaignWithResponse request returning *ArchiveCampaignResp
func (*ClientWithResponses) ArchiveKeywordWithResponse ¶
func (c *ClientWithResponses) ArchiveKeywordWithResponse(ctx context.Context, keywordId int64, params *ArchiveKeywordParams) (*ArchiveKeywordResp, error)
ArchiveKeywordWithResponse request returning *ArchiveKeywordResp
func (*ClientWithResponses) ArchiveNegativeKeywordWithResponse ¶
func (c *ClientWithResponses) ArchiveNegativeKeywordWithResponse(ctx context.Context, keywordId int64, params *ArchiveNegativeKeywordParams) (*ArchiveNegativeKeywordResp, error)
ArchiveNegativeKeywordWithResponse request returning *ArchiveNegativeKeywordResp
func (*ClientWithResponses) ArchiveNegativeTargetWithResponse ¶
func (c *ClientWithResponses) ArchiveNegativeTargetWithResponse(ctx context.Context, negativeTargetId SBNegativeTargetId) (*ArchiveNegativeTargetResp, error)
ArchiveNegativeTargetWithResponse request returning *ArchiveNegativeTargetResp
func (*ClientWithResponses) ArchiveTargetWithResponse ¶
func (c *ClientWithResponses) ArchiveTargetWithResponse(ctx context.Context, targetId SBTargetId) (*ArchiveTargetResp, error)
ArchiveTargetWithResponse request returning *ArchiveTargetResp
func (*ClientWithResponses) CompleteUploadWithBodyWithResponse ¶
func (c *ClientWithResponses) CompleteUploadWithBodyWithResponse(ctx context.Context, params *CompleteUploadParams, contentType string, body io.Reader) (*CompleteUploadResp, error)
CompleteUploadWithBodyWithResponse request with arbitrary body returning *CompleteUploadResp
func (*ClientWithResponses) CompleteUploadWithResponse ¶
func (c *ClientWithResponses) CompleteUploadWithResponse(ctx context.Context, params *CompleteUploadParams, body CompleteUploadJSONRequestBody) (*CompleteUploadResp, error)
func (*ClientWithResponses) CreateAssetWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAssetWithBodyWithResponse(ctx context.Context, params *CreateAssetParams, contentType string, body io.Reader) (*CreateAssetResp, error)
CreateAssetWithBodyWithResponse request with arbitrary body returning *CreateAssetResp
func (*ClientWithResponses) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody) (*CreateCampaignsResp, error)
func (*ClientWithResponses) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody) (*CreateCampaignsResp, error)
func (*ClientWithResponses) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody) (*CreateCampaignsResp, error)
func (*ClientWithResponses) CreateCampaignsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCampaignsWithBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, contentType string, body io.Reader) (*CreateCampaignsResp, error)
CreateCampaignsWithBodyWithResponse request with arbitrary body returning *CreateCampaignsResp
func (*ClientWithResponses) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody) (*CreateDraftCampaignsResp, error)
func (*ClientWithResponses) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody) (*CreateDraftCampaignsResp, error)
func (*ClientWithResponses) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*CreateDraftCampaignsResp, error)
func (*ClientWithResponses) CreateDraftCampaignsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateDraftCampaignsWithBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, contentType string, body io.Reader) (*CreateDraftCampaignsResp, error)
CreateDraftCampaignsWithBodyWithResponse request with arbitrary body returning *CreateDraftCampaignsResp
func (*ClientWithResponses) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateKeywordsParams, body CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*CreateKeywordsResp, error)
func (*ClientWithResponses) CreateKeywordsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateKeywordsWithBodyWithResponse(ctx context.Context, params *CreateKeywordsParams, contentType string, body io.Reader) (*CreateKeywordsResp, error)
CreateKeywordsWithBodyWithResponse request with arbitrary body returning *CreateKeywordsResp
func (*ClientWithResponses) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateNegativeKeywordsParams, body CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*CreateNegativeKeywordsResp, error)
func (*ClientWithResponses) CreateNegativeKeywordsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNegativeKeywordsWithBodyWithResponse(ctx context.Context, params *CreateNegativeKeywordsParams, contentType string, body io.Reader) (*CreateNegativeKeywordsResp, error)
CreateNegativeKeywordsWithBodyWithResponse request with arbitrary body returning *CreateNegativeKeywordsResp
func (*ClientWithResponses) CreateNegativeTargetsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateNegativeTargetsResp, error)
CreateNegativeTargetsWithBodyWithResponse request with arbitrary body returning *CreateNegativeTargetsResp
func (*ClientWithResponses) CreateNegativeTargetsWithResponse ¶
func (c *ClientWithResponses) CreateNegativeTargetsWithResponse(ctx context.Context, body CreateNegativeTargetsJSONRequestBody) (*CreateNegativeTargetsResp, error)
func (*ClientWithResponses) CreateTargetsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateTargetsResp, error)
CreateTargetsWithBodyWithResponse request with arbitrary body returning *CreateTargetsResp
func (*ClientWithResponses) CreateTargetsWithResponse ¶
func (c *ClientWithResponses) CreateTargetsWithResponse(ctx context.Context, body CreateTargetsJSONRequestBody) (*CreateTargetsResp, error)
func (*ClientWithResponses) CreateUploadResourceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateUploadResourceWithBodyWithResponse(ctx context.Context, params *CreateUploadResourceParams, contentType string, body io.Reader) (*CreateUploadResourceResp, error)
CreateUploadResourceWithBodyWithResponse request with arbitrary body returning *CreateUploadResourceResp
func (*ClientWithResponses) CreateUploadResourceWithResponse ¶
func (c *ClientWithResponses) CreateUploadResourceWithResponse(ctx context.Context, params *CreateUploadResourceParams, body CreateUploadResourceJSONRequestBody) (*CreateUploadResourceResp, error)
func (*ClientWithResponses) DeleteDraftCampaignWithResponse ¶
func (c *ClientWithResponses) DeleteDraftCampaignWithResponse(ctx context.Context, draftCampaignId int64, params *DeleteDraftCampaignParams) (*DeleteDraftCampaignResp, error)
DeleteDraftCampaignWithResponse request returning *DeleteDraftCampaignResp
func (*ClientWithResponses) DescribeMediaWithResponse ¶
func (c *ClientWithResponses) DescribeMediaWithResponse(ctx context.Context, params *DescribeMediaParams) (*DescribeMediaResp, error)
DescribeMediaWithResponse request returning *DescribeMediaResp
func (*ClientWithResponses) DownloadReportWithResponse ¶
func (c *ClientWithResponses) DownloadReportWithResponse(ctx context.Context, reportId string, params *DownloadReportParams) (*DownloadReportResp, error)
DownloadReportWithResponse request returning *DownloadReportResp
func (*ClientWithResponses) GetAdGroupWithResponse ¶
func (c *ClientWithResponses) GetAdGroupWithResponse(ctx context.Context, adGroupId int64, params *GetAdGroupParams) (*GetAdGroupResp, error)
GetAdGroupWithResponse request returning *GetAdGroupResp
func (*ClientWithResponses) GetBidsRecommendationsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetBidsRecommendationsWithBodyWithResponse(ctx context.Context, params *GetBidsRecommendationsParams, contentType string, body io.Reader) (*GetBidsRecommendationsResp, error)
GetBidsRecommendationsWithBodyWithResponse request with arbitrary body returning *GetBidsRecommendationsResp
func (*ClientWithResponses) GetBidsRecommendationsWithResponse ¶
func (c *ClientWithResponses) GetBidsRecommendationsWithResponse(ctx context.Context, params *GetBidsRecommendationsParams, body GetBidsRecommendationsJSONRequestBody) (*GetBidsRecommendationsResp, error)
func (*ClientWithResponses) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBodyWithResponse(ctx context.Context, params *GetBrandRecommendationsParams, body GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody) (*GetBrandRecommendationsResp, error)
func (*ClientWithResponses) GetBrandRecommendationsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetBrandRecommendationsWithBodyWithResponse(ctx context.Context, params *GetBrandRecommendationsParams, contentType string, body io.Reader) (*GetBrandRecommendationsResp, error)
GetBrandRecommendationsWithBodyWithResponse request with arbitrary body returning *GetBrandRecommendationsResp
func (*ClientWithResponses) GetBrandsWithResponse ¶
func (c *ClientWithResponses) GetBrandsWithResponse(ctx context.Context, params *GetBrandsParams) (*GetBrandsResp, error)
GetBrandsWithResponse request returning *GetBrandsResp
func (*ClientWithResponses) GetCampaignWithResponse ¶
func (c *ClientWithResponses) GetCampaignWithResponse(ctx context.Context, campaignId int64, params *GetCampaignParams) (*GetCampaignResp, error)
GetCampaignWithResponse request returning *GetCampaignResp
func (*ClientWithResponses) GetDraftCampaignWithResponse ¶
func (c *ClientWithResponses) GetDraftCampaignWithResponse(ctx context.Context, draftCampaignId int64, params *GetDraftCampaignParams) (*GetDraftCampaignResp, error)
GetDraftCampaignWithResponse request returning *GetDraftCampaignResp
func (*ClientWithResponses) GetKeywordWithResponse ¶
func (c *ClientWithResponses) GetKeywordWithResponse(ctx context.Context, keywordId int64, params *GetKeywordParams) (*GetKeywordResp, error)
GetKeywordWithResponse request returning *GetKeywordResp
func (*ClientWithResponses) GetNegativeKeywordWithResponse ¶
func (c *ClientWithResponses) GetNegativeKeywordWithResponse(ctx context.Context, keywordId int64, params *GetNegativeKeywordParams) (*GetNegativeKeywordResp, error)
GetNegativeKeywordWithResponse request returning *GetNegativeKeywordResp
func (*ClientWithResponses) GetNegativeTargetWithResponse ¶
func (c *ClientWithResponses) GetNegativeTargetWithResponse(ctx context.Context, negativeTargetId SBNegativeTargetId) (*GetNegativeTargetResp, error)
GetNegativeTargetWithResponse request returning *GetNegativeTargetResp
func (*ClientWithResponses) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBodyWithResponse(ctx context.Context, params *GetProductRecommendationsParams, body GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody) (*GetProductRecommendationsResp, error)
func (*ClientWithResponses) GetProductRecommendationsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetProductRecommendationsWithBodyWithResponse(ctx context.Context, params *GetProductRecommendationsParams, contentType string, body io.Reader) (*GetProductRecommendationsResp, error)
GetProductRecommendationsWithBodyWithResponse request with arbitrary body returning *GetProductRecommendationsResp
func (*ClientWithResponses) GetSbModerationCampaignsCampaignIdWithResponse ¶
func (c *ClientWithResponses) GetSbModerationCampaignsCampaignIdWithResponse(ctx context.Context, campaignId int64, params *GetSbModerationCampaignsCampaignIdParams) (*GetSbModerationCampaignsCampaignIdResp, error)
GetSbModerationCampaignsCampaignIdWithResponse request returning *GetSbModerationCampaignsCampaignIdResp
func (*ClientWithResponses) GetTargetWithResponse ¶
func (c *ClientWithResponses) GetTargetWithResponse(ctx context.Context, targetId SBTargetId, params *GetTargetParams) (*GetTargetResp, error)
GetTargetWithResponse request returning *GetTargetResp
func (*ClientWithResponses) GetTargetingCategoriesWithBodyWithResponse ¶
func (c *ClientWithResponses) GetTargetingCategoriesWithBodyWithResponse(ctx context.Context, params *GetTargetingCategoriesParams, contentType string, body io.Reader) (*GetTargetingCategoriesResp, error)
GetTargetingCategoriesWithBodyWithResponse request with arbitrary body returning *GetTargetingCategoriesResp
func (*ClientWithResponses) GetTargetingCategoriesWithResponse ¶
func (c *ClientWithResponses) GetTargetingCategoriesWithResponse(ctx context.Context, params *GetTargetingCategoriesParams, body GetTargetingCategoriesJSONRequestBody) (*GetTargetingCategoriesResp, error)
func (*ClientWithResponses) GetV2ReportsReportIdWithResponse ¶
func (c *ClientWithResponses) GetV2ReportsReportIdWithResponse(ctx context.Context, reportId string, params *GetV2ReportsReportIdParams) (*GetV2ReportsReportIdResp, error)
GetV2ReportsReportIdWithResponse request returning *GetV2ReportsReportIdResp
func (*ClientWithResponses) ListAdGroupsWithResponse ¶
func (c *ClientWithResponses) ListAdGroupsWithResponse(ctx context.Context, params *ListAdGroupsParams) (*ListAdGroupsResp, error)
ListAdGroupsWithResponse request returning *ListAdGroupsResp
func (*ClientWithResponses) ListAsinsWithResponse ¶
func (c *ClientWithResponses) ListAsinsWithResponse(ctx context.Context, params *ListAsinsParams) (*ListAsinsResp, error)
ListAsinsWithResponse request returning *ListAsinsResp
func (*ClientWithResponses) ListAssetsWithResponse ¶
func (c *ClientWithResponses) ListAssetsWithResponse(ctx context.Context, params *ListAssetsParams) (*ListAssetsResp, error)
ListAssetsWithResponse request returning *ListAssetsResp
func (*ClientWithResponses) ListCampaignsWithResponse ¶
func (c *ClientWithResponses) ListCampaignsWithResponse(ctx context.Context, params *ListCampaignsParams) (*ListCampaignsResp, error)
ListCampaignsWithResponse request returning *ListCampaignsResp
func (*ClientWithResponses) ListDraftCampaignsWithResponse ¶
func (c *ClientWithResponses) ListDraftCampaignsWithResponse(ctx context.Context, params *ListDraftCampaignsParams) (*ListDraftCampaignsResp, error)
ListDraftCampaignsWithResponse request returning *ListDraftCampaignsResp
func (*ClientWithResponses) ListKeywordsWithResponse ¶
func (c *ClientWithResponses) ListKeywordsWithResponse(ctx context.Context, params *ListKeywordsParams) (*ListKeywordsResp, error)
ListKeywordsWithResponse request returning *ListKeywordsResp
func (*ClientWithResponses) ListNegativeKeywordsWithResponse ¶
func (c *ClientWithResponses) ListNegativeKeywordsWithResponse(ctx context.Context, params *ListNegativeKeywordsParams) (*ListNegativeKeywordsResp, error)
ListNegativeKeywordsWithResponse request returning *ListNegativeKeywordsResp
func (*ClientWithResponses) ListNegativeTargetsWithBodyWithResponse ¶
func (c *ClientWithResponses) ListNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ListNegativeTargetsResp, error)
ListNegativeTargetsWithBodyWithResponse request with arbitrary body returning *ListNegativeTargetsResp
func (*ClientWithResponses) ListNegativeTargetsWithResponse ¶
func (c *ClientWithResponses) ListNegativeTargetsWithResponse(ctx context.Context, body ListNegativeTargetsJSONRequestBody) (*ListNegativeTargetsResp, error)
func (*ClientWithResponses) ListTargetsWithBodyWithResponse ¶
func (c *ClientWithResponses) ListTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ListTargetsResp, error)
ListTargetsWithBodyWithResponse request with arbitrary body returning *ListTargetsResp
func (*ClientWithResponses) ListTargetsWithResponse ¶
func (c *ClientWithResponses) ListTargetsWithResponse(ctx context.Context, body ListTargetsJSONRequestBody) (*ListTargetsResp, error)
func (*ClientWithResponses) PostV2HsaRecordTypeReportWithBodyWithResponse ¶
func (c *ClientWithResponses) PostV2HsaRecordTypeReportWithBodyWithResponse(ctx context.Context, recordType string, params *PostV2HsaRecordTypeReportParams, contentType string, body io.Reader) (*PostV2HsaRecordTypeReportResp, error)
PostV2HsaRecordTypeReportWithBodyWithResponse request with arbitrary body returning *PostV2HsaRecordTypeReportResp
func (*ClientWithResponses) PostV2HsaRecordTypeReportWithResponse ¶
func (c *ClientWithResponses) PostV2HsaRecordTypeReportWithResponse(ctx context.Context, recordType string, params *PostV2HsaRecordTypeReportParams, body PostV2HsaRecordTypeReportJSONRequestBody) (*PostV2HsaRecordTypeReportResp, error)
func (*ClientWithResponses) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbCreateThemesParams, body SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody) (*SbCreateThemesResp, error)
func (*ClientWithResponses) SbCreateThemesWithBodyWithResponse ¶
func (c *ClientWithResponses) SbCreateThemesWithBodyWithResponse(ctx context.Context, params *SbCreateThemesParams, contentType string, body io.Reader) (*SbCreateThemesResp, error)
SbCreateThemesWithBodyWithResponse request with arbitrary body returning *SbCreateThemesResp
func (*ClientWithResponses) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbListThemesParams, body SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody) (*SbListThemesResp, error)
func (*ClientWithResponses) SbListThemesWithBodyWithResponse ¶
func (c *ClientWithResponses) SbListThemesWithBodyWithResponse(ctx context.Context, params *SbListThemesParams, contentType string, body io.Reader) (*SbListThemesResp, error)
SbListThemesWithBodyWithResponse request with arbitrary body returning *SbListThemesResp
func (*ClientWithResponses) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbUpdateThemesParams, body SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody) (*SbUpdateThemesResp, error)
func (*ClientWithResponses) SbUpdateThemesWithBodyWithResponse ¶
func (c *ClientWithResponses) SbUpdateThemesWithBodyWithResponse(ctx context.Context, params *SbUpdateThemesParams, contentType string, body io.Reader) (*SbUpdateThemesResp, error)
SbUpdateThemesWithBodyWithResponse request with arbitrary body returning *SbUpdateThemesResp
func (*ClientWithResponses) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBodyWithResponse(ctx context.Context, params *SubmitDraftCampaignParams, body SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody) (*SubmitDraftCampaignResp, error)
func (*ClientWithResponses) SubmitDraftCampaignWithBodyWithResponse ¶
func (c *ClientWithResponses) SubmitDraftCampaignWithBodyWithResponse(ctx context.Context, params *SubmitDraftCampaignParams, contentType string, body io.Reader) (*SubmitDraftCampaignResp, error)
SubmitDraftCampaignWithBodyWithResponse request with arbitrary body returning *SubmitDraftCampaignResp
func (*ClientWithResponses) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody) (*UpdateCampaignsResp, error)
func (*ClientWithResponses) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody) (*UpdateCampaignsResp, error)
func (*ClientWithResponses) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody) (*UpdateCampaignsResp, error)
func (*ClientWithResponses) UpdateCampaignsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCampaignsWithBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, contentType string, body io.Reader) (*UpdateCampaignsResp, error)
UpdateCampaignsWithBodyWithResponse request with arbitrary body returning *UpdateCampaignsResp
func (*ClientWithResponses) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*UpdateDraftCampaignsResp, error)
func (*ClientWithResponses) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody) (*UpdateDraftCampaignsResp, error)
func (*ClientWithResponses) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody) (*UpdateDraftCampaignsResp, error)
func (*ClientWithResponses) UpdateDraftCampaignsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDraftCampaignsWithBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, contentType string, body io.Reader) (*UpdateDraftCampaignsResp, error)
UpdateDraftCampaignsWithBodyWithResponse request with arbitrary body returning *UpdateDraftCampaignsResp
func (*ClientWithResponses) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateKeywordsParams, body UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*UpdateKeywordsResp, error)
func (*ClientWithResponses) UpdateKeywordsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateKeywordsWithBodyWithResponse(ctx context.Context, params *UpdateKeywordsParams, contentType string, body io.Reader) (*UpdateKeywordsResp, error)
UpdateKeywordsWithBodyWithResponse request with arbitrary body returning *UpdateKeywordsResp
func (*ClientWithResponses) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateNegativeKeywordsParams, body UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*UpdateNegativeKeywordsResp, error)
func (*ClientWithResponses) UpdateNegativeKeywordsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNegativeKeywordsWithBodyWithResponse(ctx context.Context, params *UpdateNegativeKeywordsParams, contentType string, body io.Reader) (*UpdateNegativeKeywordsResp, error)
UpdateNegativeKeywordsWithBodyWithResponse request with arbitrary body returning *UpdateNegativeKeywordsResp
func (*ClientWithResponses) UpdateNegativeTargetsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateNegativeTargetsResp, error)
UpdateNegativeTargetsWithBodyWithResponse request with arbitrary body returning *UpdateNegativeTargetsResp
func (*ClientWithResponses) UpdateNegativeTargetsWithResponse ¶
func (c *ClientWithResponses) UpdateNegativeTargetsWithResponse(ctx context.Context, body UpdateNegativeTargetsJSONRequestBody) (*UpdateNegativeTargetsResp, error)
func (*ClientWithResponses) UpdateTargetsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateTargetsResp, error)
UpdateTargetsWithBodyWithResponse request with arbitrary body returning *UpdateTargetsResp
func (*ClientWithResponses) UpdateTargetsWithResponse ¶
func (c *ClientWithResponses) UpdateTargetsWithResponse(ctx context.Context, body UpdateTargetsJSONRequestBody) (*UpdateTargetsResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetBrandsWithResponse request GetBrandsWithResponse(ctx context.Context, params *GetBrandsParams) (*GetBrandsResp, error) // CompleteUploadWithBodyWithResponse request with any body CompleteUploadWithBodyWithResponse(ctx context.Context, params *CompleteUploadParams, contentType string, body io.Reader) (*CompleteUploadResp, error) CompleteUploadWithResponse(ctx context.Context, params *CompleteUploadParams, body CompleteUploadJSONRequestBody) (*CompleteUploadResp, error) // DescribeMediaWithResponse request DescribeMediaWithResponse(ctx context.Context, params *DescribeMediaParams) (*DescribeMediaResp, error) // CreateUploadResourceWithBodyWithResponse request with any body CreateUploadResourceWithBodyWithResponse(ctx context.Context, params *CreateUploadResourceParams, contentType string, body io.Reader) (*CreateUploadResourceResp, error) CreateUploadResourceWithResponse(ctx context.Context, params *CreateUploadResourceParams, body CreateUploadResourceJSONRequestBody) (*CreateUploadResourceResp, error) // ListAsinsWithResponse request ListAsinsWithResponse(ctx context.Context, params *ListAsinsParams) (*ListAsinsResp, error) // ListAdGroupsWithResponse request ListAdGroupsWithResponse(ctx context.Context, params *ListAdGroupsParams) (*ListAdGroupsResp, error) // GetAdGroupWithResponse request GetAdGroupWithResponse(ctx context.Context, adGroupId int64, params *GetAdGroupParams) (*GetAdGroupResp, error) // ListCampaignsWithResponse request ListCampaignsWithResponse(ctx context.Context, params *ListCampaignsParams) (*ListCampaignsResp, error) // CreateCampaignsWithBodyWithResponse request with any body CreateCampaignsWithBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, contentType string, body io.Reader) (*CreateCampaignsResp, error) CreateCampaignsWithApplicationVndCreatecampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody) (*CreateCampaignsResp, error) CreateCampaignsWithApplicationVndCreatecampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody) (*CreateCampaignsResp, error) CreateCampaignsWithApplicationVndSbcreatecampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateCampaignsParams, body CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody) (*CreateCampaignsResp, error) // UpdateCampaignsWithBodyWithResponse request with any body UpdateCampaignsWithBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, contentType string, body io.Reader) (*UpdateCampaignsResp, error) UpdateCampaignsWithApplicationVndSbupdatecampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody) (*UpdateCampaignsResp, error) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody) (*UpdateCampaignsResp, error) UpdateCampaignsWithApplicationVndUpdatecampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *UpdateCampaignsParams, body UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody) (*UpdateCampaignsResp, error) // ArchiveCampaignWithResponse request ArchiveCampaignWithResponse(ctx context.Context, campaignId int64, params *ArchiveCampaignParams) (*ArchiveCampaignResp, error) // GetCampaignWithResponse request GetCampaignWithResponse(ctx context.Context, campaignId int64, params *GetCampaignParams) (*GetCampaignResp, error) // ListDraftCampaignsWithResponse request ListDraftCampaignsWithResponse(ctx context.Context, params *ListDraftCampaignsParams) (*ListDraftCampaignsResp, error) // CreateDraftCampaignsWithBodyWithResponse request with any body CreateDraftCampaignsWithBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, contentType string, body io.Reader) (*CreateDraftCampaignsResp, error) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody) (*CreateDraftCampaignsResp, error) CreateDraftCampaignsWithApplicationVndCreatedraftcampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody) (*CreateDraftCampaignsResp, error) CreateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateDraftCampaignsParams, body CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*CreateDraftCampaignsResp, error) // UpdateDraftCampaignsWithBodyWithResponse request with any body UpdateDraftCampaignsWithBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, contentType string, body io.Reader) (*UpdateDraftCampaignsResp, error) UpdateDraftCampaignsWithApplicationVndSbdraftcampaignresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody) (*UpdateDraftCampaignsResp, error) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody) (*UpdateDraftCampaignsResp, error) UpdateDraftCampaignsWithApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBodyWithResponse(ctx context.Context, params *UpdateDraftCampaignsParams, body UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody) (*UpdateDraftCampaignsResp, error) // SubmitDraftCampaignWithBodyWithResponse request with any body SubmitDraftCampaignWithBodyWithResponse(ctx context.Context, params *SubmitDraftCampaignParams, contentType string, body io.Reader) (*SubmitDraftCampaignResp, error) SubmitDraftCampaignWithApplicationVndSbcampaignV3PlusJSONBodyWithResponse(ctx context.Context, params *SubmitDraftCampaignParams, body SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody) (*SubmitDraftCampaignResp, error) // DeleteDraftCampaignWithResponse request DeleteDraftCampaignWithResponse(ctx context.Context, draftCampaignId int64, params *DeleteDraftCampaignParams) (*DeleteDraftCampaignResp, error) // GetDraftCampaignWithResponse request GetDraftCampaignWithResponse(ctx context.Context, draftCampaignId int64, params *GetDraftCampaignParams) (*GetDraftCampaignResp, error) // ListKeywordsWithResponse request ListKeywordsWithResponse(ctx context.Context, params *ListKeywordsParams) (*ListKeywordsResp, error) // CreateKeywordsWithBodyWithResponse request with any body CreateKeywordsWithBodyWithResponse(ctx context.Context, params *CreateKeywordsParams, contentType string, body io.Reader) (*CreateKeywordsResp, error) CreateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateKeywordsParams, body CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*CreateKeywordsResp, error) // UpdateKeywordsWithBodyWithResponse request with any body UpdateKeywordsWithBodyWithResponse(ctx context.Context, params *UpdateKeywordsParams, contentType string, body io.Reader) (*UpdateKeywordsResp, error) UpdateKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateKeywordsParams, body UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*UpdateKeywordsResp, error) // ArchiveKeywordWithResponse request ArchiveKeywordWithResponse(ctx context.Context, keywordId int64, params *ArchiveKeywordParams) (*ArchiveKeywordResp, error) // GetKeywordWithResponse request GetKeywordWithResponse(ctx context.Context, keywordId int64, params *GetKeywordParams) (*GetKeywordResp, error) // GetSbModerationCampaignsCampaignIdWithResponse request GetSbModerationCampaignsCampaignIdWithResponse(ctx context.Context, campaignId int64, params *GetSbModerationCampaignsCampaignIdParams) (*GetSbModerationCampaignsCampaignIdResp, error) // ListNegativeKeywordsWithResponse request ListNegativeKeywordsWithResponse(ctx context.Context, params *ListNegativeKeywordsParams) (*ListNegativeKeywordsResp, error) // CreateNegativeKeywordsWithBodyWithResponse request with any body CreateNegativeKeywordsWithBodyWithResponse(ctx context.Context, params *CreateNegativeKeywordsParams, contentType string, body io.Reader) (*CreateNegativeKeywordsResp, error) CreateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *CreateNegativeKeywordsParams, body CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*CreateNegativeKeywordsResp, error) // UpdateNegativeKeywordsWithBodyWithResponse request with any body UpdateNegativeKeywordsWithBodyWithResponse(ctx context.Context, params *UpdateNegativeKeywordsParams, contentType string, body io.Reader) (*UpdateNegativeKeywordsResp, error) UpdateNegativeKeywordsWithApplicationVndSbkeywordresponseV3PlusJSONBodyWithResponse(ctx context.Context, params *UpdateNegativeKeywordsParams, body UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody) (*UpdateNegativeKeywordsResp, error) // ArchiveNegativeKeywordWithResponse request ArchiveNegativeKeywordWithResponse(ctx context.Context, keywordId int64, params *ArchiveNegativeKeywordParams) (*ArchiveNegativeKeywordResp, error) // GetNegativeKeywordWithResponse request GetNegativeKeywordWithResponse(ctx context.Context, keywordId int64, params *GetNegativeKeywordParams) (*GetNegativeKeywordResp, error) // CreateNegativeTargetsWithBodyWithResponse request with any body CreateNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateNegativeTargetsResp, error) CreateNegativeTargetsWithResponse(ctx context.Context, body CreateNegativeTargetsJSONRequestBody) (*CreateNegativeTargetsResp, error) // UpdateNegativeTargetsWithBodyWithResponse request with any body UpdateNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateNegativeTargetsResp, error) UpdateNegativeTargetsWithResponse(ctx context.Context, body UpdateNegativeTargetsJSONRequestBody) (*UpdateNegativeTargetsResp, error) // ListNegativeTargetsWithBodyWithResponse request with any body ListNegativeTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ListNegativeTargetsResp, error) ListNegativeTargetsWithResponse(ctx context.Context, body ListNegativeTargetsJSONRequestBody) (*ListNegativeTargetsResp, error) // ArchiveNegativeTargetWithResponse request ArchiveNegativeTargetWithResponse(ctx context.Context, negativeTargetId SBNegativeTargetId) (*ArchiveNegativeTargetResp, error) // GetNegativeTargetWithResponse request GetNegativeTargetWithResponse(ctx context.Context, negativeTargetId SBNegativeTargetId) (*GetNegativeTargetResp, error) // GetBidsRecommendationsWithBodyWithResponse request with any body GetBidsRecommendationsWithBodyWithResponse(ctx context.Context, params *GetBidsRecommendationsParams, contentType string, body io.Reader) (*GetBidsRecommendationsResp, error) GetBidsRecommendationsWithResponse(ctx context.Context, params *GetBidsRecommendationsParams, body GetBidsRecommendationsJSONRequestBody) (*GetBidsRecommendationsResp, error) // GetBrandRecommendationsWithBodyWithResponse request with any body GetBrandRecommendationsWithBodyWithResponse(ctx context.Context, params *GetBrandRecommendationsParams, contentType string, body io.Reader) (*GetBrandRecommendationsResp, error) GetBrandRecommendationsWithApplicationVndSbbrandrecommendationsV30PlusJSONBodyWithResponse(ctx context.Context, params *GetBrandRecommendationsParams, body GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody) (*GetBrandRecommendationsResp, error) // GetTargetingCategoriesWithBodyWithResponse request with any body GetTargetingCategoriesWithBodyWithResponse(ctx context.Context, params *GetTargetingCategoriesParams, contentType string, body io.Reader) (*GetTargetingCategoriesResp, error) GetTargetingCategoriesWithResponse(ctx context.Context, params *GetTargetingCategoriesParams, body GetTargetingCategoriesJSONRequestBody) (*GetTargetingCategoriesResp, error) // GetProductRecommendationsWithBodyWithResponse request with any body GetProductRecommendationsWithBodyWithResponse(ctx context.Context, params *GetProductRecommendationsParams, contentType string, body io.Reader) (*GetProductRecommendationsResp, error) GetProductRecommendationsWithApplicationVndSbproductrecommendationsV30PlusJSONBodyWithResponse(ctx context.Context, params *GetProductRecommendationsParams, body GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody) (*GetProductRecommendationsResp, error) // CreateTargetsWithBodyWithResponse request with any body CreateTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateTargetsResp, error) CreateTargetsWithResponse(ctx context.Context, body CreateTargetsJSONRequestBody) (*CreateTargetsResp, error) // UpdateTargetsWithBodyWithResponse request with any body UpdateTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*UpdateTargetsResp, error) UpdateTargetsWithResponse(ctx context.Context, body UpdateTargetsJSONRequestBody) (*UpdateTargetsResp, error) // ListTargetsWithBodyWithResponse request with any body ListTargetsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*ListTargetsResp, error) ListTargetsWithResponse(ctx context.Context, body ListTargetsJSONRequestBody) (*ListTargetsResp, error) // ArchiveTargetWithResponse request ArchiveTargetWithResponse(ctx context.Context, targetId SBTargetId) (*ArchiveTargetResp, error) // GetTargetWithResponse request GetTargetWithResponse(ctx context.Context, targetId SBTargetId, params *GetTargetParams) (*GetTargetResp, error) // SbCreateThemesWithBodyWithResponse request with any body SbCreateThemesWithBodyWithResponse(ctx context.Context, params *SbCreateThemesParams, contentType string, body io.Reader) (*SbCreateThemesResp, error) SbCreateThemesWithApplicationVndSbthemescreaterequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbCreateThemesParams, body SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody) (*SbCreateThemesResp, error) // SbUpdateThemesWithBodyWithResponse request with any body SbUpdateThemesWithBodyWithResponse(ctx context.Context, params *SbUpdateThemesParams, contentType string, body io.Reader) (*SbUpdateThemesResp, error) SbUpdateThemesWithApplicationVndSbathemessupdaterequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbUpdateThemesParams, body SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody) (*SbUpdateThemesResp, error) // SbListThemesWithBodyWithResponse request with any body SbListThemesWithBodyWithResponse(ctx context.Context, params *SbListThemesParams, contentType string, body io.Reader) (*SbListThemesResp, error) SbListThemesWithApplicationVndSbthemeslistrequestV3PlusJSONBodyWithResponse(ctx context.Context, params *SbListThemesParams, body SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody) (*SbListThemesResp, error) // ListAssetsWithResponse request ListAssetsWithResponse(ctx context.Context, params *ListAssetsParams) (*ListAssetsResp, error) // CreateAssetWithBodyWithResponse request with any body CreateAssetWithBodyWithResponse(ctx context.Context, params *CreateAssetParams, contentType string, body io.Reader) (*CreateAssetResp, error) // PostV2HsaRecordTypeReportWithBodyWithResponse request with any body PostV2HsaRecordTypeReportWithBodyWithResponse(ctx context.Context, recordType string, params *PostV2HsaRecordTypeReportParams, contentType string, body io.Reader) (*PostV2HsaRecordTypeReportResp, error) PostV2HsaRecordTypeReportWithResponse(ctx context.Context, recordType string, params *PostV2HsaRecordTypeReportParams, body PostV2HsaRecordTypeReportJSONRequestBody) (*PostV2HsaRecordTypeReportResp, error) // GetV2ReportsReportIdWithResponse request GetV2ReportsReportIdWithResponse(ctx context.Context, reportId string, params *GetV2ReportsReportIdParams) (*GetV2ReportsReportIdResp, error) // DownloadReportWithResponse request DownloadReportWithResponse(ctx context.Context, reportId string, params *DownloadReportParams) (*DownloadReportResp, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompleteUploadJSONBody ¶
type CompleteUploadJSONBody struct { // UploadLocation The url to upload the media. The url expires in 15 minutes. The upload location only supports `PUT` HTTP Method to upload the media content. UploadLocation *UploadLocation `json:"uploadLocation,omitempty"` // Version The version id of the uploaded media. The upload location retrieved from /media/upload API supports versioning and returns version id in the upload response through `x-amz-version-id` header. API user can explicitly specify the version id corresponding to an upload through `version` property. `version` is optional and if it is not specified, media corresponding to the most recent version at the time of API call will be used. Version *string `json:"version,omitempty"` }
CompleteUploadJSONBody defines parameters for CompleteUpload.
type CompleteUploadJSONRequestBody ¶
type CompleteUploadJSONRequestBody CompleteUploadJSONBody
CompleteUploadJSONRequestBody defines body for CompleteUpload for application/json ContentType.
type CompleteUploadParams ¶
type CompleteUploadParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a "Login with Amazon" account. AmazonAdvertisingAPIClientId string `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope string `json:"Amazon-Advertising-API-Scope"` }
CompleteUploadParams defines parameters for CompleteUpload.
type CompleteUploadResp ¶
type CompleteUploadResp struct { Body []byte HTTPResponse *http.Response JSON200 *struct { // MediaId The Media identifier. MediaId *MediaId `json:"mediaId,omitempty"` } JSON400 *MediaPublisherAPIError JSON404 *MediaPublisherAPIError JSON500 *MediaPublisherAPIError }
func ParseCompleteUploadResp ¶
func ParseCompleteUploadResp(rsp *http.Response) (*CompleteUploadResp, error)
ParseCompleteUploadResp parses an HTTP response from a CompleteUploadWithResponse call
func (CompleteUploadResp) Status ¶
func (r CompleteUploadResp) Status() string
Status returns HTTPResponse.Status
func (CompleteUploadResp) StatusCode ¶
func (r CompleteUploadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateAssetMultipartBody ¶
type CreateAssetMultipartBody struct { // Asset The binary data for the image. For more information, File size must be smaller than 1MB, and the resolution must be a minimum of 400 pixels by 400 pixels. Asset *openapi_types.File `json:"asset,omitempty"` // AssetInfo A JSON object specifying the Brand entity identifier an media type. The Brand entity identifier is optional, but media type is not. // |Field|Type|Values| // |-----|-----|-----| // |brandEntityId|string|The Brand entity identifier.| // |mediaType|string| Only `brandLogo` is currently supported.| // Example: // “` // { // brandEntityId: "12345678", // mediaType: { // "brandLogo" // } // } // “` AssetInfo *string `json:"assetInfo,omitempty"` }
CreateAssetMultipartBody defines parameters for CreateAsset.
type CreateAssetMultipartRequestBody ¶
type CreateAssetMultipartRequestBody CreateAssetMultipartBody
CreateAssetMultipartRequestBody defines body for CreateAsset for multipart/form-data ContentType.
type CreateAssetParams ¶
type CreateAssetParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` // ContentDisposition The name of the image file. ContentDisposition string `json:"Content-Disposition"` // ContentType The image format type. The following table lists the valid image types: // |Image Type|Description| // |----------|-----------| // |PNG|[Portable network graphics](https://en.wikipedia.org/wiki/Portable_Network_Graphics)| // |JPEG|[JPEG](https://en.wikipedia.org/wiki/JPEG)| // |GIF|[Graphics interchange format](https://en.wikipedia.org/wiki/GIF)| ContentType string `json:"Content-Type"` }
CreateAssetParams defines parameters for CreateAsset.
type CreateAssetResp ¶
type CreateAssetResp struct { Body []byte HTTPResponse *http.Response JSON200 *PostStoresAssetsResponse }
func ParseCreateAssetResp ¶
func ParseCreateAssetResp(rsp *http.Response) (*CreateAssetResp, error)
ParseCreateAssetResp parses an HTTP response from a CreateAssetWithResponse call
func (CreateAssetResp) Status ¶
func (r CreateAssetResp) Status() string
Status returns HTTPResponse.Status
func (CreateAssetResp) StatusCode ¶
func (r CreateAssetResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONBody ¶
type CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONBody = []SBCreateCampaignRequestV32
CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONBody defines parameters for CreateCampaigns.
type CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody ¶
type CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody = CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONBody
CreateCampaignsApplicationVndCreatecampaignsresponseV32PlusJSONRequestBody defines body for CreateCampaigns for application/vnd.createcampaignsresponse.v3.2+json ContentType.
type CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONBody ¶
type CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONBody = []SBCreateCampaignRequestV33
CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONBody defines parameters for CreateCampaigns.
type CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody ¶
type CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody = CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONBody
CreateCampaignsApplicationVndCreatecampaignsresponseV33PlusJSONRequestBody defines body for CreateCampaigns for application/vnd.createcampaignsresponse.v3.3+json ContentType.
type CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONBody ¶
type CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONBody = []SBCreateCampaignRequest
CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONBody defines parameters for CreateCampaigns.
type CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody ¶
type CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody = CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONBody
CreateCampaignsApplicationVndSbcreatecampaignresponseV3PlusJSONRequestBody defines body for CreateCampaigns for application/vnd.sbcreatecampaignresponse.v3+json ContentType.
type CreateCampaignsParams ¶
type CreateCampaignsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
CreateCampaignsParams defines parameters for CreateCampaigns.
type CreateCampaignsResp ¶
type CreateCampaignsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndCreatecampaignsresponseV32JSON207 *PostSbCampaignsResponse ApplicationvndCreatecampaignsresponseV33JSON207 *PostSbCampaignsResponse ApplicationvndSbcreatecampaignresponseV3JSON207 *PostSbCampaignsResponse ApplicationvndErrorV3JSON404 *Error }
func ParseCreateCampaignsResp ¶
func ParseCreateCampaignsResp(rsp *http.Response) (*CreateCampaignsResp, error)
ParseCreateCampaignsResp parses an HTTP response from a CreateCampaignsWithResponse call
func (CreateCampaignsResp) Status ¶
func (r CreateCampaignsResp) Status() string
Status returns HTTPResponse.Status
func (CreateCampaignsResp) StatusCode ¶
func (r CreateCampaignsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody ¶
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody = []SBCreateDraftCampaignRequestV32
CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody defines parameters for CreateDraftCampaigns.
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody ¶
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody = CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONBody
CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV32PlusJSONRequestBody defines body for CreateDraftCampaigns for application/vnd.createdraftcampaignsresponse.v3.2+json ContentType.
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody ¶
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody = []SBCreateDraftCampaignRequestV33
CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody defines parameters for CreateDraftCampaigns.
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody ¶
type CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody = CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONBody
CreateDraftCampaignsApplicationVndCreatedraftcampaignsresponseV33PlusJSONRequestBody defines body for CreateDraftCampaigns for application/vnd.createdraftcampaignsresponse.v3.3+json ContentType.
type CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody ¶
type CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody = []SBCreateDraftCampaignRequest
CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody defines parameters for CreateDraftCampaigns.
type CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody ¶
type CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody = CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody
CreateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody defines body for CreateDraftCampaigns for application/vnd.sbdraftcampaignresponse.v3+json ContentType.
type CreateDraftCampaignsParams ¶
type CreateDraftCampaignsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
CreateDraftCampaignsParams defines parameters for CreateDraftCampaigns.
type CreateDraftCampaignsResp ¶
type CreateDraftCampaignsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndCreatedraftcampaignsresponseV32JSON207 *[]SBDraftCampaignResponse ApplicationvndCreatedraftcampaignsresponseV33JSON207 *[]SBDraftCampaignResponse ApplicationvndSbdraftcampaignresponseV3JSON207 *[]SBDraftCampaignResponse ApplicationvndErrorV3JSON404 *Error }
func ParseCreateDraftCampaignsResp ¶
func ParseCreateDraftCampaignsResp(rsp *http.Response) (*CreateDraftCampaignsResp, error)
ParseCreateDraftCampaignsResp parses an HTTP response from a CreateDraftCampaignsWithResponse call
func (CreateDraftCampaignsResp) Status ¶
func (r CreateDraftCampaignsResp) Status() string
Status returns HTTPResponse.Status
func (CreateDraftCampaignsResp) StatusCode ¶
func (r CreateDraftCampaignsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody ¶
type CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody = []struct { // AdGroupId The identifier of an existing ad group to which the keyword is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The bid associated with the keyword. Note that this value must be less than the budget associated with the Advertiser account. For more information, see the **Keyword bid constraints by marketplace** section of the [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features) article. Bid *float32 `json:"bid,omitempty"` // CampaignId The identifier of an existing campaign to which the keyword is associated. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordText The keyword text. The maximum number of words for this string is 10. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` }
CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody defines parameters for CreateKeywords.
type CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody ¶
type CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody = CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
CreateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody defines body for CreateKeywords for application/vnd.sbkeywordresponse.v3+json ContentType.
type CreateKeywordsParams ¶
type CreateKeywordsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
CreateKeywordsParams defines parameters for CreateKeywords.
type CreateKeywordsResp ¶
type CreateKeywordsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordresponseV3JSON207 *SBKeywordResponse }
func ParseCreateKeywordsResp ¶
func ParseCreateKeywordsResp(rsp *http.Response) (*CreateKeywordsResp, error)
ParseCreateKeywordsResp parses an HTTP response from a CreateKeywordsWithResponse call
func (CreateKeywordsResp) Status ¶
func (r CreateKeywordsResp) Status() string
Status returns HTTPResponse.Status
func (CreateKeywordsResp) StatusCode ¶
func (r CreateKeywordsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody ¶
type CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody = []struct { // AdGroupId The identifier of the ad group to which the negative keyword is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of the campaign to which the negative keyword is associated. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordText The keyword text. Maximum length is ten words if 'matchType' is 'negativeExact'. Maximum length is 4 words if 'matchType' is 'negativePhrase' KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` }
CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody defines parameters for CreateNegativeKeywords.
type CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody ¶
type CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody = CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
CreateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody defines body for CreateNegativeKeywords for application/vnd.sbkeywordresponse.v3+json ContentType.
type CreateNegativeKeywordsParams ¶
type CreateNegativeKeywordsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
CreateNegativeKeywordsParams defines parameters for CreateNegativeKeywords.
type CreateNegativeKeywordsResp ¶
type CreateNegativeKeywordsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordresponseV3JSON207 *[]SBKeywordResponse }
func ParseCreateNegativeKeywordsResp ¶
func ParseCreateNegativeKeywordsResp(rsp *http.Response) (*CreateNegativeKeywordsResp, error)
ParseCreateNegativeKeywordsResp parses an HTTP response from a CreateNegativeKeywordsWithResponse call
func (CreateNegativeKeywordsResp) Status ¶
func (r CreateNegativeKeywordsResp) Status() string
Status returns HTTPResponse.Status
func (CreateNegativeKeywordsResp) StatusCode ¶
func (r CreateNegativeKeywordsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNegativeTargetsJSONBody ¶
type CreateNegativeTargetsJSONBody struct {
NegativeTargets []SBCreateNegativeTargetingClauseRequest `json:"negativeTargets"`
}
CreateNegativeTargetsJSONBody defines parameters for CreateNegativeTargets.
type CreateNegativeTargetsJSONRequestBody ¶
type CreateNegativeTargetsJSONRequestBody CreateNegativeTargetsJSONBody
CreateNegativeTargetsJSONRequestBody defines body for CreateNegativeTargets for application/json ContentType.
type CreateNegativeTargetsResp ¶
type CreateNegativeTargetsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbcreatenegativetargetsrequestV3JSON200 *SBCreateTargetsResponse ApplicationvndSberrorV30JSON400 *BadRequest400 }
func ParseCreateNegativeTargetsResp ¶
func ParseCreateNegativeTargetsResp(rsp *http.Response) (*CreateNegativeTargetsResp, error)
ParseCreateNegativeTargetsResp parses an HTTP response from a CreateNegativeTargetsWithResponse call
func (CreateNegativeTargetsResp) Status ¶
func (r CreateNegativeTargetsResp) Status() string
Status returns HTTPResponse.Status
func (CreateNegativeTargetsResp) StatusCode ¶
func (r CreateNegativeTargetsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTargetsJSONBody ¶
type CreateTargetsJSONBody struct {
Targets []SBCreateTargetingClauseRequest `json:"targets"`
}
CreateTargetsJSONBody defines parameters for CreateTargets.
type CreateTargetsJSONRequestBody ¶
type CreateTargetsJSONRequestBody CreateTargetsJSONBody
CreateTargetsJSONRequestBody defines body for CreateTargets for application/json ContentType.
type CreateTargetsResp ¶
type CreateTargetsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbcreatetargetsresponseV3JSON200 *SBCreateTargetsResponse ApplicationvndSberrorV30JSON400 *BadRequest400 }
func ParseCreateTargetsResp ¶
func ParseCreateTargetsResp(rsp *http.Response) (*CreateTargetsResp, error)
ParseCreateTargetsResp parses an HTTP response from a CreateTargetsWithResponse call
func (CreateTargetsResp) Status ¶
func (r CreateTargetsResp) Status() string
Status returns HTTPResponse.Status
func (CreateTargetsResp) StatusCode ¶
func (r CreateTargetsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateUploadResourceJSONRequestBody ¶
type CreateUploadResourceJSONRequestBody = Program
CreateUploadResourceJSONRequestBody defines body for CreateUploadResource for application/json ContentType.
type CreateUploadResourceParams ¶
type CreateUploadResourceParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a "Login with Amazon" account. AmazonAdvertisingAPIClientId string `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope string `json:"Amazon-Advertising-API-Scope"` }
CreateUploadResourceParams defines parameters for CreateUploadResource.
type CreateUploadResourceResp ¶
type CreateUploadResourceResp struct { Body []byte HTTPResponse *http.Response JSON200 *UploadLocation JSON400 *MediaPublisherAPIError JSON500 *MediaPublisherAPIError }
func ParseCreateUploadResourceResp ¶
func ParseCreateUploadResourceResp(rsp *http.Response) (*CreateUploadResourceResp, error)
ParseCreateUploadResourceResp parses an HTTP response from a CreateUploadResourceWithResponse call
func (CreateUploadResourceResp) Status ¶
func (r CreateUploadResourceResp) Status() string
Status returns HTTPResponse.Status
func (CreateUploadResourceResp) StatusCode ¶
func (r CreateUploadResourceResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreativeError ¶
type CreativeError struct { CreativeError *struct { ActualType *string `json:"actualType,omitempty"` Asins *string `json:"asins,omitempty"` AspectRatio *string `json:"aspectRatio,omitempty"` CropField *string `json:"cropField,omitempty"` CropHeight *string `json:"cropHeight,omitempty"` CropWidth *string `json:"cropWidth,omitempty"` Emoji *string `json:"emoji,omitempty"` ExpectedType *string `json:"expectedType,omitempty"` ImageHeight *string `json:"imageHeight,omitempty"` ImageWidth *string `json:"imageWidth,omitempty"` InvalidCharacters *string `json:"invalidCharacters,omitempty"` Left *string `json:"left,omitempty"` Location *string `json:"location,omitempty"` MaxLength *string `json:"maxLength,omitempty"` MaxSize *string `json:"maxSize,omitempty"` Message string `json:"message"` Min *string `json:"min,omitempty"` Note *string `json:"note,omitempty"` Reason string `json:"reason"` RequiredAspectRatio *string `json:"requiredAspectRatio,omitempty"` Top *string `json:"top,omitempty"` Trigger *string `json:"trigger,omitempty"` } `json:"CreativeError,omitempty"` }
CreativeError defines model for CreativeError.
type CreativeType ¶
type CreativeType string
CreativeType collection is deprecated in favor of productCollection.
const ( CreativeTypeProductCollection CreativeType = "productCollection" CreativeTypeVideo CreativeType = "video" )
Defines values for CreativeType.
type DeleteDraftCampaignParams ¶
type DeleteDraftCampaignParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
DeleteDraftCampaignParams defines parameters for DeleteDraftCampaign.
type DeleteDraftCampaignResp ¶
type DeleteDraftCampaignResp struct { Body []byte HTTPResponse *http.Response ApplicationvndDeletedraftcampaignsresponseV33JSON200 *SBDraftCampaignDeleteResponse ApplicationvndSbdraftcampaignresponseV3JSON200 *SBDraftCampaignDeleteResponse ApplicationvndErrorV3JSON404 *Error }
func ParseDeleteDraftCampaignResp ¶
func ParseDeleteDraftCampaignResp(rsp *http.Response) (*DeleteDraftCampaignResp, error)
ParseDeleteDraftCampaignResp parses an HTTP response from a DeleteDraftCampaignWithResponse call
func (DeleteDraftCampaignResp) Status ¶
func (r DeleteDraftCampaignResp) Status() string
Status returns HTTPResponse.Status
func (DeleteDraftCampaignResp) StatusCode ¶
func (r DeleteDraftCampaignResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DescribeMediaParams ¶
type DescribeMediaParams struct { // MediaId Media Identifier MediaId string `form:"mediaId" json:"mediaId"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a "Login with Amazon" account. AmazonAdvertisingAPIClientId string `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope string `json:"Amazon-Advertising-API-Scope"` }
DescribeMediaParams defines parameters for DescribeMedia.
type DescribeMediaResp ¶
func ParseDescribeMediaResp ¶
func ParseDescribeMediaResp(rsp *http.Response) (*DescribeMediaResp, error)
ParseDescribeMediaResp parses an HTTP response from a DescribeMediaWithResponse call
func (DescribeMediaResp) Status ¶
func (r DescribeMediaResp) Status() string
Status returns HTTPResponse.Status
func (DescribeMediaResp) StatusCode ¶
func (r DescribeMediaResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadReportParams ¶
type DownloadReportParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
DownloadReportParams defines parameters for DownloadReport.
type DownloadReportResp ¶
type DownloadReportResp struct { Body []byte HTTPResponse *http.Response JSON400 *Error JSON404 *Error JSON429 *Error JSON500 *Error }
func ParseDownloadReportResp ¶
func ParseDownloadReportResp(rsp *http.Response) (*DownloadReportResp, error)
ParseDownloadReportResp parses an HTTP response from a DownloadReportWithResponse call
func (DownloadReportResp) Status ¶
func (r DownloadReportResp) Status() string
Status returns HTTPResponse.Status
func (DownloadReportResp) StatusCode ¶
func (r DownloadReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DraftsError ¶
type DraftsError struct {
DraftsError *BasicErrorObject `json:"DraftsError,omitempty"`
}
DraftsError defines model for DraftsError.
type EndDate ¶
type EndDate = string
EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign.
type Error ¶
type Error struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` }
Error defines model for Error.
type ErrorEntry ¶
type ErrorEntry struct {
// contains filtered or unexported fields
}
ErrorEntry defines model for ErrorEntry.
func (ErrorEntry) AsAdFormatError ¶
func (t ErrorEntry) AsAdFormatError() (AdFormatError, error)
AsAdFormatError returns the union data inside the ErrorEntry as a AdFormatError
func (ErrorEntry) AsAdGroupError ¶
func (t ErrorEntry) AsAdGroupError() (AdGroupError, error)
AsAdGroupError returns the union data inside the ErrorEntry as a AdGroupError
func (ErrorEntry) AsAssetsError ¶
func (t ErrorEntry) AsAssetsError() (AssetsError, error)
AsAssetsError returns the union data inside the ErrorEntry as a AssetsError
func (ErrorEntry) AsAuthorizationError ¶
func (t ErrorEntry) AsAuthorizationError() (AuthorizationError, error)
AsAuthorizationError returns the union data inside the ErrorEntry as a AuthorizationError
func (ErrorEntry) AsBidError ¶
func (t ErrorEntry) AsBidError() (BidError, error)
AsBidError returns the union data inside the ErrorEntry as a BidError
func (ErrorEntry) AsBrandsError ¶
func (t ErrorEntry) AsBrandsError() (BrandsError, error)
AsBrandsError returns the union data inside the ErrorEntry as a BrandsError
func (ErrorEntry) AsBudgetError ¶
func (t ErrorEntry) AsBudgetError() (BudgetError, error)
AsBudgetError returns the union data inside the ErrorEntry as a BudgetError
func (ErrorEntry) AsCampaignError ¶
func (t ErrorEntry) AsCampaignError() (CampaignError, error)
AsCampaignError returns the union data inside the ErrorEntry as a CampaignError
func (ErrorEntry) AsCreativeError ¶
func (t ErrorEntry) AsCreativeError() (CreativeError, error)
AsCreativeError returns the union data inside the ErrorEntry as a CreativeError
func (ErrorEntry) AsDraftsError ¶
func (t ErrorEntry) AsDraftsError() (DraftsError, error)
AsDraftsError returns the union data inside the ErrorEntry as a DraftsError
func (ErrorEntry) AsError ¶
func (t ErrorEntry) AsError() (Error, error)
AsError returns the union data inside the ErrorEntry as a Error
func (ErrorEntry) AsFilterError ¶
func (t ErrorEntry) AsFilterError() (FilterError, error)
AsFilterError returns the union data inside the ErrorEntry as a FilterError
func (ErrorEntry) AsKDPError ¶
func (t ErrorEntry) AsKDPError() (KDPError, error)
AsKDPError returns the union data inside the ErrorEntry as a KDPError
func (ErrorEntry) AsKeywordError ¶
func (t ErrorEntry) AsKeywordError() (KeywordError, error)
AsKeywordError returns the union data inside the ErrorEntry as a KeywordError
func (ErrorEntry) AsLandingPageError ¶
func (t ErrorEntry) AsLandingPageError() (LandingPageError, error)
AsLandingPageError returns the union data inside the ErrorEntry as a LandingPageError
func (ErrorEntry) AsMarketplaceError ¶
func (t ErrorEntry) AsMarketplaceError() (MarketplaceError, error)
AsMarketplaceError returns the union data inside the ErrorEntry as a MarketplaceError
func (ErrorEntry) AsPageAsinsError ¶
func (t ErrorEntry) AsPageAsinsError() (PageAsinsError, error)
AsPageAsinsError returns the union data inside the ErrorEntry as a PageAsinsError
func (ErrorEntry) AsPaginationError ¶
func (t ErrorEntry) AsPaginationError() (PaginationError, error)
AsPaginationError returns the union data inside the ErrorEntry as a PaginationError
func (ErrorEntry) AsProductItemsError ¶
func (t ErrorEntry) AsProductItemsError() (ProductItemsError, error)
AsProductItemsError returns the union data inside the ErrorEntry as a ProductItemsError
func (ErrorEntry) AsProfileError ¶
func (t ErrorEntry) AsProfileError() (ProfileError, error)
AsProfileError returns the union data inside the ErrorEntry as a ProfileError
func (ErrorEntry) AsRecommendationError ¶
func (t ErrorEntry) AsRecommendationError() (RecommendationError, error)
AsRecommendationError returns the union data inside the ErrorEntry as a RecommendationError
func (ErrorEntry) AsSpooferError ¶
func (t ErrorEntry) AsSpooferError() (SpooferError, error)
AsSpooferError returns the union data inside the ErrorEntry as a SpooferError
func (ErrorEntry) AsTargetError ¶
func (t ErrorEntry) AsTargetError() (TargetError, error)
AsTargetError returns the union data inside the ErrorEntry as a TargetError
func (*ErrorEntry) FromAdFormatError ¶
func (t *ErrorEntry) FromAdFormatError(v AdFormatError) error
FromAdFormatError overwrites any union data inside the ErrorEntry as the provided AdFormatError
func (*ErrorEntry) FromAdGroupError ¶
func (t *ErrorEntry) FromAdGroupError(v AdGroupError) error
FromAdGroupError overwrites any union data inside the ErrorEntry as the provided AdGroupError
func (*ErrorEntry) FromAssetsError ¶
func (t *ErrorEntry) FromAssetsError(v AssetsError) error
FromAssetsError overwrites any union data inside the ErrorEntry as the provided AssetsError
func (*ErrorEntry) FromAuthorizationError ¶
func (t *ErrorEntry) FromAuthorizationError(v AuthorizationError) error
FromAuthorizationError overwrites any union data inside the ErrorEntry as the provided AuthorizationError
func (*ErrorEntry) FromBidError ¶
func (t *ErrorEntry) FromBidError(v BidError) error
FromBidError overwrites any union data inside the ErrorEntry as the provided BidError
func (*ErrorEntry) FromBrandsError ¶
func (t *ErrorEntry) FromBrandsError(v BrandsError) error
FromBrandsError overwrites any union data inside the ErrorEntry as the provided BrandsError
func (*ErrorEntry) FromBudgetError ¶
func (t *ErrorEntry) FromBudgetError(v BudgetError) error
FromBudgetError overwrites any union data inside the ErrorEntry as the provided BudgetError
func (*ErrorEntry) FromCampaignError ¶
func (t *ErrorEntry) FromCampaignError(v CampaignError) error
FromCampaignError overwrites any union data inside the ErrorEntry as the provided CampaignError
func (*ErrorEntry) FromCreativeError ¶
func (t *ErrorEntry) FromCreativeError(v CreativeError) error
FromCreativeError overwrites any union data inside the ErrorEntry as the provided CreativeError
func (*ErrorEntry) FromDraftsError ¶
func (t *ErrorEntry) FromDraftsError(v DraftsError) error
FromDraftsError overwrites any union data inside the ErrorEntry as the provided DraftsError
func (*ErrorEntry) FromError ¶
func (t *ErrorEntry) FromError(v Error) error
FromError overwrites any union data inside the ErrorEntry as the provided Error
func (*ErrorEntry) FromFilterError ¶
func (t *ErrorEntry) FromFilterError(v FilterError) error
FromFilterError overwrites any union data inside the ErrorEntry as the provided FilterError
func (*ErrorEntry) FromKDPError ¶
func (t *ErrorEntry) FromKDPError(v KDPError) error
FromKDPError overwrites any union data inside the ErrorEntry as the provided KDPError
func (*ErrorEntry) FromKeywordError ¶
func (t *ErrorEntry) FromKeywordError(v KeywordError) error
FromKeywordError overwrites any union data inside the ErrorEntry as the provided KeywordError
func (*ErrorEntry) FromLandingPageError ¶
func (t *ErrorEntry) FromLandingPageError(v LandingPageError) error
FromLandingPageError overwrites any union data inside the ErrorEntry as the provided LandingPageError
func (*ErrorEntry) FromMarketplaceError ¶
func (t *ErrorEntry) FromMarketplaceError(v MarketplaceError) error
FromMarketplaceError overwrites any union data inside the ErrorEntry as the provided MarketplaceError
func (*ErrorEntry) FromPageAsinsError ¶
func (t *ErrorEntry) FromPageAsinsError(v PageAsinsError) error
FromPageAsinsError overwrites any union data inside the ErrorEntry as the provided PageAsinsError
func (*ErrorEntry) FromPaginationError ¶
func (t *ErrorEntry) FromPaginationError(v PaginationError) error
FromPaginationError overwrites any union data inside the ErrorEntry as the provided PaginationError
func (*ErrorEntry) FromProductItemsError ¶
func (t *ErrorEntry) FromProductItemsError(v ProductItemsError) error
FromProductItemsError overwrites any union data inside the ErrorEntry as the provided ProductItemsError
func (*ErrorEntry) FromProfileError ¶
func (t *ErrorEntry) FromProfileError(v ProfileError) error
FromProfileError overwrites any union data inside the ErrorEntry as the provided ProfileError
func (*ErrorEntry) FromRecommendationError ¶
func (t *ErrorEntry) FromRecommendationError(v RecommendationError) error
FromRecommendationError overwrites any union data inside the ErrorEntry as the provided RecommendationError
func (*ErrorEntry) FromSpooferError ¶
func (t *ErrorEntry) FromSpooferError(v SpooferError) error
FromSpooferError overwrites any union data inside the ErrorEntry as the provided SpooferError
func (*ErrorEntry) FromTargetError ¶
func (t *ErrorEntry) FromTargetError(v TargetError) error
FromTargetError overwrites any union data inside the ErrorEntry as the provided TargetError
func (ErrorEntry) MarshalJSON ¶
func (t ErrorEntry) MarshalJSON() ([]byte, error)
func (*ErrorEntry) MergeAdFormatError ¶
func (t *ErrorEntry) MergeAdFormatError(v AdFormatError) error
MergeAdFormatError performs a merge with any union data inside the ErrorEntry, using the provided AdFormatError
func (*ErrorEntry) MergeAdGroupError ¶
func (t *ErrorEntry) MergeAdGroupError(v AdGroupError) error
MergeAdGroupError performs a merge with any union data inside the ErrorEntry, using the provided AdGroupError
func (*ErrorEntry) MergeAssetsError ¶
func (t *ErrorEntry) MergeAssetsError(v AssetsError) error
MergeAssetsError performs a merge with any union data inside the ErrorEntry, using the provided AssetsError
func (*ErrorEntry) MergeAuthorizationError ¶
func (t *ErrorEntry) MergeAuthorizationError(v AuthorizationError) error
MergeAuthorizationError performs a merge with any union data inside the ErrorEntry, using the provided AuthorizationError
func (*ErrorEntry) MergeBidError ¶
func (t *ErrorEntry) MergeBidError(v BidError) error
MergeBidError performs a merge with any union data inside the ErrorEntry, using the provided BidError
func (*ErrorEntry) MergeBrandsError ¶
func (t *ErrorEntry) MergeBrandsError(v BrandsError) error
MergeBrandsError performs a merge with any union data inside the ErrorEntry, using the provided BrandsError
func (*ErrorEntry) MergeBudgetError ¶
func (t *ErrorEntry) MergeBudgetError(v BudgetError) error
MergeBudgetError performs a merge with any union data inside the ErrorEntry, using the provided BudgetError
func (*ErrorEntry) MergeCampaignError ¶
func (t *ErrorEntry) MergeCampaignError(v CampaignError) error
MergeCampaignError performs a merge with any union data inside the ErrorEntry, using the provided CampaignError
func (*ErrorEntry) MergeCreativeError ¶
func (t *ErrorEntry) MergeCreativeError(v CreativeError) error
MergeCreativeError performs a merge with any union data inside the ErrorEntry, using the provided CreativeError
func (*ErrorEntry) MergeDraftsError ¶
func (t *ErrorEntry) MergeDraftsError(v DraftsError) error
MergeDraftsError performs a merge with any union data inside the ErrorEntry, using the provided DraftsError
func (*ErrorEntry) MergeError ¶
func (t *ErrorEntry) MergeError(v Error) error
MergeError performs a merge with any union data inside the ErrorEntry, using the provided Error
func (*ErrorEntry) MergeFilterError ¶
func (t *ErrorEntry) MergeFilterError(v FilterError) error
MergeFilterError performs a merge with any union data inside the ErrorEntry, using the provided FilterError
func (*ErrorEntry) MergeKDPError ¶
func (t *ErrorEntry) MergeKDPError(v KDPError) error
MergeKDPError performs a merge with any union data inside the ErrorEntry, using the provided KDPError
func (*ErrorEntry) MergeKeywordError ¶
func (t *ErrorEntry) MergeKeywordError(v KeywordError) error
MergeKeywordError performs a merge with any union data inside the ErrorEntry, using the provided KeywordError
func (*ErrorEntry) MergeLandingPageError ¶
func (t *ErrorEntry) MergeLandingPageError(v LandingPageError) error
MergeLandingPageError performs a merge with any union data inside the ErrorEntry, using the provided LandingPageError
func (*ErrorEntry) MergeMarketplaceError ¶
func (t *ErrorEntry) MergeMarketplaceError(v MarketplaceError) error
MergeMarketplaceError performs a merge with any union data inside the ErrorEntry, using the provided MarketplaceError
func (*ErrorEntry) MergePageAsinsError ¶
func (t *ErrorEntry) MergePageAsinsError(v PageAsinsError) error
MergePageAsinsError performs a merge with any union data inside the ErrorEntry, using the provided PageAsinsError
func (*ErrorEntry) MergePaginationError ¶
func (t *ErrorEntry) MergePaginationError(v PaginationError) error
MergePaginationError performs a merge with any union data inside the ErrorEntry, using the provided PaginationError
func (*ErrorEntry) MergeProductItemsError ¶
func (t *ErrorEntry) MergeProductItemsError(v ProductItemsError) error
MergeProductItemsError performs a merge with any union data inside the ErrorEntry, using the provided ProductItemsError
func (*ErrorEntry) MergeProfileError ¶
func (t *ErrorEntry) MergeProfileError(v ProfileError) error
MergeProfileError performs a merge with any union data inside the ErrorEntry, using the provided ProfileError
func (*ErrorEntry) MergeRecommendationError ¶
func (t *ErrorEntry) MergeRecommendationError(v RecommendationError) error
MergeRecommendationError performs a merge with any union data inside the ErrorEntry, using the provided RecommendationError
func (*ErrorEntry) MergeSpooferError ¶
func (t *ErrorEntry) MergeSpooferError(v SpooferError) error
MergeSpooferError performs a merge with any union data inside the ErrorEntry, using the provided SpooferError
func (*ErrorEntry) MergeTargetError ¶
func (t *ErrorEntry) MergeTargetError(v TargetError) error
MergeTargetError performs a merge with any union data inside the ErrorEntry, using the provided TargetError
func (*ErrorEntry) UnmarshalJSON ¶
func (t *ErrorEntry) UnmarshalJSON(b []byte) error
type FilterError ¶
type FilterError struct {
FilterError *BasicErrorObject `json:"FilterError,omitempty"`
}
FilterError defines model for FilterError.
type GetAdGroupParams ¶
type GetAdGroupParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetAdGroupParams defines parameters for GetAdGroup.
type GetAdGroupResp ¶
type GetAdGroupResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbadgroupV3JSON200 *SBAdGroup ApplicationvndErrorV3JSON404 *Error }
func ParseGetAdGroupResp ¶
func ParseGetAdGroupResp(rsp *http.Response) (*GetAdGroupResp, error)
ParseGetAdGroupResp parses an HTTP response from a GetAdGroupWithResponse call
func (GetAdGroupResp) Status ¶
func (r GetAdGroupResp) Status() string
Status returns HTTPResponse.Status
func (GetAdGroupResp) StatusCode ¶
func (r GetAdGroupResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBatchGetCampaignsresponseV32Response ¶
type GetBatchGetCampaignsresponseV32Response = []GetBatchGetCampaignsresponseV32Response_Item
GetBatchGetCampaignsresponseV32Response defines model for GetBatchGetCampaignsresponseV32Response.
type GetBatchGetCampaignsresponseV32Response_Item ¶
type GetBatchGetCampaignsresponseV32Response_Item struct {
// contains filtered or unexported fields
}
GetBatchGetCampaignsresponseV32Response_Item defines model for GetBatchGetCampaignsresponseV32Response.Item.
func (GetBatchGetCampaignsresponseV32Response_Item) AsSBCampaignResponseCommon32 ¶
func (t GetBatchGetCampaignsresponseV32Response_Item) AsSBCampaignResponseCommon32() (SBCampaignResponseCommon32, error)
AsSBCampaignResponseCommon32 returns the union data inside the GetBatchGetCampaignsresponseV32Response_Item as a SBCampaignResponseCommon32
func (GetBatchGetCampaignsresponseV32Response_Item) AsSBVideoCampaignResponseCommon ¶
func (t GetBatchGetCampaignsresponseV32Response_Item) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
AsSBVideoCampaignResponseCommon returns the union data inside the GetBatchGetCampaignsresponseV32Response_Item as a SBVideoCampaignResponseCommon
func (*GetBatchGetCampaignsresponseV32Response_Item) FromSBCampaignResponseCommon32 ¶
func (t *GetBatchGetCampaignsresponseV32Response_Item) FromSBCampaignResponseCommon32(v SBCampaignResponseCommon32) error
FromSBCampaignResponseCommon32 overwrites any union data inside the GetBatchGetCampaignsresponseV32Response_Item as the provided SBCampaignResponseCommon32
func (*GetBatchGetCampaignsresponseV32Response_Item) FromSBVideoCampaignResponseCommon ¶
func (t *GetBatchGetCampaignsresponseV32Response_Item) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
FromSBVideoCampaignResponseCommon overwrites any union data inside the GetBatchGetCampaignsresponseV32Response_Item as the provided SBVideoCampaignResponseCommon
func (GetBatchGetCampaignsresponseV32Response_Item) MarshalJSON ¶
func (t GetBatchGetCampaignsresponseV32Response_Item) MarshalJSON() ([]byte, error)
func (*GetBatchGetCampaignsresponseV32Response_Item) MergeSBCampaignResponseCommon32 ¶
func (t *GetBatchGetCampaignsresponseV32Response_Item) MergeSBCampaignResponseCommon32(v SBCampaignResponseCommon32) error
MergeSBCampaignResponseCommon32 performs a merge with any union data inside the GetBatchGetCampaignsresponseV32Response_Item, using the provided SBCampaignResponseCommon32
func (*GetBatchGetCampaignsresponseV32Response_Item) MergeSBVideoCampaignResponseCommon ¶
func (t *GetBatchGetCampaignsresponseV32Response_Item) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
MergeSBVideoCampaignResponseCommon performs a merge with any union data inside the GetBatchGetCampaignsresponseV32Response_Item, using the provided SBVideoCampaignResponseCommon
func (*GetBatchGetCampaignsresponseV32Response_Item) UnmarshalJSON ¶
func (t *GetBatchGetCampaignsresponseV32Response_Item) UnmarshalJSON(b []byte) error
type GetBatchGetCampaignsresponseV33Response ¶
type GetBatchGetCampaignsresponseV33Response = []GetBatchGetCampaignsresponseV33Response_Item
GetBatchGetCampaignsresponseV33Response defines model for GetBatchGetCampaignsresponseV33Response.
type GetBatchGetCampaignsresponseV33Response_Item ¶
type GetBatchGetCampaignsresponseV33Response_Item struct {
// contains filtered or unexported fields
}
GetBatchGetCampaignsresponseV33Response_Item defines model for GetBatchGetCampaignsresponseV33Response.Item.
func (GetBatchGetCampaignsresponseV33Response_Item) AsSBCampaignResponseCommonV33 ¶
func (t GetBatchGetCampaignsresponseV33Response_Item) AsSBCampaignResponseCommonV33() (SBCampaignResponseCommonV33, error)
AsSBCampaignResponseCommonV33 returns the union data inside the GetBatchGetCampaignsresponseV33Response_Item as a SBCampaignResponseCommonV33
func (GetBatchGetCampaignsresponseV33Response_Item) AsSBVideoCampaignResponseCommon ¶
func (t GetBatchGetCampaignsresponseV33Response_Item) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
AsSBVideoCampaignResponseCommon returns the union data inside the GetBatchGetCampaignsresponseV33Response_Item as a SBVideoCampaignResponseCommon
func (*GetBatchGetCampaignsresponseV33Response_Item) FromSBCampaignResponseCommonV33 ¶
func (t *GetBatchGetCampaignsresponseV33Response_Item) FromSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
FromSBCampaignResponseCommonV33 overwrites any union data inside the GetBatchGetCampaignsresponseV33Response_Item as the provided SBCampaignResponseCommonV33
func (*GetBatchGetCampaignsresponseV33Response_Item) FromSBVideoCampaignResponseCommon ¶
func (t *GetBatchGetCampaignsresponseV33Response_Item) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
FromSBVideoCampaignResponseCommon overwrites any union data inside the GetBatchGetCampaignsresponseV33Response_Item as the provided SBVideoCampaignResponseCommon
func (GetBatchGetCampaignsresponseV33Response_Item) MarshalJSON ¶
func (t GetBatchGetCampaignsresponseV33Response_Item) MarshalJSON() ([]byte, error)
func (*GetBatchGetCampaignsresponseV33Response_Item) MergeSBCampaignResponseCommonV33 ¶
func (t *GetBatchGetCampaignsresponseV33Response_Item) MergeSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
MergeSBCampaignResponseCommonV33 performs a merge with any union data inside the GetBatchGetCampaignsresponseV33Response_Item, using the provided SBCampaignResponseCommonV33
func (*GetBatchGetCampaignsresponseV33Response_Item) MergeSBVideoCampaignResponseCommon ¶
func (t *GetBatchGetCampaignsresponseV33Response_Item) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
MergeSBVideoCampaignResponseCommon performs a merge with any union data inside the GetBatchGetCampaignsresponseV33Response_Item, using the provided SBVideoCampaignResponseCommon
func (*GetBatchGetCampaignsresponseV33Response_Item) UnmarshalJSON ¶
func (t *GetBatchGetCampaignsresponseV33Response_Item) UnmarshalJSON(b []byte) error
type GetBidsRecommendationsJSONBody ¶
type GetBidsRecommendationsJSONBody struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // CampaignId The identifier of the campaign for which bid recommendations are created. CampaignId *int64 `json:"campaignId,omitempty"` // CostType Optional. Support `CPC` (cost per click) and `VCPM` (cost per thousand viewable impressions). If no costType is selected and no outcome is selected, then it will default to `CPC`. If an outcome is specified without a costType, then it will result in an error. CostType *string `json:"costType,omitempty"` Keywords *[]SBBidRecommendationKeyword `json:"keywords,omitempty"` // Outcome The outcome type of the campaign. // If no outcome is selected then it will default to `PAGE_VISIT`. // | outcomeType | description | // |-----------|-------------| // | BRAND_IMPRESSION_SHARE | Brand Impression Share (BIS) is Top of search (ToS) impression shares for branded search terms. | // | PAGE_VISIT | Facilitate consumers' awareness of your brand | Outcome *OutcomeType `json:"outcome,omitempty"` Targets *[]SBTargetingExpressions `json:"targets,omitempty"` ThemeTypes *[]ThemeType `json:"themeTypes,omitempty"` }
GetBidsRecommendationsJSONBody defines parameters for GetBidsRecommendations.
type GetBidsRecommendationsJSONRequestBody ¶
type GetBidsRecommendationsJSONRequestBody GetBidsRecommendationsJSONBody
GetBidsRecommendationsJSONRequestBody defines body for GetBidsRecommendations for application/json ContentType.
type GetBidsRecommendationsParams ¶
type GetBidsRecommendationsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetBidsRecommendationsParams defines parameters for GetBidsRecommendations.
type GetBidsRecommendationsResp ¶
type GetBidsRecommendationsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbbidsrecommendationV3JSON200 *SDRecommendationsBids }
func ParseGetBidsRecommendationsResp ¶
func ParseGetBidsRecommendationsResp(rsp *http.Response) (*GetBidsRecommendationsResp, error)
ParseGetBidsRecommendationsResp parses an HTTP response from a GetBidsRecommendationsWithResponse call
func (GetBidsRecommendationsResp) Status ¶
func (r GetBidsRecommendationsResp) Status() string
Status returns HTTPResponse.Status
func (GetBidsRecommendationsResp) StatusCode ¶
func (r GetBidsRecommendationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody ¶
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody struct {
// contains filtered or unexported fields
}
GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody defines parameters for GetBrandRecommendations.
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody0 ¶
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody0 struct { // CategoryId The category identifier for which to get recommendations. CategoryId *int64 `json:"categoryId,omitempty"` }
GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody0 defines parameters for GetBrandRecommendations.
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody1 ¶
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody1 struct { // Keyword The keyword for which to get recommendations. Keyword *string `json:"keyword,omitempty"` }
GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody1 defines parameters for GetBrandRecommendations.
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody ¶
type GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONBody
GetBrandRecommendationsApplicationVndSbbrandrecommendationsV30PlusJSONRequestBody defines body for GetBrandRecommendations for application/vnd.sbbrandrecommendations.v3.0+json ContentType.
type GetBrandRecommendationsParams ¶
type GetBrandRecommendationsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetBrandRecommendationsParams defines parameters for GetBrandRecommendations.
type GetBrandRecommendationsResp ¶
type GetBrandRecommendationsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbbrandrecommendationsresponseV30JSON200 *SbRecommendationsTargetsBrand }
func ParseGetBrandRecommendationsResp ¶
func ParseGetBrandRecommendationsResp(rsp *http.Response) (*GetBrandRecommendationsResp, error)
ParseGetBrandRecommendationsResp parses an HTTP response from a GetBrandRecommendationsWithResponse call
func (GetBrandRecommendationsResp) Status ¶
func (r GetBrandRecommendationsResp) Status() string
Status returns HTTPResponse.Status
func (GetBrandRecommendationsResp) StatusCode ¶
func (r GetBrandRecommendationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBrandResponse ¶
type GetBrandResponse = []struct { // BrandEntityId The Brand entity identifier. BrandEntityId *string `json:"brandEntityId,omitempty"` // BrandId The Brand identifier. BrandId *string `json:"brandId,omitempty"` // BrandRegistryName The Brand name. BrandRegistryName *string `json:"brandRegistryName,omitempty"` }
GetBrandResponse defines model for GetBrandResponse.
type GetBrandsParams ¶
type GetBrandsParams struct { // BrandTypeFilter The returned array is filtered to include only brands with brand type set to one of the values in the specified comma-delimited list. Returns all brands if not specified. BrandTypeFilter *BrandType `form:"brandTypeFilter,omitempty" json:"brandTypeFilter,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetBrandsParams defines parameters for GetBrands.
type GetBrandsResp ¶
type GetBrandsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndBrandV3JSON200 *GetBrandResponse }
func ParseGetBrandsResp ¶
func ParseGetBrandsResp(rsp *http.Response) (*GetBrandsResp, error)
ParseGetBrandsResp parses an HTTP response from a GetBrandsWithResponse call
func (GetBrandsResp) Status ¶
func (r GetBrandsResp) Status() string
Status returns HTTPResponse.Status
func (GetBrandsResp) StatusCode ¶
func (r GetBrandsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCampaignParams ¶
type GetCampaignParams struct { // Locale The returned array includes only keywords associated with locale matching those specified by identifier. Locale *string `form:"locale,omitempty" json:"locale,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetCampaignParams defines parameters for GetCampaign.
type GetCampaignResp ¶
type GetCampaignResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbcampaignV3JSON200 *SBCampaignResponse ApplicationvndSbcampaignV32JSON200 *struct { // contains filtered or unexported fields } ApplicationvndSbcampaignV33JSON200 *SBCampaignResponseV33 ApplicationvndErrorV3JSON404 *Error }
func ParseGetCampaignResp ¶
func ParseGetCampaignResp(rsp *http.Response) (*GetCampaignResp, error)
ParseGetCampaignResp parses an HTTP response from a GetCampaignWithResponse call
func (GetCampaignResp) Status ¶
func (r GetCampaignResp) Status() string
Status returns HTTPResponse.Status
func (GetCampaignResp) StatusCode ¶
func (r GetCampaignResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDraftCampaignParams ¶
type GetDraftCampaignParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetDraftCampaignParams defines parameters for GetDraftCampaign.
type GetDraftCampaignResp ¶
type GetDraftCampaignResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbdraftcampaignV3JSON200 *SBDraftCampaign ApplicationvndSbdraftcampaignV32JSON200 *SBDraftCampaignV32 ApplicationvndSbdraftcampaignV33JSON200 *SBDraftCampaignV33 ApplicationvndErrorV3JSON404 *Error }
func ParseGetDraftCampaignResp ¶
func ParseGetDraftCampaignResp(rsp *http.Response) (*GetDraftCampaignResp, error)
ParseGetDraftCampaignResp parses an HTTP response from a GetDraftCampaignWithResponse call
func (GetDraftCampaignResp) Status ¶
func (r GetDraftCampaignResp) Status() string
Status returns HTTPResponse.Status
func (GetDraftCampaignResp) StatusCode ¶
func (r GetDraftCampaignResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetKeywordParams ¶
type GetKeywordParams struct { // Locale The returned array includes only keywords associated with locale matching those specified by identifier. Locale *string `form:"locale,omitempty" json:"locale,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetKeywordParams defines parameters for GetKeyword.
type GetKeywordResp ¶
type GetKeywordResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordV3JSON200 *SBKeyword ApplicationvndErrorV3JSON404 *Error }
func ParseGetKeywordResp ¶
func ParseGetKeywordResp(rsp *http.Response) (*GetKeywordResp, error)
ParseGetKeywordResp parses an HTTP response from a GetKeywordWithResponse call
func (GetKeywordResp) Status ¶
func (r GetKeywordResp) Status() string
Status returns HTTPResponse.Status
func (GetKeywordResp) StatusCode ¶
func (r GetKeywordResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMediaDescriberResponse ¶
type GetMediaDescriberResponse struct { // MediaId The Media identifier. MediaId *MediaId `json:"mediaId,omitempty"` // OriginalMediaUrl This is a signed URL which returns the original media in .mp4 file extension. The URL is only active for 7 days and requires to be regenerated if the video is not downloaded within 7 days. If you try to upload the downloaded video using the Asset Library API and get an error, then please retry upload after changing the file extension to .mov. OriginalMediaUrl *string `json:"originalMediaUrl,omitempty"` // PublishedMediaUrl The preview URL of the media. It is only available when status is `Available`. PublishedMediaUrl *string `json:"publishedMediaUrl,omitempty"` // Status Media status: // * `Processing` - The media is being processed // * `PendingDeepValidation` - The media is pending additional validation carried out during media conversion. // * `Available` - Media has successfully finished validation and conversion and the media is published. // * `Failed` - Media processing failed Status *MediaStatus `json:"status,omitempty"` StatusMetadata *[]struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` } `json:"statusMetadata,omitempty"` }
GetMediaDescriberResponse defines model for GetMediaDescriberResponse.
type GetNegativeKeywordParams ¶
type GetNegativeKeywordParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetNegativeKeywordParams defines parameters for GetNegativeKeyword.
type GetNegativeKeywordResp ¶
type GetNegativeKeywordResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbnegativekeywordV3JSON200 *GetSbNegativeKeywords }
func ParseGetNegativeKeywordResp ¶
func ParseGetNegativeKeywordResp(rsp *http.Response) (*GetNegativeKeywordResp, error)
ParseGetNegativeKeywordResp parses an HTTP response from a GetNegativeKeywordWithResponse call
func (GetNegativeKeywordResp) Status ¶
func (r GetNegativeKeywordResp) Status() string
Status returns HTTPResponse.Status
func (GetNegativeKeywordResp) StatusCode ¶
func (r GetNegativeKeywordResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNegativeTargetResp ¶
type GetNegativeTargetResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbnegativetargetV3JSON200 *SBNegativeTargetingClause ApplicationvndSberrorV30JSON400 *BadRequest400 ApplicationvndSberrorV30JSON404 *NotFound404 }
func ParseGetNegativeTargetResp ¶
func ParseGetNegativeTargetResp(rsp *http.Response) (*GetNegativeTargetResp, error)
ParseGetNegativeTargetResp parses an HTTP response from a GetNegativeTargetWithResponse call
func (GetNegativeTargetResp) Status ¶
func (r GetNegativeTargetResp) Status() string
Status returns HTTPResponse.Status
func (GetNegativeTargetResp) StatusCode ¶
func (r GetNegativeTargetResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody ¶
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody struct { // Filters Restricts recommendations to the criteria specified in the filters. Filters *[]GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody_Filters_Item `json:"filters,omitempty"` // MaxResults Sets a limit on the number of results returned by an operation. MaxResults *MaxResultsRecommendations `json:"maxResults,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` }
GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody defines parameters for GetProductRecommendations.
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBodyFilters0 ¶ added in v0.0.2
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBodyFilters0 struct { FilterType *GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBodyFilters0FilterType `json:"filterType,omitempty"` // Values A list of ASINs. Values *[]string `json:"values,omitempty"` }
GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBodyFilters0 defines parameters for GetProductRecommendations.
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody_Filters_Item ¶
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody_Filters_Item struct {
// contains filtered or unexported fields
}
GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody_Filters_Item defines parameters for GetProductRecommendations.
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody ¶
type GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONBody
GetProductRecommendationsApplicationVndSbproductrecommendationsV30PlusJSONRequestBody defines body for GetProductRecommendations for application/vnd.sbproductrecommendations.v3.0+json ContentType.
type GetProductRecommendationsParams ¶
type GetProductRecommendationsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetProductRecommendationsParams defines parameters for GetProductRecommendations.
type GetProductRecommendationsResp ¶
type GetProductRecommendationsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbproductrecommendationsresponseV30JSON200 *struct { // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` RecommendedProducts *[]struct { // RecommendedTargetAsin The recommended target ASIN. RecommendedTargetAsin *string `json:"recommendedTargetAsin,omitempty"` } `json:"recommendedProducts,omitempty"` } }
func ParseGetProductRecommendationsResp ¶
func ParseGetProductRecommendationsResp(rsp *http.Response) (*GetProductRecommendationsResp, error)
ParseGetProductRecommendationsResp parses an HTTP response from a GetProductRecommendationsWithResponse call
func (GetProductRecommendationsResp) Status ¶
func (r GetProductRecommendationsResp) Status() string
Status returns HTTPResponse.Status
func (GetProductRecommendationsResp) StatusCode ¶
func (r GetProductRecommendationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSbModerationCampaignsCampaignIdParams ¶
type GetSbModerationCampaignsCampaignIdParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetSbModerationCampaignsCampaignIdParams defines parameters for GetSbModerationCampaignsCampaignId.
type GetSbModerationCampaignsCampaignIdResp ¶
type GetSbModerationCampaignsCampaignIdResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbmoderationV3JSON200 *SbModerationCampaignsResponse ApplicationvndErrorV3JSON404 *Error }
func ParseGetSbModerationCampaignsCampaignIdResp ¶
func ParseGetSbModerationCampaignsCampaignIdResp(rsp *http.Response) (*GetSbModerationCampaignsCampaignIdResp, error)
ParseGetSbModerationCampaignsCampaignIdResp parses an HTTP response from a GetSbModerationCampaignsCampaignIdWithResponse call
func (GetSbModerationCampaignsCampaignIdResp) Status ¶
func (r GetSbModerationCampaignsCampaignIdResp) Status() string
Status returns HTTPResponse.Status
func (GetSbModerationCampaignsCampaignIdResp) StatusCode ¶
func (r GetSbModerationCampaignsCampaignIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSbNegativeKeywords ¶
type GetSbNegativeKeywords struct { // AdGroupId The identifier of the ad group to which the negative keyword is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of the campaign to which the negative keyword is associated. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordId The identifier of the negative keyword. KeywordId *int64 `json:"keywordId,omitempty"` // KeywordText The keyword text. Maximum length of string is ten words if `matchType` is set to `negativeExact`. Maximum length is 4 words if `matchType` is set to `negativePhrase`. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` // State The current state of the negative keyword. Newly created SB negative keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation review. 'enabled' refers to negative keywords that are active. 'archived' refers to negative keywords that are permanently inactive and cannot be returned to the 'enabled' state. State *SBNegativeKeywordState `json:"state,omitempty"` }
GetSbNegativeKeywords defines model for GetSbNegativeKeywords.
type GetStoresAssetsResponse ¶
type GetStoresAssetsResponse = interface{}
GetStoresAssetsResponse defines model for GetStoresAssetsResponse.
type GetTargetParams ¶
type GetTargetParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetTargetParams defines parameters for GetTarget.
type GetTargetResp ¶
type GetTargetResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbtargetV3JSON200 *SBTargetingClause ApplicationvndSberrorV30JSON400 *BadRequest400 ApplicationvndSberrorV30JSON404 *NotFound404 }
func ParseGetTargetResp ¶
func ParseGetTargetResp(rsp *http.Response) (*GetTargetResp, error)
ParseGetTargetResp parses an HTTP response from a GetTargetWithResponse call
func (GetTargetResp) Status ¶
func (r GetTargetResp) Status() string
Status returns HTTPResponse.Status
func (GetTargetResp) StatusCode ¶
func (r GetTargetResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTargetingCategoriesJSONBody ¶
type GetTargetingCategoriesJSONBody struct { // Asins A list of ASINs. Asins *[]string `json:"asins,omitempty"` // SupplySource The supply source of the campaign. Use `AMAZON` for placements on Amazon website. Use `STREAMING_VIDEO` for off-site video placements such as IMDb TV. Default value is `AMAZON`. SupplySource *GetTargetingCategoriesJSONBodySupplySource `json:"supplySource,omitempty"` }
GetTargetingCategoriesJSONBody defines parameters for GetTargetingCategories.
type GetTargetingCategoriesJSONBodySupplySource ¶
type GetTargetingCategoriesJSONBodySupplySource string
GetTargetingCategoriesJSONBodySupplySource defines parameters for GetTargetingCategories.
const ( AMAZON GetTargetingCategoriesJSONBodySupplySource = "AMAZON" STREAMINGVIDEO GetTargetingCategoriesJSONBodySupplySource = "STREAMING_VIDEO" )
Defines values for GetTargetingCategoriesJSONBodySupplySource.
type GetTargetingCategoriesJSONRequestBody ¶
type GetTargetingCategoriesJSONRequestBody GetTargetingCategoriesJSONBody
GetTargetingCategoriesJSONRequestBody defines body for GetTargetingCategories for application/json ContentType.
type GetTargetingCategoriesParams ¶
type GetTargetingCategoriesParams struct { // Locale Return the categories in the specified locale. Locale *GetTargetingCategoriesParamsLocale `form:"locale,omitempty" json:"locale,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetTargetingCategoriesParams defines parameters for GetTargetingCategories.
type GetTargetingCategoriesParamsLocale ¶
type GetTargetingCategoriesParamsLocale string
GetTargetingCategoriesParamsLocale defines parameters for GetTargetingCategories.
const ( ArAE GetTargetingCategoriesParamsLocale = "ar_AE" DeDE GetTargetingCategoriesParamsLocale = "de_DE" EnAE GetTargetingCategoriesParamsLocale = "en_AE" EnAU GetTargetingCategoriesParamsLocale = "en_AU" EnCA GetTargetingCategoriesParamsLocale = "en_CA" EnGB GetTargetingCategoriesParamsLocale = "en_GB" EnIN GetTargetingCategoriesParamsLocale = "en_IN" EnSG GetTargetingCategoriesParamsLocale = "en_SG" EnUS GetTargetingCategoriesParamsLocale = "en_US" EsES GetTargetingCategoriesParamsLocale = "es_ES" EsMX GetTargetingCategoriesParamsLocale = "es_MX" FrCA GetTargetingCategoriesParamsLocale = "fr_CA" FrFR GetTargetingCategoriesParamsLocale = "fr_FR" HiIN GetTargetingCategoriesParamsLocale = "hi_IN" ItIT GetTargetingCategoriesParamsLocale = "it_IT" JaJP GetTargetingCategoriesParamsLocale = "ja_JP" KoKR GetTargetingCategoriesParamsLocale = "ko_KR" NlNL GetTargetingCategoriesParamsLocale = "nl_NL" PlPL GetTargetingCategoriesParamsLocale = "pl_PL" PtBR GetTargetingCategoriesParamsLocale = "pt_BR" SvSE GetTargetingCategoriesParamsLocale = "sv_SE" TaIN GetTargetingCategoriesParamsLocale = "ta_IN" ThTH GetTargetingCategoriesParamsLocale = "th_TH" TrTR GetTargetingCategoriesParamsLocale = "tr_TR" ViVN GetTargetingCategoriesParamsLocale = "vi_VN" ZhCN GetTargetingCategoriesParamsLocale = "zh_CN" )
Defines values for GetTargetingCategoriesParamsLocale.
type GetTargetingCategoriesResp ¶
type GetTargetingCategoriesResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbcategoryrecommendationsresponseV32JSON200 *SbRecommendationsTargetsCategory }
func ParseGetTargetingCategoriesResp ¶
func ParseGetTargetingCategoriesResp(rsp *http.Response) (*GetTargetingCategoriesResp, error)
ParseGetTargetingCategoriesResp parses an HTTP response from a GetTargetingCategoriesWithResponse call
func (GetTargetingCategoriesResp) Status ¶
func (r GetTargetingCategoriesResp) Status() string
Status returns HTTPResponse.Status
func (GetTargetingCategoriesResp) StatusCode ¶
func (r GetTargetingCategoriesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetV2ReportsReportIdParams ¶
type GetV2ReportsReportIdParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
GetV2ReportsReportIdParams defines parameters for GetV2ReportsReportId.
type GetV2ReportsReportIdResp ¶
type GetV2ReportsReportIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *V2ReportIdResponse JSON404 *Error }
func ParseGetV2ReportsReportIdResp ¶
func ParseGetV2ReportsReportIdResp(rsp *http.Response) (*GetV2ReportsReportIdResp, error)
ParseGetV2ReportsReportIdResp parses an HTTP response from a GetV2ReportsReportIdWithResponse call
func (GetV2ReportsReportIdResp) Status ¶
func (r GetV2ReportsReportIdResp) Status() string
Status returns HTTPResponse.Status
func (GetV2ReportsReportIdResp) StatusCode ¶
func (r GetV2ReportsReportIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type KDPError ¶
type KDPError struct {
KDPError *BasicErrorObject `json:"KDPError,omitempty"`
}
KDPError defines model for KDPError.
type KeywordError ¶
type KeywordError struct { KeywordError *struct { Bid *string `json:"bid,omitempty"` KeywordText *string `json:"keywordText,omitempty"` Location *string `json:"location,omitempty"` MatchType *string `json:"matchType,omitempty"` Message string `json:"message"` Note *string `json:"note,omitempty"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` } `json:"KeywordError,omitempty"` }
KeywordError defines model for KeywordError.
type LandingPageError ¶
type LandingPageError struct { LandingPageError *struct { Actual *string `json:"actual,omitempty"` Expected *string `json:"expected,omitempty"` Location *string `json:"location,omitempty"` Message string `json:"message"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` } `json:"LandingPageError,omitempty"` }
LandingPageError defines model for LandingPageError.
type ListAdGroupsParams ¶
type ListAdGroupsParams struct { // StartIndex Sets a zero-based offset into the requested set of ad groups. Use in conjunction with the `count` parameter to control pagination of the returned array. StartIndex *int `form:"startIndex,omitempty" json:"startIndex,omitempty"` // Count Sets the number of ad groups in the returned array. Use in conjunction with the `startIndex` parameter to control pagination. For example, to return the first ten ad groups set `startIndex=0` and `count=10`. To return the next ten ad groups, set `startIndex=10` and `count=10`, and so on. Count *int `form:"count,omitempty" json:"count,omitempty"` // Name The returned array includes only ad groups with the specified name. Name *string `form:"name,omitempty" json:"name,omitempty"` // AdGroupIdFilter The returned array includes only ad groups with identifiers matching those specified in the comma-delimited string. AdGroupIdFilter *string `form:"adGroupIdFilter,omitempty" json:"adGroupIdFilter,omitempty"` // CampaignIdFilter The returned array includes only ad groups associated with campaign identifiers matching those specified in the comma-delimited string. CampaignIdFilter *string `form:"campaignIdFilter,omitempty" json:"campaignIdFilter,omitempty"` // CreativeType Filter by the type of creative the campaign is associated with. To get ad groups associated with non-video campaigns specify 'productCollection'. To get ad groups associated with video campaigns, this must be set to 'video'. Returns all ad groups if not specified. CreativeType *CreativeType `form:"creativeType,omitempty" json:"creativeType,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ListAdGroupsParams defines parameters for ListAdGroups.
type ListAdGroupsResp ¶
type ListAdGroupsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbadgroupV3JSON200 *[]SBAdGroup ApplicationvndErrorV3JSON404 *Error }
func ParseListAdGroupsResp ¶
func ParseListAdGroupsResp(rsp *http.Response) (*ListAdGroupsResp, error)
ParseListAdGroupsResp parses an HTTP response from a ListAdGroupsWithResponse call
func (ListAdGroupsResp) Status ¶
func (r ListAdGroupsResp) Status() string
Status returns HTTPResponse.Status
func (ListAdGroupsResp) StatusCode ¶
func (r ListAdGroupsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAsinsParams ¶
type ListAsinsParams struct { // PageUrl For sellers, the address of a Store page. Vendors may also specify the address of a custom landing page. For more information, see the [Stores section](https://advertising.amazon.com/help#GPRM3ZHEXEY5RBFZ) of the Amazon Ads support center. PageUrl string `form:"pageUrl" json:"pageUrl"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ListAsinsParams defines parameters for ListAsins.
type ListAsinsResp ¶
type ListAsinsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndPageasinsV3JSON200 *PageAsinsResponse }
func ParseListAsinsResp ¶
func ParseListAsinsResp(rsp *http.Response) (*ListAsinsResp, error)
ParseListAsinsResp parses an HTTP response from a ListAsinsWithResponse call
func (ListAsinsResp) Status ¶
func (r ListAsinsResp) Status() string
Status returns HTTPResponse.Status
func (ListAsinsResp) StatusCode ¶
func (r ListAsinsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAssetsParams ¶
type ListAssetsParams struct { // BrandEntityId For sellers, this field is required. It is the Brand entity identifier of the Brand for which assets are returned. This identifier is retrieved using the [getBrands operation](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/brands). For vendors, this field is optional. If a vendor does not specify this field, all assets associated with the vendor are returned. For more information about the [difference between a seller and a vendor](https://advertising.amazon.com/resources/faq#advertising-basics), see the Amazon Ads FAQ. BrandEntityId *string `form:"brandEntityId,omitempty" json:"brandEntityId,omitempty"` // MediaType Specifies the media types used to filter the returned array. Currently, only the `brandLogo` type is supported. If not specified, all media types are returned. MediaType *MediaType `form:"mediaType,omitempty" json:"mediaType,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ListAssetsParams defines parameters for ListAssets.
type ListAssetsResp ¶
type ListAssetsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndMediaassetV3JSON200 *GetStoresAssetsResponse }
func ParseListAssetsResp ¶
func ParseListAssetsResp(rsp *http.Response) (*ListAssetsResp, error)
ParseListAssetsResp parses an HTTP response from a ListAssetsWithResponse call
func (ListAssetsResp) Status ¶
func (r ListAssetsResp) Status() string
Status returns HTTPResponse.Status
func (ListAssetsResp) StatusCode ¶
func (r ListAssetsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCampaignsParams ¶
type ListCampaignsParams struct { // StartIndex Sets a zero-based offset into the requested set of campaigns. Use in conjunction with the `count` parameter to control pagination of the returned array. StartIndex *int `form:"startIndex,omitempty" json:"startIndex,omitempty"` // Count Sets the number of campaigns in the returned array. Use in conjunction with the `startIndex` parameter to control pagination. For example, to return the first ten campaigns set `startIndex=0` and `count=10`. To return the next ten campaigns, set `startIndex=10` and `count=10`, and so on. Count *int `form:"count,omitempty" json:"count,omitempty"` // StateFilter The returned array is filtered to include only campaigns with state set to one of the values in the specified comma-delimited list. Defaults to `enabled` and `paused`.<br/><br/> // **Note** that Campaigns rejected during moderation have state set to `archived`. StateFilter *State `form:"stateFilter,omitempty" json:"stateFilter,omitempty"` // Name The returned array includes only campaigns with the specified name. Name *string `form:"name,omitempty" json:"name,omitempty"` // PortfolioIdFilter The returned array includes only campaigns associated with Portfolio identifiers matching those specified in the comma-delimited string. PortfolioIdFilter *string `form:"portfolioIdFilter,omitempty" json:"portfolioIdFilter,omitempty"` // CampaignIdFilter The returned array includes only campaigns with identifiers matching those specified in the comma-delimited string. CampaignIdFilter *string `form:"campaignIdFilter,omitempty" json:"campaignIdFilter,omitempty"` // AdFormatFilter The returned array includes only campaigns with ad format matching those specified in the comma-delimited adFormats. Returns all campaigns if not specified. AdFormatFilter *AdFormat `form:"adFormatFilter,omitempty" json:"adFormatFilter,omitempty"` // CreativeType Filter by the type of creative the campaign is associated with. To get non-video campaigns specify 'productCollection'. To get video campaigns, this must be set to 'video'. Returns all campaigns if not specified. CreativeType *CreativeType `form:"creativeType,omitempty" json:"creativeType,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ListCampaignsParams defines parameters for ListCampaigns.
type ListCampaignsResp ¶
type ListCampaignsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndBatchgetcampaignsresponseV32JSON200 *GetBatchGetCampaignsresponseV32Response ApplicationvndBatchgetcampaignsresponseV33JSON200 *GetBatchGetCampaignsresponseV33Response ApplicationvndSbcampaignV3JSON200 *[]SBListCampaignsResponse }
func ParseListCampaignsResp ¶
func ParseListCampaignsResp(rsp *http.Response) (*ListCampaignsResp, error)
ParseListCampaignsResp parses an HTTP response from a ListCampaignsWithResponse call
func (ListCampaignsResp) Status ¶
func (r ListCampaignsResp) Status() string
Status returns HTTPResponse.Status
func (ListCampaignsResp) StatusCode ¶
func (r ListCampaignsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDraftCampaignsParams ¶
type ListDraftCampaignsParams struct { // StartIndex Sets a zero-based offset into the requested set of draft campaigns. Use in conjunction with the `count` parameter to control pagination of the returned array. StartIndex *int `form:"startIndex,omitempty" json:"startIndex,omitempty"` // Count Sets the number of draft campaigns in the returned array. Use in conjunction with the `startIndex` parameter to control pagination. For example, to return the first ten ad groups set `startIndex=0` and `count=10`. To return the next ten ad groups, set `startIndex=10` and `count=10`, and so on. Count *int `form:"count,omitempty" json:"count,omitempty"` // Name The returned array only includes draft campaigns with the specified name. Name *string `form:"name,omitempty" json:"name,omitempty"` // DraftCampaignIdFilter The returned array includes only draft campaigns with identifiers matching those specified in the comma-delimited string. DraftCampaignIdFilter *string `form:"draftCampaignIdFilter,omitempty" json:"draftCampaignIdFilter,omitempty"` // PortfolioIdFilter The returned array includes only campaigns associated with Portfolio identifiers matching those specified in the comma-delimited string. PortfolioIdFilter *string `form:"portfolioIdFilter,omitempty" json:"portfolioIdFilter,omitempty"` // AdFormatFilter The returned array includes only draft campaigns with ad format matching those specified in the comma-delimited adFormats. Returns all drafts if not specified. AdFormatFilter *AdFormat `form:"adFormatFilter,omitempty" json:"adFormatFilter,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ListDraftCampaignsParams defines parameters for ListDraftCampaigns.
type ListDraftCampaignsResp ¶
type ListDraftCampaignsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndBatchgetdraftcampaignsresponseV32JSON200 *[]SBGetDraftCampaignResponseV32 ApplicationvndBatchgetdraftcampaignsresponseV33JSON200 *[]SBGetDraftCampaignResponseV33 ApplicationvndSbdraftcampaignV3JSON200 *[]SBGetDraftCampaignResponse }
func ParseListDraftCampaignsResp ¶
func ParseListDraftCampaignsResp(rsp *http.Response) (*ListDraftCampaignsResp, error)
ParseListDraftCampaignsResp parses an HTTP response from a ListDraftCampaignsWithResponse call
func (ListDraftCampaignsResp) Status ¶
func (r ListDraftCampaignsResp) Status() string
Status returns HTTPResponse.Status
func (ListDraftCampaignsResp) StatusCode ¶
func (r ListDraftCampaignsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListKeywordsParams ¶
type ListKeywordsParams struct { // StartIndex Sets a zero-based offset into the requested set of keywords. Use in conjunction with the `count` parameter to control pagination of the returned array. StartIndex *int `form:"startIndex,omitempty" json:"startIndex,omitempty"` // Count Sets the number of keywords in the returned array. Use in conjunction with the `startIndex` parameter to control pagination. For example, to return the first ten keywords set `startIndex=0` and `count=10`. To return the next ten keywords, set `startIndex=10` and `count=10`, and so on. Count *int `form:"count,omitempty" json:"count,omitempty"` // MatchTypeFilter The returned array is filtered to include only keywords with `matchType` set to one of the values in the specified comma-delimited list. MatchTypeFilter *MatchType `form:"matchTypeFilter,omitempty" json:"matchTypeFilter,omitempty"` // KeywordText The returned array includes only keywords with the specified text. KeywordText *string `form:"keywordText,omitempty" json:"keywordText,omitempty"` // StateFilter The returned array is filtered to include only keywords with 'state' set to one of the values in the specified comma-delimited list. StateFilter *ListKeywordsParamsStateFilter `form:"stateFilter,omitempty" json:"stateFilter,omitempty"` // CampaignIdFilter The returned array includes only keywords associated with campaigns matching those specified by identifier in the comma-delimited string. CampaignIdFilter *string `form:"campaignIdFilter,omitempty" json:"campaignIdFilter,omitempty"` // AdGroupIdFilter The returned array includes only keywords associated with ad groups matching those specified by identifier in the comma-delimited string. AdGroupIdFilter *string `form:"adGroupIdFilter,omitempty" json:"adGroupIdFilter,omitempty"` // KeywordIdFilter The returned array includes only keywords with identifiers matching those specified in the comma-delimited string. KeywordIdFilter *string `form:"keywordIdFilter,omitempty" json:"keywordIdFilter,omitempty"` // CreativeType Filter by the type of creative the campaign is associated with. To get keywords associated with non-video campaigns specify 'productCollection'. To get keywords associated with video campaigns, this must be set to 'video'. Returns all keywords if not specified. CreativeType *CreativeType `form:"creativeType,omitempty" json:"creativeType,omitempty"` // Locale The returned array includes only keywords with locale matching those specified string. Locale *string `form:"locale,omitempty" json:"locale,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ListKeywordsParams defines parameters for ListKeywords.
type ListKeywordsParamsStateFilter ¶
type ListKeywordsParamsStateFilter string
ListKeywordsParamsStateFilter defines parameters for ListKeywords.
const ( ListKeywordsParamsStateFilterArchived ListKeywordsParamsStateFilter = "archived" ListKeywordsParamsStateFilterEnabled ListKeywordsParamsStateFilter = "enabled" ListKeywordsParamsStateFilterPaused ListKeywordsParamsStateFilter = "paused" )
Defines values for ListKeywordsParamsStateFilter.
type ListKeywordsResp ¶
type ListKeywordsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordV3JSON200 *[]SBKeyword ApplicationvndSbkeywordV32JSON200 *[]SBKeyword }
func ParseListKeywordsResp ¶
func ParseListKeywordsResp(rsp *http.Response) (*ListKeywordsResp, error)
ParseListKeywordsResp parses an HTTP response from a ListKeywordsWithResponse call
func (ListKeywordsResp) Status ¶
func (r ListKeywordsResp) Status() string
Status returns HTTPResponse.Status
func (ListKeywordsResp) StatusCode ¶
func (r ListKeywordsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNegativeKeywordsParams ¶
type ListNegativeKeywordsParams struct { // StartIndex Sets a zero-based offset into the requested set of negative keywords. Use in conjunction with the `count` parameter to control pagination of the returned array. StartIndex *int `form:"startIndex,omitempty" json:"startIndex,omitempty"` // Count Sets the number of negative keywords in the returned array. Use in conjunction with the `startIndex` parameter to control pagination. For example, to return the first ten negative keywords set `startIndex=0` and `count=10`. To return the next ten negative keywords, set `startIndex=10` and `count=10`, and so on. Count *int `form:"count,omitempty" json:"count,omitempty"` // MatchTypeFilter The returned array is filtered to include only negative keywords with `matchType` set to one of the values in the specified comma-delimited list. MatchTypeFilter *NegativeMatchType `form:"matchTypeFilter,omitempty" json:"matchTypeFilter,omitempty"` // KeywordText The returned array includes only negative keywords with the specified text. KeywordText *string `form:"keywordText,omitempty" json:"keywordText,omitempty"` // StateFilter The returned array includes only negative keywords with `state` set to the specified value. StateFilter *State `form:"stateFilter,omitempty" json:"stateFilter,omitempty"` // CampaignIdFilter The returned array includes only negative keywords associated with campaigns matching those specified by identifier in the comma-delimited string. CampaignIdFilter *string `form:"campaignIdFilter,omitempty" json:"campaignIdFilter,omitempty"` // AdGroupIdFilter The returned array includes only negative keywords associated with ad groups matching those specified by identifier in the comma-delimited string. AdGroupIdFilter *string `form:"adGroupIdFilter,omitempty" json:"adGroupIdFilter,omitempty"` // KeywordIdFilter The returned array includes only negative keywords with identifiers matching those specified in the comma-delimited string. KeywordIdFilter *string `form:"keywordIdFilter,omitempty" json:"keywordIdFilter,omitempty"` // CreativeType Filter by the type of creative the campaign is associated with. To get negative keywords associated with non-video campaigns specify 'productCollection'. To get negative keywords associated with video campaigns, this must be set to 'video'. Returns all negative keywords if not specified. CreativeType *CreativeType `form:"creativeType,omitempty" json:"creativeType,omitempty"` // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
ListNegativeKeywordsParams defines parameters for ListNegativeKeywords.
type ListNegativeKeywordsResp ¶
type ListNegativeKeywordsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbnegativekeywordV3JSON200 *[]SBNegativeKeyword ApplicationvndSbnegativekeywordV32JSON200 *[]SBNegativeKeyword }
func ParseListNegativeKeywordsResp ¶
func ParseListNegativeKeywordsResp(rsp *http.Response) (*ListNegativeKeywordsResp, error)
ParseListNegativeKeywordsResp parses an HTTP response from a ListNegativeKeywordsWithResponse call
func (ListNegativeKeywordsResp) Status ¶
func (r ListNegativeKeywordsResp) Status() string
Status returns HTTPResponse.Status
func (ListNegativeKeywordsResp) StatusCode ¶
func (r ListNegativeKeywordsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListNegativeTargets ¶
type ListNegativeTargets struct {
NegativeTargets *[]SBTargetingClause `json:"negativeTargets,omitempty"`
}
ListNegativeTargets defines model for ListNegativeTargets.
type ListNegativeTargetsJSONBody ¶
type ListNegativeTargetsJSONBody struct { // Filters Restricts results to negative targets with the specified filters. Filters are inclusive. Filters are joined using 'and' logic. Specify one each type of filter. Specifying multiples of the same type of filter results in an error. Filters *[]ListNegativeTargetsJSONBody_Filters_Item `json:"filters,omitempty"` // MaxResults Sets a limit on the number of results returned by an operation. MaxResults *MaxResults `json:"maxResults,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` }
ListNegativeTargetsJSONBody defines parameters for ListNegativeTargets.
type ListNegativeTargetsJSONBodyFilters0 ¶ added in v0.0.2
type ListNegativeTargetsJSONBodyFilters0 struct { // FilterType Set `filterType` to `CREATIVE_TYPE` to filter by creative type. If no filter is specified, all negative targets will be returned. FilterType *ListNegativeTargetsJSONBodyFilters0FilterType `json:"filterType,omitempty"` // Values A list of creative types. Values *[]ListNegativeTargetsJSONBodyFilters0Values `json:"values,omitempty"` }
ListNegativeTargetsJSONBodyFilters0 defines parameters for ListNegativeTargets.
type ListNegativeTargetsJSONBodyFilters1 ¶ added in v0.0.2
type ListNegativeTargetsJSONBodyFilters1 struct { // FilterType Set `filterType` to `TARGETING_STATE` to filter by negative target state. FilterType *ListNegativeTargetsJSONBodyFilters1FilterType `json:"filterType,omitempty"` // Values A list of negative target states. Values *[]SBNegativeTargetState `json:"values,omitempty"` }
ListNegativeTargetsJSONBodyFilters1 defines parameters for ListNegativeTargets.
type ListNegativeTargetsJSONBodyFilters2 ¶ added in v0.0.2
type ListNegativeTargetsJSONBodyFilters2 struct { // FilterType Set `filterType` to `CAMPAIGN_ID` to filter by campaign identifiers. FilterType *ListNegativeTargetsJSONBodyFilters2FilterType `json:"filterType,omitempty"` // Values A list of campaign identifiers. Values *[]string `json:"values,omitempty"` }
ListNegativeTargetsJSONBodyFilters2 defines parameters for ListNegativeTargets.
type ListNegativeTargetsJSONBodyFilters3 ¶ added in v0.0.2
type ListNegativeTargetsJSONBodyFilters3 struct { // FilterType Set `filterType` to `AD_GROUP_ID` to filter by ad group identifier. FilterType *ListNegativeTargetsJSONBodyFilters3FilterType `json:"filterType,omitempty"` // Values A list of ad group identifiers. Values *[]string `json:"values,omitempty"` }
ListNegativeTargetsJSONBodyFilters3 defines parameters for ListNegativeTargets.
type ListNegativeTargetsJSONBody_Filters_Item ¶
type ListNegativeTargetsJSONBody_Filters_Item struct {
// contains filtered or unexported fields
}
ListNegativeTargetsJSONBody_Filters_Item defines parameters for ListNegativeTargets.
type ListNegativeTargetsJSONRequestBody ¶
type ListNegativeTargetsJSONRequestBody ListNegativeTargetsJSONBody
ListNegativeTargetsJSONRequestBody defines body for ListNegativeTargets for application/json ContentType.
type ListNegativeTargetsResp ¶
type ListNegativeTargetsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSblistnegativetargetsresponseV3JSON200 *struct { NegativeTargets *[]SBTargetingClause `json:"negativeTargets,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` } ApplicationvndSblistnegativetargetsresponseV32JSON200 *struct { NegativeTargets *[]SBTargetingClause `json:"negativeTargets,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` } ApplicationvndSberrorV30JSON400 *BadRequest400 }
func ParseListNegativeTargetsResp ¶
func ParseListNegativeTargetsResp(rsp *http.Response) (*ListNegativeTargetsResp, error)
ParseListNegativeTargetsResp parses an HTTP response from a ListNegativeTargetsWithResponse call
func (ListNegativeTargetsResp) Status ¶
func (r ListNegativeTargetsResp) Status() string
Status returns HTTPResponse.Status
func (ListNegativeTargetsResp) StatusCode ¶
func (r ListNegativeTargetsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRecommendationsRequest ¶
type ListRecommendationsRequest struct { // MaxResults Sets a limit on the number of results returned by an operation. MaxResults *MaxResultsRecommendations `json:"maxResults,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` }
ListRecommendationsRequest defines model for ListRecommendationsRequest.
type ListRequest ¶
type ListRequest struct { // MaxResults Sets a limit on the number of results returned by an operation. MaxResults *MaxResults `json:"maxResults,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` }
ListRequest defines model for ListRequest.
type ListResponse ¶
type ListResponse struct { // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` }
ListResponse defines model for ListResponse.
type ListSbTargetsResponse ¶
type ListSbTargetsResponse struct { Targets *[]struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *int64 `json:"campaignId,omitempty"` Expressions *[]SBExpression `json:"expressions,omitempty"` ResolvedExpressions *[]SBResolvedExpression `json:"resolvedExpressions,omitempty"` State *SBProductTargetState `json:"state,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` } `json:"targets,omitempty"` }
ListSbTargetsResponse defines model for ListSbTargetsResponse.
type ListTargetsJSONBody ¶
type ListTargetsJSONBody struct { // Filters Restricts results to targets with the specified filters. Filters are inclusive. Filters are joined using 'and' logic. Specify one type of each filter. Specifying multiples of the same type of filter results in an error. Filters *[]ListTargetsJSONBody_Filters_Item `json:"filters,omitempty"` // MaxResults Sets a limit on the number of results returned by an operation. MaxResults *MaxResults `json:"maxResults,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` }
ListTargetsJSONBody defines parameters for ListTargets.
type ListTargetsJSONBodyFilters0 ¶ added in v0.0.2
type ListTargetsJSONBodyFilters0 struct { // FilterType Set `filterType` to `CREATIVE_TYPE` to filter by creative type. If no filter is specified, all targets will be returned. FilterType *ListTargetsJSONBodyFilters0FilterType `json:"filterType,omitempty"` // Values A list of creative types. Values *[]ListTargetsJSONBodyFilters0Values `json:"values,omitempty"` }
ListTargetsJSONBodyFilters0 defines parameters for ListTargets.
type ListTargetsJSONBodyFilters1 ¶ added in v0.0.2
type ListTargetsJSONBodyFilters1 struct { // FilterType Set `filterType` to `TARGETING_STATE` to filter by target state. FilterType *ListTargetsJSONBodyFilters1FilterType `json:"filterType,omitempty"` // Values A list of target states. Values *[]ListTargetsJSONBodyFilters1Values `json:"values,omitempty"` }
ListTargetsJSONBodyFilters1 defines parameters for ListTargets.
type ListTargetsJSONBodyFilters2 ¶ added in v0.0.2
type ListTargetsJSONBodyFilters2 struct { // FilterType Set `filterType` to `CAMPAIGN_ID` to filter by campaign identifiers. FilterType *ListTargetsJSONBodyFilters2FilterType `json:"filterType,omitempty"` // Values A list of campaign identifiers. Values *[]string `json:"values,omitempty"` }
ListTargetsJSONBodyFilters2 defines parameters for ListTargets.
type ListTargetsJSONBodyFilters3 ¶ added in v0.0.2
type ListTargetsJSONBodyFilters3 struct { // FilterType Set `filterType` to `AD_GROUP_ID` to filter by ad group identifier. FilterType *ListTargetsJSONBodyFilters3FilterType `json:"filterType,omitempty"` // Values A list of ad group identifiers. Values *[]SBAdGroupId `json:"values,omitempty"` }
ListTargetsJSONBodyFilters3 defines parameters for ListTargets.
type ListTargetsJSONBody_Filters_Item ¶
type ListTargetsJSONBody_Filters_Item struct {
// contains filtered or unexported fields
}
ListTargetsJSONBody_Filters_Item defines parameters for ListTargets.
type ListTargetsJSONRequestBody ¶
type ListTargetsJSONRequestBody ListTargetsJSONBody
ListTargetsJSONRequestBody defines body for ListTargets for application/json ContentType.
type ListTargetsResp ¶
type ListTargetsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSblisttargetsresponseV3JSON200 *struct { // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` Targets *[]struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *int64 `json:"campaignId,omitempty"` Expressions *[]SBExpression `json:"expressions,omitempty"` ResolvedExpressions *[]SBResolvedExpression `json:"resolvedExpressions,omitempty"` State *SBProductTargetState `json:"state,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` } `json:"targets,omitempty"` } ApplicationvndSblisttargetsresponseV32JSON200 *struct { // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` Targets *[]struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *int64 `json:"campaignId,omitempty"` Expressions *[]SBExpression `json:"expressions,omitempty"` ResolvedExpressions *[]SBResolvedExpression `json:"resolvedExpressions,omitempty"` State *SBProductTargetState `json:"state,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` } `json:"targets,omitempty"` } }
func ParseListTargetsResp ¶
func ParseListTargetsResp(rsp *http.Response) (*ListTargetsResp, error)
ParseListTargetsResp parses an HTTP response from a ListTargetsWithResponse call
func (ListTargetsResp) Status ¶
func (r ListTargetsResp) Status() string
Status returns HTTPResponse.Status
func (ListTargetsResp) StatusCode ¶
func (r ListTargetsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarketplaceError ¶
type MarketplaceError struct {
MarketplaceError *BasicErrorObject `json:"MarketplaceError,omitempty"`
}
MarketplaceError defines model for MarketplaceError.
type MatchType ¶
type MatchType string
MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center.
type MaxResults ¶
type MaxResults = int
MaxResults Sets a limit on the number of results returned by an operation.
type MaxResultsRecommendations ¶
type MaxResultsRecommendations = int
MaxResultsRecommendations Sets a limit on the number of results returned by an operation.
type MediaPublisherAPIError ¶
type MediaPublisherAPIError struct { Code *string `json:"code,omitempty"` Message *string `json:"message,omitempty"` }
MediaPublisherAPIError defines model for MediaPublisherAPIError.
type MediaStatus ¶
type MediaStatus string
MediaStatus Media status:
- `Processing` - The media is being processed
- `PendingDeepValidation` - The media is pending additional validation carried out during media conversion.
- `Available` - Media has successfully finished validation and conversion and the media is published.
- `Failed` - Media processing failed
const ( Available MediaStatus = "Available" Failed MediaStatus = "Failed" PendingDeepValidation MediaStatus = "PendingDeepValidation" Processing MediaStatus = "Processing" )
Defines values for MediaStatus.
type NegativeMatchType ¶
type NegativeMatchType string
NegativeMatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center.
const ( NegativeExact NegativeMatchType = "negativeExact" NegativePhrase NegativeMatchType = "negativePhrase" )
Defines values for NegativeMatchType.
type NextToken ¶
type NextToken = string
NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results.
type OutcomeType ¶
type OutcomeType = string
OutcomeType The outcome type of the campaign. If no outcome is selected then it will default to `PAGE_VISIT`. | outcomeType | description | |-----------|-------------| | BRAND_IMPRESSION_SHARE | Brand Impression Share (BIS) is Top of search (ToS) impression shares for branded search terms. | | PAGE_VISIT | Facilitate consumers' awareness of your brand |
type PageAsinsError ¶
type PageAsinsError struct { PageAsinsError *struct { Location *string `json:"location,omitempty"` Message string `json:"message"` PageUrl *string `json:"pageUrl,omitempty"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` } `json:"PageAsinsError,omitempty"` }
PageAsinsError defines model for PageAsinsError.
type PageAsinsResponse ¶
type PageAsinsResponse struct { // AsinList An array of ASINs. Note that this field is present only if there were no errors during the request. If there were errors, the `code` field is the enumerated error, and the `details` field contains a human-readable description of the error. AsinList *[]string `json:"asinList,omitempty"` // Code The enumerated response code. // | Code | Description | // |------|--------| // |SUCCESS| The request was successful. The `asinList` field includes all available ASINs.| // |INVALID_ARGUMENT| The request was not successful because the address was not for a valid landing page.| // |BAD_GATEWAY| The request failed because the landing page at the specified address did not have any ASINs.| Code *string `json:"code,omitempty"` // Details A human-readable description of the `code` field. Details *string `json:"details,omitempty"` }
PageAsinsResponse defines model for PageAsinsResponse.
type PaginationError ¶
type PaginationError struct { PaginationError *struct { Expected *string `json:"expected,omitempty"` Location *string `json:"location,omitempty"` Message string `json:"message"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` UpperLimit *string `json:"upperLimit,omitempty"` } `json:"PaginationError,omitempty"` }
PaginationError defines model for PaginationError.
type PostSbCampaignsResponse ¶
type PostSbCampaignsResponse struct { // AdGroupResponses An array of ad groups associated with the campaign. AdGroupResponses *[]struct { // AdGroupId The ad group identifier. AdGroupId *int64 `json:"adGroupId,omitempty"` // Code An enumerated response code. Code *string `json:"code,omitempty"` // Details A human-readable description of the enumerated response code in the `code` field. Details *string `json:"details,omitempty"` } `json:"adGroupResponses,omitempty"` // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // Code An enumerated response code. Code *string `json:"code,omitempty"` // Details A human-readable description of the enumerated response code in the `code` field. Details *string `json:"details,omitempty"` // KeywordResponses An array of keywords associated with the campaign. KeywordResponses *[]SBKeywordResponse `json:"keywordResponses,omitempty"` // NegativeKeywordResponses An array of negative keywords associated with the campaign. NegativeKeywordResponses *[]SBKeywordResponse `json:"negativeKeywordResponses,omitempty"` }
PostSbCampaignsResponse defines model for PostSbCampaignsResponse.
type PostSbThemesListResponse ¶
type PostSbThemesListResponse struct {
Themes *[]SBTheme `json:"themes,omitempty"`
}
PostSbThemesListResponse defines model for PostSbThemesListResponse.
type PostStoresAssetsResponse ¶
type PostStoresAssetsResponse struct { // AssetID ID of created asset AssetID *string `json:"assetID,omitempty"` Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` }
PostStoresAssetsResponse defines model for PostStoresAssetsResponse.
type PostV2HsaRecordTypeReportJSONBody ¶
type PostV2HsaRecordTypeReportJSONBody struct { // CreativeType Optional. Supported values are `video` (for video campaigns) and `all` (for both non-video and video campaigns). If not specified, the report will contain data for non-video campaigns. For `ads` report types only, `creativeType` is required and must be set to `all` (`video` is not allowed). To return performance data for [multi-ad group campaigns](https://advertising.amazon.com/API/docs/en-us/sponsored-brands/3-0/openapi/prod#/Campaigns), you must include `creativeType` set to `all“ in your request. CreativeType *PostV2HsaRecordTypeReportJSONBodyCreativeType `json:"creativeType,omitempty"` // Metrics Each report type supports different metrics. **To understand supported metrics for each report type, see [Report types](/API/docs/en-us/guides/reporting/v2/report-types).** Metrics string `json:"metrics"` // ReportDate Date in YYYYMMDD format. The report only contains performance data for the specified date. The time zone is specified by the profile used to request the report. If this date is today, then the performance report may contain partial information. Reports are not available for data older than 60 days. For details on data latency, see [Service Guarantees](../../reference/concepts/developer-notes). ReportDate string `json:"reportDate"` // Segment Optional. Allows you to run a report based on secondary dimensions. Use `placement` to segment a `campaigns` report by the location on a page where your ad appears. Use `query` to segment a `keywords` report and create a search terms report. Segment *PostV2HsaRecordTypeReportJSONBodySegment `json:"segment,omitempty"` }
PostV2HsaRecordTypeReportJSONBody defines parameters for PostV2HsaRecordTypeReport.
type PostV2HsaRecordTypeReportJSONBodyCreativeType ¶
type PostV2HsaRecordTypeReportJSONBodyCreativeType string
PostV2HsaRecordTypeReportJSONBodyCreativeType defines parameters for PostV2HsaRecordTypeReport.
const ( PostV2HsaRecordTypeReportJSONBodyCreativeTypeAll PostV2HsaRecordTypeReportJSONBodyCreativeType = "all" PostV2HsaRecordTypeReportJSONBodyCreativeTypeVideo PostV2HsaRecordTypeReportJSONBodyCreativeType = "video" )
Defines values for PostV2HsaRecordTypeReportJSONBodyCreativeType.
type PostV2HsaRecordTypeReportJSONBodySegment ¶
type PostV2HsaRecordTypeReportJSONBodySegment string
PostV2HsaRecordTypeReportJSONBodySegment defines parameters for PostV2HsaRecordTypeReport.
const ( Placement PostV2HsaRecordTypeReportJSONBodySegment = "placement" Query PostV2HsaRecordTypeReportJSONBodySegment = "query" )
Defines values for PostV2HsaRecordTypeReportJSONBodySegment.
type PostV2HsaRecordTypeReportJSONRequestBody ¶
type PostV2HsaRecordTypeReportJSONRequestBody PostV2HsaRecordTypeReportJSONBody
PostV2HsaRecordTypeReportJSONRequestBody defines body for PostV2HsaRecordTypeReport for application/json ContentType.
type PostV2HsaRecordTypeReportParams ¶
type PostV2HsaRecordTypeReportParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
PostV2HsaRecordTypeReportParams defines parameters for PostV2HsaRecordTypeReport.
type PostV2HsaRecordTypeReportResp ¶
type PostV2HsaRecordTypeReportResp struct { Body []byte HTTPResponse *http.Response JSON200 *V2HsaReportResponse JSON406 *Error JSON422 *Error }
func ParsePostV2HsaRecordTypeReportResp ¶
func ParsePostV2HsaRecordTypeReportResp(rsp *http.Response) (*PostV2HsaRecordTypeReportResp, error)
ParsePostV2HsaRecordTypeReportResp parses an HTTP response from a PostV2HsaRecordTypeReportWithResponse call
func (PostV2HsaRecordTypeReportResp) Status ¶
func (r PostV2HsaRecordTypeReportResp) Status() string
Status returns HTTPResponse.Status
func (PostV2HsaRecordTypeReportResp) StatusCode ¶
func (r PostV2HsaRecordTypeReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProductItemsError ¶
type ProductItemsError struct {
ProductItemsError *BasicErrorObject `json:"ProductItemsError,omitempty"`
}
ProductItemsError defines model for ProductItemsError.
type ProductPredicateType ¶
type ProductPredicateType string
ProductPredicateType defines model for ProductPredicateType.
const ( ProductPredicateTypeAsinBrandSameAs ProductPredicateType = "asinBrandSameAs" ProductPredicateTypeAsinCategorySameAs ProductPredicateType = "asinCategorySameAs" ProductPredicateTypeAsinPriceBetween ProductPredicateType = "asinPriceBetween" ProductPredicateTypeAsinPriceGreaterThan ProductPredicateType = "asinPriceGreaterThan" ProductPredicateTypeAsinPriceLessThan ProductPredicateType = "asinPriceLessThan" ProductPredicateTypeAsinReviewRatingBetween ProductPredicateType = "asinReviewRatingBetween" ProductPredicateTypeAsinReviewRatingGreaterThan ProductPredicateType = "asinReviewRatingGreaterThan" ProductPredicateTypeAsinReviewRatingLessThan ProductPredicateType = "asinReviewRatingLessThan" ProductPredicateTypeAsinSameAs ProductPredicateType = "asinSameAs" )
Defines values for ProductPredicateType.
type ProfileError ¶
type ProfileError struct {
ProfileError *BasicErrorObject `json:"ProfileError,omitempty"`
}
ProfileError defines model for ProfileError.
type Program ¶
type Program struct { CreativeType ProgramCreativeType `json:"creativeType"` ProgramType ProgramProgramType `json:"programType"` }
Program The Ad Program that the media will be attached to. Currently, we support `SponsoredBrands` with creative type `Video`
type ProgramCreativeType ¶
type ProgramCreativeType string
ProgramCreativeType defines model for Program.CreativeType.
const (
ProgramCreativeTypeVideo ProgramCreativeType = "Video"
)
Defines values for ProgramCreativeType.
type ProgramProgramType ¶
type ProgramProgramType string
ProgramProgramType defines model for Program.ProgramType.
const (
SponsoredBrands ProgramProgramType = "SponsoredBrands"
)
Defines values for ProgramProgramType.
type PutSbNegativeTargets ¶
type PutSbNegativeTargets struct { // UpdateTargetErrorResults Lists errors that occured during negative target update. Note that errors are correlated to negative target update requests by the `negativeTargetRequestIndex` field. This field corresponds to the order of the negative target in the request. For example, if `negativeTargetRequestIndex` is set to `2`, the values correlate to the third negative target object in the request. UpdateTargetErrorResults *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` // TargetId The identifier of a target. TargetId *SBTargetId `json:"targetId,omitempty"` // TargetRequestIndex Correlates the negative target to the negative target array index specified in the request. Zero-based. TargetRequestIndex *SBNegativeTargetRequestIndex `json:"targetRequestIndex,omitempty"` } `json:"updateTargetErrorResults,omitempty"` // UpdateTargetSuccessResults Lists the successfully updated negative targets. Note that negative targets in the response are correlated to negative targets in the request using the `targetRequestIndex` field. For example, if `targetRequestIndex` is set to `2`, the values correlate to the third negative target object in the request. UpdateTargetSuccessResults *[]struct { // TargetId The identifier of a target. TargetId *SBTargetId `json:"targetId,omitempty"` // TargetRequestIndex Correlates the negative target to the negative target array index specified in the request. Zero-based. TargetRequestIndex *SBNegativeTargetRequestIndex `json:"targetRequestIndex,omitempty"` } `json:"updateTargetSuccessResults,omitempty"` }
PutSbNegativeTargets defines model for PutSbNegativeTargets.
type PutSbTargetResponse ¶
type PutSbTargetResponse struct { // UpdateTargetErrorResults Lists errors that occured during target update. Note that errors are correlated to target update requests by the `targetRequestIndex` field. This field corresponds to the order of the target in the request. For example, if `targetRequestIndex` is set to `2`, the values correlate to the third target object in the request array. UpdateTargetErrorResults *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` // TargetId The identifier of a target. TargetId *SBTargetId `json:"targetId,omitempty"` // TargetRequestIndex Correlates the target to the target array index specified in the request. Zero-based. TargetRequestIndex *SBTargetRequestIndex `json:"targetRequestIndex,omitempty"` } `json:"updateTargetErrorResults,omitempty"` // UpdateTargetSuccessResults Lists the successfully updated targets. Note that targets in the response are correlated to targets in the request using the `targetRequestIndex` field. For example, if `targetRequestIndex` is set to `2`, the values correlate to the third target object in the request. UpdateTargetSuccessResults *[]struct { // TargetId The identifier of a target. TargetId *SBTargetId `json:"targetId,omitempty"` // TargetRequestIndex Correlates the target to the target array index specified in the request. Zero-based. TargetRequestIndex *SBTargetRequestIndex `json:"targetRequestIndex,omitempty"` } `json:"updateTargetSuccessResults,omitempty"` }
PutSbTargetResponse defines model for PutSbTargetResponse.
type PutSbThemesResponse ¶
type PutSbThemesResponse struct { // Error Lists errors that occurred during theme target update. Note that errors are correlated to theme target update requests by the `index` field. This field corresponds to the order of the theme target in the request. For example, if `index` is set to `2`, the values correlate to the third theme target object in the request array. Error *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` // Index Correlates the target to the target array index specified in the request. Zero-based. Index *SBTargetRequestIndex `json:"index,omitempty"` // ThemeId The identifier of theme target. ThemeId *SBThemeId `json:"themeId,omitempty"` } `json:"error,omitempty"` // Success Lists the successfully updated theme targets. Note that theme targets in the response are correlated to theme targets in the request using the `index` field. For example, if `index` is set to `2`, the values correlate to the third theme target object in the request. Success *[]struct { // Index Correlates the target to the target array index specified in the request. Zero-based. Index *SBTargetRequestIndex `json:"index,omitempty"` // ThemeId The identifier of theme target. ThemeId *SBThemeId `json:"themeId,omitempty"` } `json:"success,omitempty"` }
PutSbThemesResponse defines model for PutSbThemesResponse.
type RecommendationError ¶
type RecommendationError struct { RecommendationError *struct { Location *string `json:"location,omitempty"` MaxCount *string `json:"maxCount,omitempty"` Message string `json:"message"` Reason string `json:"reason"` Trigger *string `json:"trigger,omitempty"` } `json:"RecommendationError,omitempty"` }
RecommendationError defines model for RecommendationError.
type RecommendedBid ¶
type RecommendedBid struct { RangeEnd *float64 `json:"rangeEnd,omitempty"` RangeStart *float64 `json:"rangeStart,omitempty"` Recommended *float64 `json:"recommended,omitempty"` }
RecommendedBid defines model for RecommendedBid.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseEditorFn ¶ added in v0.0.2
ResponseEditorFn is the function signature for the ResponseEditor callback function
type SBAPIBid ¶
type SBAPIBid = float64
SBAPIBid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features).
type SBAdGroup ¶
type SBAdGroup struct { // AdGroupId The identifier of the ad group. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of the campaign associated with the ad group. CampaignId *int64 `json:"campaignId,omitempty"` // Name The name of the ad group. Name *string `json:"name,omitempty"` }
SBAdGroup Applies to: | Operation | Path | |-----------| -----| |[listAdGroups](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Ad_Groups)| GET /sb/adGroups| |[getAdGroup](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Ad_Groups)| GET /sb/adGroups/{adGroupId}| <br/>
type SBBidRecommendationKeyword ¶
type SBBidRecommendationKeyword struct { // KeywordText The text of the keyword. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` }
SBBidRecommendationKeyword defines model for SBBidRecommendationKeyword.
type SBBidRecommendationKeywordIndex ¶
type SBBidRecommendationKeywordIndex = float32
SBBidRecommendationKeywordIndex Correlates the keyword to the keyword array index specified in the request. Zero-based.
type SBBidRecommendationThemeIndex ¶
type SBBidRecommendationThemeIndex = float32
SBBidRecommendationThemeIndex Correlates the theme targets to the theme targets array index specified in the request. Zero-based.
type SBBrandLogoCrop ¶
type SBBrandLogoCrop struct { // Height The number of pixels to crop down from the value specified as `top` Height *int `json:"height,omitempty"` // Left The leftmost pixel from which to begin cropping Left *int `json:"left,omitempty"` // Top The highest pixel from which to begin cropping Top *int `json:"top,omitempty"` // Width The number of pixels to crop rightwards from the value specified as `left` Width *int `json:"width,omitempty"` }
SBBrandLogoCrop The crop to apply to the selected Brand logo. A Brand logo must have minimum dimensions of 400x400. If a brandLogoAssetID is supplied but a crop is not, the crop will be defaulted to the whole image.
type SBBrandResponse ¶
type SBBrandResponse struct { // Id The Brand identifier. Id *int64 `json:"id,omitempty"` // Name The Brand name. Name *string `json:"name,omitempty"` }
SBBrandResponse defines model for SBBrandResponse.
type SBCampaignBase ¶
type SBCampaignBase struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Name The campaign name. Name *SBCampaignName `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Status|Description| // |------|-----------| // |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| // |BILLING_ERROR| Billing information requires correction.| // |ENDED| THe `endDate` specified in the campaign object occurs in the past.| // |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |OUT_OF_BUDGET| The campaign has run out of budget.| // |PAUSED| The campaign state set to `paused`.| // |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| // |READY| The campaign is scheduled for a future date.| // |REJECTED| The campaign failed moderation review.| // |RUNNING| The campaign is enabled and serving.| // |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |TERMINATED|The state of the campaign is set to `archived`.| ServingStatus *SBCampaignBaseServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCampaignBase defines model for SBCampaignBase.
type SBCampaignBase32 ¶
type SBCampaignBase32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Name The campaign name. Name *SBCampaignName `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Status|Description| // |------|-----------| // |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| // |BILLING_ERROR| Billing information requires correction.| // |ENDED| THe `endDate` specified in the campaign object occurs in the past.| // |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |OUT_OF_BUDGET| The campaign has run out of budget.| // |PAUSED| The campaign state set to `paused`.| // |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| // |READY| The campaign is scheduled for a future date.| // |REJECTED| The campaign failed moderation review.| // |RUNNING| The campaign is enabled and serving.| // |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |TERMINATED|The state of the campaign is set to `archived`.| ServingStatus *SBCampaignBase32ServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCampaignBase32 defines model for SBCampaignBase32.
type SBCampaignBase32ServingStatus ¶
type SBCampaignBase32ServingStatus string
SBCampaignBase32ServingStatus |Status|Description| |------|-----------| |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| |BILLING_ERROR| Billing information requires correction.| |ENDED| THe `endDate` specified in the campaign object occurs in the past.| |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| |OUT_OF_BUDGET| The campaign has run out of budget.| |PAUSED| The campaign state set to `paused`.| |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| |READY| The campaign is scheduled for a future date.| |REJECTED| The campaign failed moderation review.| |RUNNING| The campaign is enabled and serving.| |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| |TERMINATED|The state of the campaign is set to `archived`.|
const ( SBCampaignBase32ServingStatusASINNOTBUYABLE SBCampaignBase32ServingStatus = "ASIN_NOT_BUYABLE" SBCampaignBase32ServingStatusBILLINGERROR SBCampaignBase32ServingStatus = "BILLING_ERROR" SBCampaignBase32ServingStatusENDED SBCampaignBase32ServingStatus = "ENDED" SBCampaignBase32ServingStatusLANDINGPAGENOTAVAILABLE SBCampaignBase32ServingStatus = "LANDING_PAGE_NOT_AVAILABLE" SBCampaignBase32ServingStatusOUTOFBUDGET SBCampaignBase32ServingStatus = "OUT_OF_BUDGET" SBCampaignBase32ServingStatusPAUSED SBCampaignBase32ServingStatus = "PAUSED" SBCampaignBase32ServingStatusPENDINGREVIEW SBCampaignBase32ServingStatus = "PENDING_REVIEW" SBCampaignBase32ServingStatusREADY SBCampaignBase32ServingStatus = "READY" SBCampaignBase32ServingStatusREJECTED SBCampaignBase32ServingStatus = "REJECTED" SBCampaignBase32ServingStatusRUNNING SBCampaignBase32ServingStatus = "RUNNING" SBCampaignBase32ServingStatusSCHEDULED SBCampaignBase32ServingStatus = "SCHEDULED" SBCampaignBase32ServingStatusTERMINATED SBCampaignBase32ServingStatus = "TERMINATED" )
Defines values for SBCampaignBase32ServingStatus.
type SBCampaignBaseServingStatus ¶
type SBCampaignBaseServingStatus string
SBCampaignBaseServingStatus |Status|Description| |------|-----------| |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| |BILLING_ERROR| Billing information requires correction.| |ENDED| THe `endDate` specified in the campaign object occurs in the past.| |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| |OUT_OF_BUDGET| The campaign has run out of budget.| |PAUSED| The campaign state set to `paused`.| |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| |READY| The campaign is scheduled for a future date.| |REJECTED| The campaign failed moderation review.| |RUNNING| The campaign is enabled and serving.| |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| |TERMINATED|The state of the campaign is set to `archived`.|
const ( SBCampaignBaseServingStatusASINNOTBUYABLE SBCampaignBaseServingStatus = "ASIN_NOT_BUYABLE" SBCampaignBaseServingStatusBILLINGERROR SBCampaignBaseServingStatus = "BILLING_ERROR" SBCampaignBaseServingStatusENDED SBCampaignBaseServingStatus = "ENDED" SBCampaignBaseServingStatusLANDINGPAGENOTAVAILABLE SBCampaignBaseServingStatus = "LANDING_PAGE_NOT_AVAILABLE" SBCampaignBaseServingStatusOUTOFBUDGET SBCampaignBaseServingStatus = "OUT_OF_BUDGET" SBCampaignBaseServingStatusPAUSED SBCampaignBaseServingStatus = "PAUSED" SBCampaignBaseServingStatusPENDINGREVIEW SBCampaignBaseServingStatus = "PENDING_REVIEW" SBCampaignBaseServingStatusREADY SBCampaignBaseServingStatus = "READY" SBCampaignBaseServingStatusREJECTED SBCampaignBaseServingStatus = "REJECTED" SBCampaignBaseServingStatusRUNNING SBCampaignBaseServingStatus = "RUNNING" SBCampaignBaseServingStatusSCHEDULED SBCampaignBaseServingStatus = "SCHEDULED" SBCampaignBaseServingStatusTERMINATED SBCampaignBaseServingStatus = "TERMINATED" )
Defines values for SBCampaignBaseServingStatus.
type SBCampaignResponse ¶
type SBCampaignResponse struct {
// contains filtered or unexported fields
}
SBCampaignResponse defines model for SBCampaignResponse.
func (SBCampaignResponse) AsSBCampaignResponseCommon ¶
func (t SBCampaignResponse) AsSBCampaignResponseCommon() (SBCampaignResponseCommon, error)
AsSBCampaignResponseCommon returns the union data inside the SBCampaignResponse as a SBCampaignResponseCommon
func (SBCampaignResponse) AsSBVideoCampaignResponseCommon ¶
func (t SBCampaignResponse) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
AsSBVideoCampaignResponseCommon returns the union data inside the SBCampaignResponse as a SBVideoCampaignResponseCommon
func (*SBCampaignResponse) FromSBCampaignResponseCommon ¶
func (t *SBCampaignResponse) FromSBCampaignResponseCommon(v SBCampaignResponseCommon) error
FromSBCampaignResponseCommon overwrites any union data inside the SBCampaignResponse as the provided SBCampaignResponseCommon
func (*SBCampaignResponse) FromSBVideoCampaignResponseCommon ¶
func (t *SBCampaignResponse) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
FromSBVideoCampaignResponseCommon overwrites any union data inside the SBCampaignResponse as the provided SBVideoCampaignResponseCommon
func (SBCampaignResponse) MarshalJSON ¶
func (t SBCampaignResponse) MarshalJSON() ([]byte, error)
func (*SBCampaignResponse) MergeSBCampaignResponseCommon ¶
func (t *SBCampaignResponse) MergeSBCampaignResponseCommon(v SBCampaignResponseCommon) error
MergeSBCampaignResponseCommon performs a merge with any union data inside the SBCampaignResponse, using the provided SBCampaignResponseCommon
func (*SBCampaignResponse) MergeSBVideoCampaignResponseCommon ¶
func (t *SBCampaignResponse) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
MergeSBVideoCampaignResponseCommon performs a merge with any union data inside the SBCampaignResponse, using the provided SBVideoCampaignResponseCommon
func (*SBCampaignResponse) UnmarshalJSON ¶
func (t *SBCampaignResponse) UnmarshalJSON(b []byte) error
type SBCampaignResponseCommon ¶
type SBCampaignResponseCommon struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. For example, if set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // Creative Render one or more product images and product details. Creative *SBCollectionCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` LandingPage *SBCampaignResponseCommon_LandingPage `json:"landingPage,omitempty"` // Name The campaign name. Name *SBCampaignName `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Status|Description| // |------|-----------| // |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| // |BILLING_ERROR| Billing information requires correction.| // |ENDED| THe `endDate` specified in the campaign object occurs in the past.| // |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |OUT_OF_BUDGET| The campaign has run out of budget.| // |PAUSED| The campaign state set to `paused`.| // |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| // |READY| The campaign is scheduled for a future date.| // |REJECTED| The campaign failed moderation review.| // |RUNNING| The campaign is enabled and serving.| // |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |TERMINATED|The state of the campaign is set to `archived`.| ServingStatus *SBCampaignResponseCommonServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCampaignResponseCommon defines model for SBCampaignResponseCommon.
type SBCampaignResponseCommon32 ¶
type SBCampaignResponseCommon32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. For example, if set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` Creative *SBCampaignResponseCommon32_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` LandingPage *SBCampaignResponseCommon32_LandingPage `json:"landingPage,omitempty"` // Name The campaign name. Name *SBCampaignName `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Status|Description| // |------|-----------| // |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| // |BILLING_ERROR| Billing information requires correction.| // |ENDED| THe `endDate` specified in the campaign object occurs in the past.| // |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |OUT_OF_BUDGET| The campaign has run out of budget.| // |PAUSED| The campaign state set to `paused`.| // |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| // |READY| The campaign is scheduled for a future date.| // |REJECTED| The campaign failed moderation review.| // |RUNNING| The campaign is enabled and serving.| // |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |TERMINATED|The state of the campaign is set to `archived`.| ServingStatus *SBCampaignResponseCommon32ServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCampaignResponseCommon32 defines model for SBCampaignResponseCommon32.
type SBCampaignResponseCommon32ServingStatus ¶
type SBCampaignResponseCommon32ServingStatus string
SBCampaignResponseCommon32ServingStatus |Status|Description| |------|-----------| |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| |BILLING_ERROR| Billing information requires correction.| |ENDED| THe `endDate` specified in the campaign object occurs in the past.| |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| |OUT_OF_BUDGET| The campaign has run out of budget.| |PAUSED| The campaign state set to `paused`.| |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| |READY| The campaign is scheduled for a future date.| |REJECTED| The campaign failed moderation review.| |RUNNING| The campaign is enabled and serving.| |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| |TERMINATED|The state of the campaign is set to `archived`.|
const ( SBCampaignResponseCommon32ServingStatusASINNOTBUYABLE SBCampaignResponseCommon32ServingStatus = "ASIN_NOT_BUYABLE" SBCampaignResponseCommon32ServingStatusBILLINGERROR SBCampaignResponseCommon32ServingStatus = "BILLING_ERROR" SBCampaignResponseCommon32ServingStatusENDED SBCampaignResponseCommon32ServingStatus = "ENDED" SBCampaignResponseCommon32ServingStatusLANDINGPAGENOTAVAILABLE SBCampaignResponseCommon32ServingStatus = "LANDING_PAGE_NOT_AVAILABLE" SBCampaignResponseCommon32ServingStatusOUTOFBUDGET SBCampaignResponseCommon32ServingStatus = "OUT_OF_BUDGET" SBCampaignResponseCommon32ServingStatusPAUSED SBCampaignResponseCommon32ServingStatus = "PAUSED" SBCampaignResponseCommon32ServingStatusPENDINGREVIEW SBCampaignResponseCommon32ServingStatus = "PENDING_REVIEW" SBCampaignResponseCommon32ServingStatusREADY SBCampaignResponseCommon32ServingStatus = "READY" SBCampaignResponseCommon32ServingStatusREJECTED SBCampaignResponseCommon32ServingStatus = "REJECTED" SBCampaignResponseCommon32ServingStatusRUNNING SBCampaignResponseCommon32ServingStatus = "RUNNING" SBCampaignResponseCommon32ServingStatusSCHEDULED SBCampaignResponseCommon32ServingStatus = "SCHEDULED" SBCampaignResponseCommon32ServingStatusTERMINATED SBCampaignResponseCommon32ServingStatus = "TERMINATED" )
Defines values for SBCampaignResponseCommon32ServingStatus.
type SBCampaignResponseCommon32_Creative ¶
type SBCampaignResponseCommon32_Creative struct {
// contains filtered or unexported fields
}
SBCampaignResponseCommon32_Creative defines model for SBCampaignResponseCommon32.Creative.
func (SBCampaignResponseCommon32_Creative) AsSBProductCollectionCreative ¶
func (t SBCampaignResponseCommon32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCampaignResponseCommon32_Creative as a SBProductCollectionCreative
func (SBCampaignResponseCommon32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCampaignResponseCommon32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCampaignResponseCommon32_Creative as a SBStoreSpotlightCreative
func (*SBCampaignResponseCommon32_Creative) FromSBProductCollectionCreative ¶
func (t *SBCampaignResponseCommon32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCampaignResponseCommon32_Creative as the provided SBProductCollectionCreative
func (*SBCampaignResponseCommon32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCampaignResponseCommon32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCampaignResponseCommon32_Creative as the provided SBStoreSpotlightCreative
func (SBCampaignResponseCommon32_Creative) MarshalJSON ¶
func (t SBCampaignResponseCommon32_Creative) MarshalJSON() ([]byte, error)
func (*SBCampaignResponseCommon32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCampaignResponseCommon32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCampaignResponseCommon32_Creative, using the provided SBProductCollectionCreative
func (*SBCampaignResponseCommon32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCampaignResponseCommon32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCampaignResponseCommon32_Creative, using the provided SBStoreSpotlightCreative
func (*SBCampaignResponseCommon32_Creative) UnmarshalJSON ¶
func (t *SBCampaignResponseCommon32_Creative) UnmarshalJSON(b []byte) error
type SBCampaignResponseCommon32_LandingPage ¶
type SBCampaignResponseCommon32_LandingPage struct {
// contains filtered or unexported fields
}
SBCampaignResponseCommon32_LandingPage defines model for SBCampaignResponseCommon32.LandingPage.
func (SBCampaignResponseCommon32_LandingPage) AsSBCustomUrlLandingPage ¶
func (t SBCampaignResponseCommon32_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
AsSBCustomUrlLandingPage returns the union data inside the SBCampaignResponseCommon32_LandingPage as a SBCustomUrlLandingPage
func (SBCampaignResponseCommon32_LandingPage) AsSBProductListLandingPage ¶
func (t SBCampaignResponseCommon32_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
AsSBProductListLandingPage returns the union data inside the SBCampaignResponseCommon32_LandingPage as a SBProductListLandingPage
func (SBCampaignResponseCommon32_LandingPage) AsSBStoreLandingPage ¶
func (t SBCampaignResponseCommon32_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
AsSBStoreLandingPage returns the union data inside the SBCampaignResponseCommon32_LandingPage as a SBStoreLandingPage
func (*SBCampaignResponseCommon32_LandingPage) FromSBCustomUrlLandingPage ¶
func (t *SBCampaignResponseCommon32_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
FromSBCustomUrlLandingPage overwrites any union data inside the SBCampaignResponseCommon32_LandingPage as the provided SBCustomUrlLandingPage
func (*SBCampaignResponseCommon32_LandingPage) FromSBProductListLandingPage ¶
func (t *SBCampaignResponseCommon32_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
FromSBProductListLandingPage overwrites any union data inside the SBCampaignResponseCommon32_LandingPage as the provided SBProductListLandingPage
func (*SBCampaignResponseCommon32_LandingPage) FromSBStoreLandingPage ¶
func (t *SBCampaignResponseCommon32_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
FromSBStoreLandingPage overwrites any union data inside the SBCampaignResponseCommon32_LandingPage as the provided SBStoreLandingPage
func (SBCampaignResponseCommon32_LandingPage) MarshalJSON ¶
func (t SBCampaignResponseCommon32_LandingPage) MarshalJSON() ([]byte, error)
func (*SBCampaignResponseCommon32_LandingPage) MergeSBCustomUrlLandingPage ¶
func (t *SBCampaignResponseCommon32_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
MergeSBCustomUrlLandingPage performs a merge with any union data inside the SBCampaignResponseCommon32_LandingPage, using the provided SBCustomUrlLandingPage
func (*SBCampaignResponseCommon32_LandingPage) MergeSBProductListLandingPage ¶
func (t *SBCampaignResponseCommon32_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
MergeSBProductListLandingPage performs a merge with any union data inside the SBCampaignResponseCommon32_LandingPage, using the provided SBProductListLandingPage
func (*SBCampaignResponseCommon32_LandingPage) MergeSBStoreLandingPage ¶
func (t *SBCampaignResponseCommon32_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
MergeSBStoreLandingPage performs a merge with any union data inside the SBCampaignResponseCommon32_LandingPage, using the provided SBStoreLandingPage
func (*SBCampaignResponseCommon32_LandingPage) UnmarshalJSON ¶
func (t *SBCampaignResponseCommon32_LandingPage) UnmarshalJSON(b []byte) error
type SBCampaignResponseCommonServingStatus ¶
type SBCampaignResponseCommonServingStatus string
SBCampaignResponseCommonServingStatus |Status|Description| |------|-----------| |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| |BILLING_ERROR| Billing information requires correction.| |ENDED| THe `endDate` specified in the campaign object occurs in the past.| |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| |OUT_OF_BUDGET| The campaign has run out of budget.| |PAUSED| The campaign state set to `paused`.| |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| |READY| The campaign is scheduled for a future date.| |REJECTED| The campaign failed moderation review.| |RUNNING| The campaign is enabled and serving.| |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| |TERMINATED|The state of the campaign is set to `archived`.|
const ( SBCampaignResponseCommonServingStatusASINNOTBUYABLE SBCampaignResponseCommonServingStatus = "ASIN_NOT_BUYABLE" SBCampaignResponseCommonServingStatusBILLINGERROR SBCampaignResponseCommonServingStatus = "BILLING_ERROR" SBCampaignResponseCommonServingStatusENDED SBCampaignResponseCommonServingStatus = "ENDED" SBCampaignResponseCommonServingStatusLANDINGPAGENOTAVAILABLE SBCampaignResponseCommonServingStatus = "LANDING_PAGE_NOT_AVAILABLE" SBCampaignResponseCommonServingStatusOUTOFBUDGET SBCampaignResponseCommonServingStatus = "OUT_OF_BUDGET" SBCampaignResponseCommonServingStatusPAUSED SBCampaignResponseCommonServingStatus = "PAUSED" SBCampaignResponseCommonServingStatusPENDINGREVIEW SBCampaignResponseCommonServingStatus = "PENDING_REVIEW" SBCampaignResponseCommonServingStatusREADY SBCampaignResponseCommonServingStatus = "READY" SBCampaignResponseCommonServingStatusREJECTED SBCampaignResponseCommonServingStatus = "REJECTED" SBCampaignResponseCommonServingStatusRUNNING SBCampaignResponseCommonServingStatus = "RUNNING" SBCampaignResponseCommonServingStatusSCHEDULED SBCampaignResponseCommonServingStatus = "SCHEDULED" SBCampaignResponseCommonServingStatusTERMINATED SBCampaignResponseCommonServingStatus = "TERMINATED" )
Defines values for SBCampaignResponseCommonServingStatus.
type SBCampaignResponseCommonV33 ¶
type SBCampaignResponseCommonV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. For example, if set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` Creative *SBCampaignResponseCommonV33_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` LandingPage *SBCampaignResponseCommonV33_LandingPage `json:"landingPage,omitempty"` // Name The campaign name. Name *SBCampaignName `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Status|Description| // |------|-----------| // |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| // |BILLING_ERROR| Billing information requires correction.| // |ENDED| THe `endDate` specified in the campaign object occurs in the past.| // |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |OUT_OF_BUDGET| The campaign has run out of budget.| // |PAUSED| The campaign state set to `paused`.| // |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| // |READY| The campaign is scheduled for a future date.| // |REJECTED| The campaign failed moderation review.| // |RUNNING| The campaign is enabled and serving.| // |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |TERMINATED|The state of the campaign is set to `archived`.| ServingStatus *SBCampaignResponseCommonV33ServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCampaignResponseCommonV33 defines model for SBCampaignResponseCommonV3_3.
type SBCampaignResponseCommonV33ServingStatus ¶
type SBCampaignResponseCommonV33ServingStatus string
SBCampaignResponseCommonV33ServingStatus |Status|Description| |------|-----------| |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| |BILLING_ERROR| Billing information requires correction.| |ENDED| THe `endDate` specified in the campaign object occurs in the past.| |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| |OUT_OF_BUDGET| The campaign has run out of budget.| |PAUSED| The campaign state set to `paused`.| |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| |READY| The campaign is scheduled for a future date.| |REJECTED| The campaign failed moderation review.| |RUNNING| The campaign is enabled and serving.| |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| |TERMINATED|The state of the campaign is set to `archived`.|
const ( SBCampaignResponseCommonV33ServingStatusASINNOTBUYABLE SBCampaignResponseCommonV33ServingStatus = "ASIN_NOT_BUYABLE" SBCampaignResponseCommonV33ServingStatusBILLINGERROR SBCampaignResponseCommonV33ServingStatus = "BILLING_ERROR" SBCampaignResponseCommonV33ServingStatusENDED SBCampaignResponseCommonV33ServingStatus = "ENDED" SBCampaignResponseCommonV33ServingStatusLANDINGPAGENOTAVAILABLE SBCampaignResponseCommonV33ServingStatus = "LANDING_PAGE_NOT_AVAILABLE" SBCampaignResponseCommonV33ServingStatusOUTOFBUDGET SBCampaignResponseCommonV33ServingStatus = "OUT_OF_BUDGET" SBCampaignResponseCommonV33ServingStatusPAUSED SBCampaignResponseCommonV33ServingStatus = "PAUSED" SBCampaignResponseCommonV33ServingStatusPENDINGREVIEW SBCampaignResponseCommonV33ServingStatus = "PENDING_REVIEW" SBCampaignResponseCommonV33ServingStatusREADY SBCampaignResponseCommonV33ServingStatus = "READY" SBCampaignResponseCommonV33ServingStatusREJECTED SBCampaignResponseCommonV33ServingStatus = "REJECTED" SBCampaignResponseCommonV33ServingStatusRUNNING SBCampaignResponseCommonV33ServingStatus = "RUNNING" SBCampaignResponseCommonV33ServingStatusSCHEDULED SBCampaignResponseCommonV33ServingStatus = "SCHEDULED" SBCampaignResponseCommonV33ServingStatusTERMINATED SBCampaignResponseCommonV33ServingStatus = "TERMINATED" )
Defines values for SBCampaignResponseCommonV33ServingStatus.
type SBCampaignResponseCommonV33_Creative ¶
type SBCampaignResponseCommonV33_Creative struct {
// contains filtered or unexported fields
}
SBCampaignResponseCommonV33_Creative defines model for SBCampaignResponseCommonV33.Creative.
func (SBCampaignResponseCommonV33_Creative) AsSBProductCollectionCreative ¶
func (t SBCampaignResponseCommonV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCampaignResponseCommonV33_Creative as a SBProductCollectionCreative
func (SBCampaignResponseCommonV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCampaignResponseCommonV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCampaignResponseCommonV33_Creative as a SBStoreSpotlightCreative
func (*SBCampaignResponseCommonV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBCampaignResponseCommonV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCampaignResponseCommonV33_Creative as the provided SBProductCollectionCreative
func (*SBCampaignResponseCommonV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCampaignResponseCommonV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCampaignResponseCommonV33_Creative as the provided SBStoreSpotlightCreative
func (SBCampaignResponseCommonV33_Creative) MarshalJSON ¶
func (t SBCampaignResponseCommonV33_Creative) MarshalJSON() ([]byte, error)
func (*SBCampaignResponseCommonV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCampaignResponseCommonV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCampaignResponseCommonV33_Creative, using the provided SBProductCollectionCreative
func (*SBCampaignResponseCommonV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCampaignResponseCommonV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCampaignResponseCommonV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBCampaignResponseCommonV33_Creative) UnmarshalJSON ¶
func (t *SBCampaignResponseCommonV33_Creative) UnmarshalJSON(b []byte) error
type SBCampaignResponseCommonV33_LandingPage ¶
type SBCampaignResponseCommonV33_LandingPage struct {
// contains filtered or unexported fields
}
SBCampaignResponseCommonV33_LandingPage defines model for SBCampaignResponseCommonV33.LandingPage.
func (SBCampaignResponseCommonV33_LandingPage) AsSBCustomUrlLandingPage ¶
func (t SBCampaignResponseCommonV33_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
AsSBCustomUrlLandingPage returns the union data inside the SBCampaignResponseCommonV33_LandingPage as a SBCustomUrlLandingPage
func (SBCampaignResponseCommonV33_LandingPage) AsSBProductListLandingPage ¶
func (t SBCampaignResponseCommonV33_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
AsSBProductListLandingPage returns the union data inside the SBCampaignResponseCommonV33_LandingPage as a SBProductListLandingPage
func (SBCampaignResponseCommonV33_LandingPage) AsSBStoreLandingPage ¶
func (t SBCampaignResponseCommonV33_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
AsSBStoreLandingPage returns the union data inside the SBCampaignResponseCommonV33_LandingPage as a SBStoreLandingPage
func (*SBCampaignResponseCommonV33_LandingPage) FromSBCustomUrlLandingPage ¶
func (t *SBCampaignResponseCommonV33_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
FromSBCustomUrlLandingPage overwrites any union data inside the SBCampaignResponseCommonV33_LandingPage as the provided SBCustomUrlLandingPage
func (*SBCampaignResponseCommonV33_LandingPage) FromSBProductListLandingPage ¶
func (t *SBCampaignResponseCommonV33_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
FromSBProductListLandingPage overwrites any union data inside the SBCampaignResponseCommonV33_LandingPage as the provided SBProductListLandingPage
func (*SBCampaignResponseCommonV33_LandingPage) FromSBStoreLandingPage ¶
func (t *SBCampaignResponseCommonV33_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
FromSBStoreLandingPage overwrites any union data inside the SBCampaignResponseCommonV33_LandingPage as the provided SBStoreLandingPage
func (SBCampaignResponseCommonV33_LandingPage) MarshalJSON ¶
func (t SBCampaignResponseCommonV33_LandingPage) MarshalJSON() ([]byte, error)
func (*SBCampaignResponseCommonV33_LandingPage) MergeSBCustomUrlLandingPage ¶
func (t *SBCampaignResponseCommonV33_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
MergeSBCustomUrlLandingPage performs a merge with any union data inside the SBCampaignResponseCommonV33_LandingPage, using the provided SBCustomUrlLandingPage
func (*SBCampaignResponseCommonV33_LandingPage) MergeSBProductListLandingPage ¶
func (t *SBCampaignResponseCommonV33_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
MergeSBProductListLandingPage performs a merge with any union data inside the SBCampaignResponseCommonV33_LandingPage, using the provided SBProductListLandingPage
func (*SBCampaignResponseCommonV33_LandingPage) MergeSBStoreLandingPage ¶
func (t *SBCampaignResponseCommonV33_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
MergeSBStoreLandingPage performs a merge with any union data inside the SBCampaignResponseCommonV33_LandingPage, using the provided SBStoreLandingPage
func (*SBCampaignResponseCommonV33_LandingPage) UnmarshalJSON ¶
func (t *SBCampaignResponseCommonV33_LandingPage) UnmarshalJSON(b []byte) error
type SBCampaignResponseCommon_LandingPage ¶
type SBCampaignResponseCommon_LandingPage struct {
// contains filtered or unexported fields
}
SBCampaignResponseCommon_LandingPage defines model for SBCampaignResponseCommon.LandingPage.
func (SBCampaignResponseCommon_LandingPage) AsSBCustomUrlLandingPage ¶
func (t SBCampaignResponseCommon_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
AsSBCustomUrlLandingPage returns the union data inside the SBCampaignResponseCommon_LandingPage as a SBCustomUrlLandingPage
func (SBCampaignResponseCommon_LandingPage) AsSBProductListLandingPage ¶
func (t SBCampaignResponseCommon_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
AsSBProductListLandingPage returns the union data inside the SBCampaignResponseCommon_LandingPage as a SBProductListLandingPage
func (SBCampaignResponseCommon_LandingPage) AsSBStoreLandingPage ¶
func (t SBCampaignResponseCommon_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
AsSBStoreLandingPage returns the union data inside the SBCampaignResponseCommon_LandingPage as a SBStoreLandingPage
func (*SBCampaignResponseCommon_LandingPage) FromSBCustomUrlLandingPage ¶
func (t *SBCampaignResponseCommon_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
FromSBCustomUrlLandingPage overwrites any union data inside the SBCampaignResponseCommon_LandingPage as the provided SBCustomUrlLandingPage
func (*SBCampaignResponseCommon_LandingPage) FromSBProductListLandingPage ¶
func (t *SBCampaignResponseCommon_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
FromSBProductListLandingPage overwrites any union data inside the SBCampaignResponseCommon_LandingPage as the provided SBProductListLandingPage
func (*SBCampaignResponseCommon_LandingPage) FromSBStoreLandingPage ¶
func (t *SBCampaignResponseCommon_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
FromSBStoreLandingPage overwrites any union data inside the SBCampaignResponseCommon_LandingPage as the provided SBStoreLandingPage
func (SBCampaignResponseCommon_LandingPage) MarshalJSON ¶
func (t SBCampaignResponseCommon_LandingPage) MarshalJSON() ([]byte, error)
func (*SBCampaignResponseCommon_LandingPage) MergeSBCustomUrlLandingPage ¶
func (t *SBCampaignResponseCommon_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
MergeSBCustomUrlLandingPage performs a merge with any union data inside the SBCampaignResponseCommon_LandingPage, using the provided SBCustomUrlLandingPage
func (*SBCampaignResponseCommon_LandingPage) MergeSBProductListLandingPage ¶
func (t *SBCampaignResponseCommon_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
MergeSBProductListLandingPage performs a merge with any union data inside the SBCampaignResponseCommon_LandingPage, using the provided SBProductListLandingPage
func (*SBCampaignResponseCommon_LandingPage) MergeSBStoreLandingPage ¶
func (t *SBCampaignResponseCommon_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
MergeSBStoreLandingPage performs a merge with any union data inside the SBCampaignResponseCommon_LandingPage, using the provided SBStoreLandingPage
func (*SBCampaignResponseCommon_LandingPage) UnmarshalJSON ¶
func (t *SBCampaignResponseCommon_LandingPage) UnmarshalJSON(b []byte) error
type SBCampaignResponseV33 ¶
type SBCampaignResponseV33 struct {
// contains filtered or unexported fields
}
SBCampaignResponseV33 SB campaign
func (SBCampaignResponseV33) AsSBCampaignResponseCommonV33 ¶
func (t SBCampaignResponseV33) AsSBCampaignResponseCommonV33() (SBCampaignResponseCommonV33, error)
AsSBCampaignResponseCommonV33 returns the union data inside the SBCampaignResponseV33 as a SBCampaignResponseCommonV33
func (SBCampaignResponseV33) AsSBVideoCampaignResponseCommon ¶
func (t SBCampaignResponseV33) AsSBVideoCampaignResponseCommon() (SBVideoCampaignResponseCommon, error)
AsSBVideoCampaignResponseCommon returns the union data inside the SBCampaignResponseV33 as a SBVideoCampaignResponseCommon
func (*SBCampaignResponseV33) FromSBCampaignResponseCommonV33 ¶
func (t *SBCampaignResponseV33) FromSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
FromSBCampaignResponseCommonV33 overwrites any union data inside the SBCampaignResponseV33 as the provided SBCampaignResponseCommonV33
func (*SBCampaignResponseV33) FromSBVideoCampaignResponseCommon ¶
func (t *SBCampaignResponseV33) FromSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
FromSBVideoCampaignResponseCommon overwrites any union data inside the SBCampaignResponseV33 as the provided SBVideoCampaignResponseCommon
func (SBCampaignResponseV33) MarshalJSON ¶
func (t SBCampaignResponseV33) MarshalJSON() ([]byte, error)
func (*SBCampaignResponseV33) MergeSBCampaignResponseCommonV33 ¶
func (t *SBCampaignResponseV33) MergeSBCampaignResponseCommonV33(v SBCampaignResponseCommonV33) error
MergeSBCampaignResponseCommonV33 performs a merge with any union data inside the SBCampaignResponseV33, using the provided SBCampaignResponseCommonV33
func (*SBCampaignResponseV33) MergeSBVideoCampaignResponseCommon ¶
func (t *SBCampaignResponseV33) MergeSBVideoCampaignResponseCommon(v SBVideoCampaignResponseCommon) error
MergeSBVideoCampaignResponseCommon performs a merge with any union data inside the SBCampaignResponseV33, using the provided SBVideoCampaignResponseCommon
func (*SBCampaignResponseV33) UnmarshalJSON ¶
func (t *SBCampaignResponseV33) UnmarshalJSON(b []byte) error
type SBCategoryResponse ¶
type SBCategoryResponse struct { // EstimatedReach The estimated daily reach range of the category. Only set when supply source is `STREAMING_VIDEO` EstimatedReach *string `json:"estimatedReach,omitempty"` // Id The category identifier. Id *int64 `json:"id,omitempty"` // IsTargetable Set to `true` if the category can be targeted in a targeting expression, and `false` if not. IsTargetable *bool `json:"isTargetable,omitempty"` // Name The category name. Name *string `json:"name,omitempty"` // Path The path of the category within the category catalogue. Path *string `json:"path,omitempty"` // TranslatedName The category name translated to the specified locale in the request. TranslatedName *string `json:"translatedName,omitempty"` // TranslatedPath The path of the category within the category catalogue translated to the specified locale in the request. TranslatedPath *string `json:"translatedPath,omitempty"` }
SBCategoryResponse defines model for SBCategoryResponse.
type SBCollectionCreative ¶
type SBCollectionCreative struct { // Asins An array of ASINs associated with the creative. **Note** do not pass an empty array. This results in an error. Asins *[]string `json:"asins,omitempty"` // BrandLogoAssetID The identifier of the brand logo image from the Store assets library. See [listAssets](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Stores) for more information. Note that for campaigns created in the Amazon Ads console prior to release of the Store assets library, responses will not include a value for the brandLogoAssetID field. BrandLogoAssetID *string `json:"brandLogoAssetID,omitempty"` // BrandLogoAssetId The identifier of the brand logo image from the Store assets library. See [listAssets](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Stores) for more information. Note that for campaigns created in the Amazon Ads console prior to release of the Store assets library, responses will not include a value for the brandLogoAssetID field. BrandLogoAssetId *string `json:"brandLogoAssetId,omitempty"` // BrandLogoUrl The address of the hosted image. BrandLogoUrl *string `json:"brandLogoUrl,omitempty"` // BrandName The brand name. BrandName *string `json:"brandName,omitempty"` // Headline The headline text. Maximum length of the string is 50 characters for all marketplaces other than Japan, which has a maximum length of 35 characters. Headline *string `json:"headline,omitempty"` // ShouldOptimizeAsins Note that this field is supported only in the US and UK marketplaces. Set to `true` to have Amazon show other products from your landing page in the advertisement if they are more relevant to the shopper's search. Set to `false` to use the ASINs specified in the `asins` field. Do not specify in unsupported marketplaces. ShouldOptimizeAsins *bool `json:"shouldOptimizeAsins,omitempty"` }
SBCollectionCreative defines model for SBCollectionCreative.
type SBCommonKeywords ¶
type SBCommonKeywords struct { // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` }
SBCommonKeywords defines model for SBCommonKeywords.
type SBCommonTargets ¶
type SBCommonTargets struct { NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBCommonTargets defines model for SBCommonTargets.
type SBCreateCampaignRequest ¶
type SBCreateCampaignRequest struct {
// contains filtered or unexported fields
}
SBCreateCampaignRequest defines model for SBCreateCampaignRequest.
func (SBCreateCampaignRequest) AsSBCreateCampaignWithExpressions ¶
func (t SBCreateCampaignRequest) AsSBCreateCampaignWithExpressions() (SBCreateCampaignWithExpressions, error)
AsSBCreateCampaignWithExpressions returns the union data inside the SBCreateCampaignRequest as a SBCreateCampaignWithExpressions
func (SBCreateCampaignRequest) AsSBCreateCampaignWithKeywords ¶
func (t SBCreateCampaignRequest) AsSBCreateCampaignWithKeywords() (SBCreateCampaignWithKeywords, error)
AsSBCreateCampaignWithKeywords returns the union data inside the SBCreateCampaignRequest as a SBCreateCampaignWithKeywords
func (SBCreateCampaignRequest) AsSBVideoCreateCampaignWithExpressions ¶
func (t SBCreateCampaignRequest) AsSBVideoCreateCampaignWithExpressions() (SBVideoCreateCampaignWithExpressions, error)
AsSBVideoCreateCampaignWithExpressions returns the union data inside the SBCreateCampaignRequest as a SBVideoCreateCampaignWithExpressions
func (SBCreateCampaignRequest) AsSBVideoCreateCampaignWithKeywords ¶
func (t SBCreateCampaignRequest) AsSBVideoCreateCampaignWithKeywords() (SBVideoCreateCampaignWithKeywords, error)
AsSBVideoCreateCampaignWithKeywords returns the union data inside the SBCreateCampaignRequest as a SBVideoCreateCampaignWithKeywords
func (*SBCreateCampaignRequest) FromSBCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequest) FromSBCreateCampaignWithExpressions(v SBCreateCampaignWithExpressions) error
FromSBCreateCampaignWithExpressions overwrites any union data inside the SBCreateCampaignRequest as the provided SBCreateCampaignWithExpressions
func (*SBCreateCampaignRequest) FromSBCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequest) FromSBCreateCampaignWithKeywords(v SBCreateCampaignWithKeywords) error
FromSBCreateCampaignWithKeywords overwrites any union data inside the SBCreateCampaignRequest as the provided SBCreateCampaignWithKeywords
func (*SBCreateCampaignRequest) FromSBVideoCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequest) FromSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
FromSBVideoCreateCampaignWithExpressions overwrites any union data inside the SBCreateCampaignRequest as the provided SBVideoCreateCampaignWithExpressions
func (*SBCreateCampaignRequest) FromSBVideoCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequest) FromSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
FromSBVideoCreateCampaignWithKeywords overwrites any union data inside the SBCreateCampaignRequest as the provided SBVideoCreateCampaignWithKeywords
func (SBCreateCampaignRequest) MarshalJSON ¶
func (t SBCreateCampaignRequest) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignRequest) MergeSBCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequest) MergeSBCreateCampaignWithExpressions(v SBCreateCampaignWithExpressions) error
MergeSBCreateCampaignWithExpressions performs a merge with any union data inside the SBCreateCampaignRequest, using the provided SBCreateCampaignWithExpressions
func (*SBCreateCampaignRequest) MergeSBCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequest) MergeSBCreateCampaignWithKeywords(v SBCreateCampaignWithKeywords) error
MergeSBCreateCampaignWithKeywords performs a merge with any union data inside the SBCreateCampaignRequest, using the provided SBCreateCampaignWithKeywords
func (*SBCreateCampaignRequest) MergeSBVideoCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequest) MergeSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
MergeSBVideoCreateCampaignWithExpressions performs a merge with any union data inside the SBCreateCampaignRequest, using the provided SBVideoCreateCampaignWithExpressions
func (*SBCreateCampaignRequest) MergeSBVideoCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequest) MergeSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
MergeSBVideoCreateCampaignWithKeywords performs a merge with any union data inside the SBCreateCampaignRequest, using the provided SBVideoCreateCampaignWithKeywords
func (*SBCreateCampaignRequest) UnmarshalJSON ¶
func (t *SBCreateCampaignRequest) UnmarshalJSON(b []byte) error
type SBCreateCampaignRequestCommon ¶
type SBCreateCampaignRequestCommon struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCreateCampaignRequestCommon defines model for SBCreateCampaignRequestCommon.
type SBCreateCampaignRequestCommonV32 ¶
type SBCreateCampaignRequestCommonV32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBCreateCampaignRequestCommonV32_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCreateCampaignRequestCommonV32 defines model for SBCreateCampaignRequestCommonV3_2.
type SBCreateCampaignRequestCommonV32_Creative ¶
type SBCreateCampaignRequestCommonV32_Creative struct {
// contains filtered or unexported fields
}
SBCreateCampaignRequestCommonV32_Creative defines model for SBCreateCampaignRequestCommonV32.Creative.
func (SBCreateCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateCampaignRequestCommonV32_Creative as a SBProductCollectionCreative
func (SBCreateCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateCampaignRequestCommonV32_Creative as a SBStoreSpotlightCreative
func (*SBCreateCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateCampaignRequestCommonV32_Creative as the provided SBProductCollectionCreative
func (*SBCreateCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateCampaignRequestCommonV32_Creative as the provided SBStoreSpotlightCreative
func (SBCreateCampaignRequestCommonV32_Creative) MarshalJSON ¶
func (t SBCreateCampaignRequestCommonV32_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateCampaignRequestCommonV32_Creative, using the provided SBProductCollectionCreative
func (*SBCreateCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateCampaignRequestCommonV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateCampaignRequestCommonV32_Creative) UnmarshalJSON ¶
func (t *SBCreateCampaignRequestCommonV32_Creative) UnmarshalJSON(b []byte) error
type SBCreateCampaignRequestCommonV33 ¶
type SBCreateCampaignRequestCommonV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBCreateCampaignRequestCommonV33_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCreateCampaignRequestCommonV33 defines model for SBCreateCampaignRequestCommonV3_3.
type SBCreateCampaignRequestCommonV33_Creative ¶
type SBCreateCampaignRequestCommonV33_Creative struct {
// contains filtered or unexported fields
}
SBCreateCampaignRequestCommonV33_Creative defines model for SBCreateCampaignRequestCommonV33.Creative.
func (SBCreateCampaignRequestCommonV33_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateCampaignRequestCommonV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateCampaignRequestCommonV33_Creative as a SBProductCollectionCreative
func (SBCreateCampaignRequestCommonV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateCampaignRequestCommonV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateCampaignRequestCommonV33_Creative as a SBStoreSpotlightCreative
func (*SBCreateCampaignRequestCommonV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateCampaignRequestCommonV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateCampaignRequestCommonV33_Creative as the provided SBProductCollectionCreative
func (*SBCreateCampaignRequestCommonV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignRequestCommonV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateCampaignRequestCommonV33_Creative as the provided SBStoreSpotlightCreative
func (SBCreateCampaignRequestCommonV33_Creative) MarshalJSON ¶
func (t SBCreateCampaignRequestCommonV33_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignRequestCommonV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateCampaignRequestCommonV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateCampaignRequestCommonV33_Creative, using the provided SBProductCollectionCreative
func (*SBCreateCampaignRequestCommonV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignRequestCommonV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateCampaignRequestCommonV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateCampaignRequestCommonV33_Creative) UnmarshalJSON ¶
func (t *SBCreateCampaignRequestCommonV33_Creative) UnmarshalJSON(b []byte) error
type SBCreateCampaignRequestV32 ¶
type SBCreateCampaignRequestV32 struct {
// contains filtered or unexported fields
}
SBCreateCampaignRequestV32 defines model for SBCreateCampaignRequestV3_2.
func (SBCreateCampaignRequestV32) AsSBCreateCampaignWithExpressionsV32 ¶
func (t SBCreateCampaignRequestV32) AsSBCreateCampaignWithExpressionsV32() (SBCreateCampaignWithExpressionsV32, error)
AsSBCreateCampaignWithExpressionsV32 returns the union data inside the SBCreateCampaignRequestV32 as a SBCreateCampaignWithExpressionsV32
func (SBCreateCampaignRequestV32) AsSBCreateCampaignWithKeywordsV32 ¶
func (t SBCreateCampaignRequestV32) AsSBCreateCampaignWithKeywordsV32() (SBCreateCampaignWithKeywordsV32, error)
AsSBCreateCampaignWithKeywordsV32 returns the union data inside the SBCreateCampaignRequestV32 as a SBCreateCampaignWithKeywordsV32
func (SBCreateCampaignRequestV32) AsSBVideoCreateCampaignWithExpressions ¶
func (t SBCreateCampaignRequestV32) AsSBVideoCreateCampaignWithExpressions() (SBVideoCreateCampaignWithExpressions, error)
AsSBVideoCreateCampaignWithExpressions returns the union data inside the SBCreateCampaignRequestV32 as a SBVideoCreateCampaignWithExpressions
func (SBCreateCampaignRequestV32) AsSBVideoCreateCampaignWithKeywords ¶
func (t SBCreateCampaignRequestV32) AsSBVideoCreateCampaignWithKeywords() (SBVideoCreateCampaignWithKeywords, error)
AsSBVideoCreateCampaignWithKeywords returns the union data inside the SBCreateCampaignRequestV32 as a SBVideoCreateCampaignWithKeywords
func (*SBCreateCampaignRequestV32) FromSBCreateCampaignWithExpressionsV32 ¶
func (t *SBCreateCampaignRequestV32) FromSBCreateCampaignWithExpressionsV32(v SBCreateCampaignWithExpressionsV32) error
FromSBCreateCampaignWithExpressionsV32 overwrites any union data inside the SBCreateCampaignRequestV32 as the provided SBCreateCampaignWithExpressionsV32
func (*SBCreateCampaignRequestV32) FromSBCreateCampaignWithKeywordsV32 ¶
func (t *SBCreateCampaignRequestV32) FromSBCreateCampaignWithKeywordsV32(v SBCreateCampaignWithKeywordsV32) error
FromSBCreateCampaignWithKeywordsV32 overwrites any union data inside the SBCreateCampaignRequestV32 as the provided SBCreateCampaignWithKeywordsV32
func (*SBCreateCampaignRequestV32) FromSBVideoCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequestV32) FromSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
FromSBVideoCreateCampaignWithExpressions overwrites any union data inside the SBCreateCampaignRequestV32 as the provided SBVideoCreateCampaignWithExpressions
func (*SBCreateCampaignRequestV32) FromSBVideoCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequestV32) FromSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
FromSBVideoCreateCampaignWithKeywords overwrites any union data inside the SBCreateCampaignRequestV32 as the provided SBVideoCreateCampaignWithKeywords
func (SBCreateCampaignRequestV32) MarshalJSON ¶
func (t SBCreateCampaignRequestV32) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignRequestV32) MergeSBCreateCampaignWithExpressionsV32 ¶
func (t *SBCreateCampaignRequestV32) MergeSBCreateCampaignWithExpressionsV32(v SBCreateCampaignWithExpressionsV32) error
MergeSBCreateCampaignWithExpressionsV32 performs a merge with any union data inside the SBCreateCampaignRequestV32, using the provided SBCreateCampaignWithExpressionsV32
func (*SBCreateCampaignRequestV32) MergeSBCreateCampaignWithKeywordsV32 ¶
func (t *SBCreateCampaignRequestV32) MergeSBCreateCampaignWithKeywordsV32(v SBCreateCampaignWithKeywordsV32) error
MergeSBCreateCampaignWithKeywordsV32 performs a merge with any union data inside the SBCreateCampaignRequestV32, using the provided SBCreateCampaignWithKeywordsV32
func (*SBCreateCampaignRequestV32) MergeSBVideoCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequestV32) MergeSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
MergeSBVideoCreateCampaignWithExpressions performs a merge with any union data inside the SBCreateCampaignRequestV32, using the provided SBVideoCreateCampaignWithExpressions
func (*SBCreateCampaignRequestV32) MergeSBVideoCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequestV32) MergeSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
MergeSBVideoCreateCampaignWithKeywords performs a merge with any union data inside the SBCreateCampaignRequestV32, using the provided SBVideoCreateCampaignWithKeywords
func (*SBCreateCampaignRequestV32) UnmarshalJSON ¶
func (t *SBCreateCampaignRequestV32) UnmarshalJSON(b []byte) error
type SBCreateCampaignRequestV33 ¶
type SBCreateCampaignRequestV33 struct {
// contains filtered or unexported fields
}
SBCreateCampaignRequestV33 defines model for SBCreateCampaignRequestV3_3.
func (SBCreateCampaignRequestV33) AsSBCreateCampaignWithExpressionsV33 ¶
func (t SBCreateCampaignRequestV33) AsSBCreateCampaignWithExpressionsV33() (SBCreateCampaignWithExpressionsV33, error)
AsSBCreateCampaignWithExpressionsV33 returns the union data inside the SBCreateCampaignRequestV33 as a SBCreateCampaignWithExpressionsV33
func (SBCreateCampaignRequestV33) AsSBCreateCampaignWithKeywordsV33 ¶
func (t SBCreateCampaignRequestV33) AsSBCreateCampaignWithKeywordsV33() (SBCreateCampaignWithKeywordsV33, error)
AsSBCreateCampaignWithKeywordsV33 returns the union data inside the SBCreateCampaignRequestV33 as a SBCreateCampaignWithKeywordsV33
func (SBCreateCampaignRequestV33) AsSBVideoCreateCampaignWithExpressions ¶
func (t SBCreateCampaignRequestV33) AsSBVideoCreateCampaignWithExpressions() (SBVideoCreateCampaignWithExpressions, error)
AsSBVideoCreateCampaignWithExpressions returns the union data inside the SBCreateCampaignRequestV33 as a SBVideoCreateCampaignWithExpressions
func (SBCreateCampaignRequestV33) AsSBVideoCreateCampaignWithKeywords ¶
func (t SBCreateCampaignRequestV33) AsSBVideoCreateCampaignWithKeywords() (SBVideoCreateCampaignWithKeywords, error)
AsSBVideoCreateCampaignWithKeywords returns the union data inside the SBCreateCampaignRequestV33 as a SBVideoCreateCampaignWithKeywords
func (*SBCreateCampaignRequestV33) FromSBCreateCampaignWithExpressionsV33 ¶
func (t *SBCreateCampaignRequestV33) FromSBCreateCampaignWithExpressionsV33(v SBCreateCampaignWithExpressionsV33) error
FromSBCreateCampaignWithExpressionsV33 overwrites any union data inside the SBCreateCampaignRequestV33 as the provided SBCreateCampaignWithExpressionsV33
func (*SBCreateCampaignRequestV33) FromSBCreateCampaignWithKeywordsV33 ¶
func (t *SBCreateCampaignRequestV33) FromSBCreateCampaignWithKeywordsV33(v SBCreateCampaignWithKeywordsV33) error
FromSBCreateCampaignWithKeywordsV33 overwrites any union data inside the SBCreateCampaignRequestV33 as the provided SBCreateCampaignWithKeywordsV33
func (*SBCreateCampaignRequestV33) FromSBVideoCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequestV33) FromSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
FromSBVideoCreateCampaignWithExpressions overwrites any union data inside the SBCreateCampaignRequestV33 as the provided SBVideoCreateCampaignWithExpressions
func (*SBCreateCampaignRequestV33) FromSBVideoCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequestV33) FromSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
FromSBVideoCreateCampaignWithKeywords overwrites any union data inside the SBCreateCampaignRequestV33 as the provided SBVideoCreateCampaignWithKeywords
func (SBCreateCampaignRequestV33) MarshalJSON ¶
func (t SBCreateCampaignRequestV33) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignRequestV33) MergeSBCreateCampaignWithExpressionsV33 ¶
func (t *SBCreateCampaignRequestV33) MergeSBCreateCampaignWithExpressionsV33(v SBCreateCampaignWithExpressionsV33) error
MergeSBCreateCampaignWithExpressionsV33 performs a merge with any union data inside the SBCreateCampaignRequestV33, using the provided SBCreateCampaignWithExpressionsV33
func (*SBCreateCampaignRequestV33) MergeSBCreateCampaignWithKeywordsV33 ¶
func (t *SBCreateCampaignRequestV33) MergeSBCreateCampaignWithKeywordsV33(v SBCreateCampaignWithKeywordsV33) error
MergeSBCreateCampaignWithKeywordsV33 performs a merge with any union data inside the SBCreateCampaignRequestV33, using the provided SBCreateCampaignWithKeywordsV33
func (*SBCreateCampaignRequestV33) MergeSBVideoCreateCampaignWithExpressions ¶
func (t *SBCreateCampaignRequestV33) MergeSBVideoCreateCampaignWithExpressions(v SBVideoCreateCampaignWithExpressions) error
MergeSBVideoCreateCampaignWithExpressions performs a merge with any union data inside the SBCreateCampaignRequestV33, using the provided SBVideoCreateCampaignWithExpressions
func (*SBCreateCampaignRequestV33) MergeSBVideoCreateCampaignWithKeywords ¶
func (t *SBCreateCampaignRequestV33) MergeSBVideoCreateCampaignWithKeywords(v SBVideoCreateCampaignWithKeywords) error
MergeSBVideoCreateCampaignWithKeywords performs a merge with any union data inside the SBCreateCampaignRequestV33, using the provided SBVideoCreateCampaignWithKeywords
func (*SBCreateCampaignRequestV33) UnmarshalJSON ¶
func (t *SBCreateCampaignRequestV33) UnmarshalJSON(b []byte) error
type SBCreateCampaignWithExpressions ¶
type SBCreateCampaignWithExpressions struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBCreateCampaignWithExpressions defines model for SBCreateCampaignWithExpressions.
type SBCreateCampaignWithExpressionsV32 ¶
type SBCreateCampaignWithExpressionsV32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBCreateCampaignWithExpressionsV32_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBCreateCampaignWithExpressionsV32 defines model for SBCreateCampaignWithExpressionsV3_2.
type SBCreateCampaignWithExpressionsV32_Creative ¶
type SBCreateCampaignWithExpressionsV32_Creative struct {
// contains filtered or unexported fields
}
SBCreateCampaignWithExpressionsV32_Creative defines model for SBCreateCampaignWithExpressionsV32.Creative.
func (SBCreateCampaignWithExpressionsV32_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateCampaignWithExpressionsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateCampaignWithExpressionsV32_Creative as a SBProductCollectionCreative
func (SBCreateCampaignWithExpressionsV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateCampaignWithExpressionsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateCampaignWithExpressionsV32_Creative as a SBStoreSpotlightCreative
func (*SBCreateCampaignWithExpressionsV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithExpressionsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateCampaignWithExpressionsV32_Creative as the provided SBProductCollectionCreative
func (*SBCreateCampaignWithExpressionsV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithExpressionsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateCampaignWithExpressionsV32_Creative as the provided SBStoreSpotlightCreative
func (SBCreateCampaignWithExpressionsV32_Creative) MarshalJSON ¶
func (t SBCreateCampaignWithExpressionsV32_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignWithExpressionsV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithExpressionsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateCampaignWithExpressionsV32_Creative, using the provided SBProductCollectionCreative
func (*SBCreateCampaignWithExpressionsV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithExpressionsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateCampaignWithExpressionsV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateCampaignWithExpressionsV32_Creative) UnmarshalJSON ¶
func (t *SBCreateCampaignWithExpressionsV32_Creative) UnmarshalJSON(b []byte) error
type SBCreateCampaignWithExpressionsV33 ¶
type SBCreateCampaignWithExpressionsV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBCreateCampaignWithExpressionsV33_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBCreateCampaignWithExpressionsV33 defines model for SBCreateCampaignWithExpressionsV3_3.
type SBCreateCampaignWithExpressionsV33_Creative ¶
type SBCreateCampaignWithExpressionsV33_Creative struct {
// contains filtered or unexported fields
}
SBCreateCampaignWithExpressionsV33_Creative defines model for SBCreateCampaignWithExpressionsV33.Creative.
func (SBCreateCampaignWithExpressionsV33_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateCampaignWithExpressionsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateCampaignWithExpressionsV33_Creative as a SBProductCollectionCreative
func (SBCreateCampaignWithExpressionsV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateCampaignWithExpressionsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateCampaignWithExpressionsV33_Creative as a SBStoreSpotlightCreative
func (*SBCreateCampaignWithExpressionsV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithExpressionsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateCampaignWithExpressionsV33_Creative as the provided SBProductCollectionCreative
func (*SBCreateCampaignWithExpressionsV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithExpressionsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateCampaignWithExpressionsV33_Creative as the provided SBStoreSpotlightCreative
func (SBCreateCampaignWithExpressionsV33_Creative) MarshalJSON ¶
func (t SBCreateCampaignWithExpressionsV33_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignWithExpressionsV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithExpressionsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateCampaignWithExpressionsV33_Creative, using the provided SBProductCollectionCreative
func (*SBCreateCampaignWithExpressionsV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithExpressionsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateCampaignWithExpressionsV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateCampaignWithExpressionsV33_Creative) UnmarshalJSON ¶
func (t *SBCreateCampaignWithExpressionsV33_Creative) UnmarshalJSON(b []byte) error
type SBCreateCampaignWithKeywords ¶
type SBCreateCampaignWithKeywords struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCreateCampaignWithKeywords defines model for SBCreateCampaignWithKeywords.
type SBCreateCampaignWithKeywordsV32 ¶
type SBCreateCampaignWithKeywordsV32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBCreateCampaignWithKeywordsV32_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCreateCampaignWithKeywordsV32 defines model for SBCreateCampaignWithKeywordsV3_2.
type SBCreateCampaignWithKeywordsV32_Creative ¶
type SBCreateCampaignWithKeywordsV32_Creative struct {
// contains filtered or unexported fields
}
SBCreateCampaignWithKeywordsV32_Creative defines model for SBCreateCampaignWithKeywordsV32.Creative.
func (SBCreateCampaignWithKeywordsV32_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateCampaignWithKeywordsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateCampaignWithKeywordsV32_Creative as a SBProductCollectionCreative
func (SBCreateCampaignWithKeywordsV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateCampaignWithKeywordsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateCampaignWithKeywordsV32_Creative as a SBStoreSpotlightCreative
func (*SBCreateCampaignWithKeywordsV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithKeywordsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateCampaignWithKeywordsV32_Creative as the provided SBProductCollectionCreative
func (*SBCreateCampaignWithKeywordsV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithKeywordsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateCampaignWithKeywordsV32_Creative as the provided SBStoreSpotlightCreative
func (SBCreateCampaignWithKeywordsV32_Creative) MarshalJSON ¶
func (t SBCreateCampaignWithKeywordsV32_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignWithKeywordsV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithKeywordsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateCampaignWithKeywordsV32_Creative, using the provided SBProductCollectionCreative
func (*SBCreateCampaignWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateCampaignWithKeywordsV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateCampaignWithKeywordsV32_Creative) UnmarshalJSON ¶
func (t *SBCreateCampaignWithKeywordsV32_Creative) UnmarshalJSON(b []byte) error
type SBCreateCampaignWithKeywordsV33 ¶
type SBCreateCampaignWithKeywordsV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBCreateCampaignWithKeywordsV33_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Note that idempotency for this field works different for sellers and vendors. Sellers aren't allowed to have duplicate campaign names, but vendors can have duplicate campaign names. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBCreateCampaignWithKeywordsV33 defines model for SBCreateCampaignWithKeywordsV3_3.
type SBCreateCampaignWithKeywordsV33_Creative ¶
type SBCreateCampaignWithKeywordsV33_Creative struct {
// contains filtered or unexported fields
}
SBCreateCampaignWithKeywordsV33_Creative defines model for SBCreateCampaignWithKeywordsV33.Creative.
func (SBCreateCampaignWithKeywordsV33_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateCampaignWithKeywordsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateCampaignWithKeywordsV33_Creative as a SBProductCollectionCreative
func (SBCreateCampaignWithKeywordsV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateCampaignWithKeywordsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateCampaignWithKeywordsV33_Creative as a SBStoreSpotlightCreative
func (*SBCreateCampaignWithKeywordsV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithKeywordsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateCampaignWithKeywordsV33_Creative as the provided SBProductCollectionCreative
func (*SBCreateCampaignWithKeywordsV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithKeywordsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateCampaignWithKeywordsV33_Creative as the provided SBStoreSpotlightCreative
func (SBCreateCampaignWithKeywordsV33_Creative) MarshalJSON ¶
func (t SBCreateCampaignWithKeywordsV33_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateCampaignWithKeywordsV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateCampaignWithKeywordsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateCampaignWithKeywordsV33_Creative, using the provided SBProductCollectionCreative
func (*SBCreateCampaignWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateCampaignWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateCampaignWithKeywordsV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateCampaignWithKeywordsV33_Creative) UnmarshalJSON ¶
func (t *SBCreateCampaignWithKeywordsV33_Creative) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignRequest ¶
type SBCreateDraftCampaignRequest struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignRequest defines model for SBCreateDraftCampaignRequest.
func (SBCreateDraftCampaignRequest) AsSBCreateDraftCampaignWithKeywords ¶
func (t SBCreateDraftCampaignRequest) AsSBCreateDraftCampaignWithKeywords() (SBCreateDraftCampaignWithKeywords, error)
AsSBCreateDraftCampaignWithKeywords returns the union data inside the SBCreateDraftCampaignRequest as a SBCreateDraftCampaignWithKeywords
func (SBCreateDraftCampaignRequest) AsSBCreateDraftCampaignWithProductTargets ¶
func (t SBCreateDraftCampaignRequest) AsSBCreateDraftCampaignWithProductTargets() (SBCreateDraftCampaignWithProductTargets, error)
AsSBCreateDraftCampaignWithProductTargets returns the union data inside the SBCreateDraftCampaignRequest as a SBCreateDraftCampaignWithProductTargets
func (SBCreateDraftCampaignRequest) AsSBVideoCreateDraftCampaignWithKeywords ¶
func (t SBCreateDraftCampaignRequest) AsSBVideoCreateDraftCampaignWithKeywords() (SBVideoCreateDraftCampaignWithKeywords, error)
AsSBVideoCreateDraftCampaignWithKeywords returns the union data inside the SBCreateDraftCampaignRequest as a SBVideoCreateDraftCampaignWithKeywords
func (SBCreateDraftCampaignRequest) AsSBVideoCreateDraftCampaignWithProductTargets ¶
func (t SBCreateDraftCampaignRequest) AsSBVideoCreateDraftCampaignWithProductTargets() (SBVideoCreateDraftCampaignWithProductTargets, error)
AsSBVideoCreateDraftCampaignWithProductTargets returns the union data inside the SBCreateDraftCampaignRequest as a SBVideoCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequest) FromSBCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequest) FromSBCreateDraftCampaignWithKeywords(v SBCreateDraftCampaignWithKeywords) error
FromSBCreateDraftCampaignWithKeywords overwrites any union data inside the SBCreateDraftCampaignRequest as the provided SBCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequest) FromSBCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequest) FromSBCreateDraftCampaignWithProductTargets(v SBCreateDraftCampaignWithProductTargets) error
FromSBCreateDraftCampaignWithProductTargets overwrites any union data inside the SBCreateDraftCampaignRequest as the provided SBCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequest) FromSBVideoCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequest) FromSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
FromSBVideoCreateDraftCampaignWithKeywords overwrites any union data inside the SBCreateDraftCampaignRequest as the provided SBVideoCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequest) FromSBVideoCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequest) FromSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
FromSBVideoCreateDraftCampaignWithProductTargets overwrites any union data inside the SBCreateDraftCampaignRequest as the provided SBVideoCreateDraftCampaignWithProductTargets
func (SBCreateDraftCampaignRequest) MarshalJSON ¶
func (t SBCreateDraftCampaignRequest) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignRequest) MergeSBCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequest) MergeSBCreateDraftCampaignWithKeywords(v SBCreateDraftCampaignWithKeywords) error
MergeSBCreateDraftCampaignWithKeywords performs a merge with any union data inside the SBCreateDraftCampaignRequest, using the provided SBCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequest) MergeSBCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequest) MergeSBCreateDraftCampaignWithProductTargets(v SBCreateDraftCampaignWithProductTargets) error
MergeSBCreateDraftCampaignWithProductTargets performs a merge with any union data inside the SBCreateDraftCampaignRequest, using the provided SBCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequest) MergeSBVideoCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequest) MergeSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
MergeSBVideoCreateDraftCampaignWithKeywords performs a merge with any union data inside the SBCreateDraftCampaignRequest, using the provided SBVideoCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequest) MergeSBVideoCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequest) MergeSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
MergeSBVideoCreateDraftCampaignWithProductTargets performs a merge with any union data inside the SBCreateDraftCampaignRequest, using the provided SBVideoCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequest) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignRequest) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignRequestCommon ¶
type SBCreateDraftCampaignRequestCommon struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBCreateDraftCampaignRequestCommon defines model for SBCreateDraftCampaignRequestCommon.
type SBCreateDraftCampaignRequestCommonV32 ¶
type SBCreateDraftCampaignRequestCommonV32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBCreateDraftCampaignRequestCommonV32_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBCreateDraftCampaignRequestCommonV32 defines model for SBCreateDraftCampaignRequestCommonV3_2.
type SBCreateDraftCampaignRequestCommonV32_Creative ¶
type SBCreateDraftCampaignRequestCommonV32_Creative struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignRequestCommonV32_Creative defines model for SBCreateDraftCampaignRequestCommonV32.Creative.
func (SBCreateDraftCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateDraftCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateDraftCampaignRequestCommonV32_Creative as a SBProductCollectionCreative
func (SBCreateDraftCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateDraftCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateDraftCampaignRequestCommonV32_Creative as a SBStoreSpotlightCreative
func (*SBCreateDraftCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateDraftCampaignRequestCommonV32_Creative as the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateDraftCampaignRequestCommonV32_Creative as the provided SBStoreSpotlightCreative
func (SBCreateDraftCampaignRequestCommonV32_Creative) MarshalJSON ¶
func (t SBCreateDraftCampaignRequestCommonV32_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateDraftCampaignRequestCommonV32_Creative, using the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateDraftCampaignRequestCommonV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateDraftCampaignRequestCommonV32_Creative) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignRequestCommonV32_Creative) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignRequestCommonV33 ¶
type SBCreateDraftCampaignRequestCommonV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBCreateDraftCampaignRequestCommonV33_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBCreateDraftCampaignRequestCommonV33 defines model for SBCreateDraftCampaignRequestCommonV3_3.
type SBCreateDraftCampaignRequestCommonV33_Creative ¶
type SBCreateDraftCampaignRequestCommonV33_Creative struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignRequestCommonV33_Creative defines model for SBCreateDraftCampaignRequestCommonV33.Creative.
func (SBCreateDraftCampaignRequestCommonV33_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateDraftCampaignRequestCommonV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateDraftCampaignRequestCommonV33_Creative as a SBProductCollectionCreative
func (SBCreateDraftCampaignRequestCommonV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateDraftCampaignRequestCommonV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateDraftCampaignRequestCommonV33_Creative as a SBStoreSpotlightCreative
func (*SBCreateDraftCampaignRequestCommonV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateDraftCampaignRequestCommonV33_Creative as the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignRequestCommonV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateDraftCampaignRequestCommonV33_Creative as the provided SBStoreSpotlightCreative
func (SBCreateDraftCampaignRequestCommonV33_Creative) MarshalJSON ¶
func (t SBCreateDraftCampaignRequestCommonV33_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignRequestCommonV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateDraftCampaignRequestCommonV33_Creative, using the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignRequestCommonV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignRequestCommonV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateDraftCampaignRequestCommonV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateDraftCampaignRequestCommonV33_Creative) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignRequestCommonV33_Creative) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignRequestV32 ¶
type SBCreateDraftCampaignRequestV32 struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignRequestV32 defines model for SBCreateDraftCampaignRequestV3_2.
func (SBCreateDraftCampaignRequestV32) AsSBCreateDraftCampaignWithKeywordsV32 ¶
func (t SBCreateDraftCampaignRequestV32) AsSBCreateDraftCampaignWithKeywordsV32() (SBCreateDraftCampaignWithKeywordsV32, error)
AsSBCreateDraftCampaignWithKeywordsV32 returns the union data inside the SBCreateDraftCampaignRequestV32 as a SBCreateDraftCampaignWithKeywordsV32
func (SBCreateDraftCampaignRequestV32) AsSBCreateDraftCampaignWithProductTargetsV32 ¶
func (t SBCreateDraftCampaignRequestV32) AsSBCreateDraftCampaignWithProductTargetsV32() (SBCreateDraftCampaignWithProductTargetsV32, error)
AsSBCreateDraftCampaignWithProductTargetsV32 returns the union data inside the SBCreateDraftCampaignRequestV32 as a SBCreateDraftCampaignWithProductTargetsV32
func (SBCreateDraftCampaignRequestV32) AsSBVideoCreateDraftCampaignWithKeywords ¶
func (t SBCreateDraftCampaignRequestV32) AsSBVideoCreateDraftCampaignWithKeywords() (SBVideoCreateDraftCampaignWithKeywords, error)
AsSBVideoCreateDraftCampaignWithKeywords returns the union data inside the SBCreateDraftCampaignRequestV32 as a SBVideoCreateDraftCampaignWithKeywords
func (SBCreateDraftCampaignRequestV32) AsSBVideoCreateDraftCampaignWithProductTargets ¶
func (t SBCreateDraftCampaignRequestV32) AsSBVideoCreateDraftCampaignWithProductTargets() (SBVideoCreateDraftCampaignWithProductTargets, error)
AsSBVideoCreateDraftCampaignWithProductTargets returns the union data inside the SBCreateDraftCampaignRequestV32 as a SBVideoCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequestV32) FromSBCreateDraftCampaignWithKeywordsV32 ¶
func (t *SBCreateDraftCampaignRequestV32) FromSBCreateDraftCampaignWithKeywordsV32(v SBCreateDraftCampaignWithKeywordsV32) error
FromSBCreateDraftCampaignWithKeywordsV32 overwrites any union data inside the SBCreateDraftCampaignRequestV32 as the provided SBCreateDraftCampaignWithKeywordsV32
func (*SBCreateDraftCampaignRequestV32) FromSBCreateDraftCampaignWithProductTargetsV32 ¶
func (t *SBCreateDraftCampaignRequestV32) FromSBCreateDraftCampaignWithProductTargetsV32(v SBCreateDraftCampaignWithProductTargetsV32) error
FromSBCreateDraftCampaignWithProductTargetsV32 overwrites any union data inside the SBCreateDraftCampaignRequestV32 as the provided SBCreateDraftCampaignWithProductTargetsV32
func (*SBCreateDraftCampaignRequestV32) FromSBVideoCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequestV32) FromSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
FromSBVideoCreateDraftCampaignWithKeywords overwrites any union data inside the SBCreateDraftCampaignRequestV32 as the provided SBVideoCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequestV32) FromSBVideoCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequestV32) FromSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
FromSBVideoCreateDraftCampaignWithProductTargets overwrites any union data inside the SBCreateDraftCampaignRequestV32 as the provided SBVideoCreateDraftCampaignWithProductTargets
func (SBCreateDraftCampaignRequestV32) MarshalJSON ¶
func (t SBCreateDraftCampaignRequestV32) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignRequestV32) MergeSBCreateDraftCampaignWithKeywordsV32 ¶
func (t *SBCreateDraftCampaignRequestV32) MergeSBCreateDraftCampaignWithKeywordsV32(v SBCreateDraftCampaignWithKeywordsV32) error
MergeSBCreateDraftCampaignWithKeywordsV32 performs a merge with any union data inside the SBCreateDraftCampaignRequestV32, using the provided SBCreateDraftCampaignWithKeywordsV32
func (*SBCreateDraftCampaignRequestV32) MergeSBCreateDraftCampaignWithProductTargetsV32 ¶
func (t *SBCreateDraftCampaignRequestV32) MergeSBCreateDraftCampaignWithProductTargetsV32(v SBCreateDraftCampaignWithProductTargetsV32) error
MergeSBCreateDraftCampaignWithProductTargetsV32 performs a merge with any union data inside the SBCreateDraftCampaignRequestV32, using the provided SBCreateDraftCampaignWithProductTargetsV32
func (*SBCreateDraftCampaignRequestV32) MergeSBVideoCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequestV32) MergeSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
MergeSBVideoCreateDraftCampaignWithKeywords performs a merge with any union data inside the SBCreateDraftCampaignRequestV32, using the provided SBVideoCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequestV32) MergeSBVideoCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequestV32) MergeSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
MergeSBVideoCreateDraftCampaignWithProductTargets performs a merge with any union data inside the SBCreateDraftCampaignRequestV32, using the provided SBVideoCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequestV32) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignRequestV32) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignRequestV33 ¶
type SBCreateDraftCampaignRequestV33 struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignRequestV33 defines model for SBCreateDraftCampaignRequestV3_3.
func (SBCreateDraftCampaignRequestV33) AsSBCreateDraftCampaignWithKeywordsV33 ¶
func (t SBCreateDraftCampaignRequestV33) AsSBCreateDraftCampaignWithKeywordsV33() (SBCreateDraftCampaignWithKeywordsV33, error)
AsSBCreateDraftCampaignWithKeywordsV33 returns the union data inside the SBCreateDraftCampaignRequestV33 as a SBCreateDraftCampaignWithKeywordsV33
func (SBCreateDraftCampaignRequestV33) AsSBCreateDraftCampaignWithProductTargetsV33 ¶
func (t SBCreateDraftCampaignRequestV33) AsSBCreateDraftCampaignWithProductTargetsV33() (SBCreateDraftCampaignWithProductTargetsV33, error)
AsSBCreateDraftCampaignWithProductTargetsV33 returns the union data inside the SBCreateDraftCampaignRequestV33 as a SBCreateDraftCampaignWithProductTargetsV33
func (SBCreateDraftCampaignRequestV33) AsSBVideoCreateDraftCampaignWithKeywords ¶
func (t SBCreateDraftCampaignRequestV33) AsSBVideoCreateDraftCampaignWithKeywords() (SBVideoCreateDraftCampaignWithKeywords, error)
AsSBVideoCreateDraftCampaignWithKeywords returns the union data inside the SBCreateDraftCampaignRequestV33 as a SBVideoCreateDraftCampaignWithKeywords
func (SBCreateDraftCampaignRequestV33) AsSBVideoCreateDraftCampaignWithProductTargets ¶
func (t SBCreateDraftCampaignRequestV33) AsSBVideoCreateDraftCampaignWithProductTargets() (SBVideoCreateDraftCampaignWithProductTargets, error)
AsSBVideoCreateDraftCampaignWithProductTargets returns the union data inside the SBCreateDraftCampaignRequestV33 as a SBVideoCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequestV33) FromSBCreateDraftCampaignWithKeywordsV33 ¶
func (t *SBCreateDraftCampaignRequestV33) FromSBCreateDraftCampaignWithKeywordsV33(v SBCreateDraftCampaignWithKeywordsV33) error
FromSBCreateDraftCampaignWithKeywordsV33 overwrites any union data inside the SBCreateDraftCampaignRequestV33 as the provided SBCreateDraftCampaignWithKeywordsV33
func (*SBCreateDraftCampaignRequestV33) FromSBCreateDraftCampaignWithProductTargetsV33 ¶
func (t *SBCreateDraftCampaignRequestV33) FromSBCreateDraftCampaignWithProductTargetsV33(v SBCreateDraftCampaignWithProductTargetsV33) error
FromSBCreateDraftCampaignWithProductTargetsV33 overwrites any union data inside the SBCreateDraftCampaignRequestV33 as the provided SBCreateDraftCampaignWithProductTargetsV33
func (*SBCreateDraftCampaignRequestV33) FromSBVideoCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequestV33) FromSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
FromSBVideoCreateDraftCampaignWithKeywords overwrites any union data inside the SBCreateDraftCampaignRequestV33 as the provided SBVideoCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequestV33) FromSBVideoCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequestV33) FromSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
FromSBVideoCreateDraftCampaignWithProductTargets overwrites any union data inside the SBCreateDraftCampaignRequestV33 as the provided SBVideoCreateDraftCampaignWithProductTargets
func (SBCreateDraftCampaignRequestV33) MarshalJSON ¶
func (t SBCreateDraftCampaignRequestV33) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignRequestV33) MergeSBCreateDraftCampaignWithKeywordsV33 ¶
func (t *SBCreateDraftCampaignRequestV33) MergeSBCreateDraftCampaignWithKeywordsV33(v SBCreateDraftCampaignWithKeywordsV33) error
MergeSBCreateDraftCampaignWithKeywordsV33 performs a merge with any union data inside the SBCreateDraftCampaignRequestV33, using the provided SBCreateDraftCampaignWithKeywordsV33
func (*SBCreateDraftCampaignRequestV33) MergeSBCreateDraftCampaignWithProductTargetsV33 ¶
func (t *SBCreateDraftCampaignRequestV33) MergeSBCreateDraftCampaignWithProductTargetsV33(v SBCreateDraftCampaignWithProductTargetsV33) error
MergeSBCreateDraftCampaignWithProductTargetsV33 performs a merge with any union data inside the SBCreateDraftCampaignRequestV33, using the provided SBCreateDraftCampaignWithProductTargetsV33
func (*SBCreateDraftCampaignRequestV33) MergeSBVideoCreateDraftCampaignWithKeywords ¶
func (t *SBCreateDraftCampaignRequestV33) MergeSBVideoCreateDraftCampaignWithKeywords(v SBVideoCreateDraftCampaignWithKeywords) error
MergeSBVideoCreateDraftCampaignWithKeywords performs a merge with any union data inside the SBCreateDraftCampaignRequestV33, using the provided SBVideoCreateDraftCampaignWithKeywords
func (*SBCreateDraftCampaignRequestV33) MergeSBVideoCreateDraftCampaignWithProductTargets ¶
func (t *SBCreateDraftCampaignRequestV33) MergeSBVideoCreateDraftCampaignWithProductTargets(v SBVideoCreateDraftCampaignWithProductTargets) error
MergeSBVideoCreateDraftCampaignWithProductTargets performs a merge with any union data inside the SBCreateDraftCampaignRequestV33, using the provided SBVideoCreateDraftCampaignWithProductTargets
func (*SBCreateDraftCampaignRequestV33) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignRequestV33) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignWithKeywords ¶
type SBCreateDraftCampaignWithKeywords struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBCreateDraftCampaignWithKeywords defines model for SBCreateDraftCampaignWithKeywords.
type SBCreateDraftCampaignWithKeywordsV32 ¶
type SBCreateDraftCampaignWithKeywordsV32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBCreateDraftCampaignWithKeywordsV32_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBCreateDraftCampaignWithKeywordsV32 defines model for SBCreateDraftCampaignWithKeywordsV3_2.
type SBCreateDraftCampaignWithKeywordsV32_Creative ¶
type SBCreateDraftCampaignWithKeywordsV32_Creative struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignWithKeywordsV32_Creative defines model for SBCreateDraftCampaignWithKeywordsV32.Creative.
func (SBCreateDraftCampaignWithKeywordsV32_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateDraftCampaignWithKeywordsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateDraftCampaignWithKeywordsV32_Creative as a SBProductCollectionCreative
func (SBCreateDraftCampaignWithKeywordsV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateDraftCampaignWithKeywordsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateDraftCampaignWithKeywordsV32_Creative as a SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithKeywordsV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateDraftCampaignWithKeywordsV32_Creative as the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithKeywordsV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateDraftCampaignWithKeywordsV32_Creative as the provided SBStoreSpotlightCreative
func (SBCreateDraftCampaignWithKeywordsV32_Creative) MarshalJSON ¶
func (t SBCreateDraftCampaignWithKeywordsV32_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignWithKeywordsV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateDraftCampaignWithKeywordsV32_Creative, using the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateDraftCampaignWithKeywordsV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithKeywordsV32_Creative) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignWithKeywordsV32_Creative) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignWithKeywordsV33 ¶
type SBCreateDraftCampaignWithKeywordsV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBCreateDraftCampaignWithKeywordsV33_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBCreateDraftCampaignWithKeywordsV33 defines model for SBCreateDraftCampaignWithKeywordsV3_3.
type SBCreateDraftCampaignWithKeywordsV33_Creative ¶
type SBCreateDraftCampaignWithKeywordsV33_Creative struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignWithKeywordsV33_Creative defines model for SBCreateDraftCampaignWithKeywordsV33.Creative.
func (SBCreateDraftCampaignWithKeywordsV33_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateDraftCampaignWithKeywordsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateDraftCampaignWithKeywordsV33_Creative as a SBProductCollectionCreative
func (SBCreateDraftCampaignWithKeywordsV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateDraftCampaignWithKeywordsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateDraftCampaignWithKeywordsV33_Creative as a SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithKeywordsV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateDraftCampaignWithKeywordsV33_Creative as the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithKeywordsV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateDraftCampaignWithKeywordsV33_Creative as the provided SBStoreSpotlightCreative
func (SBCreateDraftCampaignWithKeywordsV33_Creative) MarshalJSON ¶
func (t SBCreateDraftCampaignWithKeywordsV33_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignWithKeywordsV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateDraftCampaignWithKeywordsV33_Creative, using the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateDraftCampaignWithKeywordsV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithKeywordsV33_Creative) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignWithKeywordsV33_Creative) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignWithProductTargets ¶
type SBCreateDraftCampaignWithProductTargets struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBCreateDraftCampaignWithProductTargets defines model for SBCreateDraftCampaignWithProductTargets.
type SBCreateDraftCampaignWithProductTargetsV32 ¶
type SBCreateDraftCampaignWithProductTargetsV32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBCreateDraftCampaignWithProductTargetsV32_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBCreateDraftCampaignWithProductTargetsV32 defines model for SBCreateDraftCampaignWithProductTargetsV3_2.
type SBCreateDraftCampaignWithProductTargetsV32_Creative ¶
type SBCreateDraftCampaignWithProductTargetsV32_Creative struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignWithProductTargetsV32_Creative defines model for SBCreateDraftCampaignWithProductTargetsV32.Creative.
func (SBCreateDraftCampaignWithProductTargetsV32_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateDraftCampaignWithProductTargetsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateDraftCampaignWithProductTargetsV32_Creative as a SBProductCollectionCreative
func (SBCreateDraftCampaignWithProductTargetsV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateDraftCampaignWithProductTargetsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateDraftCampaignWithProductTargetsV32_Creative as a SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithProductTargetsV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateDraftCampaignWithProductTargetsV32_Creative as the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithProductTargetsV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateDraftCampaignWithProductTargetsV32_Creative as the provided SBStoreSpotlightCreative
func (SBCreateDraftCampaignWithProductTargetsV32_Creative) MarshalJSON ¶
func (t SBCreateDraftCampaignWithProductTargetsV32_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignWithProductTargetsV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateDraftCampaignWithProductTargetsV32_Creative, using the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithProductTargetsV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateDraftCampaignWithProductTargetsV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithProductTargetsV32_Creative) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignWithProductTargetsV32_Creative) UnmarshalJSON(b []byte) error
type SBCreateDraftCampaignWithProductTargetsV33 ¶
type SBCreateDraftCampaignWithProductTargetsV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBCreateDraftCampaignWithProductTargetsV33_Creative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state. LandingPage *SBLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBCreateDraftCampaignWithProductTargetsV33 defines model for SBCreateDraftCampaignWithProductTargetsV3_3.
type SBCreateDraftCampaignWithProductTargetsV33_Creative ¶
type SBCreateDraftCampaignWithProductTargetsV33_Creative struct {
// contains filtered or unexported fields
}
SBCreateDraftCampaignWithProductTargetsV33_Creative defines model for SBCreateDraftCampaignWithProductTargetsV33.Creative.
func (SBCreateDraftCampaignWithProductTargetsV33_Creative) AsSBProductCollectionCreative ¶
func (t SBCreateDraftCampaignWithProductTargetsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBCreateDraftCampaignWithProductTargetsV33_Creative as a SBProductCollectionCreative
func (SBCreateDraftCampaignWithProductTargetsV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBCreateDraftCampaignWithProductTargetsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBCreateDraftCampaignWithProductTargetsV33_Creative as a SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithProductTargetsV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBCreateDraftCampaignWithProductTargetsV33_Creative as the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithProductTargetsV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBCreateDraftCampaignWithProductTargetsV33_Creative as the provided SBStoreSpotlightCreative
func (SBCreateDraftCampaignWithProductTargetsV33_Creative) MarshalJSON ¶
func (t SBCreateDraftCampaignWithProductTargetsV33_Creative) MarshalJSON() ([]byte, error)
func (*SBCreateDraftCampaignWithProductTargetsV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBCreateDraftCampaignWithProductTargetsV33_Creative, using the provided SBProductCollectionCreative
func (*SBCreateDraftCampaignWithProductTargetsV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBCreateDraftCampaignWithProductTargetsV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBCreateDraftCampaignWithProductTargetsV33_Creative) UnmarshalJSON ¶
func (t *SBCreateDraftCampaignWithProductTargetsV33_Creative) UnmarshalJSON(b []byte) error
type SBCreateNegativeTargetingClauseRequest ¶
type SBCreateNegativeTargetingClauseRequest struct { // AdGroupId The identifier of an existing ad group. The newly created target is associated to this ad group. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of an existing campaign. The newly created target is associated to this campaign. CampaignId *int64 `json:"campaignId,omitempty"` Expressions *SBNegativeTargetingExpressions `json:"expressions,omitempty"` }
SBCreateNegativeTargetingClauseRequest defines model for SBCreateNegativeTargetingClauseRequest.
type SBCreateTargetingClauseRequest ¶
type SBCreateTargetingClauseRequest struct { // AdGroupId The identifier of an existing ad group. The newly created target is associated to this ad group. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of an existing campaign. The newly created target is associated to this campaign. CampaignId *int64 `json:"campaignId,omitempty"` Expressions *SBTargetingExpressions `json:"expressions,omitempty"` }
SBCreateTargetingClauseRequest defines model for SBCreateTargetingClauseRequest.
type SBCreateTargetsResponse ¶
type SBCreateTargetsResponse struct { // CreateTargetErrorResults Lists errors that occured during target creation. Note that errors are correlated to target create requests by the `targetRequestIndex` field. This field corresponds to the order of the target object in the request. For example, if `targetRequestIndex` is set to `3`, an error occured during creation of the fourth target in the request. CreateTargetErrorResults *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` // TargetId The identifier of a target. TargetId *SBTargetId `json:"targetId,omitempty"` // TargetRequestIndex Correlates the target to the target array index specified in the request. Zero-based. TargetRequestIndex *SBTargetRequestIndex `json:"targetRequestIndex,omitempty"` } `json:"createTargetErrorResults,omitempty"` // CreateTargetSuccessResults Lists the successfully created targets. Note that targets in the response are correlated to targets in the request using the `targetRequestIndex` field. For example, if `targetRequestIndex` is set to `2`, the values correlate to the third target object in the request. CreateTargetSuccessResults *[]struct { // TargetId The identifier of a target. TargetId *SBTargetId `json:"targetId,omitempty"` // TargetRequestIndex Correlates the target to the target array index specified in the request. Zero-based. TargetRequestIndex *SBTargetRequestIndex `json:"targetRequestIndex,omitempty"` } `json:"createTargetSuccessResults,omitempty"` }
SBCreateTargetsResponse defines model for SBCreateTargetsResponse.
type SBCreateThemesRequest ¶
type SBCreateThemesRequest struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId string `json:"adGroupId"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid Bid `json:"bid"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *string `json:"campaignId,omitempty"` // ThemeType The theme target type. // - KEYWORDS_RELATED_TO_YOUR_BRAND - keywords related to brands. // - KEYWORDS_RELATED_TO_YOUR_LANDING_PAGES - keywords related to your landing pages. // - Note: Additional theme types may be added in the future. ThemeType ThemeType `json:"themeType"` }
SBCreateThemesRequest defines model for SBCreateThemesRequest.
type SBCreateThemesResponse ¶
type SBCreateThemesResponse struct { // Error Lists errors that occurred during theme target creation. Note that errors are correlated to theme target create requests by the `index` field. This field corresponds to the order of the target object in the request. For example, if `index` is set to `3`, an error occurred during creation of the fourth theme target in the request. Error *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` // Index Correlates the target to the target array index specified in the request. Zero-based. Index *SBTargetRequestIndex `json:"index,omitempty"` } `json:"error,omitempty"` // Success Lists the successfully created theme targets. Note that theme targets in the response are correlated to theme targets in the request using the `index` field. For example, if `index` is set to `2`, the values correlate to the third theme target object in the request. Success *[]struct { // Index Correlates the target to the target array index specified in the request. Zero-based. Index *SBTargetRequestIndex `json:"index,omitempty"` // ThemeId The identifier of theme target. ThemeId *SBThemeId `json:"themeId,omitempty"` } `json:"success,omitempty"` }
SBCreateThemesResponse defines model for SBCreateThemesResponse.
type SBCreative ¶
type SBCreative struct { // Asins An array of ASINs associated with the creative. **Note** do not pass an empty array, this results in an error. Asins *[]string `json:"asins,omitempty"` // BrandLogoAssetID The identifier of the brand logo image from the Store assets library. See [listAssets](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Stores) for more information. Note that for campaigns created in the Amazon Ads console prior to release of the Store assets library, responses will not include a value for the brandLogoAssetID field. BrandLogoAssetID *string `json:"brandLogoAssetID,omitempty"` // BrandLogoUrl The address of the hosted image. BrandLogoUrl *string `json:"brandLogoUrl,omitempty"` // BrandName A brand name. Maximum length is 30 characters. BrandName *string `json:"brandName,omitempty"` // Headline The headline text. Maximum length of the string is 50 characters for all marketplaces other than Japan, which has a maximum length of 35 characters. Headline *string `json:"headline,omitempty"` // ShouldOptimizeAsins **NOTE** Starting on March 25th, 2021, this property will no longer be supported. This feature is currently available in the US and UK. Existing Sponsored Brands campaigns with product optimization enabled will no longer have the products in the creative automatically optimized. Campaigns with product optimization enabled will be converted to standard Sponsored Brands product collection campaigns with the default selected products showing in the creative. For POST and PUT operations, setting this property to `true` will not have any effect. The value returned in the response will always be `false`. For the GET operation, the value of this field will always be `false`. And starting on September 25th, 2021, this property will be removed completely. ShouldOptimizeAsins *bool `json:"shouldOptimizeAsins,omitempty"` }
SBCreative Note that the values of each field in this object are immutable for an existing campaign.
type SBCustomImageCrop ¶
type SBCustomImageCrop struct { // Height The number of pixels to crop down from the value specified as `top` Height *int `json:"height,omitempty"` // Left The leftmost pixel from which to begin cropping Left *int `json:"left,omitempty"` // Top The highest pixel from which to begin cropping Top *int `json:"top,omitempty"` // Width The number of pixels to crop rightwards from the value specified as `left` Width *int `json:"width,omitempty"` }
SBCustomImageCrop The crop to apply to the selected Custom image. A Custom image must have a 1200x628 aspect ratio, with a .01 delta for floating point precision. If a customImageAssetId is supplied but a crop is not, the crop will be defaulted.
type SBCustomUrlLandingPage ¶
type SBCustomUrlLandingPage struct { PageType *string `json:"pageType,omitempty"` Url *string `json:"url,omitempty"` }
SBCustomUrlLandingPage A landing page including at least 3 ASINs. Note that custom landing page URLs can only be specified by vendors.
type SBDetailPageLandingPage ¶
type SBDetailPageLandingPage struct { PageType *string `json:"pageType,omitempty"` Url *string `json:"url,omitempty"` }
SBDetailPageLandingPage An Amazon product detail page.
type SBDraftCampaign ¶
type SBDraftCampaign struct {
// contains filtered or unexported fields
}
SBDraftCampaign defines model for SBDraftCampaign.
func (SBDraftCampaign) AsSBDraftCampaign0 ¶
func (t SBDraftCampaign) AsSBDraftCampaign0() (SBDraftCampaign0, error)
AsSBDraftCampaign0 returns the union data inside the SBDraftCampaign as a SBDraftCampaign0
func (SBDraftCampaign) AsSBDraftCampaign1 ¶
func (t SBDraftCampaign) AsSBDraftCampaign1() (SBDraftCampaign1, error)
AsSBDraftCampaign1 returns the union data inside the SBDraftCampaign as a SBDraftCampaign1
func (SBDraftCampaign) AsSBDraftCampaign2 ¶
func (t SBDraftCampaign) AsSBDraftCampaign2() (SBDraftCampaign2, error)
AsSBDraftCampaign2 returns the union data inside the SBDraftCampaign as a SBDraftCampaign2
func (SBDraftCampaign) AsSBDraftCampaign3 ¶
func (t SBDraftCampaign) AsSBDraftCampaign3() (SBDraftCampaign3, error)
AsSBDraftCampaign3 returns the union data inside the SBDraftCampaign as a SBDraftCampaign3
func (*SBDraftCampaign) FromSBDraftCampaign0 ¶
func (t *SBDraftCampaign) FromSBDraftCampaign0(v SBDraftCampaign0) error
FromSBDraftCampaign0 overwrites any union data inside the SBDraftCampaign as the provided SBDraftCampaign0
func (*SBDraftCampaign) FromSBDraftCampaign1 ¶
func (t *SBDraftCampaign) FromSBDraftCampaign1(v SBDraftCampaign1) error
FromSBDraftCampaign1 overwrites any union data inside the SBDraftCampaign as the provided SBDraftCampaign1
func (*SBDraftCampaign) FromSBDraftCampaign2 ¶
func (t *SBDraftCampaign) FromSBDraftCampaign2(v SBDraftCampaign2) error
FromSBDraftCampaign2 overwrites any union data inside the SBDraftCampaign as the provided SBDraftCampaign2
func (*SBDraftCampaign) FromSBDraftCampaign3 ¶
func (t *SBDraftCampaign) FromSBDraftCampaign3(v SBDraftCampaign3) error
FromSBDraftCampaign3 overwrites any union data inside the SBDraftCampaign as the provided SBDraftCampaign3
func (SBDraftCampaign) MarshalJSON ¶
func (t SBDraftCampaign) MarshalJSON() ([]byte, error)
func (*SBDraftCampaign) MergeSBDraftCampaign0 ¶
func (t *SBDraftCampaign) MergeSBDraftCampaign0(v SBDraftCampaign0) error
MergeSBDraftCampaign0 performs a merge with any union data inside the SBDraftCampaign, using the provided SBDraftCampaign0
func (*SBDraftCampaign) MergeSBDraftCampaign1 ¶
func (t *SBDraftCampaign) MergeSBDraftCampaign1(v SBDraftCampaign1) error
MergeSBDraftCampaign1 performs a merge with any union data inside the SBDraftCampaign, using the provided SBDraftCampaign1
func (*SBDraftCampaign) MergeSBDraftCampaign2 ¶
func (t *SBDraftCampaign) MergeSBDraftCampaign2(v SBDraftCampaign2) error
MergeSBDraftCampaign2 performs a merge with any union data inside the SBDraftCampaign, using the provided SBDraftCampaign2
func (*SBDraftCampaign) MergeSBDraftCampaign3 ¶
func (t *SBDraftCampaign) MergeSBDraftCampaign3(v SBDraftCampaign3) error
MergeSBDraftCampaign3 performs a merge with any union data inside the SBDraftCampaign, using the provided SBDraftCampaign3
func (*SBDraftCampaign) UnmarshalJSON ¶
func (t *SBDraftCampaign) UnmarshalJSON(b []byte) error
type SBDraftCampaign0 ¶
type SBDraftCampaign0 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the draft campaign. Keywords *[]SBDraftKeyword `json:"keywords,omitempty"` LandingPage *SBDraftCampaign_0_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the draft campaign. NegativeKeywords *[]SBDraftNegativeKeyword `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBDraftCampaign0 defines model for .
type SBDraftCampaign1 ¶
type SBDraftCampaign1 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBDraftCampaign_1_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeTargets An array of negative targets associated with the draft campaign. NegativeTargets *[]SBDraftNegativeTargetingClause `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` // Targets An array of targets associated with the draft campaign. Targets *[]SBDraftTargetingClause `json:"targets,omitempty"` }
SBDraftCampaign1 defines model for .
type SBDraftCampaign2 ¶
type SBDraftCampaign2 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the draft campaign. Keywords *[]SBDraftKeyword `json:"keywords,omitempty"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the draft campaign. NegativeKeywords *[]SBDraftNegativeKeyword `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` }
SBDraftCampaign2 defines model for .
type SBDraftCampaign3 ¶
type SBDraftCampaign3 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeTargets An array of negative targets associated with the draft campaign. NegativeTargets *[]SBDraftNegativeTargetingClause `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Targets An array of targets associated with the draft campaign. Targets *[]SBDraftTargetingClause `json:"targets,omitempty"` }
SBDraftCampaign3 defines model for .
type SBDraftCampaignBase ¶
type SBDraftCampaignBase struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBDraftCampaignBase_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBDraftCampaignBase defines model for SBDraftCampaignBase.
type SBDraftCampaignBaseV32 ¶
type SBDraftCampaignBaseV32 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBDraftCampaignBaseV32_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBDraftCampaignBaseV32_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBDraftCampaignBaseV32 defines model for SBDraftCampaignBaseV3_2.
type SBDraftCampaignBaseV32_Creative ¶
type SBDraftCampaignBaseV32_Creative struct {
// contains filtered or unexported fields
}
SBDraftCampaignBaseV32_Creative defines model for SBDraftCampaignBaseV32.Creative.
func (SBDraftCampaignBaseV32_Creative) AsSBProductCollectionCreative ¶
func (t SBDraftCampaignBaseV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBDraftCampaignBaseV32_Creative as a SBProductCollectionCreative
func (SBDraftCampaignBaseV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBDraftCampaignBaseV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBDraftCampaignBaseV32_Creative as a SBStoreSpotlightCreative
func (*SBDraftCampaignBaseV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBDraftCampaignBaseV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBDraftCampaignBaseV32_Creative as the provided SBProductCollectionCreative
func (*SBDraftCampaignBaseV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBDraftCampaignBaseV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBDraftCampaignBaseV32_Creative as the provided SBStoreSpotlightCreative
func (SBDraftCampaignBaseV32_Creative) MarshalJSON ¶
func (t SBDraftCampaignBaseV32_Creative) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignBaseV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBDraftCampaignBaseV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBDraftCampaignBaseV32_Creative, using the provided SBProductCollectionCreative
func (*SBDraftCampaignBaseV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBDraftCampaignBaseV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBDraftCampaignBaseV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBDraftCampaignBaseV32_Creative) UnmarshalJSON ¶
func (t *SBDraftCampaignBaseV32_Creative) UnmarshalJSON(b []byte) error
type SBDraftCampaignBaseV32_LandingPage ¶
type SBDraftCampaignBaseV32_LandingPage struct {
// contains filtered or unexported fields
}
SBDraftCampaignBaseV32_LandingPage defines model for SBDraftCampaignBaseV32.LandingPage.
func (SBDraftCampaignBaseV32_LandingPage) AsSBCustomUrlLandingPage ¶
func (t SBDraftCampaignBaseV32_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
AsSBCustomUrlLandingPage returns the union data inside the SBDraftCampaignBaseV32_LandingPage as a SBCustomUrlLandingPage
func (SBDraftCampaignBaseV32_LandingPage) AsSBProductListLandingPage ¶
func (t SBDraftCampaignBaseV32_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
AsSBProductListLandingPage returns the union data inside the SBDraftCampaignBaseV32_LandingPage as a SBProductListLandingPage
func (SBDraftCampaignBaseV32_LandingPage) AsSBStoreLandingPage ¶
func (t SBDraftCampaignBaseV32_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
AsSBStoreLandingPage returns the union data inside the SBDraftCampaignBaseV32_LandingPage as a SBStoreLandingPage
func (*SBDraftCampaignBaseV32_LandingPage) FromSBCustomUrlLandingPage ¶
func (t *SBDraftCampaignBaseV32_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
FromSBCustomUrlLandingPage overwrites any union data inside the SBDraftCampaignBaseV32_LandingPage as the provided SBCustomUrlLandingPage
func (*SBDraftCampaignBaseV32_LandingPage) FromSBProductListLandingPage ¶
func (t *SBDraftCampaignBaseV32_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
FromSBProductListLandingPage overwrites any union data inside the SBDraftCampaignBaseV32_LandingPage as the provided SBProductListLandingPage
func (*SBDraftCampaignBaseV32_LandingPage) FromSBStoreLandingPage ¶
func (t *SBDraftCampaignBaseV32_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
FromSBStoreLandingPage overwrites any union data inside the SBDraftCampaignBaseV32_LandingPage as the provided SBStoreLandingPage
func (SBDraftCampaignBaseV32_LandingPage) MarshalJSON ¶
func (t SBDraftCampaignBaseV32_LandingPage) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignBaseV32_LandingPage) MergeSBCustomUrlLandingPage ¶
func (t *SBDraftCampaignBaseV32_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
MergeSBCustomUrlLandingPage performs a merge with any union data inside the SBDraftCampaignBaseV32_LandingPage, using the provided SBCustomUrlLandingPage
func (*SBDraftCampaignBaseV32_LandingPage) MergeSBProductListLandingPage ¶
func (t *SBDraftCampaignBaseV32_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
MergeSBProductListLandingPage performs a merge with any union data inside the SBDraftCampaignBaseV32_LandingPage, using the provided SBProductListLandingPage
func (*SBDraftCampaignBaseV32_LandingPage) MergeSBStoreLandingPage ¶
func (t *SBDraftCampaignBaseV32_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
MergeSBStoreLandingPage performs a merge with any union data inside the SBDraftCampaignBaseV32_LandingPage, using the provided SBStoreLandingPage
func (*SBDraftCampaignBaseV32_LandingPage) UnmarshalJSON ¶
func (t *SBDraftCampaignBaseV32_LandingPage) UnmarshalJSON(b []byte) error
type SBDraftCampaignBaseV33 ¶
type SBDraftCampaignBaseV33 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBDraftCampaignBaseV33_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBDraftCampaignBaseV33_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBDraftCampaignBaseV33 defines model for SBDraftCampaignBaseV3_3.
type SBDraftCampaignBaseV33_Creative ¶
type SBDraftCampaignBaseV33_Creative struct {
// contains filtered or unexported fields
}
SBDraftCampaignBaseV33_Creative defines model for SBDraftCampaignBaseV33.Creative.
func (SBDraftCampaignBaseV33_Creative) AsSBProductCollectionCreative ¶
func (t SBDraftCampaignBaseV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBDraftCampaignBaseV33_Creative as a SBProductCollectionCreative
func (SBDraftCampaignBaseV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBDraftCampaignBaseV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBDraftCampaignBaseV33_Creative as a SBStoreSpotlightCreative
func (*SBDraftCampaignBaseV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBDraftCampaignBaseV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBDraftCampaignBaseV33_Creative as the provided SBProductCollectionCreative
func (*SBDraftCampaignBaseV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBDraftCampaignBaseV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBDraftCampaignBaseV33_Creative as the provided SBStoreSpotlightCreative
func (SBDraftCampaignBaseV33_Creative) MarshalJSON ¶
func (t SBDraftCampaignBaseV33_Creative) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignBaseV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBDraftCampaignBaseV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBDraftCampaignBaseV33_Creative, using the provided SBProductCollectionCreative
func (*SBDraftCampaignBaseV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBDraftCampaignBaseV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBDraftCampaignBaseV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBDraftCampaignBaseV33_Creative) UnmarshalJSON ¶
func (t *SBDraftCampaignBaseV33_Creative) UnmarshalJSON(b []byte) error
type SBDraftCampaignBaseV33_LandingPage ¶
type SBDraftCampaignBaseV33_LandingPage struct {
// contains filtered or unexported fields
}
SBDraftCampaignBaseV33_LandingPage defines model for SBDraftCampaignBaseV33.LandingPage.
func (SBDraftCampaignBaseV33_LandingPage) AsSBCustomUrlLandingPage ¶
func (t SBDraftCampaignBaseV33_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
AsSBCustomUrlLandingPage returns the union data inside the SBDraftCampaignBaseV33_LandingPage as a SBCustomUrlLandingPage
func (SBDraftCampaignBaseV33_LandingPage) AsSBProductListLandingPage ¶
func (t SBDraftCampaignBaseV33_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
AsSBProductListLandingPage returns the union data inside the SBDraftCampaignBaseV33_LandingPage as a SBProductListLandingPage
func (SBDraftCampaignBaseV33_LandingPage) AsSBStoreLandingPage ¶
func (t SBDraftCampaignBaseV33_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
AsSBStoreLandingPage returns the union data inside the SBDraftCampaignBaseV33_LandingPage as a SBStoreLandingPage
func (*SBDraftCampaignBaseV33_LandingPage) FromSBCustomUrlLandingPage ¶
func (t *SBDraftCampaignBaseV33_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
FromSBCustomUrlLandingPage overwrites any union data inside the SBDraftCampaignBaseV33_LandingPage as the provided SBCustomUrlLandingPage
func (*SBDraftCampaignBaseV33_LandingPage) FromSBProductListLandingPage ¶
func (t *SBDraftCampaignBaseV33_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
FromSBProductListLandingPage overwrites any union data inside the SBDraftCampaignBaseV33_LandingPage as the provided SBProductListLandingPage
func (*SBDraftCampaignBaseV33_LandingPage) FromSBStoreLandingPage ¶
func (t *SBDraftCampaignBaseV33_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
FromSBStoreLandingPage overwrites any union data inside the SBDraftCampaignBaseV33_LandingPage as the provided SBStoreLandingPage
func (SBDraftCampaignBaseV33_LandingPage) MarshalJSON ¶
func (t SBDraftCampaignBaseV33_LandingPage) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignBaseV33_LandingPage) MergeSBCustomUrlLandingPage ¶
func (t *SBDraftCampaignBaseV33_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
MergeSBCustomUrlLandingPage performs a merge with any union data inside the SBDraftCampaignBaseV33_LandingPage, using the provided SBCustomUrlLandingPage
func (*SBDraftCampaignBaseV33_LandingPage) MergeSBProductListLandingPage ¶
func (t *SBDraftCampaignBaseV33_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
MergeSBProductListLandingPage performs a merge with any union data inside the SBDraftCampaignBaseV33_LandingPage, using the provided SBProductListLandingPage
func (*SBDraftCampaignBaseV33_LandingPage) MergeSBStoreLandingPage ¶
func (t *SBDraftCampaignBaseV33_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
MergeSBStoreLandingPage performs a merge with any union data inside the SBDraftCampaignBaseV33_LandingPage, using the provided SBStoreLandingPage
func (*SBDraftCampaignBaseV33_LandingPage) UnmarshalJSON ¶
func (t *SBDraftCampaignBaseV33_LandingPage) UnmarshalJSON(b []byte) error
type SBDraftCampaignBase_LandingPage ¶
type SBDraftCampaignBase_LandingPage struct {
// contains filtered or unexported fields
}
SBDraftCampaignBase_LandingPage defines model for SBDraftCampaignBase.LandingPage.
func (SBDraftCampaignBase_LandingPage) AsSBCustomUrlLandingPage ¶
func (t SBDraftCampaignBase_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
AsSBCustomUrlLandingPage returns the union data inside the SBDraftCampaignBase_LandingPage as a SBCustomUrlLandingPage
func (SBDraftCampaignBase_LandingPage) AsSBProductListLandingPage ¶
func (t SBDraftCampaignBase_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
AsSBProductListLandingPage returns the union data inside the SBDraftCampaignBase_LandingPage as a SBProductListLandingPage
func (SBDraftCampaignBase_LandingPage) AsSBStoreLandingPage ¶
func (t SBDraftCampaignBase_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
AsSBStoreLandingPage returns the union data inside the SBDraftCampaignBase_LandingPage as a SBStoreLandingPage
func (*SBDraftCampaignBase_LandingPage) FromSBCustomUrlLandingPage ¶
func (t *SBDraftCampaignBase_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
FromSBCustomUrlLandingPage overwrites any union data inside the SBDraftCampaignBase_LandingPage as the provided SBCustomUrlLandingPage
func (*SBDraftCampaignBase_LandingPage) FromSBProductListLandingPage ¶
func (t *SBDraftCampaignBase_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
FromSBProductListLandingPage overwrites any union data inside the SBDraftCampaignBase_LandingPage as the provided SBProductListLandingPage
func (*SBDraftCampaignBase_LandingPage) FromSBStoreLandingPage ¶
func (t *SBDraftCampaignBase_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
FromSBStoreLandingPage overwrites any union data inside the SBDraftCampaignBase_LandingPage as the provided SBStoreLandingPage
func (SBDraftCampaignBase_LandingPage) MarshalJSON ¶
func (t SBDraftCampaignBase_LandingPage) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignBase_LandingPage) MergeSBCustomUrlLandingPage ¶
func (t *SBDraftCampaignBase_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
MergeSBCustomUrlLandingPage performs a merge with any union data inside the SBDraftCampaignBase_LandingPage, using the provided SBCustomUrlLandingPage
func (*SBDraftCampaignBase_LandingPage) MergeSBProductListLandingPage ¶
func (t *SBDraftCampaignBase_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
MergeSBProductListLandingPage performs a merge with any union data inside the SBDraftCampaignBase_LandingPage, using the provided SBProductListLandingPage
func (*SBDraftCampaignBase_LandingPage) MergeSBStoreLandingPage ¶
func (t *SBDraftCampaignBase_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
MergeSBStoreLandingPage performs a merge with any union data inside the SBDraftCampaignBase_LandingPage, using the provided SBStoreLandingPage
func (*SBDraftCampaignBase_LandingPage) UnmarshalJSON ¶
func (t *SBDraftCampaignBase_LandingPage) UnmarshalJSON(b []byte) error
type SBDraftCampaignDeleteResponse ¶
type SBDraftCampaignDeleteResponse struct { // Code The status of the deletion request. Code *string `json:"code,omitempty"` // DraftCampaignId The campaign identifier. DraftCampaignId *int64 `json:"draftCampaignId,omitempty"` }
SBDraftCampaignDeleteResponse defines model for SBDraftCampaignDeleteResponse.
type SBDraftCampaignResponse ¶
type SBDraftCampaignResponse struct {
// contains filtered or unexported fields
}
SBDraftCampaignResponse Applies to: | Operation | Path | |-----------| -----| |[createDraftCampaigns](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Drafts)| POST /sb/drafts/campaigns| |[updateDraftCampaigns](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Drafts)| PUT /sb/drafts/campaigns| |[deleteDraftCampaign](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Drafts)| GET /sb/drafts/campaigns/{draftCampaignId}| <br/>
func (SBDraftCampaignResponse) AsSBDraftCampaignResponseWithExpressions ¶
func (t SBDraftCampaignResponse) AsSBDraftCampaignResponseWithExpressions() (SBDraftCampaignResponseWithExpressions, error)
AsSBDraftCampaignResponseWithExpressions returns the union data inside the SBDraftCampaignResponse as a SBDraftCampaignResponseWithExpressions
func (SBDraftCampaignResponse) AsSBDraftCampaignResponseWithKeywords ¶
func (t SBDraftCampaignResponse) AsSBDraftCampaignResponseWithKeywords() (SBDraftCampaignResponseWithKeywords, error)
AsSBDraftCampaignResponseWithKeywords returns the union data inside the SBDraftCampaignResponse as a SBDraftCampaignResponseWithKeywords
func (*SBDraftCampaignResponse) FromSBDraftCampaignResponseWithExpressions ¶
func (t *SBDraftCampaignResponse) FromSBDraftCampaignResponseWithExpressions(v SBDraftCampaignResponseWithExpressions) error
FromSBDraftCampaignResponseWithExpressions overwrites any union data inside the SBDraftCampaignResponse as the provided SBDraftCampaignResponseWithExpressions
func (*SBDraftCampaignResponse) FromSBDraftCampaignResponseWithKeywords ¶
func (t *SBDraftCampaignResponse) FromSBDraftCampaignResponseWithKeywords(v SBDraftCampaignResponseWithKeywords) error
FromSBDraftCampaignResponseWithKeywords overwrites any union data inside the SBDraftCampaignResponse as the provided SBDraftCampaignResponseWithKeywords
func (SBDraftCampaignResponse) MarshalJSON ¶
func (t SBDraftCampaignResponse) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignResponse) MergeSBDraftCampaignResponseWithExpressions ¶
func (t *SBDraftCampaignResponse) MergeSBDraftCampaignResponseWithExpressions(v SBDraftCampaignResponseWithExpressions) error
MergeSBDraftCampaignResponseWithExpressions performs a merge with any union data inside the SBDraftCampaignResponse, using the provided SBDraftCampaignResponseWithExpressions
func (*SBDraftCampaignResponse) MergeSBDraftCampaignResponseWithKeywords ¶
func (t *SBDraftCampaignResponse) MergeSBDraftCampaignResponseWithKeywords(v SBDraftCampaignResponseWithKeywords) error
MergeSBDraftCampaignResponseWithKeywords performs a merge with any union data inside the SBDraftCampaignResponse, using the provided SBDraftCampaignResponseWithKeywords
func (*SBDraftCampaignResponse) UnmarshalJSON ¶
func (t *SBDraftCampaignResponse) UnmarshalJSON(b []byte) error
type SBDraftCampaignResponseCommon ¶
type SBDraftCampaignResponseCommon struct { // Code The draft campaign response code. Code *string `json:"code,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int64 `json:"draftCampaignId,omitempty"` }
SBDraftCampaignResponseCommon defines model for SBDraftCampaignResponseCommon.
type SBDraftCampaignResponseWithExpressions ¶
type SBDraftCampaignResponseWithExpressions struct { // Code The draft campaign response code. Code *string `json:"code,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int64 `json:"draftCampaignId,omitempty"` NegativeTargetingClauseResponses *[]SBExpressionResponse `json:"negativeTargetingClauseResponses,omitempty"` TargetingClauseResponses *[]SBExpressionResponse `json:"targetingClauseResponses,omitempty"` }
SBDraftCampaignResponseWithExpressions defines model for SBDraftCampaignResponseWithExpressions.
type SBDraftCampaignResponseWithKeywords ¶
type SBDraftCampaignResponseWithKeywords struct { // Code The draft campaign response code. Code *string `json:"code,omitempty"` // Details A human-readable description of the 'code' field value. Details *string `json:"details,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int64 `json:"draftCampaignId,omitempty"` KeywordResponses *[]SBKeywordResponse `json:"keywordResponses,omitempty"` NegativeKeywordResponses *[]SBKeywordResponse `json:"negativeKeywordResponses,omitempty"` }
SBDraftCampaignResponseWithKeywords defines model for SBDraftCampaignResponseWithKeywords.
type SBDraftCampaignV32 ¶
type SBDraftCampaignV32 struct {
// contains filtered or unexported fields
}
SBDraftCampaignV32 defines model for SBDraftCampaignV3_2.
func (SBDraftCampaignV32) AsSBDraftCampaignV320 ¶
func (t SBDraftCampaignV32) AsSBDraftCampaignV320() (SBDraftCampaignV320, error)
AsSBDraftCampaignV320 returns the union data inside the SBDraftCampaignV32 as a SBDraftCampaignV320
func (SBDraftCampaignV32) AsSBDraftCampaignV321 ¶
func (t SBDraftCampaignV32) AsSBDraftCampaignV321() (SBDraftCampaignV321, error)
AsSBDraftCampaignV321 returns the union data inside the SBDraftCampaignV32 as a SBDraftCampaignV321
func (SBDraftCampaignV32) AsSBDraftCampaignV322 ¶
func (t SBDraftCampaignV32) AsSBDraftCampaignV322() (SBDraftCampaignV322, error)
AsSBDraftCampaignV322 returns the union data inside the SBDraftCampaignV32 as a SBDraftCampaignV322
func (SBDraftCampaignV32) AsSBDraftCampaignV323 ¶
func (t SBDraftCampaignV32) AsSBDraftCampaignV323() (SBDraftCampaignV323, error)
AsSBDraftCampaignV323 returns the union data inside the SBDraftCampaignV32 as a SBDraftCampaignV323
func (*SBDraftCampaignV32) FromSBDraftCampaignV320 ¶
func (t *SBDraftCampaignV32) FromSBDraftCampaignV320(v SBDraftCampaignV320) error
FromSBDraftCampaignV320 overwrites any union data inside the SBDraftCampaignV32 as the provided SBDraftCampaignV320
func (*SBDraftCampaignV32) FromSBDraftCampaignV321 ¶
func (t *SBDraftCampaignV32) FromSBDraftCampaignV321(v SBDraftCampaignV321) error
FromSBDraftCampaignV321 overwrites any union data inside the SBDraftCampaignV32 as the provided SBDraftCampaignV321
func (*SBDraftCampaignV32) FromSBDraftCampaignV322 ¶
func (t *SBDraftCampaignV32) FromSBDraftCampaignV322(v SBDraftCampaignV322) error
FromSBDraftCampaignV322 overwrites any union data inside the SBDraftCampaignV32 as the provided SBDraftCampaignV322
func (*SBDraftCampaignV32) FromSBDraftCampaignV323 ¶
func (t *SBDraftCampaignV32) FromSBDraftCampaignV323(v SBDraftCampaignV323) error
FromSBDraftCampaignV323 overwrites any union data inside the SBDraftCampaignV32 as the provided SBDraftCampaignV323
func (SBDraftCampaignV32) MarshalJSON ¶
func (t SBDraftCampaignV32) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignV32) MergeSBDraftCampaignV320 ¶
func (t *SBDraftCampaignV32) MergeSBDraftCampaignV320(v SBDraftCampaignV320) error
MergeSBDraftCampaignV320 performs a merge with any union data inside the SBDraftCampaignV32, using the provided SBDraftCampaignV320
func (*SBDraftCampaignV32) MergeSBDraftCampaignV321 ¶
func (t *SBDraftCampaignV32) MergeSBDraftCampaignV321(v SBDraftCampaignV321) error
MergeSBDraftCampaignV321 performs a merge with any union data inside the SBDraftCampaignV32, using the provided SBDraftCampaignV321
func (*SBDraftCampaignV32) MergeSBDraftCampaignV322 ¶
func (t *SBDraftCampaignV32) MergeSBDraftCampaignV322(v SBDraftCampaignV322) error
MergeSBDraftCampaignV322 performs a merge with any union data inside the SBDraftCampaignV32, using the provided SBDraftCampaignV322
func (*SBDraftCampaignV32) MergeSBDraftCampaignV323 ¶
func (t *SBDraftCampaignV32) MergeSBDraftCampaignV323(v SBDraftCampaignV323) error
MergeSBDraftCampaignV323 performs a merge with any union data inside the SBDraftCampaignV32, using the provided SBDraftCampaignV323
func (*SBDraftCampaignV32) UnmarshalJSON ¶
func (t *SBDraftCampaignV32) UnmarshalJSON(b []byte) error
type SBDraftCampaignV320 ¶
type SBDraftCampaignV320 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBDraftCampaignV32_0_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the draft campaign. Keywords *[]SBDraftKeyword `json:"keywords,omitempty"` LandingPage *SBDraftCampaignV32_0_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the draft campaign. NegativeKeywords *[]SBDraftNegativeKeyword `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBDraftCampaignV320 defines model for .
type SBDraftCampaignV321 ¶
type SBDraftCampaignV321 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBDraftCampaignV32_1_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBDraftCampaignV32_1_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeTargets An array of negative targets associated with the draft campaign. NegativeTargets *[]SBDraftNegativeTargetingClause `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` // Targets An array of targets associated with the draft campaign. Targets *[]SBDraftTargetingClause `json:"targets,omitempty"` }
SBDraftCampaignV321 defines model for .
type SBDraftCampaignV322 ¶
type SBDraftCampaignV322 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the draft campaign. Keywords *[]SBDraftKeyword `json:"keywords,omitempty"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the draft campaign. NegativeKeywords *[]SBDraftNegativeKeyword `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` }
SBDraftCampaignV322 defines model for .
type SBDraftCampaignV323 ¶
type SBDraftCampaignV323 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeTargets An array of negative targets associated with the draft campaign. NegativeTargets *[]SBDraftNegativeTargetingClause `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Targets An array of targets associated with the draft campaign. Targets *[]SBDraftTargetingClause `json:"targets,omitempty"` }
SBDraftCampaignV323 defines model for .
type SBDraftCampaignV33 ¶
type SBDraftCampaignV33 struct {
// contains filtered or unexported fields
}
SBDraftCampaignV33 defines model for SBDraftCampaignV3_3.
func (SBDraftCampaignV33) AsSBDraftCampaignV330 ¶
func (t SBDraftCampaignV33) AsSBDraftCampaignV330() (SBDraftCampaignV330, error)
AsSBDraftCampaignV330 returns the union data inside the SBDraftCampaignV33 as a SBDraftCampaignV330
func (SBDraftCampaignV33) AsSBDraftCampaignV331 ¶
func (t SBDraftCampaignV33) AsSBDraftCampaignV331() (SBDraftCampaignV331, error)
AsSBDraftCampaignV331 returns the union data inside the SBDraftCampaignV33 as a SBDraftCampaignV331
func (SBDraftCampaignV33) AsSBDraftCampaignV332 ¶
func (t SBDraftCampaignV33) AsSBDraftCampaignV332() (SBDraftCampaignV332, error)
AsSBDraftCampaignV332 returns the union data inside the SBDraftCampaignV33 as a SBDraftCampaignV332
func (SBDraftCampaignV33) AsSBDraftCampaignV333 ¶
func (t SBDraftCampaignV33) AsSBDraftCampaignV333() (SBDraftCampaignV333, error)
AsSBDraftCampaignV333 returns the union data inside the SBDraftCampaignV33 as a SBDraftCampaignV333
func (*SBDraftCampaignV33) FromSBDraftCampaignV330 ¶
func (t *SBDraftCampaignV33) FromSBDraftCampaignV330(v SBDraftCampaignV330) error
FromSBDraftCampaignV330 overwrites any union data inside the SBDraftCampaignV33 as the provided SBDraftCampaignV330
func (*SBDraftCampaignV33) FromSBDraftCampaignV331 ¶
func (t *SBDraftCampaignV33) FromSBDraftCampaignV331(v SBDraftCampaignV331) error
FromSBDraftCampaignV331 overwrites any union data inside the SBDraftCampaignV33 as the provided SBDraftCampaignV331
func (*SBDraftCampaignV33) FromSBDraftCampaignV332 ¶
func (t *SBDraftCampaignV33) FromSBDraftCampaignV332(v SBDraftCampaignV332) error
FromSBDraftCampaignV332 overwrites any union data inside the SBDraftCampaignV33 as the provided SBDraftCampaignV332
func (*SBDraftCampaignV33) FromSBDraftCampaignV333 ¶
func (t *SBDraftCampaignV33) FromSBDraftCampaignV333(v SBDraftCampaignV333) error
FromSBDraftCampaignV333 overwrites any union data inside the SBDraftCampaignV33 as the provided SBDraftCampaignV333
func (SBDraftCampaignV33) MarshalJSON ¶
func (t SBDraftCampaignV33) MarshalJSON() ([]byte, error)
func (*SBDraftCampaignV33) MergeSBDraftCampaignV330 ¶
func (t *SBDraftCampaignV33) MergeSBDraftCampaignV330(v SBDraftCampaignV330) error
MergeSBDraftCampaignV330 performs a merge with any union data inside the SBDraftCampaignV33, using the provided SBDraftCampaignV330
func (*SBDraftCampaignV33) MergeSBDraftCampaignV331 ¶
func (t *SBDraftCampaignV33) MergeSBDraftCampaignV331(v SBDraftCampaignV331) error
MergeSBDraftCampaignV331 performs a merge with any union data inside the SBDraftCampaignV33, using the provided SBDraftCampaignV331
func (*SBDraftCampaignV33) MergeSBDraftCampaignV332 ¶
func (t *SBDraftCampaignV33) MergeSBDraftCampaignV332(v SBDraftCampaignV332) error
MergeSBDraftCampaignV332 performs a merge with any union data inside the SBDraftCampaignV33, using the provided SBDraftCampaignV332
func (*SBDraftCampaignV33) MergeSBDraftCampaignV333 ¶
func (t *SBDraftCampaignV33) MergeSBDraftCampaignV333(v SBDraftCampaignV333) error
MergeSBDraftCampaignV333 performs a merge with any union data inside the SBDraftCampaignV33, using the provided SBDraftCampaignV333
func (*SBDraftCampaignV33) UnmarshalJSON ¶
func (t *SBDraftCampaignV33) UnmarshalJSON(b []byte) error
type SBDraftCampaignV330 ¶
type SBDraftCampaignV330 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBDraftCampaignV33_0_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the draft campaign. Keywords *[]SBDraftKeyword `json:"keywords,omitempty"` LandingPage *SBDraftCampaignV33_0_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the draft campaign. NegativeKeywords *[]SBDraftNegativeKeyword `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBDraftCampaignV330 defines model for .
type SBDraftCampaignV331 ¶
type SBDraftCampaignV331 struct { // AdFormat The type of ad format. AdFormat *AdFormatV32 `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` Creative *SBDraftCampaignV33_1_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBDraftCampaignV33_1_LandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeTargets An array of negative targets associated with the draft campaign. NegativeTargets *[]SBDraftNegativeTargetingClause `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` // Targets An array of targets associated with the draft campaign. Targets *[]SBDraftTargetingClause `json:"targets,omitempty"` }
SBDraftCampaignV331 defines model for .
type SBDraftCampaignV332 ¶
type SBDraftCampaignV332 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the draft campaign. Keywords *[]SBDraftKeyword `json:"keywords,omitempty"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the draft campaign. NegativeKeywords *[]SBDraftNegativeKeyword `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` }
SBDraftCampaignV332 defines model for .
type SBDraftCampaignV333 ¶
type SBDraftCampaignV333 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // NegativeTargets An array of negative targets associated with the draft campaign. NegativeTargets *[]SBDraftNegativeTargetingClause `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` // Targets An array of targets associated with the draft campaign. Targets *[]SBDraftTargetingClause `json:"targets,omitempty"` }
SBDraftCampaignV333 defines model for .
type SBDraftKeyword ¶
type SBDraftKeyword struct { // AdGroupId The identifier of the ad group associated with the keyword. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The bid associated with the keyword. Note that this value must be less than the budget associated with the Advertiser account. For more information, see the **Keyword bid constraints by marketplace** section of the [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features) article. Bid *float32 `json:"bid,omitempty"` // CampaignId The identifier of the campaign associated with the keyword. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordId The keyword identifier. KeywordId *int64 `json:"keywordId,omitempty"` // KeywordText The keyword text. The maximum number of words for this string is 10. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // State | state | description | // |-------|-------------| // | draft | Newly created keyword. | // | pending | Keyword is under moderation. | // | enabled | Keyword passed moderation. | State *SBDraftKeywordState `json:"state,omitempty"` }
SBDraftKeyword defines model for SBDraftKeyword.
type SBDraftKeywordState ¶
type SBDraftKeywordState string
SBDraftKeywordState | state | description | |-------|-------------| | draft | Newly created keyword. | | pending | Keyword is under moderation. | | enabled | Keyword passed moderation. |
const ( SBDraftKeywordStateDraft SBDraftKeywordState = "draft" SBDraftKeywordStateEnabled SBDraftKeywordState = "enabled" SBDraftKeywordStatePending SBDraftKeywordState = "pending" )
Defines values for SBDraftKeywordState.
type SBDraftNegativeKeyword ¶
type SBDraftNegativeKeyword struct { // AdGroupId The identifier of the ad group associated with the keyword. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of the campaign associated with the keyword. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordId The keyword identifier. KeywordId *int64 `json:"keywordId,omitempty"` // KeywordText The keyword text. The maximum number of words for this string is 10. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` // State Newly created SB keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation. After moderation, the keyword will be in an enabled state. State *SBDraftNegativeKeywordState `json:"state,omitempty"` }
SBDraftNegativeKeyword defines model for SBDraftNegativeKeyword.
type SBDraftNegativeKeywordState ¶
type SBDraftNegativeKeywordState string
SBDraftNegativeKeywordState Newly created SB keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation. After moderation, the keyword will be in an enabled state.
const (
SBDraftNegativeKeywordStateDraft SBDraftNegativeKeywordState = "draft"
)
Defines values for SBDraftNegativeKeywordState.
type SBDraftNegativeTargetingClause ¶
type SBDraftNegativeTargetingClause struct { // AdGroupId The identifier of an existing ad group. The newly created target is associated to the specified ad group. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of an existing campaign. The newly created target is associated to the specified campaign. CampaignId *int64 `json:"campaignId,omitempty"` Expressions *SBNegativeTargetingExpressions `json:"expressions,omitempty"` ResolvedExpressions *SBResolvedExpression `json:"resolvedExpressions,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` }
SBDraftNegativeTargetingClause defines model for SBDraftNegativeTargetingClause.
type SBDraftTargetingClause ¶
type SBDraftTargetingClause struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *int64 `json:"campaignId,omitempty"` // Expressions A name value pair that defines a targeting expression. The `type` field defines the predicate. The `value` field defines the value to match for the predicate. Expressions *SBExpression `json:"expressions,omitempty"` ResolvedExpressions *SBResolvedExpression `json:"resolvedExpressions,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` }
SBDraftTargetingClause defines model for SBDraftTargetingClause.
type SBExpression ¶
type SBExpression struct { Type *ProductPredicateType `json:"type,omitempty"` // Value The text of the targeting expression. The `-` token defines a range. For example, `2-4` defines a range of 2, 3, and 4. Value *string `json:"value,omitempty"` }
SBExpression A name value pair that defines a targeting expression. The `type` field defines the predicate. The `value` field defines the value to match for the predicate.
type SBExpressionResponse ¶
type SBExpressionResponse struct { // Code An enumerated response code. Code *string `json:"code,omitempty"` // TargetId The targeting expression identifier. TargetId *int64 `json:"targetId,omitempty"` }
SBExpressionResponse defines model for SBExpressionResponse.
type SBGetDraftCampaignResponse ¶
type SBGetDraftCampaignResponse struct {
// contains filtered or unexported fields
}
SBGetDraftCampaignResponse defines model for SBGetDraftCampaignResponse.
func (SBGetDraftCampaignResponse) AsSBDraftCampaignBase ¶
func (t SBGetDraftCampaignResponse) AsSBDraftCampaignBase() (SBDraftCampaignBase, error)
AsSBDraftCampaignBase returns the union data inside the SBGetDraftCampaignResponse as a SBDraftCampaignBase
func (SBGetDraftCampaignResponse) AsSBVideoDraftCampaignBase ¶
func (t SBGetDraftCampaignResponse) AsSBVideoDraftCampaignBase() (SBVideoDraftCampaignBase, error)
AsSBVideoDraftCampaignBase returns the union data inside the SBGetDraftCampaignResponse as a SBVideoDraftCampaignBase
func (*SBGetDraftCampaignResponse) FromSBDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponse) FromSBDraftCampaignBase(v SBDraftCampaignBase) error
FromSBDraftCampaignBase overwrites any union data inside the SBGetDraftCampaignResponse as the provided SBDraftCampaignBase
func (*SBGetDraftCampaignResponse) FromSBVideoDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponse) FromSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
FromSBVideoDraftCampaignBase overwrites any union data inside the SBGetDraftCampaignResponse as the provided SBVideoDraftCampaignBase
func (SBGetDraftCampaignResponse) MarshalJSON ¶
func (t SBGetDraftCampaignResponse) MarshalJSON() ([]byte, error)
func (*SBGetDraftCampaignResponse) MergeSBDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponse) MergeSBDraftCampaignBase(v SBDraftCampaignBase) error
MergeSBDraftCampaignBase performs a merge with any union data inside the SBGetDraftCampaignResponse, using the provided SBDraftCampaignBase
func (*SBGetDraftCampaignResponse) MergeSBVideoDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponse) MergeSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
MergeSBVideoDraftCampaignBase performs a merge with any union data inside the SBGetDraftCampaignResponse, using the provided SBVideoDraftCampaignBase
func (*SBGetDraftCampaignResponse) UnmarshalJSON ¶
func (t *SBGetDraftCampaignResponse) UnmarshalJSON(b []byte) error
type SBGetDraftCampaignResponseV32 ¶
type SBGetDraftCampaignResponseV32 struct {
// contains filtered or unexported fields
}
SBGetDraftCampaignResponseV32 defines model for SBGetDraftCampaignResponseV3_2.
func (SBGetDraftCampaignResponseV32) AsSBDraftCampaignBaseV32 ¶
func (t SBGetDraftCampaignResponseV32) AsSBDraftCampaignBaseV32() (SBDraftCampaignBaseV32, error)
AsSBDraftCampaignBaseV32 returns the union data inside the SBGetDraftCampaignResponseV32 as a SBDraftCampaignBaseV32
func (SBGetDraftCampaignResponseV32) AsSBVideoDraftCampaignBase ¶
func (t SBGetDraftCampaignResponseV32) AsSBVideoDraftCampaignBase() (SBVideoDraftCampaignBase, error)
AsSBVideoDraftCampaignBase returns the union data inside the SBGetDraftCampaignResponseV32 as a SBVideoDraftCampaignBase
func (*SBGetDraftCampaignResponseV32) FromSBDraftCampaignBaseV32 ¶
func (t *SBGetDraftCampaignResponseV32) FromSBDraftCampaignBaseV32(v SBDraftCampaignBaseV32) error
FromSBDraftCampaignBaseV32 overwrites any union data inside the SBGetDraftCampaignResponseV32 as the provided SBDraftCampaignBaseV32
func (*SBGetDraftCampaignResponseV32) FromSBVideoDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponseV32) FromSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
FromSBVideoDraftCampaignBase overwrites any union data inside the SBGetDraftCampaignResponseV32 as the provided SBVideoDraftCampaignBase
func (SBGetDraftCampaignResponseV32) MarshalJSON ¶
func (t SBGetDraftCampaignResponseV32) MarshalJSON() ([]byte, error)
func (*SBGetDraftCampaignResponseV32) MergeSBDraftCampaignBaseV32 ¶
func (t *SBGetDraftCampaignResponseV32) MergeSBDraftCampaignBaseV32(v SBDraftCampaignBaseV32) error
MergeSBDraftCampaignBaseV32 performs a merge with any union data inside the SBGetDraftCampaignResponseV32, using the provided SBDraftCampaignBaseV32
func (*SBGetDraftCampaignResponseV32) MergeSBVideoDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponseV32) MergeSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
MergeSBVideoDraftCampaignBase performs a merge with any union data inside the SBGetDraftCampaignResponseV32, using the provided SBVideoDraftCampaignBase
func (*SBGetDraftCampaignResponseV32) UnmarshalJSON ¶
func (t *SBGetDraftCampaignResponseV32) UnmarshalJSON(b []byte) error
type SBGetDraftCampaignResponseV33 ¶
type SBGetDraftCampaignResponseV33 struct {
// contains filtered or unexported fields
}
SBGetDraftCampaignResponseV33 defines model for SBGetDraftCampaignResponseV3_3.
func (SBGetDraftCampaignResponseV33) AsSBDraftCampaignBaseV33 ¶
func (t SBGetDraftCampaignResponseV33) AsSBDraftCampaignBaseV33() (SBDraftCampaignBaseV33, error)
AsSBDraftCampaignBaseV33 returns the union data inside the SBGetDraftCampaignResponseV33 as a SBDraftCampaignBaseV33
func (SBGetDraftCampaignResponseV33) AsSBVideoDraftCampaignBase ¶
func (t SBGetDraftCampaignResponseV33) AsSBVideoDraftCampaignBase() (SBVideoDraftCampaignBase, error)
AsSBVideoDraftCampaignBase returns the union data inside the SBGetDraftCampaignResponseV33 as a SBVideoDraftCampaignBase
func (*SBGetDraftCampaignResponseV33) FromSBDraftCampaignBaseV33 ¶
func (t *SBGetDraftCampaignResponseV33) FromSBDraftCampaignBaseV33(v SBDraftCampaignBaseV33) error
FromSBDraftCampaignBaseV33 overwrites any union data inside the SBGetDraftCampaignResponseV33 as the provided SBDraftCampaignBaseV33
func (*SBGetDraftCampaignResponseV33) FromSBVideoDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponseV33) FromSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
FromSBVideoDraftCampaignBase overwrites any union data inside the SBGetDraftCampaignResponseV33 as the provided SBVideoDraftCampaignBase
func (SBGetDraftCampaignResponseV33) MarshalJSON ¶
func (t SBGetDraftCampaignResponseV33) MarshalJSON() ([]byte, error)
func (*SBGetDraftCampaignResponseV33) MergeSBDraftCampaignBaseV33 ¶
func (t *SBGetDraftCampaignResponseV33) MergeSBDraftCampaignBaseV33(v SBDraftCampaignBaseV33) error
MergeSBDraftCampaignBaseV33 performs a merge with any union data inside the SBGetDraftCampaignResponseV33, using the provided SBDraftCampaignBaseV33
func (*SBGetDraftCampaignResponseV33) MergeSBVideoDraftCampaignBase ¶
func (t *SBGetDraftCampaignResponseV33) MergeSBVideoDraftCampaignBase(v SBVideoDraftCampaignBase) error
MergeSBVideoDraftCampaignBase performs a merge with any union data inside the SBGetDraftCampaignResponseV33, using the provided SBVideoDraftCampaignBase
func (*SBGetDraftCampaignResponseV33) UnmarshalJSON ¶
func (t *SBGetDraftCampaignResponseV33) UnmarshalJSON(b []byte) error
type SBKeyword ¶
type SBKeyword struct { // AdGroupId The identifier of the ad group associated with the keyword. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The bid associated with the keyword. Note that this value must be less than the budget associated with the Advertiser account. For more information, see the **Keyword bid constraints by marketplace** section of the [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features) article. Bid *float32 `json:"bid,omitempty"` // CampaignId The identifier of the campaign associated with the keyword. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordId The keyword identifier. KeywordId *int64 `json:"keywordId,omitempty"` // KeywordText The keyword text. The maximum number of words for this string is 10. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // State Newly created SB keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation. After moderation, the keyword will be in an enabled state. State *SBKeywordState `json:"state,omitempty"` }
SBKeyword Applies to: | Operation | Path | |-----------| -----| |[listKeywords](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Keywords)| GET /sb/keywords| |[getKeyword](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Keywords)| GET /sb/keywords/{keywordId}| <br/>
type SBKeywordExpression ¶
type SBKeywordExpression struct { // Type The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. Type *MatchType `json:"type,omitempty"` // Value The text of the keyword. Maximum of 10 words. Value *string `json:"value,omitempty"` }
SBKeywordExpression defines model for SBKeywordExpression.
type SBKeywordResponse ¶
type SBKeywordResponse struct { // Code An enumerated response code. Code *string `json:"code,omitempty"` // Details A human-readable description of the enumerated response code in the `code` field. Details *string `json:"details,omitempty"` // KeywordId The keyword identifier. KeywordId *int64 `json:"keywordId,omitempty"` }
SBKeywordResponse Applies to: | Operation | Path | |-----------| -----| |[createKeywords](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Keywords)| POST /sb/keywords| |[createNegativeKeywords](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Negative_Keywords)|POST /sb/negativeKeywords| |[updateNegativeKeywords](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Negative_Keywords)|PUT /sb/negativeKeywords| |[archiveNegativeKeyword](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Negative_Keywords)|DELETE /sb/negativeKeywords/{keywordId}| <br/>
type SBKeywordState ¶
type SBKeywordState string
SBKeywordState Newly created SB keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation. After moderation, the keyword will be in an enabled state.
const ( SBKeywordStateArchived SBKeywordState = "archived" SBKeywordStateDraft SBKeywordState = "draft" SBKeywordStateEnabled SBKeywordState = "enabled" SBKeywordStatePaused SBKeywordState = "paused" SBKeywordStatePending SBKeywordState = "pending" )
Defines values for SBKeywordState.
type SBLandingPage ¶
type SBLandingPage struct { // Asins An array of ASINs used to generate a simple landing page. The response includes the URL of the generated simple landing page. Do not include this property in the request if the `url` property is also included, these properties are mutually exclusive. Asins *[]string `json:"asins,omitempty"` // Url URL of an existing simple landing page or Store page. Vendors may also specify the URL of a custom landing page. If a custom URL is specified, the landing page must include the ASINs of at least three products that are advertised as part of the campaign. Do not include this property in the request if the `asins` property is also included, these properties are mutually exclusive. Url *string `json:"url,omitempty"` }
SBLandingPage Specifies either an array of ASINs for a simple landing page or the URL of a Store page. Vendors may also specify the URL of a custom landing page. Shoppers are sent to the specified simple landing page, custom landing page, or Store page when the ad is clicked. Note that this property can be updated when the campaign is in a draft state, but can't be updated while the campaign is in moderation or once it's been approved. If the campaign is rejected for any reason, it returns to a draft state.
type SBListCampaignsResponse ¶
type SBListCampaignsResponse struct {
// contains filtered or unexported fields
}
SBListCampaignsResponse Applies to: | Operation | Path | |-----------| -----| |[listCampaigns](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Campaigns)| GET /sb/campaigns| <br/>
func (SBListCampaignsResponse) AsSBListCampaignsResponse0 ¶
func (t SBListCampaignsResponse) AsSBListCampaignsResponse0() (SBListCampaignsResponse0, error)
AsSBListCampaignsResponse0 returns the union data inside the SBListCampaignsResponse as a SBListCampaignsResponse0
func (SBListCampaignsResponse) AsSBListCampaignsResponse1 ¶
func (t SBListCampaignsResponse) AsSBListCampaignsResponse1() (SBListCampaignsResponse1, error)
AsSBListCampaignsResponse1 returns the union data inside the SBListCampaignsResponse as a SBListCampaignsResponse1
func (*SBListCampaignsResponse) FromSBListCampaignsResponse0 ¶
func (t *SBListCampaignsResponse) FromSBListCampaignsResponse0(v SBListCampaignsResponse0) error
FromSBListCampaignsResponse0 overwrites any union data inside the SBListCampaignsResponse as the provided SBListCampaignsResponse0
func (*SBListCampaignsResponse) FromSBListCampaignsResponse1 ¶
func (t *SBListCampaignsResponse) FromSBListCampaignsResponse1(v SBListCampaignsResponse1) error
FromSBListCampaignsResponse1 overwrites any union data inside the SBListCampaignsResponse as the provided SBListCampaignsResponse1
func (SBListCampaignsResponse) MarshalJSON ¶
func (t SBListCampaignsResponse) MarshalJSON() ([]byte, error)
func (*SBListCampaignsResponse) MergeSBListCampaignsResponse0 ¶
func (t *SBListCampaignsResponse) MergeSBListCampaignsResponse0(v SBListCampaignsResponse0) error
MergeSBListCampaignsResponse0 performs a merge with any union data inside the SBListCampaignsResponse, using the provided SBListCampaignsResponse0
func (*SBListCampaignsResponse) MergeSBListCampaignsResponse1 ¶
func (t *SBListCampaignsResponse) MergeSBListCampaignsResponse1(v SBListCampaignsResponse1) error
MergeSBListCampaignsResponse1 performs a merge with any union data inside the SBListCampaignsResponse, using the provided SBListCampaignsResponse1
func (*SBListCampaignsResponse) UnmarshalJSON ¶
func (t *SBListCampaignsResponse) UnmarshalJSON(b []byte) error
type SBListCampaignsResponse0 ¶
type SBListCampaignsResponse0 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to allow Amazon to automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int `json:"campaignId,omitempty"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBListCampaignsResponse_0_LandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Value|Description| // |-----|-----------| // |asinNotBuyable| The associated ASIN cannot be purchased due to eligibility or availability.| // |billingError| The billing information associated with the account requires correction.| // |ended| The value specified in the `endDate` field is in the past.| // |landingPageNotAvailable| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |outOfBudget| The campaign has run out of budget.| // |paused|The campaign state is set to `paused`.| // |pendingReview| A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours. // |ready| The campaign is scheduled for a future date.| // |rejected| The campaign failed moderation review.| // |running| The campaign is enabled and serving.| // |scheduled| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |terminated| The state of the campaign is set to `archived`.| // <br/> ServingStatus *SBListCampaignsResponse0ServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBListCampaignsResponse0 defines model for .
type SBListCampaignsResponse1 ¶
type SBListCampaignsResponse1 struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int `json:"campaignId,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBListCampaignsResponse_1_LandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Value|Description| // |-----|-----------| // |asinNotBuyable| The associated ASIN cannot be purchased due to eligibility or availability.| // |billingError| The billing information associated with the account requires correction.| // |ended| The value specified in the `endDate` field is in the past.| // |landingPageNotAvailable| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |outOfBudget| The campaign has run out of budget.| // |paused|The campaign state is set to `paused`.| // |pendingReview| A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours. // |ready| The campaign is scheduled for a future date.| // |rejected| The campaign failed moderation review.| // |running| The campaign is enabled and serving.| // |scheduled| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |terminated| The state of the campaign is set to `archived`.| // <br/> ServingStatus *SBListCampaignsResponse1ServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBListCampaignsResponse1 defines model for .
type SBListCampaignsResponseCommon ¶
type SBListCampaignsResponseCommon struct { // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int `json:"campaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` LandingPage *SBListCampaignsResponseCommon_LandingPage `json:"landingPage,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Value|Description| // |-----|-----------| // |asinNotBuyable| The associated ASIN cannot be purchased due to eligibility or availability.| // |billingError| The billing information associated with the account requires correction.| // |ended| The value specified in the `endDate` field is in the past.| // |landingPageNotAvailable| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |outOfBudget| The campaign has run out of budget.| // |paused|The campaign state is set to `paused`.| // |pendingReview| A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours. // |ready| The campaign is scheduled for a future date.| // |rejected| The campaign failed moderation review.| // |running| The campaign is enabled and serving.| // |scheduled| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |terminated| The state of the campaign is set to `archived`.| // <br/> ServingStatus *SBListCampaignsResponseCommonServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBListCampaignsResponseCommon defines model for SBListCampaignsResponseCommon.
type SBListCampaignsResponseCommonServingStatus ¶
type SBListCampaignsResponseCommonServingStatus string
SBListCampaignsResponseCommonServingStatus |Value|Description| |-----|-----------| |asinNotBuyable| The associated ASIN cannot be purchased due to eligibility or availability.| |billingError| The billing information associated with the account requires correction.| |ended| The value specified in the `endDate` field is in the past.| |landingPageNotAvailable| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| |outOfBudget| The campaign has run out of budget.| |paused|The campaign state is set to `paused`.| |pendingReview| A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours. |ready| The campaign is scheduled for a future date.| |rejected| The campaign failed moderation review.| |running| The campaign is enabled and serving.| |scheduled| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| |terminated| The state of the campaign is set to `archived`.| <br/>
const ( SBListCampaignsResponseCommonServingStatusAsinNotBuyable SBListCampaignsResponseCommonServingStatus = "asinNotBuyable" SBListCampaignsResponseCommonServingStatusBillingError SBListCampaignsResponseCommonServingStatus = "billingError" SBListCampaignsResponseCommonServingStatusEnded SBListCampaignsResponseCommonServingStatus = "ended" SBListCampaignsResponseCommonServingStatusLandingPageNotAvailable SBListCampaignsResponseCommonServingStatus = "landingPageNotAvailable" SBListCampaignsResponseCommonServingStatusOutOfBudget SBListCampaignsResponseCommonServingStatus = "outOfBudget" SBListCampaignsResponseCommonServingStatusPaused SBListCampaignsResponseCommonServingStatus = "paused" SBListCampaignsResponseCommonServingStatusPendingReview SBListCampaignsResponseCommonServingStatus = "pendingReview" SBListCampaignsResponseCommonServingStatusReady SBListCampaignsResponseCommonServingStatus = "ready" SBListCampaignsResponseCommonServingStatusRejected SBListCampaignsResponseCommonServingStatus = "rejected" SBListCampaignsResponseCommonServingStatusRunning SBListCampaignsResponseCommonServingStatus = "running" SBListCampaignsResponseCommonServingStatusScheduled SBListCampaignsResponseCommonServingStatus = "scheduled" SBListCampaignsResponseCommonServingStatusTerminated SBListCampaignsResponseCommonServingStatus = "terminated" )
Defines values for SBListCampaignsResponseCommonServingStatus.
type SBListCampaignsResponseCommon_LandingPage ¶
type SBListCampaignsResponseCommon_LandingPage struct {
// contains filtered or unexported fields
}
SBListCampaignsResponseCommon_LandingPage defines model for SBListCampaignsResponseCommon.LandingPage.
func (SBListCampaignsResponseCommon_LandingPage) AsSBCustomUrlLandingPage ¶
func (t SBListCampaignsResponseCommon_LandingPage) AsSBCustomUrlLandingPage() (SBCustomUrlLandingPage, error)
AsSBCustomUrlLandingPage returns the union data inside the SBListCampaignsResponseCommon_LandingPage as a SBCustomUrlLandingPage
func (SBListCampaignsResponseCommon_LandingPage) AsSBDetailPageLandingPage ¶
func (t SBListCampaignsResponseCommon_LandingPage) AsSBDetailPageLandingPage() (SBDetailPageLandingPage, error)
AsSBDetailPageLandingPage returns the union data inside the SBListCampaignsResponseCommon_LandingPage as a SBDetailPageLandingPage
func (SBListCampaignsResponseCommon_LandingPage) AsSBProductListLandingPage ¶
func (t SBListCampaignsResponseCommon_LandingPage) AsSBProductListLandingPage() (SBProductListLandingPage, error)
AsSBProductListLandingPage returns the union data inside the SBListCampaignsResponseCommon_LandingPage as a SBProductListLandingPage
func (SBListCampaignsResponseCommon_LandingPage) AsSBStoreLandingPage ¶
func (t SBListCampaignsResponseCommon_LandingPage) AsSBStoreLandingPage() (SBStoreLandingPage, error)
AsSBStoreLandingPage returns the union data inside the SBListCampaignsResponseCommon_LandingPage as a SBStoreLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) FromSBCustomUrlLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) FromSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
FromSBCustomUrlLandingPage overwrites any union data inside the SBListCampaignsResponseCommon_LandingPage as the provided SBCustomUrlLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) FromSBDetailPageLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) FromSBDetailPageLandingPage(v SBDetailPageLandingPage) error
FromSBDetailPageLandingPage overwrites any union data inside the SBListCampaignsResponseCommon_LandingPage as the provided SBDetailPageLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) FromSBProductListLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) FromSBProductListLandingPage(v SBProductListLandingPage) error
FromSBProductListLandingPage overwrites any union data inside the SBListCampaignsResponseCommon_LandingPage as the provided SBProductListLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) FromSBStoreLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) FromSBStoreLandingPage(v SBStoreLandingPage) error
FromSBStoreLandingPage overwrites any union data inside the SBListCampaignsResponseCommon_LandingPage as the provided SBStoreLandingPage
func (SBListCampaignsResponseCommon_LandingPage) MarshalJSON ¶
func (t SBListCampaignsResponseCommon_LandingPage) MarshalJSON() ([]byte, error)
func (*SBListCampaignsResponseCommon_LandingPage) MergeSBCustomUrlLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBCustomUrlLandingPage(v SBCustomUrlLandingPage) error
MergeSBCustomUrlLandingPage performs a merge with any union data inside the SBListCampaignsResponseCommon_LandingPage, using the provided SBCustomUrlLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) MergeSBDetailPageLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBDetailPageLandingPage(v SBDetailPageLandingPage) error
MergeSBDetailPageLandingPage performs a merge with any union data inside the SBListCampaignsResponseCommon_LandingPage, using the provided SBDetailPageLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) MergeSBProductListLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBProductListLandingPage(v SBProductListLandingPage) error
MergeSBProductListLandingPage performs a merge with any union data inside the SBListCampaignsResponseCommon_LandingPage, using the provided SBProductListLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) MergeSBStoreLandingPage ¶
func (t *SBListCampaignsResponseCommon_LandingPage) MergeSBStoreLandingPage(v SBStoreLandingPage) error
MergeSBStoreLandingPage performs a merge with any union data inside the SBListCampaignsResponseCommon_LandingPage, using the provided SBStoreLandingPage
func (*SBListCampaignsResponseCommon_LandingPage) UnmarshalJSON ¶
func (t *SBListCampaignsResponseCommon_LandingPage) UnmarshalJSON(b []byte) error
type SBNegativeExpression ¶
type SBNegativeExpression struct { Type *SBNegativeExpressionType `json:"type,omitempty"` // Value The text of the negative expression. Value *string `json:"value,omitempty"` }
SBNegativeExpression defines model for SBNegativeExpression.
type SBNegativeExpressionType ¶
type SBNegativeExpressionType string
SBNegativeExpressionType defines model for SBNegativeExpression.Type.
const ( SBNegativeExpressionTypeAsinBrandSameAs SBNegativeExpressionType = "asinBrandSameAs" SBNegativeExpressionTypeAsinSameAs SBNegativeExpressionType = "asinSameAs" )
Defines values for SBNegativeExpressionType.
type SBNegativeKeyword ¶
type SBNegativeKeyword struct { // AdGroupId The identifier of the ad group associated with the keyword. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of the campaign associated with the keyword. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordId The keyword identifier. KeywordId *int64 `json:"keywordId,omitempty"` // KeywordText The keyword text. The maximum number of words for this string is 10. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` // State Newly created SB keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation. After moderation, the keyword will be in an enabled state. State *SBKeywordState `json:"state,omitempty"` }
SBNegativeKeyword defines model for SBNegativeKeyword.
type SBNegativeKeywordState ¶
type SBNegativeKeywordState string
SBNegativeKeywordState The current state of the negative keyword. Newly created SB negative keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation review. 'enabled' refers to negative keywords that are active. 'archived' refers to negative keywords that are permanently inactive and cannot be returned to the 'enabled' state.
const ( SBNegativeKeywordStateArchived SBNegativeKeywordState = "archived" SBNegativeKeywordStateDraft SBNegativeKeywordState = "draft" SBNegativeKeywordStateEnabled SBNegativeKeywordState = "enabled" SBNegativeKeywordStatePending SBNegativeKeywordState = "pending" )
Defines values for SBNegativeKeywordState.
type SBNegativeTarget ¶
type SBNegativeTarget struct {
Expressions *[]SBExpression `json:"expressions,omitempty"`
}
SBNegativeTarget defines model for SBNegativeTarget.
type SBNegativeTargetId ¶
type SBNegativeTargetId = int64
SBNegativeTargetId The identifier of a negative target.
type SBNegativeTargetRequestIndex ¶
type SBNegativeTargetRequestIndex = float32
SBNegativeTargetRequestIndex Correlates the negative target to the negative target array index specified in the request. Zero-based.
type SBNegativeTargetState ¶
type SBNegativeTargetState string
SBNegativeTargetState defines model for SBNegativeTargetState.
const ( SBNegativeTargetStateArchived SBNegativeTargetState = "archived" SBNegativeTargetStateEnabled SBNegativeTargetState = "enabled" SBNegativeTargetStatePending SBNegativeTargetState = "pending" )
Defines values for SBNegativeTargetState.
type SBNegativeTargetingClause ¶
type SBNegativeTargetingClause struct { // AdGroupId The identifier of an existing ad group. The newly created target is associated to this ad group AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of an existing campaign. The newly created target is associated to this campaign CampaignId *int64 `json:"campaignId,omitempty"` Expressions *SBNegativeTargetingExpressions `json:"expressions,omitempty"` ResolvedExpressions *SBResolvedExpression `json:"resolvedExpressions,omitempty"` State *SBProductTargetState `json:"state,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` }
SBNegativeTargetingClause defines model for SBNegativeTargetingClause.
type SBNegativeTargetingExpressions ¶
type SBNegativeTargetingExpressions = []SBNegativeExpression
SBNegativeTargetingExpressions defines model for SBNegativeTargetingExpressions.
type SBProductCollectionCreative ¶
type SBProductCollectionCreative struct { Asins *[]string `json:"asins,omitempty"` // BrandLogoAssetID The identifier of the brand logo image from the Store assets library. See [listAssets](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Stores) for more information. Note that for campaigns created in the Amazon Advertising console prior to release of the Store assets library, responses will not include a value for the brandLogoAssetID field. BrandLogoAssetID *string `json:"brandLogoAssetID,omitempty"` // BrandLogoCrop The crop to apply to the selected Brand logo. A Brand logo must have minimum dimensions of 400x400. If a brandLogoAssetID is supplied but a crop is not, the crop will be defaulted to the whole image. BrandLogoCrop *SBBrandLogoCrop `json:"brandLogoCrop,omitempty"` // BrandLogoUrl The address of the hosted image. BrandLogoUrl *string `json:"brandLogoUrl,omitempty"` // BrandName A brand name. Maximum length is 30 characters. BrandName *string `json:"brandName,omitempty"` // CustomImageAssetId The identifier of the Custom image from the Store assets library. See [the policy](https://advertising.amazon.com/resources/ad-policy/sponsored-ads-policies#customimage) for more information on what constitutes a valid Custom image. CustomImageAssetId *string `json:"customImageAssetId,omitempty"` // CustomImageCrop The crop to apply to the selected Custom image. A Custom image must have a 1200x628 aspect ratio, with a .01 delta for floating point precision. If a customImageAssetId is supplied but a crop is not, the crop will be defaulted. CustomImageCrop *SBCustomImageCrop `json:"customImageCrop,omitempty"` // CustomImageUrl The address of the hosted Custom image. CustomImageUrl *string `json:"customImageUrl,omitempty"` // Headline The headline text. Maximum length of the string is 50 characters for all marketplaces other than Japan, which has a maximum length of 35 characters. Headline *string `json:"headline,omitempty"` // ShouldOptimizeAsins Starting on March 25th, 2021, this property will no longer be supported. This feature is currently available in the US and UK. Existing Sponsored Brands campaigns with product optimization enabled will no longer have the products in the creative automatically optimized. Campaigns with product optimization enabled will be converted to standard Sponsored Brands product collection campaigns with the default selected products showing in the creative. For POST and PUT operations, setting this property to true will not have any effect. The value returned in the response will always be false. For the GET operation, the value of this field will always be false. And starting on September 25th, 2021, this property will be removed completely. ShouldOptimizeAsins *bool `json:"shouldOptimizeAsins,omitempty"` }
SBProductCollectionCreative defines model for SBProductCollectionCreative.
type SBProductListLandingPage ¶
type SBProductListLandingPage struct { PageType *string `json:"pageType,omitempty"` Url *string `json:"url,omitempty"` }
SBProductListLandingPage A landing page showcasing a list of ASINs.
type SBProductTargetState ¶
type SBProductTargetState string
SBProductTargetState defines model for SBProductTargetState.
const ( SBProductTargetStateArchived SBProductTargetState = "archived" SBProductTargetStateDraft SBProductTargetState = "draft" SBProductTargetStateEnabled SBProductTargetState = "enabled" SBProductTargetStatePaused SBProductTargetState = "paused" SBProductTargetStatePending SBProductTargetState = "pending" )
Defines values for SBProductTargetState.
type SBResolvedExpression ¶
type SBResolvedExpression struct { Type *ProductPredicateType `json:"type,omitempty"` // Value The human-readable target text. Value *string `json:"value,omitempty"` }
SBResolvedExpression defines model for SBResolvedExpression.
type SBStoreLandingPage ¶
type SBStoreLandingPage struct { PageType *string `json:"pageType,omitempty"` Url *string `json:"url,omitempty"` }
SBStoreLandingPage An Amazon Store page or subpage.
type SBStoreSpotlightCreative ¶
type SBStoreSpotlightCreative struct { // BrandLogoAssetID The identifier of the brand logo image from the Store assets library. See [listAssets](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Stores) for more information. Note that for campaigns created in the Amazon Advertising console prior to release of the Store assets library, responses will not include a value for the brandLogoAssetID field. BrandLogoAssetID *string `json:"brandLogoAssetID,omitempty"` // BrandLogoCrop The crop to apply to the selected Brand logo. A Brand logo must have minimum dimensions of 400x400. If a brandLogoAssetID is supplied but a crop is not, the crop will be defaulted to the whole image. BrandLogoCrop *SBBrandLogoCrop `json:"brandLogoCrop,omitempty"` // BrandLogoUrl The address of the hosted image. BrandLogoUrl *string `json:"brandLogoUrl,omitempty"` // BrandName A brand name. Maximum length is 30 characters. BrandName *string `json:"brandName,omitempty"` // Headline The headline text. Maximum length of the string is 50 characters for all marketplaces other than Japan, which has a maximum length of 35 characters. Headline *string `json:"headline,omitempty"` Subpages *[]struct { // Asin An ASIN on the Store subpage. The ASIN image will be used to represent the subpage. Asin *string `json:"asin,omitempty"` // PageTitle The title of the subpage. Maximum length is 50 characters. PageTitle *string `json:"pageTitle,omitempty"` // Url URL of an existing Store page. Must be a subpage of the Store landing page associated with the campaign. Url *string `json:"url,omitempty"` } `json:"subpages,omitempty"` }
SBStoreSpotlightCreative defines model for SBStoreSpotlightCreative.
type SBSubmitDraftCampaignResponse ¶
type SBSubmitDraftCampaignResponse struct {
// contains filtered or unexported fields
}
SBSubmitDraftCampaignResponse defines model for SBSubmitDraftCampaignResponse.
func (SBSubmitDraftCampaignResponse) AsSBSubmitDraftCampaignResponse0 ¶
func (t SBSubmitDraftCampaignResponse) AsSBSubmitDraftCampaignResponse0() (SBSubmitDraftCampaignResponse0, error)
AsSBSubmitDraftCampaignResponse0 returns the union data inside the SBSubmitDraftCampaignResponse as a SBSubmitDraftCampaignResponse0
func (SBSubmitDraftCampaignResponse) AsSBSubmitDraftCampaignResponse1 ¶
func (t SBSubmitDraftCampaignResponse) AsSBSubmitDraftCampaignResponse1() (SBSubmitDraftCampaignResponse1, error)
AsSBSubmitDraftCampaignResponse1 returns the union data inside the SBSubmitDraftCampaignResponse as a SBSubmitDraftCampaignResponse1
func (*SBSubmitDraftCampaignResponse) FromSBSubmitDraftCampaignResponse0 ¶
func (t *SBSubmitDraftCampaignResponse) FromSBSubmitDraftCampaignResponse0(v SBSubmitDraftCampaignResponse0) error
FromSBSubmitDraftCampaignResponse0 overwrites any union data inside the SBSubmitDraftCampaignResponse as the provided SBSubmitDraftCampaignResponse0
func (*SBSubmitDraftCampaignResponse) FromSBSubmitDraftCampaignResponse1 ¶
func (t *SBSubmitDraftCampaignResponse) FromSBSubmitDraftCampaignResponse1(v SBSubmitDraftCampaignResponse1) error
FromSBSubmitDraftCampaignResponse1 overwrites any union data inside the SBSubmitDraftCampaignResponse as the provided SBSubmitDraftCampaignResponse1
func (SBSubmitDraftCampaignResponse) MarshalJSON ¶
func (t SBSubmitDraftCampaignResponse) MarshalJSON() ([]byte, error)
func (*SBSubmitDraftCampaignResponse) MergeSBSubmitDraftCampaignResponse0 ¶
func (t *SBSubmitDraftCampaignResponse) MergeSBSubmitDraftCampaignResponse0(v SBSubmitDraftCampaignResponse0) error
MergeSBSubmitDraftCampaignResponse0 performs a merge with any union data inside the SBSubmitDraftCampaignResponse, using the provided SBSubmitDraftCampaignResponse0
func (*SBSubmitDraftCampaignResponse) MergeSBSubmitDraftCampaignResponse1 ¶
func (t *SBSubmitDraftCampaignResponse) MergeSBSubmitDraftCampaignResponse1(v SBSubmitDraftCampaignResponse1) error
MergeSBSubmitDraftCampaignResponse1 performs a merge with any union data inside the SBSubmitDraftCampaignResponse, using the provided SBSubmitDraftCampaignResponse1
func (*SBSubmitDraftCampaignResponse) UnmarshalJSON ¶
func (t *SBSubmitDraftCampaignResponse) UnmarshalJSON(b []byte) error
type SBSubmitDraftCampaignResponse0 ¶
type SBSubmitDraftCampaignResponse0 struct { // CampaignId The identifier of the campaign. CampaignId *int64 `json:"campaignId,omitempty"` // Code The draft campaign response code. Code *string `json:"code,omitempty"` // Details A human-readable description of the 'code' field value. Details *string `json:"details,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int64 `json:"draftCampaignId,omitempty"` KeywordResponses *[]SBKeywordResponse `json:"keywordResponses,omitempty"` NegativeKeywordResponses *[]SBKeywordResponse `json:"negativeKeywordResponses,omitempty"` }
SBSubmitDraftCampaignResponse0 defines model for .
type SBSubmitDraftCampaignResponse1 ¶
type SBSubmitDraftCampaignResponse1 struct { // CampaignId The identifier of the campaign. CampaignId *int64 `json:"campaignId,omitempty"` // Code The draft campaign response code. Code *string `json:"code,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int64 `json:"draftCampaignId,omitempty"` NegativeTargetingClauseResponses *[]SBExpressionResponse `json:"negativeTargetingClauseResponses,omitempty"` TargetingClauseResponses *[]SBExpressionResponse `json:"targetingClauseResponses,omitempty"` }
SBSubmitDraftCampaignResponse1 defines model for .
type SBTarget ¶
type SBTarget struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *SBAPIBid `json:"bid,omitempty"` Expressions *[]SBExpression `json:"expressions,omitempty"` }
SBTarget defines model for SBTarget.
type SBTargetRequestIndex ¶
type SBTargetRequestIndex = float32
SBTargetRequestIndex Correlates the target to the target array index specified in the request. Zero-based.
type SBTargetingClause ¶
type SBTargetingClause struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *int64 `json:"campaignId,omitempty"` // Expressions A name value pair that defines a targeting expression. The `type` field defines the predicate. The `value` field defines the value to match for the predicate. Expressions *SBExpression `json:"expressions,omitempty"` ResolvedExpressions *SBResolvedExpression `json:"resolvedExpressions,omitempty"` State *SBProductTargetState `json:"state,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` }
SBTargetingClause defines model for SBTargetingClause.
type SBTargetingClauseResponse ¶
type SBTargetingClauseResponse struct { Code *string `json:"code,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` }
SBTargetingClauseResponse defines model for SBTargetingClauseResponse.
type SBTargetingExpressions ¶
type SBTargetingExpressions = []SBExpression
SBTargetingExpressions defines model for SBTargetingExpressions.
type SBTargetsNegativeTargets ¶
type SBTargetsNegativeTargets struct { NegativeTargets *[]SBNegativeTarget `json:"negativeTargets,omitempty"` Targets *[]SBTarget `json:"targets,omitempty"` }
SBTargetsNegativeTargets defines model for SBTargetsNegativeTargets.
type SBTheme ¶
type SBTheme struct { // AdGroupId The identifier of the ad group associated with the theme target. AdGroupId *string `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *float32 `json:"bid,omitempty"` // CampaignId The identifier of the campaign associated with the theme target. CampaignId *string `json:"campaignId,omitempty"` State *SBThemeState `json:"state,omitempty"` // ThemeId The theme target identifier. ThemeId *string `json:"themeId,omitempty"` // ThemeType The theme target type. // - KEYWORDS_RELATED_TO_YOUR_BRAND - keywords related to brands. // - KEYWORDS_RELATED_TO_YOUR_LANDING_PAGES - keywords related to your landing pages. // - Note: Additional theme types may be added in the future. ThemeType *ThemeType `json:"themeType,omitempty"` }
SBTheme | themeType | description | |-----------|-------------| | KEYWORDS_RELATED_TO_YOUR_BRAND | keywords related to brands. | | KEYWORDS_RELATED_TO_YOUR_LANDING_PAGES | keywords related to your landing pages. |
type SBThemeState ¶
type SBThemeState string
SBThemeState defines model for SBThemeState.
const ( SBThemeStateArchived SBThemeState = "archived" SBThemeStateEnabled SBThemeState = "enabled" SBThemeStatePaused SBThemeState = "paused" )
Defines values for SBThemeState.
type SBUpdateCampaignResponse ¶
type SBUpdateCampaignResponse struct { // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // Code An enumerated response code. Code *string `json:"code,omitempty"` // Details A human-readable description of the enumerated response code in the `code` field. Details *string `json:"details,omitempty"` }
SBUpdateCampaignResponse Applies to: | Operation | Path | |-----------| -----| |[updateCampaigns](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Campaigns)| PUT /sb/campaigns| |[archiveCampaigns](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Campaigns)|DELETE /sb/campaigns/{campaignId}| <br/>
type SBUpdateCampaignResponseDefault ¶
type SBUpdateCampaignResponseDefault struct { // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // Code An enumerated response code. Code *string `json:"code,omitempty"` // Description A human-readable description of the enumerated response code in the `code` field. Description *string `json:"description,omitempty"` Errors *[]ErrorEntry `json:"errors,omitempty"` }
SBUpdateCampaignResponseDefault |-
Applies to: | Operation | Path | |-----------| -----| |[updateCampaigns](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Campaigns)| PUT /sb/campaigns| |[archiveCampaigns](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Campaigns)|DELETE /sb/campaigns/{campaignId}| <br/>
type SBUpdateDraftCampaignRequest ¶
type SBUpdateDraftCampaignRequest struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequest defines model for SBUpdateDraftCampaignRequest.
func (SBUpdateDraftCampaignRequest) AsSBUpdateDraftCampaignRequestWithKeywords ¶
func (t SBUpdateDraftCampaignRequest) AsSBUpdateDraftCampaignRequestWithKeywords() (SBUpdateDraftCampaignRequestWithKeywords, error)
AsSBUpdateDraftCampaignRequestWithKeywords returns the union data inside the SBUpdateDraftCampaignRequest as a SBUpdateDraftCampaignRequestWithKeywords
func (SBUpdateDraftCampaignRequest) AsSBUpdateDraftCampaignRequestWithProductTargets ¶
func (t SBUpdateDraftCampaignRequest) AsSBUpdateDraftCampaignRequestWithProductTargets() (SBUpdateDraftCampaignRequestWithProductTargets, error)
AsSBUpdateDraftCampaignRequestWithProductTargets returns the union data inside the SBUpdateDraftCampaignRequest as a SBUpdateDraftCampaignRequestWithProductTargets
func (SBUpdateDraftCampaignRequest) AsSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t SBUpdateDraftCampaignRequest) AsSBVideoUpdateDraftCampaignRequestWithKeywords() (SBVideoUpdateDraftCampaignRequestWithKeywords, error)
AsSBVideoUpdateDraftCampaignRequestWithKeywords returns the union data inside the SBUpdateDraftCampaignRequest as a SBVideoUpdateDraftCampaignRequestWithKeywords
func (SBUpdateDraftCampaignRequest) AsSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t SBUpdateDraftCampaignRequest) AsSBVideoUpdateDraftCampaignRequestWithProductTargets() (SBVideoUpdateDraftCampaignRequestWithProductTargets, error)
AsSBVideoUpdateDraftCampaignRequestWithProductTargets returns the union data inside the SBUpdateDraftCampaignRequest as a SBVideoUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequest) FromSBUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequest) FromSBUpdateDraftCampaignRequestWithKeywords(v SBUpdateDraftCampaignRequestWithKeywords) error
FromSBUpdateDraftCampaignRequestWithKeywords overwrites any union data inside the SBUpdateDraftCampaignRequest as the provided SBUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequest) FromSBUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequest) FromSBUpdateDraftCampaignRequestWithProductTargets(v SBUpdateDraftCampaignRequestWithProductTargets) error
FromSBUpdateDraftCampaignRequestWithProductTargets overwrites any union data inside the SBUpdateDraftCampaignRequest as the provided SBUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequest) FromSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequest) FromSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
FromSBVideoUpdateDraftCampaignRequestWithKeywords overwrites any union data inside the SBUpdateDraftCampaignRequest as the provided SBVideoUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequest) FromSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequest) FromSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
FromSBVideoUpdateDraftCampaignRequestWithProductTargets overwrites any union data inside the SBUpdateDraftCampaignRequest as the provided SBVideoUpdateDraftCampaignRequestWithProductTargets
func (SBUpdateDraftCampaignRequest) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequest) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequest) MergeSBUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequest) MergeSBUpdateDraftCampaignRequestWithKeywords(v SBUpdateDraftCampaignRequestWithKeywords) error
MergeSBUpdateDraftCampaignRequestWithKeywords performs a merge with any union data inside the SBUpdateDraftCampaignRequest, using the provided SBUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequest) MergeSBUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequest) MergeSBUpdateDraftCampaignRequestWithProductTargets(v SBUpdateDraftCampaignRequestWithProductTargets) error
MergeSBUpdateDraftCampaignRequestWithProductTargets performs a merge with any union data inside the SBUpdateDraftCampaignRequest, using the provided SBUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequest) MergeSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequest) MergeSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
MergeSBVideoUpdateDraftCampaignRequestWithKeywords performs a merge with any union data inside the SBUpdateDraftCampaignRequest, using the provided SBVideoUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequest) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequest) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
MergeSBVideoUpdateDraftCampaignRequestWithProductTargets performs a merge with any union data inside the SBUpdateDraftCampaignRequest, using the provided SBVideoUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequest) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequest) UnmarshalJSON(b []byte) error
type SBUpdateDraftCampaignRequestCommon ¶
type SBUpdateDraftCampaignRequestCommon struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBUpdateDraftCampaignRequestCommon defines model for SBUpdateDraftCampaignRequestCommon.
type SBUpdateDraftCampaignRequestCommonV32 ¶
type SBUpdateDraftCampaignRequestCommonV32 struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBUpdateDraftCampaignRequestCommonV32_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBUpdateDraftCampaignRequestCommonV32 defines model for SBUpdateDraftCampaignRequestCommonV3_2.
type SBUpdateDraftCampaignRequestCommonV32_Creative ¶
type SBUpdateDraftCampaignRequestCommonV32_Creative struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequestCommonV32_Creative defines model for SBUpdateDraftCampaignRequestCommonV32.Creative.
func (SBUpdateDraftCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative ¶
func (t SBUpdateDraftCampaignRequestCommonV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBUpdateDraftCampaignRequestCommonV32_Creative as a SBProductCollectionCreative
func (SBUpdateDraftCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBUpdateDraftCampaignRequestCommonV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBUpdateDraftCampaignRequestCommonV32_Creative as a SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBUpdateDraftCampaignRequestCommonV32_Creative as the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBUpdateDraftCampaignRequestCommonV32_Creative as the provided SBStoreSpotlightCreative
func (SBUpdateDraftCampaignRequestCommonV32_Creative) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequestCommonV32_Creative) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestCommonV32_Creative, using the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestCommonV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestCommonV32_Creative) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequestCommonV32_Creative) UnmarshalJSON(b []byte) error
type SBUpdateDraftCampaignRequestV32 ¶
type SBUpdateDraftCampaignRequestV32 struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequestV32 defines model for SBUpdateDraftCampaignRequestV3_2.
func (SBUpdateDraftCampaignRequestV32) AsSBUpdateDraftCampaignRequestWithKeywordsV32 ¶
func (t SBUpdateDraftCampaignRequestV32) AsSBUpdateDraftCampaignRequestWithKeywordsV32() (SBUpdateDraftCampaignRequestWithKeywordsV32, error)
AsSBUpdateDraftCampaignRequestWithKeywordsV32 returns the union data inside the SBUpdateDraftCampaignRequestV32 as a SBUpdateDraftCampaignRequestWithKeywordsV32
func (SBUpdateDraftCampaignRequestV32) AsSBUpdateDraftCampaignRequestWithProductTargetsV32 ¶
func (t SBUpdateDraftCampaignRequestV32) AsSBUpdateDraftCampaignRequestWithProductTargetsV32() (SBUpdateDraftCampaignRequestWithProductTargetsV32, error)
AsSBUpdateDraftCampaignRequestWithProductTargetsV32 returns the union data inside the SBUpdateDraftCampaignRequestV32 as a SBUpdateDraftCampaignRequestWithProductTargetsV32
func (SBUpdateDraftCampaignRequestV32) AsSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t SBUpdateDraftCampaignRequestV32) AsSBVideoUpdateDraftCampaignRequestWithKeywords() (SBVideoUpdateDraftCampaignRequestWithKeywords, error)
AsSBVideoUpdateDraftCampaignRequestWithKeywords returns the union data inside the SBUpdateDraftCampaignRequestV32 as a SBVideoUpdateDraftCampaignRequestWithKeywords
func (SBUpdateDraftCampaignRequestV32) AsSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t SBUpdateDraftCampaignRequestV32) AsSBVideoUpdateDraftCampaignRequestWithProductTargets() (SBVideoUpdateDraftCampaignRequestWithProductTargets, error)
AsSBVideoUpdateDraftCampaignRequestWithProductTargets returns the union data inside the SBUpdateDraftCampaignRequestV32 as a SBVideoUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequestV32) FromSBUpdateDraftCampaignRequestWithKeywordsV32 ¶
func (t *SBUpdateDraftCampaignRequestV32) FromSBUpdateDraftCampaignRequestWithKeywordsV32(v SBUpdateDraftCampaignRequestWithKeywordsV32) error
FromSBUpdateDraftCampaignRequestWithKeywordsV32 overwrites any union data inside the SBUpdateDraftCampaignRequestV32 as the provided SBUpdateDraftCampaignRequestWithKeywordsV32
func (*SBUpdateDraftCampaignRequestV32) FromSBUpdateDraftCampaignRequestWithProductTargetsV32 ¶
func (t *SBUpdateDraftCampaignRequestV32) FromSBUpdateDraftCampaignRequestWithProductTargetsV32(v SBUpdateDraftCampaignRequestWithProductTargetsV32) error
FromSBUpdateDraftCampaignRequestWithProductTargetsV32 overwrites any union data inside the SBUpdateDraftCampaignRequestV32 as the provided SBUpdateDraftCampaignRequestWithProductTargetsV32
func (*SBUpdateDraftCampaignRequestV32) FromSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequestV32) FromSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
FromSBVideoUpdateDraftCampaignRequestWithKeywords overwrites any union data inside the SBUpdateDraftCampaignRequestV32 as the provided SBVideoUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequestV32) FromSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequestV32) FromSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
FromSBVideoUpdateDraftCampaignRequestWithProductTargets overwrites any union data inside the SBUpdateDraftCampaignRequestV32 as the provided SBVideoUpdateDraftCampaignRequestWithProductTargets
func (SBUpdateDraftCampaignRequestV32) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequestV32) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequestV32) MergeSBUpdateDraftCampaignRequestWithKeywordsV32 ¶
func (t *SBUpdateDraftCampaignRequestV32) MergeSBUpdateDraftCampaignRequestWithKeywordsV32(v SBUpdateDraftCampaignRequestWithKeywordsV32) error
MergeSBUpdateDraftCampaignRequestWithKeywordsV32 performs a merge with any union data inside the SBUpdateDraftCampaignRequestV32, using the provided SBUpdateDraftCampaignRequestWithKeywordsV32
func (*SBUpdateDraftCampaignRequestV32) MergeSBUpdateDraftCampaignRequestWithProductTargetsV32 ¶
func (t *SBUpdateDraftCampaignRequestV32) MergeSBUpdateDraftCampaignRequestWithProductTargetsV32(v SBUpdateDraftCampaignRequestWithProductTargetsV32) error
MergeSBUpdateDraftCampaignRequestWithProductTargetsV32 performs a merge with any union data inside the SBUpdateDraftCampaignRequestV32, using the provided SBUpdateDraftCampaignRequestWithProductTargetsV32
func (*SBUpdateDraftCampaignRequestV32) MergeSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequestV32) MergeSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
MergeSBVideoUpdateDraftCampaignRequestWithKeywords performs a merge with any union data inside the SBUpdateDraftCampaignRequestV32, using the provided SBVideoUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequestV32) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequestV32) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
MergeSBVideoUpdateDraftCampaignRequestWithProductTargets performs a merge with any union data inside the SBUpdateDraftCampaignRequestV32, using the provided SBVideoUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequestV32) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequestV32) UnmarshalJSON(b []byte) error
type SBUpdateDraftCampaignRequestV33 ¶
type SBUpdateDraftCampaignRequestV33 struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequestV33 defines model for SBUpdateDraftCampaignRequestV3_3.
func (SBUpdateDraftCampaignRequestV33) AsSBUpdateDraftCampaignRequestWithKeywordsV33 ¶
func (t SBUpdateDraftCampaignRequestV33) AsSBUpdateDraftCampaignRequestWithKeywordsV33() (SBUpdateDraftCampaignRequestWithKeywordsV33, error)
AsSBUpdateDraftCampaignRequestWithKeywordsV33 returns the union data inside the SBUpdateDraftCampaignRequestV33 as a SBUpdateDraftCampaignRequestWithKeywordsV33
func (SBUpdateDraftCampaignRequestV33) AsSBUpdateDraftCampaignRequestWithProductTargetsV33 ¶
func (t SBUpdateDraftCampaignRequestV33) AsSBUpdateDraftCampaignRequestWithProductTargetsV33() (SBUpdateDraftCampaignRequestWithProductTargetsV33, error)
AsSBUpdateDraftCampaignRequestWithProductTargetsV33 returns the union data inside the SBUpdateDraftCampaignRequestV33 as a SBUpdateDraftCampaignRequestWithProductTargetsV33
func (SBUpdateDraftCampaignRequestV33) AsSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t SBUpdateDraftCampaignRequestV33) AsSBVideoUpdateDraftCampaignRequestWithKeywords() (SBVideoUpdateDraftCampaignRequestWithKeywords, error)
AsSBVideoUpdateDraftCampaignRequestWithKeywords returns the union data inside the SBUpdateDraftCampaignRequestV33 as a SBVideoUpdateDraftCampaignRequestWithKeywords
func (SBUpdateDraftCampaignRequestV33) AsSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t SBUpdateDraftCampaignRequestV33) AsSBVideoUpdateDraftCampaignRequestWithProductTargets() (SBVideoUpdateDraftCampaignRequestWithProductTargets, error)
AsSBVideoUpdateDraftCampaignRequestWithProductTargets returns the union data inside the SBUpdateDraftCampaignRequestV33 as a SBVideoUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequestV33) FromSBUpdateDraftCampaignRequestWithKeywordsV33 ¶
func (t *SBUpdateDraftCampaignRequestV33) FromSBUpdateDraftCampaignRequestWithKeywordsV33(v SBUpdateDraftCampaignRequestWithKeywordsV33) error
FromSBUpdateDraftCampaignRequestWithKeywordsV33 overwrites any union data inside the SBUpdateDraftCampaignRequestV33 as the provided SBUpdateDraftCampaignRequestWithKeywordsV33
func (*SBUpdateDraftCampaignRequestV33) FromSBUpdateDraftCampaignRequestWithProductTargetsV33 ¶
func (t *SBUpdateDraftCampaignRequestV33) FromSBUpdateDraftCampaignRequestWithProductTargetsV33(v SBUpdateDraftCampaignRequestWithProductTargetsV33) error
FromSBUpdateDraftCampaignRequestWithProductTargetsV33 overwrites any union data inside the SBUpdateDraftCampaignRequestV33 as the provided SBUpdateDraftCampaignRequestWithProductTargetsV33
func (*SBUpdateDraftCampaignRequestV33) FromSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequestV33) FromSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
FromSBVideoUpdateDraftCampaignRequestWithKeywords overwrites any union data inside the SBUpdateDraftCampaignRequestV33 as the provided SBVideoUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequestV33) FromSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequestV33) FromSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
FromSBVideoUpdateDraftCampaignRequestWithProductTargets overwrites any union data inside the SBUpdateDraftCampaignRequestV33 as the provided SBVideoUpdateDraftCampaignRequestWithProductTargets
func (SBUpdateDraftCampaignRequestV33) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequestV33) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequestV33) MergeSBUpdateDraftCampaignRequestWithKeywordsV33 ¶
func (t *SBUpdateDraftCampaignRequestV33) MergeSBUpdateDraftCampaignRequestWithKeywordsV33(v SBUpdateDraftCampaignRequestWithKeywordsV33) error
MergeSBUpdateDraftCampaignRequestWithKeywordsV33 performs a merge with any union data inside the SBUpdateDraftCampaignRequestV33, using the provided SBUpdateDraftCampaignRequestWithKeywordsV33
func (*SBUpdateDraftCampaignRequestV33) MergeSBUpdateDraftCampaignRequestWithProductTargetsV33 ¶
func (t *SBUpdateDraftCampaignRequestV33) MergeSBUpdateDraftCampaignRequestWithProductTargetsV33(v SBUpdateDraftCampaignRequestWithProductTargetsV33) error
MergeSBUpdateDraftCampaignRequestWithProductTargetsV33 performs a merge with any union data inside the SBUpdateDraftCampaignRequestV33, using the provided SBUpdateDraftCampaignRequestWithProductTargetsV33
func (*SBUpdateDraftCampaignRequestV33) MergeSBVideoUpdateDraftCampaignRequestWithKeywords ¶
func (t *SBUpdateDraftCampaignRequestV33) MergeSBVideoUpdateDraftCampaignRequestWithKeywords(v SBVideoUpdateDraftCampaignRequestWithKeywords) error
MergeSBVideoUpdateDraftCampaignRequestWithKeywords performs a merge with any union data inside the SBUpdateDraftCampaignRequestV33, using the provided SBVideoUpdateDraftCampaignRequestWithKeywords
func (*SBUpdateDraftCampaignRequestV33) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets ¶
func (t *SBUpdateDraftCampaignRequestV33) MergeSBVideoUpdateDraftCampaignRequestWithProductTargets(v SBVideoUpdateDraftCampaignRequestWithProductTargets) error
MergeSBVideoUpdateDraftCampaignRequestWithProductTargets performs a merge with any union data inside the SBUpdateDraftCampaignRequestV33, using the provided SBVideoUpdateDraftCampaignRequestWithProductTargets
func (*SBUpdateDraftCampaignRequestV33) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequestV33) UnmarshalJSON(b []byte) error
type SBUpdateDraftCampaignRequestWithKeywords ¶
type SBUpdateDraftCampaignRequestWithKeywords struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` } `json:"keywords,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBUpdateDraftCampaignRequestWithKeywords defines model for SBUpdateDraftCampaignRequestWithKeywords.
type SBUpdateDraftCampaignRequestWithKeywordsV32 ¶
type SBUpdateDraftCampaignRequestWithKeywordsV32 struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` } `json:"keywords,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBUpdateDraftCampaignRequestWithKeywordsV32 defines model for SBUpdateDraftCampaignRequestWithKeywordsV3_2.
type SBUpdateDraftCampaignRequestWithKeywordsV32_Creative ¶
type SBUpdateDraftCampaignRequestWithKeywordsV32_Creative struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequestWithKeywordsV32_Creative defines model for SBUpdateDraftCampaignRequestWithKeywordsV32.Creative.
func (SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) AsSBProductCollectionCreative ¶
func (t SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBUpdateDraftCampaignRequestWithKeywordsV32_Creative as a SBProductCollectionCreative
func (SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBUpdateDraftCampaignRequestWithKeywordsV32_Creative as a SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV32_Creative as the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV32_Creative as the provided SBStoreSpotlightCreative
func (SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV32_Creative, using the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV32_Creative) UnmarshalJSON(b []byte) error
type SBUpdateDraftCampaignRequestWithKeywordsV33 ¶
type SBUpdateDraftCampaignRequestWithKeywordsV33 struct { // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` } `json:"keywords,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBUpdateDraftCampaignRequestWithKeywordsV33 defines model for SBUpdateDraftCampaignRequestWithKeywordsV3_3.
type SBUpdateDraftCampaignRequestWithKeywordsV33_Creative ¶
type SBUpdateDraftCampaignRequestWithKeywordsV33_Creative struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequestWithKeywordsV33_Creative defines model for SBUpdateDraftCampaignRequestWithKeywordsV33.Creative.
func (SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) AsSBProductCollectionCreative ¶
func (t SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBUpdateDraftCampaignRequestWithKeywordsV33_Creative as a SBProductCollectionCreative
func (SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBUpdateDraftCampaignRequestWithKeywordsV33_Creative as a SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV33_Creative as the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV33_Creative as the provided SBStoreSpotlightCreative
func (SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV33_Creative, using the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithKeywordsV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequestWithKeywordsV33_Creative) UnmarshalJSON(b []byte) error
type SBUpdateDraftCampaignRequestWithProductTargets ¶
type SBUpdateDraftCampaignRequestWithProductTargets struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Note that the values of each field in this object are immutable for an existing campaign. Creative *SBCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]struct { Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBUpdateDraftCampaignRequestWithProductTargets defines model for SBUpdateDraftCampaignRequestWithProductTargets.
type SBUpdateDraftCampaignRequestWithProductTargetsV32 ¶
type SBUpdateDraftCampaignRequestWithProductTargetsV32 struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]struct { Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBUpdateDraftCampaignRequestWithProductTargetsV32 defines model for SBUpdateDraftCampaignRequestWithProductTargetsV3_2.
type SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative ¶
type SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative defines model for SBUpdateDraftCampaignRequestWithProductTargetsV32.Creative.
func (SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) AsSBProductCollectionCreative ¶
func (t SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative as a SBProductCollectionCreative
func (SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) AsSBStoreSpotlightCreative ¶
func (t SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative as a SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) FromSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative as the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative as the provided SBStoreSpotlightCreative
func (SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MergeSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative, using the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative, using the provided SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV32_Creative) UnmarshalJSON(b []byte) error
type SBUpdateDraftCampaignRequestWithProductTargetsV33 ¶
type SBUpdateDraftCampaignRequestWithProductTargetsV33 struct { // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to `true` to have Amazon automatically optimize bids for placements below top of search. BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` Creative *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]struct { Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBUpdateDraftCampaignRequestWithProductTargetsV33 defines model for SBUpdateDraftCampaignRequestWithProductTargetsV3_3.
type SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative ¶
type SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative struct {
// contains filtered or unexported fields
}
SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative defines model for SBUpdateDraftCampaignRequestWithProductTargetsV33.Creative.
func (SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) AsSBProductCollectionCreative ¶
func (t SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) AsSBProductCollectionCreative() (SBProductCollectionCreative, error)
AsSBProductCollectionCreative returns the union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative as a SBProductCollectionCreative
func (SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) AsSBStoreSpotlightCreative ¶
func (t SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) AsSBStoreSpotlightCreative() (SBStoreSpotlightCreative, error)
AsSBStoreSpotlightCreative returns the union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative as a SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) FromSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) FromSBProductCollectionCreative(v SBProductCollectionCreative) error
FromSBProductCollectionCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative as the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) FromSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) FromSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
FromSBStoreSpotlightCreative overwrites any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative as the provided SBStoreSpotlightCreative
func (SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MarshalJSON ¶
func (t SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MarshalJSON() ([]byte, error)
func (*SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MergeSBProductCollectionCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MergeSBProductCollectionCreative(v SBProductCollectionCreative) error
MergeSBProductCollectionCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative, using the provided SBProductCollectionCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MergeSBStoreSpotlightCreative ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) MergeSBStoreSpotlightCreative(v SBStoreSpotlightCreative) error
MergeSBStoreSpotlightCreative performs a merge with any union data inside the SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative, using the provided SBStoreSpotlightCreative
func (*SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) UnmarshalJSON ¶
func (t *SBUpdateDraftCampaignRequestWithProductTargetsV33_Creative) UnmarshalJSON(b []byte) error
type SBUpdateNegativeTargetingClauseRequest ¶
type SBUpdateNegativeTargetingClauseRequest struct { // AdGroupId The identifier of an existing ad group. The newly created target is associated to this ad group. AdGroupId *int64 `json:"adGroupId,omitempty"` State *SBProductTargetState `json:"state,omitempty"` // TargetId The target identifier. TargetId *int64 `json:"targetId,omitempty"` }
SBUpdateNegativeTargetingClauseRequest defines model for SBUpdateNegativeTargetingClauseRequest.
type SBUpdateTargetingClauseRequest ¶
type SBUpdateTargetingClauseRequest struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *int64 `json:"campaignId,omitempty"` State *SBProductTargetState `json:"state,omitempty"` // TargetId The identifier of the target. TargetId *int64 `json:"targetId,omitempty"` }
SBUpdateTargetingClauseRequest defines model for SBUpdateTargetingClauseRequest.
type SBUpdateThemesRequest ¶
type SBUpdateThemesRequest struct { // AdGroupId The identifier of the ad group to which the target is associated. AdGroupId string `json:"adGroupId"` // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // CampaignId The identifier of the campaign to which the target is associated. CampaignId *string `json:"campaignId,omitempty"` State *SBThemeState `json:"state,omitempty"` // ThemeId The identifier of the theme target. ThemeId string `json:"themeId"` }
SBUpdateThemesRequest defines model for SBUpdateThemesRequest.
type SBVideoCampaignResponseCommon ¶
type SBVideoCampaignResponseCommon struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The campaign name. Name *SBCampaignName `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // ServingStatus |Status|Description| // |------|-----------| // |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| // |BILLING_ERROR| Billing information requires correction.| // |ENDED| THe `endDate` specified in the campaign object occurs in the past.| // |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| // |OUT_OF_BUDGET| The campaign has run out of budget.| // |PAUSED| The campaign state set to `paused`.| // |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| // |READY| The campaign is scheduled for a future date.| // |REJECTED| The campaign failed moderation review.| // |RUNNING| The campaign is enabled and serving.| // |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| // |TERMINATED|The state of the campaign is set to `archived`.| ServingStatus *SBVideoCampaignResponseCommonServingStatus `json:"servingStatus,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
SBVideoCampaignResponseCommon defines model for SBVideoCampaignResponseCommon.
type SBVideoCampaignResponseCommonServingStatus ¶
type SBVideoCampaignResponseCommonServingStatus string
SBVideoCampaignResponseCommonServingStatus |Status|Description| |------|-----------| |ASIN_NOT_BUYABLE| The ASIN can't be purchased due to eligibility or availability.| |BILLING_ERROR| Billing information requires correction.| |ENDED| THe `endDate` specified in the campaign object occurs in the past.| |LANDING_PAGE_NOT_AVAILABLE| The specified landing page is not available. This may be caused by an incorrect address or a landing page with less than three ASINs.| |OUT_OF_BUDGET| The campaign has run out of budget.| |PAUSED| The campaign state set to `paused`.| |PENDING_REVIEW|: A newly created campaign that has not passed moderation review. Note that moderation review may take up to 72 hours.| |READY| The campaign is scheduled for a future date.| |REJECTED| The campaign failed moderation review.| |RUNNING| The campaign is enabled and serving.| |SCHEDULED| A transitive state between `ready` and `running`, as child entities associated with the campaign move to a running state.| |TERMINATED|The state of the campaign is set to `archived`.|
const ( SBVideoCampaignResponseCommonServingStatusASINNOTBUYABLE SBVideoCampaignResponseCommonServingStatus = "ASIN_NOT_BUYABLE" SBVideoCampaignResponseCommonServingStatusBILLINGERROR SBVideoCampaignResponseCommonServingStatus = "BILLING_ERROR" SBVideoCampaignResponseCommonServingStatusENDED SBVideoCampaignResponseCommonServingStatus = "ENDED" SBVideoCampaignResponseCommonServingStatusLANDINGPAGENOTAVAILABLE SBVideoCampaignResponseCommonServingStatus = "LANDING_PAGE_NOT_AVAILABLE" SBVideoCampaignResponseCommonServingStatusOUTOFBUDGET SBVideoCampaignResponseCommonServingStatus = "OUT_OF_BUDGET" SBVideoCampaignResponseCommonServingStatusPAUSED SBVideoCampaignResponseCommonServingStatus = "PAUSED" SBVideoCampaignResponseCommonServingStatusPENDINGREVIEW SBVideoCampaignResponseCommonServingStatus = "PENDING_REVIEW" SBVideoCampaignResponseCommonServingStatusREADY SBVideoCampaignResponseCommonServingStatus = "READY" SBVideoCampaignResponseCommonServingStatusREJECTED SBVideoCampaignResponseCommonServingStatus = "REJECTED" SBVideoCampaignResponseCommonServingStatusRUNNING SBVideoCampaignResponseCommonServingStatus = "RUNNING" SBVideoCampaignResponseCommonServingStatusSCHEDULED SBVideoCampaignResponseCommonServingStatus = "SCHEDULED" SBVideoCampaignResponseCommonServingStatusTERMINATED SBVideoCampaignResponseCommonServingStatus = "TERMINATED" )
Defines values for SBVideoCampaignResponseCommonServingStatus.
type SBVideoCreateCampaignRequestCommon ¶
type SBVideoCreateCampaignRequestCommon struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` }
SBVideoCreateCampaignRequestCommon defines model for SBVideoCreateCampaignRequestCommon.
type SBVideoCreateCampaignWithExpressions ¶
type SBVideoCreateCampaignWithExpressions struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Name *string `json:"name,omitempty"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBVideoCreateCampaignWithExpressions defines model for SBVideoCreateCampaignWithExpressions.
type SBVideoCreateCampaignWithKeywords ¶
type SBVideoCreateCampaignWithKeywords struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget amount associated with the campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If this property is not included in the request, the `endDate` value is not updated. If set to null, `endDate` is deleted from the draft campaign. EndDate *EndDate `json:"endDate"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // Name The name of the campaign. This name must be unique to the Amazon Ads account to which the campaign is associated. Maximum length of the string is 128 characters. Name *string `json:"name,omitempty"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date. StartDate *StartDate `json:"startDate"` State *State `json:"state,omitempty"` }
SBVideoCreateCampaignWithKeywords defines model for SBVideoCreateCampaignWithKeywords.
type SBVideoCreateDraftCampaignRequestCommon ¶
type SBVideoCreateDraftCampaignRequestCommon struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBVideoCreateDraftCampaignRequestCommon defines model for SBVideoCreateDraftCampaignRequestCommon.
type SBVideoCreateDraftCampaignWithKeywords ¶
type SBVideoCreateDraftCampaignWithKeywords struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` // NativeLanguageKeyword The unlocalized keyword text in the preferred locale of the advertiser. NativeLanguageKeyword *string `json:"nativeLanguageKeyword,omitempty"` // NativeLanguageLocale The locale preference of the advertiser. For example, if the advertiser’s preferred language is Simplified Chinese, set the locale to `zh_CN`. Supported locales include: Simplified Chinese (locale: zh_CN) for US, UK and CA. English (locale: en_GB) for DE, FR, IT and ES. NativeLanguageLocale *string `json:"nativeLanguageLocale,omitempty"` } `json:"keywords,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBVideoCreateDraftCampaignWithKeywords defines model for SBVideoCreateDraftCampaignWithKeywords.
type SBVideoCreateDraftCampaignWithProductTargets ¶
type SBVideoCreateDraftCampaignWithProductTargets struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]struct { // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // Expressions An array of targets associated with the campaign. Expressions *[]SBExpression `json:"expressions,omitempty"` } `json:"targets,omitempty"` }
SBVideoCreateDraftCampaignWithProductTargets defines model for SBVideoCreateDraftCampaignWithProductTargets.
type SBVideoCreative ¶
type SBVideoCreative struct { // Asins An array of ASINs associated with the creative. Asins *[]string `json:"asins,omitempty"` // Type Type of creative Type *SBVideoCreativeType `json:"type,omitempty"` // VideoMediaIds Video Asset IDs associated with the creative. VideoMediaIds *[]string `json:"videoMediaIds,omitempty"` }
SBVideoCreative defines model for SBVideoCreative.
type SBVideoCreativeType ¶
type SBVideoCreativeType string
SBVideoCreativeType Type of creative
const (
SBVideoCreativeTypeVideo SBVideoCreativeType = "video"
)
Defines values for SBVideoCreativeType.
type SBVideoDraftCampaignBase ¶
type SBVideoDraftCampaignBase struct { // AdFormat The type of ad format. AdFormat *AdFormat `json:"adFormat,omitempty"` // BrandEntityId The brand entity identifier. Note that this field is required for sellers. For more information, see the [Stores reference](https://advertising.amazon.com/API/docs/v2/reference/stores) or [Brands reference](https://advertising.amazon.com/API/docs/v3/reference/SponsoredBrands/Brands). BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget *float32 `json:"budget,omitempty"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType *BudgetType `json:"budgetType,omitempty"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Must be greater than the value for `startDate`. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // LandingPage An Amazon product detail page. LandingPage *SBDetailPageLandingPage `json:"landingPage,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Duplicate campaign names are not allowed. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date for the campaign. If this field is not set to a value, the current date is used. StartDate *string `json:"startDate,omitempty"` }
SBVideoDraftCampaignBase defines model for SBVideoDraftCampaignBase.
type SBVideoUpdateDraftCampaignRequestCommon ¶
type SBVideoUpdateDraftCampaignRequestCommon struct { // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBVideoUpdateDraftCampaignRequestCommon defines model for SBVideoUpdateDraftCampaignRequestCommon.
type SBVideoUpdateDraftCampaignRequestWithKeywords ¶
type SBVideoUpdateDraftCampaignRequestWithKeywords struct { // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Keywords An array of keywords associated with the campaign. Keywords *[]struct { // Bid The associated bid. Note that this value must be less than the budget associated with the Advertiser account. For more information, see [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features). Bid *Bid `json:"bid,omitempty"` // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` } `json:"keywords,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` // NegativeKeywords An array of negative keywords associated with the campaign. NegativeKeywords *[]struct { // KeywordText The keyword text. Maximum of 10 words. KeywordText *string `json:"keywordText,omitempty"` // MatchType The negative match type. For more information, see [negative keyword match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *NegativeMatchType `json:"matchType,omitempty"` } `json:"negativeKeywords,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` }
SBVideoUpdateDraftCampaignRequestWithKeywords defines model for SBVideoUpdateDraftCampaignRequestWithKeywords.
type SBVideoUpdateDraftCampaignRequestWithProductTargets ¶
type SBVideoUpdateDraftCampaignRequestWithProductTargets struct { // BrandEntityId The brand entity identifier to which the draft campaign is associated. Note that this field is required for sellers. Retrieve using the getBrands or getStores operations in the /v2/stores resource. BrandEntityId *string `json:"brandEntityId,omitempty"` // Budget The budget associated with the draft campaign. Budget float32 `json:"budget"` // BudgetType Note that for the lifetime budget type, `startDate` and `endDate` must be specified. The lifetime budget range is from 100 to 20,000,000 and daily budget range is 1 to 1,000,000 by default for most marketplaces. For the JP marketplace, the lifetime budget range is from 10,000 to 2,000,000,000, and the daily budget range is 100 to 21,000,000. BudgetType BudgetType `json:"budgetType"` // Creative Render one product image with associated media. Creative *SBVideoCreative `json:"creative,omitempty"` // DraftCampaignId The identifier of the draft campaign. DraftCampaignId *int `json:"draftCampaignId,omitempty"` // EndDate The YYYYMMDD end date of the campaign. Must be greater than the value specified in the `startDate` field. If not specified, the campaign has no end date and runs continuously. EndDate *string `json:"endDate,omitempty"` // Name The name of the draft campaign. Maximum 128 characters. Names must be unique to the Amazon Ads account to which they are associated. Name string `json:"name"` NegativeTargets *[]SBNegativeTarget `json:"negativeTargets,omitempty"` // PortfolioId The identifier of the Portfolio to which the draft campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` // StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If not specified, is set to current date by default. StartDate *string `json:"startDate,omitempty"` Targets *[]SBTarget `json:"targets,omitempty"` }
SBVideoUpdateDraftCampaignRequestWithProductTargets defines model for SBVideoUpdateDraftCampaignRequestWithProductTargets.
type SDRecommendationsBids ¶
type SDRecommendationsBids struct { // KeywordsBidsRecommendationErrorResults Lists errors that occurred during creation of keyword bid recommendations. KeywordsBidsRecommendationErrorResults *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` Keyword *SBKeywordExpression `json:"keyword,omitempty"` // KeywordIndex Correlates the keyword to the keyword array index specified in the request. Zero-based. KeywordIndex *SBBidRecommendationKeywordIndex `json:"keywordIndex,omitempty"` } `json:"keywordsBidsRecommendationErrorResults,omitempty"` // KeywordsBidsRecommendationSuccessResults Lists the bid recommendations for the keywords specified in the request. KeywordsBidsRecommendationSuccessResults *[]struct { Keyword *struct { // KeywordText The text of the keyword. KeywordText *string `json:"keywordText,omitempty"` // MatchType The match type. For more information, see [match types](https://advertising.amazon.com/help#GHTRFDZRJPW6764R) in the Amazon Ads support center. MatchType *MatchType `json:"matchType,omitempty"` } `json:"keyword,omitempty"` // KeywordIndex Correlates the keyword to the keyword array index specified in the request. Zero-based. KeywordIndex *SBBidRecommendationKeywordIndex `json:"keywordIndex,omitempty"` // RecommendationId The identifier of the keyword bid recommendation. RecommendationId *string `json:"recommendationId,omitempty"` RecommendedBid *RecommendedBid `json:"recommendedBid,omitempty"` } `json:"keywordsBidsRecommendationSuccessResults,omitempty"` // TargetsBidsRecommendationErrorResults Lists errors that occurred during creation of target bid recommendations. TargetsBidsRecommendationErrorResults *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` Targets *SBTargetingExpressions `json:"targets,omitempty"` // TargetsIndex Correlates the keyword to the keyword array index specified in the request. Zero-based. TargetsIndex *SBBidRecommendationKeywordIndex `json:"targetsIndex,omitempty"` } `json:"targetsBidsRecommendationErrorResults,omitempty"` // TargetsBidsRecommendationSuccessResults Lists the bid recommendations for the keywords or targets specified in the request. TargetsBidsRecommendationSuccessResults *[]struct { // RecommendationId The identifier of the target bid recommendation. RecommendationId *interface{} `json:"recommendationId,omitempty"` RecommendedBid *RecommendedBid `json:"recommendedBid,omitempty"` Targets *SBTargetingExpressions `json:"targets,omitempty"` // TargetsIndex Correlates the keyword to the keyword array index specified in the request. Zero-based. TargetsIndex *SBBidRecommendationKeywordIndex `json:"targetsIndex,omitempty"` } `json:"targetsBidsRecommendationSuccessResults,omitempty"` // ThemeTargetsBidsRecommendationErrorResults Lists errors that occurred during creation of theme targets bid recommendations. ThemeTargetsBidsRecommendationErrorResults *[]struct { Code *string `json:"code,omitempty"` Details *string `json:"details,omitempty"` // ThemeIndex Correlates the theme targets to the theme targets array index specified in the request. Zero-based. ThemeIndex *SBBidRecommendationThemeIndex `json:"themeIndex,omitempty"` // ThemeType The theme target type. // - KEYWORDS_RELATED_TO_YOUR_BRAND - keywords related to brands. // - KEYWORDS_RELATED_TO_YOUR_LANDING_PAGES - keywords related to your landing pages. // - Note: Additional theme types may be added in the future. ThemeType *ThemeType `json:"themeType,omitempty"` } `json:"themeTargetsBidsRecommendationErrorResults,omitempty"` // ThemeTargetsBidsRecommendationSuccessResults Lists the theme targets recommendations for the theme targets specified in the request. ThemeTargetsBidsRecommendationSuccessResults *[]struct { // RecommendationId The identifier of the target bid recommendation. RecommendationId *interface{} `json:"recommendationId,omitempty"` RecommendedBid *RecommendedBid `json:"recommendedBid,omitempty"` // ThemeIndex Correlates the theme targets to the theme targets array index specified in the request. Zero-based. ThemeIndex *SBBidRecommendationThemeIndex `json:"themeIndex,omitempty"` // ThemeType The theme target type. // - KEYWORDS_RELATED_TO_YOUR_BRAND - keywords related to brands. // - KEYWORDS_RELATED_TO_YOUR_LANDING_PAGES - keywords related to your landing pages. // - Note: Additional theme types may be added in the future. ThemeType *ThemeType `json:"themeType,omitempty"` } `json:"themeTargetsBidsRecommendationSuccessResults,omitempty"` }
SDRecommendationsBids defines model for SDRecommendationsBids.
type SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONBody ¶
type SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONBody struct {
Themes []SBCreateThemesRequest `json:"themes"`
}
SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONBody defines parameters for SbCreateThemes.
type SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody ¶
type SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONBody
SbCreateThemesApplicationVndSbthemescreaterequestV3PlusJSONRequestBody defines body for SbCreateThemes for application/vnd.sbthemescreaterequest.v3+json ContentType.
type SbCreateThemesParams ¶
type SbCreateThemesParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
SbCreateThemesParams defines parameters for SbCreateThemes.
type SbCreateThemesResp ¶
type SbCreateThemesResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbthemescreateresponseV3JSON200 *SBCreateThemesResponse ApplicationvndSberrorV30JSON400 *BadRequest400 }
func ParseSbCreateThemesResp ¶
func ParseSbCreateThemesResp(rsp *http.Response) (*SbCreateThemesResp, error)
ParseSbCreateThemesResp parses an HTTP response from a SbCreateThemesWithResponse call
func (SbCreateThemesResp) Status ¶
func (r SbCreateThemesResp) Status() string
Status returns HTTPResponse.Status
func (SbCreateThemesResp) StatusCode ¶
func (r SbCreateThemesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBody ¶
type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBody struct { // AdGroupIdFilter A list of ad group identifiers. AdGroupIdFilter *struct { Include *[]string `json:"include,omitempty"` } `json:"adGroupIdFilter,omitempty"` // CampaignIdFilter A list of campaign identifiers. CampaignIdFilter *struct { Include *[]string `json:"include,omitempty"` } `json:"campaignIdFilter,omitempty"` // MaxResults Sets a limit on the number of results returned by an operation. MaxResults *MaxResults `json:"maxResults,omitempty"` // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` // StateFilter A list of theme target states. StateFilter *struct { Include *[]SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude `json:"include,omitempty"` } `json:"stateFilter,omitempty"` // ThemeIdFilter A list of theme targets identifiers. ThemeIdFilter *struct { Include *[]string `json:"include,omitempty"` } `json:"themeIdFilter,omitempty"` // ThemeTypeFilter A list of theme target type. ThemeTypeFilter *struct { Include *[]ThemeType `json:"include,omitempty"` } `json:"themeTypeFilter,omitempty"` }
SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBody defines parameters for SbListThemes.
type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude ¶
type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude string
SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude defines parameters for SbListThemes.
const ( Archived SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude = "archived" Enabled SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude = "enabled" Paused SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude = "paused" )
Defines values for SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBodyStateFilterInclude.
type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody ¶
type SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONBody
SbListThemesApplicationVndSbthemeslistrequestV3PlusJSONRequestBody defines body for SbListThemes for application/vnd.sbthemeslistrequest.v3+json ContentType.
type SbListThemesParams ¶
type SbListThemesParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
SbListThemesParams defines parameters for SbListThemes.
type SbListThemesResp ¶
type SbListThemesResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbthemeslistresponseV3JSON200 *struct { // NextToken Operations that return paginated results include a pagination token in this field. To retrieve the next page of results, call the same operation and specify this token in the request. If the `NextToken` field is empty, there are no further results. NextToken *NextToken `json:"nextToken,omitempty"` Themes *[]SBTheme `json:"themes,omitempty"` } }
func ParseSbListThemesResp ¶
func ParseSbListThemesResp(rsp *http.Response) (*SbListThemesResp, error)
ParseSbListThemesResp parses an HTTP response from a SbListThemesWithResponse call
func (SbListThemesResp) Status ¶
func (r SbListThemesResp) Status() string
Status returns HTTPResponse.Status
func (SbListThemesResp) StatusCode ¶
func (r SbListThemesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SbModerationCampaignsResponse ¶
type SbModerationCampaignsResponse struct { // CampaignId The campaign identifier. CampaignId *int64 `json:"campaignId,omitempty"` // EtaForModeration Expected date and time by which moderation will be complete. Note that this field is present in the response only when `moderationStatus` is set to `IN_PROGRESS`. EtaForModeration *time.Time `json:"etaForModeration,omitempty"` // ModerationStatus The moderation status of the campaign. // |Status|Description| // |------|-----------| // |APPROVED|Moderation for the campaign is complete.| // |IN_PROGRESS|Moderation for the campaign is in progress. The expected date and time for completion are specfied in the `etaForModeration` field.| // |REJECTED|The campaign has failed moderation. Specific information about the content that violated policy is available in `policyViolations`.| ModerationStatus *SbModerationCampaignsResponseModerationStatus `json:"moderationStatus,omitempty"` // PolicyViolations A list of policy violations for a campaign that has failed moderation. Note that this field is present in the response only when `moderationStatus` is set to `REJECTED`. PolicyViolations *[]struct { // PolicyDescription A human-readable description of the policy. PolicyDescription *string `json:"policyDescription,omitempty"` // PolicyLinkUrl Address of the policy documentation. Follow the link to learn more about the specified policy. PolicyLinkUrl *string `json:"policyLinkUrl,omitempty"` // ViolatingAsinContents Information about the specific ASIN in the campaign that violates the specified policy. ViolatingAsinContents *[]struct { AsinEvidences *[]struct { // Asin The ASIN that violates the specified policy. Asin *string `json:"asin,omitempty"` } `json:"asinEvidences,omitempty"` // ModeratedComponent The ad component that includes the ASIN that violates the specified policy. ModeratedComponent *string `json:"moderatedComponent,omitempty"` } `json:"violatingAsinContents,omitempty"` // ViolatingImageContents Information about the specific image that violates the specified policy. ViolatingImageContents *[]struct { ImageEvidences *[]struct { ViolatingImageCrop *struct { // Height The height of the content that violates the specified policy within the image. Height *int `json:"height,omitempty"` // TopLeftX The top left X-coordinate of the content that violates the specfied policy within the image. TopLeftX *int `json:"topLeftX,omitempty"` // TopLeftY The top left Y-coordinate of the content that violates the specfied policy within the image. TopLeftY *int `json:"topLeftY,omitempty"` // Width The width of the content that violates the specified policy within the image. Width *int `json:"width,omitempty"` } `json:"violatingImageCrop,omitempty"` } `json:"imageEvidences,omitempty"` // ModeratedComponent The ad component that includes the image that violates the specified policy. ModeratedComponent *string `json:"moderatedComponent,omitempty"` // ReviewedImageUrl Address of the image reviewed during moderation. ReviewedImageUrl *string `json:"reviewedImageUrl,omitempty"` } `json:"violatingImageContents,omitempty"` // ViolatingTextContents Information about the specific text that violates the specified policy in the campaign. ViolatingTextContents *[]struct { // ModeratedComponent The ad component that includes the text that violates the specified policy. ModeratedComponent *string `json:"moderatedComponent,omitempty"` // ReviewedText The specific text reviewed during moderation. ReviewedText *string `json:"reviewedText,omitempty"` TextEvidences *[]struct { // ViolatingText The specific text determined to violate the specified policy in `reviewedText`. ViolatingText *string `json:"violatingText,omitempty"` ViolatingTextPosition *struct { // End Zero-based index into the text in `reviewedText` where the text specified in `violatingText` ends. End *int `json:"end,omitempty"` // Start Zero-based index into the text in `reviewedText` where the text specified in `violatingText` starts. Start *int `json:"start,omitempty"` } `json:"violatingTextPosition,omitempty"` } `json:"textEvidences,omitempty"` } `json:"violatingTextContents,omitempty"` } `json:"policyViolations,omitempty"` }
SbModerationCampaignsResponse defines model for SbModerationCampaignsResponse.
type SbModerationCampaignsResponseModerationStatus ¶
type SbModerationCampaignsResponseModerationStatus string
SbModerationCampaignsResponseModerationStatus The moderation status of the campaign. |Status|Description| |------|-----------| |APPROVED|Moderation for the campaign is complete.| |IN_PROGRESS|Moderation for the campaign is in progress. The expected date and time for completion are specfied in the `etaForModeration` field.| |REJECTED|The campaign has failed moderation. Specific information about the content that violated policy is available in `policyViolations`.|
const ( APPROVED SbModerationCampaignsResponseModerationStatus = "APPROVED" INPROGRESS SbModerationCampaignsResponseModerationStatus = "IN_PROGRESS" REJECTED SbModerationCampaignsResponseModerationStatus = "REJECTED" )
Defines values for SbModerationCampaignsResponseModerationStatus.
type SbRecommendationsTargetsBrand ¶
type SbRecommendationsTargetsBrand struct {
BrandRecommendationResults *[]SBBrandResponse `json:"brandRecommendationResults,omitempty"`
}
SbRecommendationsTargetsBrand defines model for SbRecommendationsTargetsBrand.
type SbRecommendationsTargetsCategory ¶
type SbRecommendationsTargetsCategory struct {
CategoryRecommendationResults *[]SBCategoryResponse `json:"categoryRecommendationResults,omitempty"`
}
SbRecommendationsTargetsCategory defines model for SbRecommendationsTargetsCategory.
type SbRecommendationsTargetsProductList ¶
type SbRecommendationsTargetsProductList struct { RecommendedProducts *[]struct { // RecommendedTargetAsin The recommended target ASIN. RecommendedTargetAsin *string `json:"recommendedTargetAsin,omitempty"` } `json:"recommendedProducts,omitempty"` }
SbRecommendationsTargetsProductList defines model for SbRecommendationsTargetsProductList.
type SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONBody ¶
type SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONBody struct {
Themes []SBUpdateThemesRequest `json:"themes"`
}
SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONBody defines parameters for SbUpdateThemes.
type SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody ¶
type SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONBody
SbUpdateThemesApplicationVndSbathemessupdaterequestV3PlusJSONRequestBody defines body for SbUpdateThemes for application/vnd.sbathemessupdaterequest.v3+json ContentType.
type SbUpdateThemesParams ¶
type SbUpdateThemesParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
SbUpdateThemesParams defines parameters for SbUpdateThemes.
type SbUpdateThemesResp ¶
type SbUpdateThemesResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbthemesupdateresponseV3JSON200 *PutSbThemesResponse ApplicationvndSberrorV30JSON400 *BadRequest400 }
func ParseSbUpdateThemesResp ¶
func ParseSbUpdateThemesResp(rsp *http.Response) (*SbUpdateThemesResp, error)
ParseSbUpdateThemesResp parses an HTTP response from a SbUpdateThemesWithResponse call
func (SbUpdateThemesResp) Status ¶
func (r SbUpdateThemesResp) Status() string
Status returns HTTPResponse.Status
func (SbUpdateThemesResp) StatusCode ¶
func (r SbUpdateThemesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ShopperSegmentBiddingControls ¶
type ShopperSegmentBiddingControls struct { // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` }
ShopperSegmentBiddingControls defines model for ShopperSegmentBiddingControls.
type SpooferError ¶
type SpooferError struct {
SpooferError *BasicErrorObject `json:"SpooferError,omitempty"`
}
SpooferError defines model for SpooferError.
type StartDate ¶
type StartDate = string
StartDate The YYYYMMDD start date of the campaign. Must be equal to or greater than the current date. If this property is not included in the request, the startDate value is not updated. If set to null, `startDate` is set to the current date.
type SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONBody ¶
type SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONBody = []int64
SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONBody defines parameters for SubmitDraftCampaign.
type SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody ¶
type SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody = SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONBody
SubmitDraftCampaignApplicationVndSbcampaignV3PlusJSONRequestBody defines body for SubmitDraftCampaign for application/vnd.sbcampaign.v3+json ContentType.
type SubmitDraftCampaignParams ¶
type SubmitDraftCampaignParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
SubmitDraftCampaignParams defines parameters for SubmitDraftCampaign.
type SubmitDraftCampaignResp ¶
type SubmitDraftCampaignResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbdraftcampaignresponseV3JSON207 *SBSubmitDraftCampaignResponse ApplicationvndSubmitdraftcampaignsresponseV33JSON207 *[]SBSubmitDraftCampaignResponse ApplicationvndErrorV3JSON404 *Error }
func ParseSubmitDraftCampaignResp ¶
func ParseSubmitDraftCampaignResp(rsp *http.Response) (*SubmitDraftCampaignResp, error)
ParseSubmitDraftCampaignResp parses an HTTP response from a SubmitDraftCampaignWithResponse call
func (SubmitDraftCampaignResp) Status ¶
func (r SubmitDraftCampaignResp) Status() string
Status returns HTTPResponse.Status
func (SubmitDraftCampaignResp) StatusCode ¶
func (r SubmitDraftCampaignResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TargetError ¶
type TargetError struct { TargetError *struct { Location *string `json:"location,omitempty"` MatchType *string `json:"matchType,omitempty"` MaxTargets *string `json:"maxTargets,omitempty"` Message string `json:"message"` Note *string `json:"note,omitempty"` Reason string `json:"reason"` TargetType *string `json:"targetType,omitempty"` Trigger *string `json:"trigger,omitempty"` ValidStates *string `json:"validStates,omitempty"` } `json:"TargetError,omitempty"` }
TargetError defines model for TargetError.
type ThemeType ¶
type ThemeType = string
ThemeType The theme target type. - KEYWORDS_RELATED_TO_YOUR_BRAND - keywords related to brands. - KEYWORDS_RELATED_TO_YOUR_LANDING_PAGES - keywords related to your landing pages. - Note: Additional theme types may be added in the future.
type UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONBody ¶
type UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONBody = []struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. // `Not supported for video campaigns` BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to true to allow Amazon to automatically optimize bids for placements below top of search. `Not supported for video campaigns` BidOptimization *bool `json:"bidOptimization,omitempty"` // Budget The budget associated with the campaign. Budget *float32 `json:"budget,omitempty"` // CampaignId The identifier of an existing campaign. CampaignId *int `json:"campaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Note that a value must be specified if the `budgetType` for the campaign is set to `lifetime`. EndDate *string `json:"endDate,omitempty"` // Name The name of the campaign. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONBody defines parameters for UpdateCampaigns.
type UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody ¶
type UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody = UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONBody
UpdateCampaignsApplicationVndSbupdatecampaignresponseV3PlusJSONRequestBody defines body for UpdateCampaigns for application/vnd.sbupdatecampaignresponse.v3+json ContentType.
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONBody ¶
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONBody = []struct { // BidAdjustments List of bid adjustment for each placement group. BidMultiplier cannot be specified when bidAdjustments presents. `Not supported for video campaigns` BidAdjustments *[]BidAdjustment `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. // `Not supported for video campaigns` BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to true to allow Amazon to automatically optimize bids for placements below top of search. `Not supported for video campaigns` BidOptimization *bool `json:"bidOptimization,omitempty"` // Budget The budget associated with the campaign. Budget *float32 `json:"budget,omitempty"` // CampaignId The identifier of an existing campaign. CampaignId *int `json:"campaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Note that a value must be specified if the `budgetType` for the campaign is set to `lifetime`. EndDate *string `json:"endDate,omitempty"` // Name The name of the campaign. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONBody defines parameters for UpdateCampaigns.
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody ¶
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody = UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONBody
UpdateCampaignsApplicationVndUpdatecampaignsresponseV32PlusJSONRequestBody defines body for UpdateCampaigns for application/vnd.updatecampaignsresponse.v3.2+json ContentType.
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONBody ¶
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONBody = []struct { // BidAdjustments List of bid adjustments for placement group and shopper segments. BidMultiplier cannot be specified when bidAdjustments are present. `Not supported for video campaigns` BidAdjustments *[]BidAdjustmentV33 `json:"bidAdjustments,omitempty"` // BidMultiplier A bid multiplier. Note that this field can only be set when 'bidOptimization' is set to false. Value is a percentage to two decimal places. Example: If set to -40.00 for a $5.00 bid, the resulting bid is $3.00. // `Not supported for video campaigns` BidMultiplier *float32 `json:"bidMultiplier,omitempty"` // BidOptimization Set to true to allow Amazon to automatically optimize bids for placements below top of search. `Not supported for video campaigns` BidOptimization *bool `json:"bidOptimization,omitempty"` // BidOptimizationStrategy Automated bid optimization strategy. // |Bid optimization strategy|Description| // |------|-----------| // |MAXIMIZE_IMMEDIATE_SALES|Bid optimization strategy for maximizing immediate sales.| // |MAXIMIZE_NEW_TO_BRAND_CUSTOMERS|Bid optimization strategy for maximizing new to brand customers.| // `Not supported for video campaigns` BidOptimizationStrategy *BidOptimizationStrategy `json:"bidOptimizationStrategy,omitempty"` // Budget The budget associated with the campaign. Budget *float32 `json:"budget,omitempty"` // CampaignId The identifier of an existing campaign. CampaignId *int `json:"campaignId,omitempty"` // EndDate The YYYYMMDD end date for the campaign. Note that a value must be specified if the `budgetType` for the campaign is set to `lifetime`. EndDate *string `json:"endDate,omitempty"` // Name The name of the campaign. Name *string `json:"name,omitempty"` // PortfolioId The identifier of the portfolio to which the campaign is associated. PortfolioId *int64 `json:"portfolioId,omitempty"` State *State `json:"state,omitempty"` // Tags A list of advertiser-specified custom identifiers for the campaign. Each customer identifier is a key-value pair. You can specify a maximum of 50 identifiers. Tags *CampaignTags `json:"tags,omitempty"` }
UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONBody defines parameters for UpdateCampaigns.
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody ¶
type UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody = UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONBody
UpdateCampaignsApplicationVndUpdatecampaignsresponseV33PlusJSONRequestBody defines body for UpdateCampaigns for application/vnd.updatecampaignsresponse.v3.3+json ContentType.
type UpdateCampaignsParams ¶
type UpdateCampaignsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
UpdateCampaignsParams defines parameters for UpdateCampaigns.
type UpdateCampaignsResp ¶
type UpdateCampaignsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbupdatecampaignresponseV3JSON207 *[]SBUpdateCampaignResponse ApplicationvndUpdatecampaignsresponseV32JSON207 *[]SBUpdateCampaignResponse ApplicationvndUpdatecampaignsresponseV33JSON207 *[]SBUpdateCampaignResponse ApplicationvndErrorV3JSON404 *Error }
func ParseUpdateCampaignsResp ¶
func ParseUpdateCampaignsResp(rsp *http.Response) (*UpdateCampaignsResp, error)
ParseUpdateCampaignsResp parses an HTTP response from a UpdateCampaignsWithResponse call
func (UpdateCampaignsResp) Status ¶
func (r UpdateCampaignsResp) Status() string
Status returns HTTPResponse.Status
func (UpdateCampaignsResp) StatusCode ¶
func (r UpdateCampaignsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody ¶
type UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody = []SBUpdateDraftCampaignRequest
UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody defines parameters for UpdateDraftCampaigns.
type UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody ¶
type UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody = UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONBody
UpdateDraftCampaignsApplicationVndSbdraftcampaignresponseV3PlusJSONRequestBody defines body for UpdateDraftCampaigns for application/vnd.sbdraftcampaignresponse.v3+json ContentType.
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody ¶
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody = []SBUpdateDraftCampaignRequestV32
UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody defines parameters for UpdateDraftCampaigns.
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody ¶
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody = UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONBody
UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV32PlusJSONRequestBody defines body for UpdateDraftCampaigns for application/vnd.updatedraftcampaignsresponse.v3.2+json ContentType.
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody ¶
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody = []SBUpdateDraftCampaignRequestV33
UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody defines parameters for UpdateDraftCampaigns.
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody ¶
type UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody = UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONBody
UpdateDraftCampaignsApplicationVndUpdatedraftcampaignsresponseV33PlusJSONRequestBody defines body for UpdateDraftCampaigns for application/vnd.updatedraftcampaignsresponse.v3.3+json ContentType.
type UpdateDraftCampaignsParams ¶
type UpdateDraftCampaignsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
UpdateDraftCampaignsParams defines parameters for UpdateDraftCampaigns.
type UpdateDraftCampaignsResp ¶
type UpdateDraftCampaignsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbdraftcampaignresponseV3JSON207 *[]SBDraftCampaignResponse ApplicationvndUpdatedraftcampaignsresponseV32JSON207 *[]SBDraftCampaignResponse ApplicationvndUpdatedraftcampaignsresponseV33JSON207 *[]SBDraftCampaignResponse ApplicationvndErrorV3JSON404 *Error }
func ParseUpdateDraftCampaignsResp ¶
func ParseUpdateDraftCampaignsResp(rsp *http.Response) (*UpdateDraftCampaignsResp, error)
ParseUpdateDraftCampaignsResp parses an HTTP response from a UpdateDraftCampaignsWithResponse call
func (UpdateDraftCampaignsResp) Status ¶
func (r UpdateDraftCampaignsResp) Status() string
Status returns HTTPResponse.Status
func (UpdateDraftCampaignsResp) StatusCode ¶
func (r UpdateDraftCampaignsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody ¶
type UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody = []struct { // AdGroupId The identifier of an existing ad group to which the keyword is associated. AdGroupId int64 `json:"adGroupId"` // Bid The bid associated with the keyword. Note that this value must be less than the budget associated with the Advertiser account. For more information, see the **Keyword bid constraints by marketplace** section of the [supported features](https://advertising.amazon.com/API/docs/v2/guides/supported_features) article. Bid *float32 `json:"bid,omitempty"` // CampaignId The identifier of an existing campaign to which the keyword is associated. CampaignId int64 `json:"campaignId"` // KeywordId The identifier of the keyword. KeywordId int64 `json:"keywordId"` // State Newly created SB keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation. After moderation, the keyword will be in an enabled state. State *SBKeywordState `json:"state,omitempty"` }
UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody defines parameters for UpdateKeywords.
type UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody ¶
type UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody = UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
UpdateKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody defines body for UpdateKeywords for application/vnd.sbkeywordresponse.v3+json ContentType.
type UpdateKeywordsParams ¶
type UpdateKeywordsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
UpdateKeywordsParams defines parameters for UpdateKeywords.
type UpdateKeywordsResp ¶
type UpdateKeywordsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordresponseV3JSON207 *SBKeywordResponse }
func ParseUpdateKeywordsResp ¶
func ParseUpdateKeywordsResp(rsp *http.Response) (*UpdateKeywordsResp, error)
ParseUpdateKeywordsResp parses an HTTP response from a UpdateKeywordsWithResponse call
func (UpdateKeywordsResp) Status ¶
func (r UpdateKeywordsResp) Status() string
Status returns HTTPResponse.Status
func (UpdateKeywordsResp) StatusCode ¶
func (r UpdateKeywordsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody ¶
type UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody = []struct { // AdGroupId The identifier of the ad group to which the negative keyword is associated. AdGroupId *int64 `json:"adGroupId,omitempty"` // CampaignId The identifier of the campaign to which the negative keyword is associated. CampaignId *int64 `json:"campaignId,omitempty"` // KeywordId The identifier of the negative keyword. KeywordId *int64 `json:"keywordId,omitempty"` // State The current state of the negative keyword. Newly created SB negative keywords are in a default state of 'draft' before transitioning to a 'pending' state for moderation review. 'enabled' refers to negative keywords that are active. 'archived' refers to negative keywords that are permanently inactive and cannot be returned to the 'enabled' state. State *SBNegativeKeywordState `json:"state,omitempty"` }
UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody defines parameters for UpdateNegativeKeywords.
type UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody ¶
type UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody = UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONBody
UpdateNegativeKeywordsApplicationVndSbkeywordresponseV3PlusJSONRequestBody defines body for UpdateNegativeKeywords for application/vnd.sbkeywordresponse.v3+json ContentType.
type UpdateNegativeKeywordsParams ¶
type UpdateNegativeKeywordsParams struct { // AmazonAdvertisingAPIClientId The identifier of a client associated with a **Login with Amazon** account. AmazonAdvertisingAPIClientId ClientHeader `json:"Amazon-Advertising-API-ClientId"` // AmazonAdvertisingAPIScope The identifier of a profile associated with the advertiser account. Use `GET` method on Profiles resource to list profiles associated with the access token passed in the HTTP Authorization header. AmazonAdvertisingAPIScope ProfileHeader `json:"Amazon-Advertising-API-Scope"` }
UpdateNegativeKeywordsParams defines parameters for UpdateNegativeKeywords.
type UpdateNegativeKeywordsResp ¶
type UpdateNegativeKeywordsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndSbkeywordresponseV3JSON207 *[]SBKeywordResponse }
func ParseUpdateNegativeKeywordsResp ¶
func ParseUpdateNegativeKeywordsResp(rsp *http.Response) (*UpdateNegativeKeywordsResp, error)
ParseUpdateNegativeKeywordsResp parses an HTTP response from a UpdateNegativeKeywordsWithResponse call
func (UpdateNegativeKeywordsResp) Status ¶
func (r UpdateNegativeKeywordsResp) Status() string
Status returns HTTPResponse.Status
func (UpdateNegativeKeywordsResp) StatusCode ¶
func (r UpdateNegativeKeywordsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateNegativeTargetsJSONBody ¶
type UpdateNegativeTargetsJSONBody struct {
NegativeTargets *[]SBUpdateNegativeTargetingClauseRequest `json:"negativeTargets,omitempty"`
}
UpdateNegativeTargetsJSONBody defines parameters for UpdateNegativeTargets.
type UpdateNegativeTargetsJSONRequestBody ¶
type UpdateNegativeTargetsJSONRequestBody UpdateNegativeTargetsJSONBody
UpdateNegativeTargetsJSONRequestBody defines body for UpdateNegativeTargets for application/json ContentType.
type UpdateNegativeTargetsResp ¶
type UpdateNegativeTargetsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndUpdatenegativetargetsresponseV3JSON200 *PutSbNegativeTargets ApplicationvndSberrorV30JSON400 *BadRequest400 }
func ParseUpdateNegativeTargetsResp ¶
func ParseUpdateNegativeTargetsResp(rsp *http.Response) (*UpdateNegativeTargetsResp, error)
ParseUpdateNegativeTargetsResp parses an HTTP response from a UpdateNegativeTargetsWithResponse call
func (UpdateNegativeTargetsResp) Status ¶
func (r UpdateNegativeTargetsResp) Status() string
Status returns HTTPResponse.Status
func (UpdateNegativeTargetsResp) StatusCode ¶
func (r UpdateNegativeTargetsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTargetsJSONBody ¶
type UpdateTargetsJSONBody struct {
Targets []SBUpdateTargetingClauseRequest `json:"targets"`
}
UpdateTargetsJSONBody defines parameters for UpdateTargets.
type UpdateTargetsJSONRequestBody ¶
type UpdateTargetsJSONRequestBody UpdateTargetsJSONBody
UpdateTargetsJSONRequestBody defines body for UpdateTargets for application/json ContentType.
type UpdateTargetsResp ¶
type UpdateTargetsResp struct { Body []byte HTTPResponse *http.Response ApplicationvndUpdatetargetsresponseV3JSON200 *PutSbTargetResponse ApplicationvndSberrorV30JSON400 *BadRequest400 }
func ParseUpdateTargetsResp ¶
func ParseUpdateTargetsResp(rsp *http.Response) (*UpdateTargetsResp, error)
ParseUpdateTargetsResp parses an HTTP response from a UpdateTargetsWithResponse call
func (UpdateTargetsResp) Status ¶
func (r UpdateTargetsResp) Status() string
Status returns HTTPResponse.Status
func (UpdateTargetsResp) StatusCode ¶
func (r UpdateTargetsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadLocation ¶
type UploadLocation = string
UploadLocation The url to upload the media. The url expires in 15 minutes. The upload location only supports `PUT` HTTP Method to upload the media content.
type V2HsaReportResponse ¶
type V2HsaReportResponse struct { // RecordType The record type of the report. It can be `campaign`, `adGroup`, `keyword`, or `targets`. RecordType *string `json:"recordType,omitempty"` // ReportId The unique ID for your requested report. ReportId *string `json:"reportId,omitempty"` // Status The status of the report. Status is one of `IN_PROGRESS`, `SUCCESS`, or `FAILURE`. Status *string `json:"status,omitempty"` // StatusDetails Description of the status. StatusDetails *string `json:"statusDetails,omitempty"` }
V2HsaReportResponse defines model for V2HsaReportResponse.
type V2ReportIdResponse ¶
type V2ReportIdResponse struct { // ReportId The unique ID for your requested report. ReportId *string `json:"reportId,omitempty"` // Status The status of the report. Status is one of `IN_PROGRESS`, `SUCCESS`, or `FAILURE`. Status *string `json:"status,omitempty"` // StatusDetails Description of the status. StatusDetails *string `json:"statusDetails,omitempty"` }
V2ReportIdResponse defines model for V2ReportIdResponse.