Documentation
¶
Index ¶
- func APICommand() *ffcli.Command
- func APIRequestCommand() *ffcli.Command
- func AdsCommand() *ffcli.Command
- func AuthCommand() *ffcli.Command
- func AuthDiscoverCommand() *ffcli.Command
- func AuthDoctorCommand() *ffcli.Command
- func AuthLoginCommand() *ffcli.Command
- func AuthLogoutCommand() *ffcli.Command
- func AuthStatusCommand() *ffcli.Command
- func AuthSwitchCommand() *ffcli.Command
- func AuthTokenCommand() *ffcli.Command
- func PlatformAPICommand() *ffcli.Command
- func PlatformAPIRequestCommand() *ffcli.Command
- func PlatformAssetUploadCommand() *ffcli.Command
- func ReportsPresetCommand() *ffcli.Command
- func V5Command() *ffcli.Command
- type SearchCampaign
- type SearchEligibility
- type SearchImpressionShare
- type SearchNegativeKeyword
- type SearchOptimizationData
- type SearchOptimizationRequest
- type SearchOptimizationSourceStatus
- type SearchPopularity
- type SearchSuggestion
- type SearchTargetingKeyword
- type SearchTermPerformance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APICommand ¶
APICommand returns the raw Apple Ads API request command.
func APIRequestCommand ¶
func AuthCommand ¶
AuthCommand returns the Apple Ads auth command group.
func AuthDiscoverCommand ¶
func AuthDoctorCommand ¶
func AuthLoginCommand ¶
func AuthLogoutCommand ¶
func AuthStatusCommand ¶
func AuthSwitchCommand ¶
func AuthTokenCommand ¶
func PlatformAPICommand ¶ added in v1.260816.0
PlatformAPICommand returns the raw Apple Ads Platform API command group.
func PlatformAPIRequestCommand ¶ added in v1.260816.0
PlatformAPIRequestCommand returns the raw Apple Ads Platform API request command.
func PlatformAssetUploadCommand ¶ added in v1.260816.0
PlatformAssetUploadCommand returns the dedicated Platform API asset upload command. Unlike the generated mutation commands, this sends multipart image data rather than a JSON payload.
func ReportsPresetCommand ¶
ReportsPresetCommand returns an operator-friendly Apple Ads reporting helper.
Types ¶
type SearchCampaign ¶ added in v1.260819.0
type SearchCampaign struct {
ID int64 `json:"id"`
Name string `json:"name,omitempty"`
Status string `json:"status,omitempty"`
DisplayStatus string `json:"displayStatus,omitempty"`
Countries []string `json:"countries,omitempty"`
}
SearchCampaign is the app campaign context used to scope dependent queries.
type SearchEligibility ¶ added in v1.260819.0
type SearchEligibility struct {
Country string `json:"country,omitempty"`
SupplyPlacement string `json:"supplyPlacement,omitempty"`
DeviceClass string `json:"deviceClass,omitempty"`
State string `json:"state"`
Reasons []string `json:"reasons,omitempty"`
}
SearchEligibility describes one placement/storefront eligibility row.
type SearchImpressionShare ¶ added in v1.260819.0
type SearchImpressionShare struct {
}
SearchImpressionShare is one app-specific paid reach row.
type SearchNegativeKeyword ¶ added in v1.260819.0
type SearchNegativeKeyword struct {
Text string `json:"text"`
MatchType string `json:"matchType"`
Status string `json:"status,omitempty"`
CampaignID int64 `json:"campaignId"`
AdGroupID int64 `json:"adGroupId,omitempty"`
}
SearchNegativeKeyword is an existing paid exclusion.
type SearchOptimizationData ¶ added in v1.260819.0
type SearchOptimizationData struct {
Sources []SearchOptimizationSourceStatus `json:"sources"`
Suggestions []SearchSuggestion `json:"suggestions,omitempty"`
Popularities []SearchPopularity `json:"popularities,omitempty"`
SearchTerms []SearchTermPerformance `json:"searchTerms,omitempty"`
Campaigns []SearchCampaign `json:"campaigns,omitempty"`
Keywords []SearchTargetingKeyword `json:"keywords,omitempty"`
NegativeKeywords []SearchNegativeKeyword `json:"negativeKeywords,omitempty"`
Eligibilities []SearchEligibility `json:"eligibilities,omitempty"`
DailyBudgetRecommendationItems []json.RawMessage `json:"dailyBudgetRecommendationItems,omitempty"`
TargetCPARecommendationItems []json.RawMessage `json:"targetCpaRecommendationItems,omitempty"`
TargetCPASuggestion json.RawMessage `json:"targetCpaSuggestion,omitempty"`
DailyBudgetRecommendations int `json:"dailyBudgetRecommendations"`
TargetCPARecommendations int `json:"targetCpaRecommendations"`
}
SearchOptimizationData is the normalized official Apple Ads evidence used by the top-level optimizer.
func CollectSearchOptimizationData ¶ added in v1.260819.0
func CollectSearchOptimizationData(ctx context.Context, adsProfile, adAccount string, request SearchOptimizationRequest) (SearchOptimizationData, error)
CollectSearchOptimizationData resolves official Apple Ads authentication and gathers the read-only evidence needed by `asc optimize search plan`.
type SearchOptimizationRequest ¶ added in v1.260819.0
type SearchOptimizationRequest struct {
AppID string
Country string
Genre string
Start string
End string
PopularityStart string
PopularityEnd string
}
SearchOptimizationRequest identifies the official Apple Ads data window and market used by the cross-API search optimization workflow.
type SearchOptimizationSourceStatus ¶ added in v1.260819.0
type SearchOptimizationSourceStatus struct {
Name string `json:"name"`
Status string `json:"status"`
Count int `json:"count"`
Error string `json:"error,omitempty"`
}
SearchOptimizationSourceStatus describes the availability of one official Apple Ads source. Empty responses are distinct from unavailable sources.
type SearchPopularity ¶ added in v1.260819.0
type SearchPopularity struct {
Term string `json:"term"`
Country string `json:"country,omitempty"`
Genre string `json:"genre,omitempty"`
Week string `json:"week,omitempty"`
Month string `json:"month,omitempty"`
RankInGenre *int `json:"rankInGenre,omitempty"`
PopularityInGenre *int `json:"popularityInGenre,omitempty"`
Popularity100 *int `json:"popularity100,omitempty"`
Popularity5 *int `json:"popularity5,omitempty"`
}
SearchPopularity is one country-and-genre search demand snapshot.
type SearchSuggestion ¶ added in v1.260819.0
type SearchSuggestion struct {
Text string `json:"text"`
Popularity *int `json:"popularity,omitempty"`
Kind string `json:"kind"`
}
SearchSuggestion is one keyword or phrase returned by Apple's suggestion endpoints. Popularity is kept separate from market-scoped popularity.
type SearchTargetingKeyword ¶ added in v1.260819.0
type SearchTargetingKeyword struct {
Text string `json:"text"`
MatchType string `json:"matchType"`
Status string `json:"status,omitempty"`
CampaignID int64 `json:"campaignId"`
AdGroupID int64 `json:"adGroupId"`
}
SearchTargetingKeyword is an existing paid targeting keyword.
type SearchTermPerformance ¶ added in v1.260819.0
type SearchTermPerformance struct {
Term string `json:"term"`
KeywordText string `json:"keywordText,omitempty"`
MatchType string `json:"matchType,omitempty"`
Country string `json:"country,omitempty"`
CampaignID int64 `json:"campaignId,omitempty"`
AdGroupID int64 `json:"adGroupId,omitempty"`
Impressions int64 `json:"impressions"`
Taps int64 `json:"taps"`
TapInstalls int64 `json:"tapInstalls"`
TotalInstalls int64 `json:"totalInstalls"`
SpendAmount string `json:"spendAmount,omitempty"`
SpendCurrency string `json:"spendCurrency,omitempty"`
}
SearchTermPerformance captures the actual user query and paid outcome from Apple's app Search Terms report.