Documentation ¶
Overview ¶
base client
list Portfolios
profile api
Sponsored products api
Index ¶
- Constants
- type Client
- func (c *Client) DownloadReportData(reportId string) (*Response, error)
- func (c *Client) GetProfiles() (*Response, error)
- func (c *Client) GetReport(reportId string) (*Response, error)
- func (c *Client) HttpGet(url string, query ...interface{}) (*Response, error)
- func (c *Client) HttpPost(url string, params interface{}) (*Response, error)
- func (c *Client) ListPortfoliosEx(query ...interface{}) (*Response, error)
- func (c *Client) RefreshToken() error
- func (c *Client) SbListAdGroups(query ...interface{}) (*Response, error)
- func (c *Client) SbListBrands(query ...interface{}) (*Response, error)
- func (c *Client) SbListCampaigns(query ...interface{}) (*Response, error)
- func (c *Client) SbListDrafts(query ...interface{}) (*Response, error)
- func (c *Client) SbListKeywords(query ...interface{}) (*Response, error)
- func (c *Client) SbListNegativeKeywords(query ...interface{}) (*Response, error)
- func (c *Client) SbListNegativeProductTargets(json interface{}) (*Response, error)
- func (c *Client) SbListProductTargets(json interface{}) (*Response, error)
- func (c *Client) SbRequestReport(recordType, params interface{}) (*Response, error)
- func (c *Client) SdListAdGroupsEx(query ...interface{}) (*Response, error)
- func (c *Client) SdListCampaignsEx(query ...interface{}) (*Response, error)
- func (c *Client) SdListNegativeTargetsEx(query ...interface{}) (*Response, error)
- func (c *Client) SdListProductAdsEx(query ...interface{}) (*Response, error)
- func (c *Client) SdListTargetsEx(query ...interface{}) (*Response, error)
- func (c *Client) SdRequestReport(recordType, params interface{}) (*Response, error)
- func (c *Client) SetDebug(mode bool)
- func (c *Client) SetProfileId(profileId int64)
- func (c *Client) SpListAdGroupsEx(query ...interface{}) (*Response, error)
- func (c *Client) SpListBiddableKeywordsEx(query ...interface{}) (*Response, error)
- func (c *Client) SpListCampaignNegativeKeywordsEx(query ...interface{}) (*Response, error)
- func (c *Client) SpListCampaignsEx(query ...interface{}) (*Response, error)
- func (c *Client) SpListNegativeKeywordsEx(query ...interface{}) (*Response, error)
- func (c *Client) SpListNegativeTargetingClausesEx(query ...interface{}) (*Response, error)
- func (c *Client) SpListProductAdsEx(query ...interface{}) (*Response, error)
- func (c *Client) SpListTargetingClausesEx(query ...interface{}) (*Response, error)
- func (c *Client) SpRequestAsinReport(params interface{}) (*Response, error)
- func (c *Client) SpRequestReport(recordType, params interface{}) (*Response, error)
- type ClientOption
- type Response
Constants ¶
View Source
const (
MAX_RETRIES = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Debug bool Option ClientOption Endpoint string ProfileId int64 }
请求客户端
func NewClient ¶
func NewClient(option ClientOption) (*Client, error)
func (*Client) DownloadReportData ¶
func (*Client) GetProfiles ¶
func (*Client) ListPortfoliosEx ¶
func (*Client) SbListAdGroups ¶
func (*Client) SbListBrands ¶
func (*Client) SbListCampaigns ¶
func (*Client) SbListDrafts ¶
func (*Client) SbListKeywords ¶
func (*Client) SbListNegativeKeywords ¶
func (*Client) SbListNegativeProductTargets ¶
func (*Client) SbListProductTargets ¶
func (*Client) SbRequestReport ¶
func (*Client) SdListAdGroupsEx ¶
func (*Client) SdListCampaignsEx ¶
func (*Client) SdListNegativeTargetsEx ¶
func (*Client) SdListProductAdsEx ¶
func (*Client) SdListTargetsEx ¶
func (*Client) SdRequestReport ¶
func (*Client) SetProfileId ¶
func (*Client) SpListAdGroupsEx ¶
func (*Client) SpListBiddableKeywordsEx ¶
func (*Client) SpListCampaignNegativeKeywordsEx ¶
func (*Client) SpListCampaignsEx ¶
func (*Client) SpListNegativeKeywordsEx ¶
func (*Client) SpListNegativeTargetingClausesEx ¶
func (*Client) SpListProductAdsEx ¶
func (*Client) SpListTargetingClausesEx ¶
func (*Client) SpRequestAsinReport ¶
func (*Client) SpRequestReport ¶
type ClientOption ¶
Click to show internal directories.
Click to hide internal directories.