ads

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpecialUrlInterfaceList = map[string]url.URL{
	"/async_task_files/get":      url.URL{Host: "https://dl.e.qq.com/v1.1", Path: "/async_task_files/get"},
	"/async_report_files/get":    url.URL{Host: "https://dl.e.qq.com/v1.1", Path: "/async_report_files/get"},
	"/authorization/wechat_bind": url.URL{Host: "https://developers.e.qq.com", Path: "/authorization/wechat_bind"},
	"/oauth/token":               url.URL{Host: "https://api.e.qq.com", Path: "/oauth/token"},
	"/oauth/authorize":           url.URL{Host: "https://developers.e.qq.com", Path: "/oauth/authorize"},
}

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AuthMiddleware

type AuthMiddleware struct {
	// contains filtered or unexported fields
}

AuthMiddleware ...

func (*AuthMiddleware) Handle

func (a *AuthMiddleware) Handle(
	req *http.Request,
	next func(req *http.Request) (rsp *http.Response, err error),
) (rsp *http.Response, err error)

Handle ...

type DiffHostMiddleware

type DiffHostMiddleware struct {
	// contains filtered or unexported fields
}

DiffHostMiddleware ...

func (*DiffHostMiddleware) Handle

func (d *DiffHostMiddleware) Handle(
	req *http.Request,
	next func(req *http.Request) (rsp *http.Response, err error),
) (rsp *http.Response, err error)

Handle ...

type HeaderMiddleware

type HeaderMiddleware struct {
	// contains filtered or unexported fields
}

HeaderMiddleware ...

func (*HeaderMiddleware) Handle

func (h *HeaderMiddleware) Handle(
	req *http.Request,
	next func(req *http.Request) (rsp *http.Response, err error),
) (rsp *http.Response, err error)

Handle ...

type LogMiddleware

type LogMiddleware struct {
	// contains filtered or unexported fields
}

LogMiddleware ...

func (*LogMiddleware) Handle

func (l *LogMiddleware) Handle(
	req *http.Request,
	next func(req *http.Request) (rsp *http.Response, err error),
) (rsp *http.Response, err error)

Handle ...

type Middleware

type Middleware interface {
	Handle(req *http.Request, next func(req *http.Request) (rsp *http.Response, err error)) (rsp *http.Response, err error)
}

Middleware ...

type SDKClient

type SDKClient struct {
	http.RoundTripper
	Config     *config.SDKConfig
	Client     *api.APIClient
	Ctx        *context.Context
	Version    string
	ApiVersion string
	// contains filtered or unexported fields
}

SDKClient ...

func Init

func Init(cfg *config.SDKConfig) *SDKClient

Init ...

func (*SDKClient) AdDiagnosis

func (c *SDKClient) AdDiagnosis() *api.AdDiagnosisApiService

func (*SDKClient) AdLabel

func (c *SDKClient) AdLabel() *api.AdLabelApiService

func (*SDKClient) AdcreativePreviews

func (c *SDKClient) AdcreativePreviews() *api.AdcreativePreviewsApiService

func (*SDKClient) AdcreativeTemplateDetail

func (c *SDKClient) AdcreativeTemplateDetail() *api.AdcreativeTemplateDetailApiService

func (*SDKClient) AdcreativeTemplatePreview

func (c *SDKClient) AdcreativeTemplatePreview() *api.AdcreativeTemplatePreviewApiService

func (*SDKClient) AdcreativeTemplatePreviews

func (c *SDKClient) AdcreativeTemplatePreviews() *api.AdcreativeTemplatePreviewsApiService

func (*SDKClient) AdcreativeTemplates

func (c *SDKClient) AdcreativeTemplates() *api.AdcreativeTemplatesApiService

func (*SDKClient) Adcreatives

func (c *SDKClient) Adcreatives() *api.AdcreativesApiService

func (*SDKClient) AdcreativesRelatedCapability

func (c *SDKClient) AdcreativesRelatedCapability() *api.AdcreativesRelatedCapabilityApiService

func (*SDKClient) Adgroups

func (c *SDKClient) Adgroups() *api.AdgroupsApiService

func (*SDKClient) Ads

func (c *SDKClient) Ads() *api.AdsApiService

func (*SDKClient) Advertiser

func (c *SDKClient) Advertiser() *api.AdvertiserApiService

func (*SDKClient) AgencyInnerTransfer

func (c *SDKClient) AgencyInnerTransfer() *api.AgencyInnerTransferApiService

func (*SDKClient) AgencyPeerTransfer

func (c *SDKClient) AgencyPeerTransfer() *api.AgencyPeerTransferApiService

func (*SDKClient) AgencyRealtimeCost

func (c *SDKClient) AgencyRealtimeCost() *api.AgencyRealtimeCostApiService

func (*SDKClient) AndroidChannelPackages

func (c *SDKClient) AndroidChannelPackages() *api.AndroidChannelPackagesApiService

func (*SDKClient) AndroidUnionChannelPackages

func (c *SDKClient) AndroidUnionChannelPackages() *api.AndroidUnionChannelPackagesApiService

func (*SDKClient) AppendMiddleware

func (tads *SDKClient) AppendMiddleware(middleware Middleware) *SDKClient

AppendMiddleware ...

func (*SDKClient) AssetPermissions

func (c *SDKClient) AssetPermissions() *api.AssetPermissionsApiService

func (*SDKClient) AssetPrePermissions

func (c *SDKClient) AssetPrePermissions() *api.AssetPrePermissionsApiService

func (*SDKClient) AsyncReportFiles

func (c *SDKClient) AsyncReportFiles() *api.AsyncReportFilesApiService

func (*SDKClient) AsyncReports

func (c *SDKClient) AsyncReports() *api.AsyncReportsApiService

func (*SDKClient) AsyncTaskFiles

func (c *SDKClient) AsyncTaskFiles() *api.AsyncTaskFilesApiService

func (*SDKClient) AsyncTasks

func (c *SDKClient) AsyncTasks() *api.AsyncTasksApiService

func (*SDKClient) AudienceGrantRelations

func (c *SDKClient) AudienceGrantRelations() *api.AudienceGrantRelationsApiService

func (*SDKClient) Authorization

func (c *SDKClient) Authorization() *api.AuthorizationApiService

func (*SDKClient) BatchAsyncRequestSpecification

func (c *SDKClient) BatchAsyncRequestSpecification() *api.BatchAsyncRequestSpecificationApiService

func (*SDKClient) BatchAsyncRequests

func (c *SDKClient) BatchAsyncRequests() *api.BatchAsyncRequestsApiService

func (*SDKClient) BatchOperation

func (c *SDKClient) BatchOperation() *api.BatchOperationApiService

func (*SDKClient) BatchRequests

func (c *SDKClient) BatchRequests() *api.BatchRequestsApiService

func (*SDKClient) BidSimulation

func (c *SDKClient) BidSimulation() *api.BidSimulationApiService

func (*SDKClient) Brand

func (c *SDKClient) Brand() *api.BrandApiService

func (*SDKClient) BusinessManagerRelations

func (c *SDKClient) BusinessManagerRelations() *api.BusinessManagerRelationsApiService

func (*SDKClient) BusinessMdmAccountRelations

func (c *SDKClient) BusinessMdmAccountRelations() *api.BusinessMdmAccountRelationsApiService

func (*SDKClient) Campaigns

func (c *SDKClient) Campaigns() *api.CampaignsApiService

func (*SDKClient) Capabilities

func (c *SDKClient) Capabilities() *api.CapabilitiesApiService

func (*SDKClient) Channels

func (c *SDKClient) Channels() *api.ChannelsApiService

func (*SDKClient) ComplianceValidation

func (c *SDKClient) ComplianceValidation() *api.ComplianceValidationApiService

func (*SDKClient) Conversions

func (c *SDKClient) Conversions() *api.ConversionsApiService

func (*SDKClient) CreativetoolsText

func (c *SDKClient) CreativetoolsText() *api.CreativetoolsTextApiService

func (*SDKClient) CustomAudienceEstimations

func (c *SDKClient) CustomAudienceEstimations() *api.CustomAudienceEstimationsApiService

func (*SDKClient) CustomAudienceFiles

func (c *SDKClient) CustomAudienceFiles() *api.CustomAudienceFilesApiService

func (*SDKClient) CustomAudienceInsights

func (c *SDKClient) CustomAudienceInsights() *api.CustomAudienceInsightsApiService

func (*SDKClient) CustomAudienceReports

func (c *SDKClient) CustomAudienceReports() *api.CustomAudienceReportsApiService

func (*SDKClient) CustomAudiences

func (c *SDKClient) CustomAudiences() *api.CustomAudiencesApiService

func (*SDKClient) CustomDataSalt

func (c *SDKClient) CustomDataSalt() *api.CustomDataSaltApiService

func (*SDKClient) CustomFeatures

func (c *SDKClient) CustomFeatures() *api.CustomFeaturesApiService

func (*SDKClient) CustomTagFiles

func (c *SDKClient) CustomTagFiles() *api.CustomTagFilesApiService

func (*SDKClient) CustomTags

func (c *SDKClient) CustomTags() *api.CustomTagsApiService

func (*SDKClient) DailyCost

func (c *SDKClient) DailyCost() *api.DailyCostApiService

func (*SDKClient) DailyReports

func (c *SDKClient) DailyReports() *api.DailyReportsApiService

func (*SDKClient) Diagnosis

func (c *SDKClient) Diagnosis() *api.DiagnosisApiService

func (*SDKClient) DplabelAdLabel

func (c *SDKClient) DplabelAdLabel() *api.DplabelAdLabelApiService

func (*SDKClient) DynamicAdImages

func (c *SDKClient) DynamicAdImages() *api.DynamicAdImagesApiService

func (*SDKClient) DynamicAdTemplates

func (c *SDKClient) DynamicAdTemplates() *api.DynamicAdTemplatesApiService

func (*SDKClient) DynamicAdVideo

func (c *SDKClient) DynamicAdVideo() *api.DynamicAdVideoApiService

func (*SDKClient) DynamicCreatives

func (c *SDKClient) DynamicCreatives() *api.DynamicCreativesApiService

func (*SDKClient) EcommerceOrder

func (c *SDKClient) EcommerceOrder() *api.EcommerceOrderApiService

func (*SDKClient) Estimation

func (c *SDKClient) Estimation() *api.EstimationApiService

func (*SDKClient) FundStatementsDaily

func (c *SDKClient) FundStatementsDaily() *api.FundStatementsDailyApiService

func (*SDKClient) FundStatementsDetailed

func (c *SDKClient) FundStatementsDetailed() *api.FundStatementsDetailedApiService

func (*SDKClient) FundTransfer

func (c *SDKClient) FundTransfer() *api.FundTransferApiService

func (*SDKClient) Funds

func (c *SDKClient) Funds() *api.FundsApiService

func (*SDKClient) GenMiddlewareHandleFunc

func (tads *SDKClient) GenMiddlewareHandleFunc(
	middleware Middleware,
	beforeFunc func(req *http.Request) (rsp *http.Response, err error),
) func(req *http.Request) (rsp *http.Response, err error)

GenMiddlewareHandleFunc ...

func (*SDKClient) GetAccessToken

func (tads *SDKClient) GetAccessToken() string

GetAccessToken ...

func (*SDKClient) GetDebugFile

func (tads *SDKClient) GetDebugFile() string

GetDebugFile ...

func (*SDKClient) GetVersion

func (tads *SDKClient) GetVersion() string

GetVersion ...

func (*SDKClient) HourlyReports

func (c *SDKClient) HourlyReports() *api.HourlyReportsApiService

func (*SDKClient) ImageProcessing

func (c *SDKClient) ImageProcessing() *api.ImageProcessingApiService

func (*SDKClient) Images

func (c *SDKClient) Images() *api.ImagesApiService

func (*SDKClient) IsDebug

func (tads *SDKClient) IsDebug() bool

IsDebug ...

func (*SDKClient) IsMonitor

func (tads *SDKClient) IsMonitor() bool

IsMonitor ...

func (*SDKClient) LabelAudiences

func (c *SDKClient) LabelAudiences() *api.LabelAudiencesApiService

func (*SDKClient) Labels

func (c *SDKClient) Labels() *api.LabelsApiService

func (*SDKClient) LeadClues

func (c *SDKClient) LeadClues() *api.LeadCluesApiService

func (*SDKClient) LeadsForm

func (c *SDKClient) LeadsForm() *api.LeadsFormApiService

func (*SDKClient) LeadsFormList

func (c *SDKClient) LeadsFormList() *api.LeadsFormListApiService

func (*SDKClient) Local

func (c *SDKClient) Local() *api.LocalApiService

func (*SDKClient) LocalEndadsmanually

func (c *SDKClient) LocalEndadsmanually() *api.LocalEndadsmanuallyApiService

func (*SDKClient) LocalEstimatedamount

func (c *SDKClient) LocalEstimatedamount() *api.LocalEstimatedamountApiService

func (*SDKClient) LocalStores

func (c *SDKClient) LocalStores() *api.LocalStoresApiService

func (*SDKClient) LocalStoresAddressParsingResult

func (c *SDKClient) LocalStoresAddressParsingResult() *api.LocalStoresAddressParsingResultApiService

func (*SDKClient) LocalStoresSearchInfo

func (c *SDKClient) LocalStoresSearchInfo() *api.LocalStoresSearchInfoApiService

func (*SDKClient) Oauth

func (c *SDKClient) Oauth() *api.OauthApiService

func (*SDKClient) OptimizationGoalPermissions

func (c *SDKClient) OptimizationGoalPermissions() *api.OptimizationGoalPermissionsApiService

func (*SDKClient) OuterClues

func (c *SDKClient) OuterClues() *api.OuterCluesApiService

func (*SDKClient) OuterCluesContact

func (c *SDKClient) OuterCluesContact() *api.OuterCluesContactApiService

func (*SDKClient) Pages

func (c *SDKClient) Pages() *api.PagesApiService

func (*SDKClient) PlayablePages

func (c *SDKClient) PlayablePages() *api.PlayablePagesApiService

func (*SDKClient) ProductCatalogs

func (c *SDKClient) ProductCatalogs() *api.ProductCatalogsApiService

func (*SDKClient) ProductCatalogsReports

func (c *SDKClient) ProductCatalogsReports() *api.ProductCatalogsReportsApiService

func (*SDKClient) ProductCategoriesList

func (c *SDKClient) ProductCategoriesList() *api.ProductCategoriesListApiService

func (*SDKClient) ProductItems

func (c *SDKClient) ProductItems() *api.ProductItemsApiService

func (*SDKClient) ProductItemsDetail

func (c *SDKClient) ProductItemsDetail() *api.ProductItemsDetailApiService

func (*SDKClient) ProductItemsVerticals

func (c *SDKClient) ProductItemsVerticals() *api.ProductItemsVerticalsApiService

func (*SDKClient) ProductsSystemStatus

func (c *SDKClient) ProductsSystemStatus() *api.ProductsSystemStatusApiService

func (*SDKClient) Profiles

func (c *SDKClient) Profiles() *api.ProfilesApiService

func (*SDKClient) PromotedObjects

func (c *SDKClient) PromotedObjects() *api.PromotedObjectsApiService

func (*SDKClient) Qualifications

func (c *SDKClient) Qualifications() *api.QualificationsApiService

func (*SDKClient) RealtimeCost

func (c *SDKClient) RealtimeCost() *api.RealtimeCostApiService

func (*SDKClient) Report

func (c *SDKClient) Report() *api.ReportApiService

func (*SDKClient) RoundTrip

func (tads *SDKClient) RoundTrip(req *http.Request) (rsp *http.Response, err error)

RoundTrip ...

func (*SDKClient) SetAccessToken

func (tads *SDKClient) SetAccessToken(accessToken string) *SDKClient

SetAccessToken ...

func (*SDKClient) SetDebug

func (tads *SDKClient) SetDebug(debug bool) *SDKClient

SetDebug ...

func (*SDKClient) SetDebugFile

func (tads *SDKClient) SetDebugFile(debugFile string) *SDKClient

SetDebugFile ...

func (*SDKClient) SetHeader

func (tads *SDKClient) SetHeader(key string, value string) *SDKClient

SetHeader ...

func (*SDKClient) SetHeaders

func (tads *SDKClient) SetHeaders(header http.Header) *SDKClient

SetHeaders ...

func (*SDKClient) SetHost

func (tads *SDKClient) SetHost(host string, schema string) *SDKClient

SetHost ...

func (*SDKClient) SetIpPort

func (tads *SDKClient) SetIpPort(ip string, port int, schema string)

func (*SDKClient) SetMonitor

func (tads *SDKClient) SetMonitor(monitor bool) *SDKClient

SetMonitor ...

func (*SDKClient) Shop

func (c *SDKClient) Shop() *api.ShopApiService

func (*SDKClient) SplitTests

func (c *SDKClient) SplitTests() *api.SplitTestsApiService

func (*SDKClient) SystemStatus

func (c *SDKClient) SystemStatus() *api.SystemStatusApiService

func (*SDKClient) TargetingTagReports

func (c *SDKClient) TargetingTagReports() *api.TargetingTagReportsApiService

func (*SDKClient) TargetingTags

func (c *SDKClient) TargetingTags() *api.TargetingTagsApiService

func (*SDKClient) Targetings

func (c *SDKClient) Targetings() *api.TargetingsApiService

func (*SDKClient) TargetingsShare

func (c *SDKClient) TargetingsShare() *api.TargetingsShareApiService

func (*SDKClient) TrackingReports

func (c *SDKClient) TrackingReports() *api.TrackingReportsApiService

func (*SDKClient) UnionPositionPackages

func (c *SDKClient) UnionPositionPackages() *api.UnionPositionPackagesApiService

func (*SDKClient) UseProduction

func (tads *SDKClient) UseProduction() *SDKClient

UseProduction ...

func (*SDKClient) UseSandbox

func (tads *SDKClient) UseSandbox() *SDKClient

UseSandbox ...

func (*SDKClient) UserActionSetReports

func (c *SDKClient) UserActionSetReports() *api.UserActionSetReportsApiService

func (*SDKClient) UserActionSets

func (c *SDKClient) UserActionSets() *api.UserActionSetsApiService

func (*SDKClient) UserActions

func (c *SDKClient) UserActions() *api.UserActionsApiService

func (*SDKClient) UserProperties

func (c *SDKClient) UserProperties() *api.UserPropertiesApiService

func (*SDKClient) UserPropertySets

func (c *SDKClient) UserPropertySets() *api.UserPropertySetsApiService

func (*SDKClient) VideomakerAutoadjustments

func (c *SDKClient) VideomakerAutoadjustments() *api.VideomakerAutoadjustmentsApiService

func (*SDKClient) VideomakerSubtitles

func (c *SDKClient) VideomakerSubtitles() *api.VideomakerSubtitlesApiService

func (*SDKClient) VideomakerTasks

func (c *SDKClient) VideomakerTasks() *api.VideomakerTasksApiService

func (*SDKClient) VideomakerVideocaptures

func (c *SDKClient) VideomakerVideocaptures() *api.VideomakerVideocapturesApiService

func (*SDKClient) Videos

func (c *SDKClient) Videos() *api.VideosApiService

func (*SDKClient) WechatAdFollowers

func (c *SDKClient) WechatAdFollowers() *api.WechatAdFollowersApiService

func (*SDKClient) WechatAdLabels

func (c *SDKClient) WechatAdLabels() *api.WechatAdLabelsApiService

func (*SDKClient) WechatAdvertiser

func (c *SDKClient) WechatAdvertiser() *api.WechatAdvertiserApiService

func (*SDKClient) WechatAdvertiserDetail

func (c *SDKClient) WechatAdvertiserDetail() *api.WechatAdvertiserDetailApiService

func (*SDKClient) WechatAdvertiserLocalBusiness

func (c *SDKClient) WechatAdvertiserLocalBusiness() *api.WechatAdvertiserLocalBusinessApiService

func (*SDKClient) WechatAdvertiserSpecification

func (c *SDKClient) WechatAdvertiserSpecification() *api.WechatAdvertiserSpecificationApiService

func (*SDKClient) WechatAgency

func (c *SDKClient) WechatAgency() *api.WechatAgencyApiService

func (*SDKClient) WechatDailyCost

func (c *SDKClient) WechatDailyCost() *api.WechatDailyCostApiService

func (*SDKClient) WechatFundStatementsDetailed

func (c *SDKClient) WechatFundStatementsDetailed() *api.WechatFundStatementsDetailedApiService

func (*SDKClient) WechatFundTransfer

func (c *SDKClient) WechatFundTransfer() *api.WechatFundTransferApiService

func (*SDKClient) WechatFunds

func (c *SDKClient) WechatFunds() *api.WechatFundsApiService

func (*SDKClient) WechatPages

func (c *SDKClient) WechatPages() *api.WechatPagesApiService

func (*SDKClient) WechatPagesCsgrouplist

func (c *SDKClient) WechatPagesCsgrouplist() *api.WechatPagesCsgrouplistApiService

func (*SDKClient) WechatPagesGrantinfo

func (c *SDKClient) WechatPagesGrantinfo() *api.WechatPagesGrantinfoApiService

func (*SDKClient) WechatQualifications

func (c *SDKClient) WechatQualifications() *api.WechatQualificationsApiService

func (*SDKClient) XijingPage

func (c *SDKClient) XijingPage() *api.XijingPageApiService

func (*SDKClient) XijingPageByComponents

func (c *SDKClient) XijingPageByComponents() *api.XijingPageByComponentsApiService

func (*SDKClient) XijingPageList

func (c *SDKClient) XijingPageList() *api.XijingPageListApiService

func (*SDKClient) XijingTemplate

func (c *SDKClient) XijingTemplate() *api.XijingTemplateApiService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL