Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FidelityType ¶
type FidelityType int
https://developer.apple.com/documentation/storekit/skadnetwork/signing_and_providing_ads
const ( // App Store product page, rendered by StoreKit All SKAdNetwork versions. SKRenderedAds FidelityType = 1 // Custom, provided by ad network SKAdNetwork version 2.2 and later. ViewThroughAds FidelityType = 0 )
func (FidelityType) String ¶
func (f FidelityType) String() string
type Params ¶
type Params struct { // Version 2.0 and later. // The SKAdNetwork API version number. Version string `json:"version,omitempty"` // Version 1.0 and later. // Your ad network identifier you registered with Apple. AdNetworkID string `json:"ad-network-id"` // Version 1.0 and later. // A campaign number you provide. CampaignID int `json:"campaign-id"` // Version 1.0 and later. // The App Store ID of the product to advertise. ItunesItemID int64 `json:"itunes-item-id"` // Version 1.0 and later. // A unique UUID value that you provide for each ad impression. // You must lowercase the string representation of the nonce value in the signature. Nonce uuid.UUID `json:"nonce"` // Version 2.0 and later. // The App Store ID of the app that displays the ad. // During testing, use an ID of 0 if you’re using a development-signed build and not an app from App Store. SourceAppStoreID int64 `json:"source-app-store-id,omitempty"` // Version 2.2 and later. // A value of 0 indicates a view-through ad presentation; a value of 1 indicates a StoreKit-rendered ad. FidelityType FidelityType `json:"fidelity-type,omitempty"` // Version 1.0 and later. // A timestamp you generate near the time of the ad impression. Timestamp time.Time `json:"timestamp"` }
type Postback ¶
type Postback struct { // Version 2.0 and later. // Set this key to version number "3.0", "2.2", “2.1", or "2.0". // For version availability, see SKAdNetwork Release Notes. Version string `json:"version,omitempty"` // Version 1.0 and later. // Your ad network identifier, that matches the value you provided // for SKStoreProductParameterAdNetworkIdentifier or adNetworkIdentifier. AdNetworkID string `json:"ad-network-id"` // Version 1.0 and later. // A unique value for this validation; use to deduplicate install validation messages. TransactionID string `json:"transaction-id"` // Version 1.0 and later. // The campaign ID you provided when displaying the ad, // that matches SKStoreProductParameterAdNetworkCampaignIdentifier or adCampaignIdentifier. CampaignID int `json:"campaign-id,omitempty"` // Version 4.0 and later. // Replace the campaign-id SourceIdentifier string `json:"source-identifier,omitempty"` // Version 1.0 and later. // The item identifier of the advertised product. AppID int64 `json:"app-id"` // Version 2.0 and later. // Apple’s attribution signature, that you verify. AttributionSignature string `json:"attribution-signature,omitempty"` // Version 2.0 and later. // A Boolean flag that indicates that the customer redownloaded // and reinstalled the app when the value is true. Redownload *bool `json:"redownload,omitempty"` // Version 2.0 and later. // The item identifier of the app that displayed the ad. // During testing, if you’re using a development-signed build to display the ads // and not an app from App Store, use 0 as the item identifier. // Note: The source-app-id only appears in the postback if providing the parameter meets Apple’s privacy threshold. SourceAppID *int64 `json:"source-app-id,omitempty"` // Version 4.0 and later. SourceDomain *string `json:"source-domain,omitempty"` // Version 2.2 and later. // A value of 0 indicates a view-through ad presentation; a value of 1 indicates a StoreKit-rendered ad. FidelityType *FidelityType `json:"fidelity-type,omitempty"` // Version 2.0 and later. // An unsigned 6-bit value that the installed app provided by calling updateConversionValue(_:). // Note: The conversion-value only appears in the postback if the installed app provides it, // and if providing the parameter meets Apple’s privacy threshold. ConversionValue *uint8 `json:"conversion-value,omitempty"` // Version 4.0 and later. CoarseConversionValue *string `json:"coarse-conversion-value,omitempty"` // Version 3.0 and later. // A Boolean value that’s true if the ad network won the attribution, // and false if the postback represents a qualifying ad impression that didn’t win the attribution. DidWin *bool `json:"did-win,omitempty"` // Version 4.0 and later, PostbackSequenceIndex *int64 `json:"postback-sequence-index,omitempty"` }
Click to show internal directories.
Click to hide internal directories.