ads

package
v1.7.45 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 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/v3.0", Path: "/async_task_files/get"},
	"/async_report_files/get":    url.URL{Host: "https://dl.e.qq.com/v3.0", 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) AdParam added in v1.7.44

func (c *SDKClient) AdParam() *api.AdParamApiService

func (*SDKClient) AdUnionReports added in v1.7.44

func (c *SDKClient) AdUnionReports() *api.AdUnionReportsApiService

func (*SDKClient) AdcreativePreviews added in v1.7.42

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

func (*SDKClient) AdcreativePreviewsQrcode added in v1.7.42

func (c *SDKClient) AdcreativePreviewsQrcode() *api.AdcreativePreviewsQrcodeApiService

func (*SDKClient) AdgroupNegativewords

func (c *SDKClient) AdgroupNegativewords() *api.AdgroupNegativewordsApiService

func (*SDKClient) Adgroups

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

func (*SDKClient) AgencyRealtimeCost

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

func (*SDKClient) AndroidChannel

func (c *SDKClient) AndroidChannel() *api.AndroidChannelApiService

func (*SDKClient) AppendMiddleware

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

AppendMiddleware ...

func (*SDKClient) AsyncReportFiles

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

func (*SDKClient) AsyncReports

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

func (*SDKClient) AudienceGrantRelations

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

func (*SDKClient) BatchRequests added in v1.7.43

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

func (*SDKClient) BidSimulation added in v1.7.44

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

func (*SDKClient) Bidword

func (c *SDKClient) Bidword() *api.BidwordApiService

func (*SDKClient) BidwordFlow

func (c *SDKClient) BidwordFlow() *api.BidwordFlowApiService

func (*SDKClient) Brand

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

func (*SDKClient) BusinessPoint

func (c *SDKClient) BusinessPoint() *api.BusinessPointApiService

func (*SDKClient) Conversions

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

func (*SDKClient) CreativeTemplate

func (c *SDKClient) CreativeTemplate() *api.CreativeTemplateApiService

func (*SDKClient) CreativeTemplateList

func (c *SDKClient) CreativeTemplateList() *api.CreativeTemplateListApiService

func (*SDKClient) CreativetoolsText added in v1.7.44

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

func (*SDKClient) CustomAudienceFiles

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

func (*SDKClient) CustomAudiences

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

func (*SDKClient) DailyBalanceReport

func (c *SDKClient) DailyBalanceReport() *api.DailyBalanceReportApiService

func (*SDKClient) DailyReports

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

func (*SDKClient) DynamicCreativeReviewResults added in v1.7.42

func (c *SDKClient) DynamicCreativeReviewResults() *api.DynamicCreativeReviewResultsApiService

func (*SDKClient) DynamicCreatives

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

func (*SDKClient) EcommerceOrder added in v1.7.44

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

func (*SDKClient) Estimation

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

func (*SDKClient) ExtendPackage

func (c *SDKClient) ExtendPackage() *api.ExtendPackageApiService

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) GameFeature

func (c *SDKClient) GameFeature() *api.GameFeatureApiService

func (*SDKClient) GameFeatureTags

func (c *SDKClient) GameFeatureTags() *api.GameFeatureTagsApiService

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) 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) KeywordRecommend

func (c *SDKClient) KeywordRecommend() *api.KeywordRecommendApiService

func (*SDKClient) LiveRoomComponentStatus added in v1.7.44

func (c *SDKClient) LiveRoomComponentStatus() *api.LiveRoomComponentStatusApiService

func (*SDKClient) LiveRoomComponents added in v1.7.44

func (c *SDKClient) LiveRoomComponents() *api.LiveRoomComponentsApiService

func (*SDKClient) LocalStores

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

func (*SDKClient) LocalStoresAddressParsingResult

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

func (*SDKClient) LocalStoresCategories

func (c *SDKClient) LocalStoresCategories() *api.LocalStoresCategoriesApiService

func (*SDKClient) LocalStoresSearchInfo

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

func (*SDKClient) LocalStoresWxpayMerchants

func (c *SDKClient) LocalStoresWxpayMerchants() *api.LocalStoresWxpayMerchantsApiService

func (*SDKClient) MarketingTargetAssets

func (c *SDKClient) MarketingTargetAssets() *api.MarketingTargetAssetsApiService

func (*SDKClient) MarketingTargetTypes

func (c *SDKClient) MarketingTargetTypes() *api.MarketingTargetTypesApiService

func (*SDKClient) MaterialLabels

func (c *SDKClient) MaterialLabels() *api.MaterialLabelsApiService

func (*SDKClient) MergeFundTypeDailyBalanceReport

func (c *SDKClient) MergeFundTypeDailyBalanceReport() *api.MergeFundTypeDailyBalanceReportApiService

func (*SDKClient) MergeFundTypeFundStatementsDetailed

func (c *SDKClient) MergeFundTypeFundStatementsDetailed() *api.MergeFundTypeFundStatementsDetailedApiService

func (*SDKClient) MergeFundTypeFunds

func (c *SDKClient) MergeFundTypeFunds() *api.MergeFundTypeFundsApiService

func (*SDKClient) MergeFundTypeSubcustomerTransfer

func (c *SDKClient) MergeFundTypeSubcustomerTransfer() *api.MergeFundTypeSubcustomerTransferApiService

func (*SDKClient) Oauth

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

func (*SDKClient) OptimizationGoalPermissions added in v1.7.44

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

func (*SDKClient) Pages

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

func (*SDKClient) Profiles added in v1.7.41

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

func (*SDKClient) Programmed

func (c *SDKClient) Programmed() *api.ProgrammedApiService

func (*SDKClient) ProgrammedTemplate

func (c *SDKClient) ProgrammedTemplate() *api.ProgrammedTemplateApiService

func (*SDKClient) RealtimeCost

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

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)

SetIpPort set ip port in Host

func (*SDKClient) SetMonitor

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

SetMonitor ...

func (*SDKClient) SubcustomerTransfer

func (c *SDKClient) SubcustomerTransfer() *api.SubcustomerTransferApiService

func (*SDKClient) TargetingTagReports

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

func (*SDKClient) UnionPositionPackages

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

func (*SDKClient) Videos

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

func (*SDKClient) WechatPages

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

func (*SDKClient) WechatPagesCustom

func (c *SDKClient) WechatPagesCustom() *api.WechatPagesCustomApiService

func (*SDKClient) Wildcards

func (c *SDKClient) Wildcards() *api.WildcardsApiService

Jump to

Keyboard shortcuts

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