Movatterモバイル変換


[0]ホーム

URL:


datamanager

package
v0.257.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package datamanager provides access to the Data Manager API.

For product documentation, see:https://developers.google.com/data-manager

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/datamanager/v1"...ctx := context.Background()datamanagerService, err := datamanager.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

datamanagerService, err := datamanager.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)datamanagerService, err := datamanager.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// See, edit, create, import, or delete your customer data in Google Ads,// Google Marketing Platform (Campaign Manager 360, Search Ads 360, Display &// Video 360), and Google AnalyticsDatamanagerScope = "https://www.googleapis.com/auth/datamanager")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAdIdentifiers

type AdIdentifiers struct {// Gbraid: Optional. The click identifier for clicks associated with app events// and originating from iOS devices starting with iOS14.Gbraidstring `json:"gbraid,omitempty"`// Gclid: Optional. The Google click ID (gclid) associated with this event.Gclidstring `json:"gclid,omitempty"`// LandingPageDeviceInfo: Optional. Information gathered about the device being// used (if any) at the time of landing onto the advertiser’s site after// interacting with the ad.LandingPageDeviceInfo *DeviceInfo `json:"landingPageDeviceInfo,omitempty"`// SessionAttributes: Optional. Session attributes for event attribution and// modeling.SessionAttributesstring `json:"sessionAttributes,omitempty"`// Wbraid: Optional. The click identifier for clicks associated with web events// and originating from iOS devices starting with iOS14.Wbraidstring `json:"wbraid,omitempty"`// ForceSendFields is a list of field names (e.g. "Gbraid") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Gbraid") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdIdentifiers: Identifiers and other information used to match theconversion event with other online activity (such as ad clicks).

func (AdIdentifiers)MarshalJSON

func (sAdIdentifiers) MarshalJSON() ([]byte,error)

typeAddressInfo

type AddressInfo struct {// FamilyName: Required. Family (last) name of the user, all lowercase, with no// punctuation, no leading or trailing whitespace, and hashed as SHA-256.FamilyNamestring `json:"familyName,omitempty"`// GivenName: Required. Given (first) name of the user, all lowercase, with no// punctuation, no leading or trailing whitespace, and hashed as SHA-256.GivenNamestring `json:"givenName,omitempty"`// PostalCode: Required. The postal code of the user's address.PostalCodestring `json:"postalCode,omitempty"`// RegionCode: Required. The 2-letter region code in ISO-3166-1 alpha-2 of the// user's address.RegionCodestring `json:"regionCode,omitempty"`// ForceSendFields is a list of field names (e.g. "FamilyName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FamilyName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AddressInfo: Address information for the user.

func (AddressInfo)MarshalJSON

func (sAddressInfo) MarshalJSON() ([]byte,error)

typeAudienceMember

type AudienceMember struct {// Consent: Optional. The consent setting for the user.Consent *Consent `json:"consent,omitempty"`// DestinationReferences: Optional. Defines which Destination to send the// audience member to.DestinationReferences []string `json:"destinationReferences,omitempty"`// MobileData: Data identifying the user's mobile devices.MobileData *MobileData `json:"mobileData,omitempty"`// PairData: Publisher Advertiser Identity Reconciliation (PAIR) IDs// (//support.google.com/admanager/answer/15067908).PairData *PairData `json:"pairData,omitempty"`// UserData: User-provided data that identifies the user.UserData *UserData `json:"userData,omitempty"`// ForceSendFields is a list of field names (e.g. "Consent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Consent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AudienceMember: The audience member to be operated on.

func (AudienceMember)MarshalJSON

func (sAudienceMember) MarshalJSON() ([]byte,error)

typeAudienceMembersIngestCall

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

func (*AudienceMembersIngestCall)Context

Context sets the context to be used in this call's Do method.

func (*AudienceMembersIngestCall)Do

Do executes the "datamanager.audienceMembers.ingest" call.Any non-2xx status code is an error. Response headers are in either*IngestAudienceMembersResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AudienceMembersIngestCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AudienceMembersIngestCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAudienceMembersRemoveCall

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

func (*AudienceMembersRemoveCall)Context

Context sets the context to be used in this call's Do method.

func (*AudienceMembersRemoveCall)Do

Do executes the "datamanager.audienceMembers.remove" call.Any non-2xx status code is an error. Response headers are in either*RemoveAudienceMembersResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AudienceMembersRemoveCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AudienceMembersRemoveCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAudienceMembersService

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

funcNewAudienceMembersService

func NewAudienceMembersService(s *Service) *AudienceMembersService

func (*AudienceMembersService)Ingest

func (r *AudienceMembersService) Ingest(ingestaudiencemembersrequest *IngestAudienceMembersRequest) *AudienceMembersIngestCall

Ingest: Uploads a list of AudienceMember resources to the providedDestination.

func (*AudienceMembersService)Remove

func (r *AudienceMembersService) Remove(removeaudiencemembersrequest *RemoveAudienceMembersRequest) *AudienceMembersRemoveCall

Remove: Removes a list of AudienceMember resources from the providedDestination.

typeAwsWrappedKeyInfoadded inv0.256.0

type AwsWrappedKeyInfo struct {// EncryptedDek: Required. The base64 encoded encrypted data encryption key.EncryptedDekstring `json:"encryptedDek,omitempty"`// KekUri: Required. The URI of the AWS KMS key used to decrypt the DEK. Should// be in the format of `arn:{partition}:kms:{region}:{account_id}:key/{key_id}`// or `aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}`KekUristring `json:"kekUri,omitempty"`// KeyType: Required. The type of algorithm used to encrypt the data.//// Possible values://   "KEY_TYPE_UNSPECIFIED" - Unspecified key type. Should never be used.//   "XCHACHA20_POLY1305" - Algorithm XChaCha20-Poly1305KeyTypestring `json:"keyType,omitempty"`// RoleArn: Required. The Amazon Resource Name of the IAM Role to assume for// KMS decryption access. Should be in the format of// `arn:{partition}:iam::{account_id}:role/{role_name}`RoleArnstring `json:"roleArn,omitempty"`// ForceSendFields is a list of field names (e.g. "EncryptedDek") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EncryptedDek") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AwsWrappedKeyInfo: A data encryption key wrapped by an AWS KMS key.

func (AwsWrappedKeyInfo)MarshalJSONadded inv0.256.0

func (sAwsWrappedKeyInfo) MarshalJSON() ([]byte,error)

typeCartData

type CartData struct {// Items: Optional. The list of items associated with the event.Items []*Item `json:"items,omitempty"`// MerchantFeedLabel: Optional. The Merchant Center feed label associated with// the feed of the items.MerchantFeedLabelstring `json:"merchantFeedLabel,omitempty"`// MerchantFeedLanguageCode: Optional. The language code in ISO 639-1// associated with the Merchant Center feed of the items.where your items are// uploaded.MerchantFeedLanguageCodestring `json:"merchantFeedLanguageCode,omitempty"`// MerchantId: Optional. The Merchant Center ID associated with the items.MerchantIdstring `json:"merchantId,omitempty"`// TransactionDiscount: Optional. The sum of all discounts associated with the// transaction.TransactionDiscountfloat64 `json:"transactionDiscount,omitempty"`// ForceSendFields is a list of field names (e.g. "Items") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CartData: The cart data associated with the event.

func (CartData)MarshalJSON

func (sCartData) MarshalJSON() ([]byte,error)

func (*CartData)UnmarshalJSON

func (s *CartData) UnmarshalJSON(data []byte)error

typeConsent

type Consent struct {// AdPersonalization: Optional. Represents if the user consents to ad// personalization.//// Possible values://   "CONSENT_STATUS_UNSPECIFIED" - Not specified.//   "CONSENT_GRANTED" - Granted.//   "CONSENT_DENIED" - Denied.AdPersonalizationstring `json:"adPersonalization,omitempty"`// AdUserData: Optional. Represents if the user consents to ad user data.//// Possible values://   "CONSENT_STATUS_UNSPECIFIED" - Not specified.//   "CONSENT_GRANTED" - Granted.//   "CONSENT_DENIED" - Denied.AdUserDatastring `json:"adUserData,omitempty"`// ForceSendFields is a list of field names (e.g. "AdPersonalization") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdPersonalization") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Consent: Digital Markets Act (DMA)(//digital-markets-act.ec.europa.eu/index_en) consent settings for the user.

func (Consent)MarshalJSON

func (sConsent) MarshalJSON() ([]byte,error)

typeCustomVariable

type CustomVariable struct {// DestinationReferences: Optional. Reference string used to determine which of// the Event.destination_references the custom variable should be sent to. If// empty, the Event.destination_references will be used.DestinationReferences []string `json:"destinationReferences,omitempty"`// Value: Optional. The value to store for the custom variable.Valuestring `json:"value,omitempty"`// Variable: Optional. The name of the custom variable to set. If the variable// is not found for the given destination, it will be ignored.Variablestring `json:"variable,omitempty"`// ForceSendFields is a list of field names (e.g. "DestinationReferences") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DestinationReferences") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomVariable: Custom variable for ads conversions.

func (CustomVariable)MarshalJSON

func (sCustomVariable) MarshalJSON() ([]byte,error)

typeDestination

type Destination struct {// LinkedAccount: Optional. An account that the calling user's `login_account`// has access to, through an established account link. For example, a data// partner's `login_account` might have access to a client's `linked_account`.// The partner might use this field to send data from the `linked_account` to// another `operating_account`.LinkedAccount *ProductAccount `json:"linkedAccount,omitempty"`// LoginAccount: Optional. The account used to make this API call. To add or// remove data from the `operating_account`, this `login_account` must have// write access to the `operating_account`. For example, a manager account of// the `operating_account`, or an account with an established link to the// `operating_account`.LoginAccount *ProductAccount `json:"loginAccount,omitempty"`// OperatingAccount: Required. The account to send the data to or remove the// data from.OperatingAccount *ProductAccount `json:"operatingAccount,omitempty"`// ProductDestinationId: Required. The object within the product account to// ingest into. For example, a Google Ads audience ID, a Display & Video 360// audience ID or a Google Ads conversion action ID.ProductDestinationIdstring `json:"productDestinationId,omitempty"`// Reference: Optional. ID for this `Destination` resource, unique within the// request. Use to reference this `Destination` in the IngestEventsRequest and// IngestAudienceMembersRequest.Referencestring `json:"reference,omitempty"`// ForceSendFields is a list of field names (e.g. "LinkedAccount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LinkedAccount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Destination: The Google product you're sending data to. For example, aGoogle Ads account.

func (Destination)MarshalJSON

func (sDestination) MarshalJSON() ([]byte,error)

typeDeviceInfo

type DeviceInfo struct {// IpAddress: Optional. The IP address of the device for the given context.// **Note:** Google Ads does not support IP address matching for end users in// the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).// Add logic to conditionally exclude sharing IP addresses from users from// these regions and ensure that you provide users with clear and comprehensive// information about the data you collect on your sites, apps, and other// properties and get consent where required by law or any applicable Google// policies. See the About offline conversion imports// (https://support.google.com/google-ads/answer/2998031) page for more// details.IpAddressstring `json:"ipAddress,omitempty"`// UserAgent: Optional. The user-agent string of the device for the given// context.UserAgentstring `json:"userAgent,omitempty"`// ForceSendFields is a list of field names (e.g. "IpAddress") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IpAddress") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DeviceInfo: Information about the device being used (if any) when the eventhappened.

func (DeviceInfo)MarshalJSON

func (sDeviceInfo) MarshalJSON() ([]byte,error)

typeEncryptionInfo

type EncryptionInfo struct {// AwsWrappedKeyInfo: Amazon Web Services wrapped key information.AwsWrappedKeyInfo *AwsWrappedKeyInfo `json:"awsWrappedKeyInfo,omitempty"`// GcpWrappedKeyInfo: Google Cloud Platform wrapped key information.GcpWrappedKeyInfo *GcpWrappedKeyInfo `json:"gcpWrappedKeyInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "AwsWrappedKeyInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AwsWrappedKeyInfo") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EncryptionInfo: Encryption information for the data being ingested.

func (EncryptionInfo)MarshalJSON

func (sEncryptionInfo) MarshalJSON() ([]byte,error)

typeErrorCount

type ErrorCount struct {// Reason: The error reason of the failed records.//// Possible values://   "PROCESSING_ERROR_REASON_UNSPECIFIED" - The processing error reason is// unknown.//   "PROCESSING_ERROR_REASON_INVALID_CUSTOM_VARIABLE" - The custom variable is// invalid.//   "PROCESSING_ERROR_REASON_CUSTOM_VARIABLE_NOT_ENABLED" - The status of the// custom variable is not enabled.//   "PROCESSING_ERROR_REASON_EVENT_TOO_OLD" - The conversion is older than max// supported age.//   "PROCESSING_ERROR_REASON_DENIED_CONSENT" - The ad user data is denied,// either by the user or in the advertiser default settings.//   "PROCESSING_ERROR_REASON_NO_CONSENT" - Advertiser did not give 3P consent// for the Ads core platform services.//   "PROCESSING_ERROR_REASON_UNKNOWN_CONSENT" - The overall consent// (determined from row level consent, request level consent, and account// settings) could not be determined for this user//   "PROCESSING_ERROR_REASON_DUPLICATE_GCLID" - A conversion with the same// GCLID and conversion time already exists in the system.//   "PROCESSING_ERROR_REASON_DUPLICATE_TRANSACTION_ID" - A conversion with the// same order id and conversion action combination was already uploaded.//   "PROCESSING_ERROR_REASON_INVALID_GBRAID" - The gbraid could not be// decoded.//   "PROCESSING_ERROR_REASON_INVALID_GCLID" - The google click ID could not be// decoded.//   "PROCESSING_ERROR_REASON_INVALID_MERCHANT_ID" - Merchant id contains// non-digit characters.//   "PROCESSING_ERROR_REASON_INVALID_WBRAID" - The wbraid could not be// decoded.//   "PROCESSING_ERROR_REASON_INTERNAL_ERROR" - Internal error.//// "PROCESSING_ERROR_REASON_DESTINATION_ACCOUNT_ENHANCED_CONVERSIONS_TERMS_NOT_S// IGNED" - Enhanced conversions terms are not signed in the destination// account.//   "PROCESSING_ERROR_REASON_INVALID_EVENT" - The event is invalid.//   "PROCESSING_ERROR_REASON_INSUFFICIENT_MATCHED_TRANSACTIONS" - The matched// transactions are less than the minimum threshold.//   "PROCESSING_ERROR_REASON_INSUFFICIENT_TRANSACTIONS" - The transactions are// less than the minimum threshold.//   "PROCESSING_ERROR_REASON_INVALID_FORMAT" - The event has format error.//   "PROCESSING_ERROR_REASON_DECRYPTION_ERROR" - The event has a decryption// error.//   "PROCESSING_ERROR_REASON_DEK_DECRYPTION_ERROR" - The DEK failed to be// decrypted.//   "PROCESSING_ERROR_REASON_INVALID_WIP" - The WIP is formatted incorrectly// or the WIP does not exist.//   "PROCESSING_ERROR_REASON_INVALID_KEK" - The KEK cannot decrypt data// because it is the wrong KEK, or it does not exist.//   "PROCESSING_ERROR_REASON_WIP_AUTH_FAILED" - The WIP could not be used// because it was rejected by its attestation condition.//   "PROCESSING_ERROR_REASON_KEK_PERMISSION_DENIED" - The system did not have// the permissions needed to access the KEK.//   "PROCESSING_ERROR_REASON_AWS_AUTH_FAILED" - The system failed to// authenticate with AWS.//   "PROCESSING_ERROR_REASON_USER_IDENTIFIER_DECRYPTION_ERROR" - Failed to// decrypt the UserIdentifier data using the DEK.//   "PROCESSING_ERROR_OPERATING_ACCOUNT_MISMATCH_FOR_AD_IDENTIFIER" - The user// attempted to ingest events with an ad identifier that isn't from the// operating account's ads.Reasonstring `json:"reason,omitempty"`// RecordCount: The count of records that failed to upload for a given reason.RecordCountint64 `json:"recordCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Reason") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Reason") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ErrorCount: The error count for a given error reason.

func (ErrorCount)MarshalJSON

func (sErrorCount) MarshalJSON() ([]byte,error)

typeErrorInfo

type ErrorInfo struct {// ErrorCounts: A list of errors and counts per error reason. May not be// populated in all cases.ErrorCounts []*ErrorCount `json:"errorCounts,omitempty"`// ForceSendFields is a list of field names (e.g. "ErrorCounts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ErrorCounts") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ErrorInfo: Error counts for each type of error.

func (ErrorInfo)MarshalJSON

func (sErrorInfo) MarshalJSON() ([]byte,error)

typeEvent

type Event struct {// AdIdentifiers: Optional. Identifiers and other information used to match the// conversion event with other online activity (such as ad clicks).AdIdentifiers *AdIdentifiers `json:"adIdentifiers,omitempty"`// AdditionalEventParameters: Optional. A bucket of any event parameters// (https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events)// to be included within the event that were not already specified using other// structured fields.AdditionalEventParameters []*EventParameter `json:"additionalEventParameters,omitempty"`// CartData: Optional. Information about the transaction and items associated// with the event.CartData *CartData `json:"cartData,omitempty"`// ClientId: Optional. A unique identifier for the user instance of a web// client for this GA4 web stream.ClientIdstring `json:"clientId,omitempty"`// Consent: Optional. Information about whether the associated user has// provided different types of consent.Consent *Consent `json:"consent,omitempty"`// ConversionValue: Optional. The conversion value associated with the event,// for value-based conversions.ConversionValuefloat64 `json:"conversionValue,omitempty"`// Currency: Optional. The currency code associated with all monetary values// within this event.Currencystring `json:"currency,omitempty"`// CustomVariables: Optional. Additional key/value pair information to send to// the conversion containers (conversion action or FL activity).CustomVariables []*CustomVariable `json:"customVariables,omitempty"`// DestinationReferences: Optional. Reference string used to determine the// destination. If empty, the event will be sent to all destinations in the// request.DestinationReferences []string `json:"destinationReferences,omitempty"`// EventDeviceInfo: Optional. Information gathered about the device being used// (if any) when the event happened.EventDeviceInfo *DeviceInfo `json:"eventDeviceInfo,omitempty"`// EventName: Optional. The name of the event. Required for GA4 events.EventNamestring `json:"eventName,omitempty"`// EventSource: Optional. Signal for where the event happened (web, app,// in-store, etc.).//// Possible values://   "EVENT_SOURCE_UNSPECIFIED" - Unspecified EventSource. Should never be// used.//   "WEB" - The event was generated from a web browser.//   "APP" - The event was generated from an app.//   "IN_STORE" - The event was generated from an in-store transaction.//   "PHONE" - The event was generated from a phone call.//   "OTHER" - The event was generated from other sources.EventSourcestring `json:"eventSource,omitempty"`// EventTimestamp: Required. The time the event occurred.EventTimestampstring `json:"eventTimestamp,omitempty"`// ExperimentalFields: Optional. A list of key/value pairs for experimental// fields that may eventually be promoted to be part of the API.ExperimentalFields []*ExperimentalField `json:"experimentalFields,omitempty"`// LastUpdatedTimestamp: Optional. The last time the event was updated.LastUpdatedTimestampstring `json:"lastUpdatedTimestamp,omitempty"`// TransactionId: Optional. The unique identifier for this event. Required for// conversions using multiple data sources.TransactionIdstring `json:"transactionId,omitempty"`// UserData: Optional. Pieces of user provided data, representing the user the// event is associated with.UserData *UserData `json:"userData,omitempty"`// UserId: Optional. A unique identifier for a user, as defined by the// advertiser.UserIdstring `json:"userId,omitempty"`// UserProperties: Optional. Advertiser-assessed information about the user at// the time that the event happened.UserProperties *UserProperties `json:"userProperties,omitempty"`// ForceSendFields is a list of field names (e.g. "AdIdentifiers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdIdentifiers") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Event: An event representing a user interaction with an advertiser's websiteor app.

func (Event)MarshalJSON

func (sEvent) MarshalJSON() ([]byte,error)

func (*Event)UnmarshalJSON

func (s *Event) UnmarshalJSON(data []byte)error

typeEventParameteradded inv0.256.0

type EventParameter struct {// ParameterName: Required. The name of the parameter to use.ParameterNamestring `json:"parameterName,omitempty"`// Value: Required. The string representation of the value of the parameter to// set.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "ParameterName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ParameterName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EventParameter: Event parameter for GA4 events.

func (EventParameter)MarshalJSONadded inv0.256.0

func (sEventParameter) MarshalJSON() ([]byte,error)

typeEventsIngestCall

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

func (*EventsIngestCall)Context

Context sets the context to be used in this call's Do method.

func (*EventsIngestCall)Do

Do executes the "datamanager.events.ingest" call.Any non-2xx status code is an error. Response headers are in either*IngestEventsResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*EventsIngestCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EventsIngestCall)Header

func (c *EventsIngestCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEventsService

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

funcNewEventsService

func NewEventsService(s *Service) *EventsService

func (*EventsService)Ingest

func (r *EventsService) Ingest(ingesteventsrequest *IngestEventsRequest) *EventsIngestCall

Ingest: Uploads a list of Event resources from the provided Destination.

typeExperimentalField

type ExperimentalField struct {// Field: Optional. The name of the field to use.Fieldstring `json:"field,omitempty"`// Value: Optional. The value the field to set.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Field") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Field") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ExperimentalField: Experimental field representing unofficial fields.

func (ExperimentalField)MarshalJSON

func (sExperimentalField) MarshalJSON() ([]byte,error)

typeGcpWrappedKeyInfo

type GcpWrappedKeyInfo struct {// EncryptedDek: Required. The base64 encoded encrypted data encryption key.EncryptedDekstring `json:"encryptedDek,omitempty"`// KekUri: Required. Google Cloud Platform Cloud Key Management Service// resource ID (//cloud.google.com/kms/docs/getting-resource-ids). Should be in// the format of// `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}// ` or// `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/crypto// Keys/{key}`KekUristring `json:"kekUri,omitempty"`// KeyType: Required. The type of algorithm used to encrypt the data.//// Possible values://   "KEY_TYPE_UNSPECIFIED" - Unspecified key type. Should never be used.//   "XCHACHA20_POLY1305" - Algorithm XChaCha20-Poly1305KeyTypestring `json:"keyType,omitempty"`// WipProvider: Required. The Workload Identity// (//cloud.google.com/iam/docs/workload-identity-federation) pool provider// required to use KEK.WipProviderstring `json:"wipProvider,omitempty"`// ForceSendFields is a list of field names (e.g. "EncryptedDek") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EncryptedDek") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GcpWrappedKeyInfo: Information about the Google Cloud Platform wrapped key.

func (GcpWrappedKeyInfo)MarshalJSON

func (sGcpWrappedKeyInfo) MarshalJSON() ([]byte,error)

typeIngestAudienceMembersRequest

type IngestAudienceMembersRequest struct {// AudienceMembers: Required. The list of users to send to the specified// destinations. At most 10000 AudienceMember resources can be sent in a single// request.AudienceMembers []*AudienceMember `json:"audienceMembers,omitempty"`// Consent: Optional. Request-level consent to apply to all users in the// request. User-level consent overrides request-level consent, and can be// specified in each AudienceMember.Consent *Consent `json:"consent,omitempty"`// Destinations: Required. The list of destinations to send the audience// members to.Destinations []*Destination `json:"destinations,omitempty"`// Encoding: Optional. Required for UserData uploads. The encoding type of the// user identifiers. For hashed user identifiers, this is the encoding type of// the hashed string. For encrypted hashed user identifiers, this is the// encoding type of the outer encrypted string, but not necessarily the inner// hashed string, meaning the inner hashed string could be encoded in a// different way than the outer encrypted string. For non `UserData` uploads,// this field is ignored.//// Possible values://   "ENCODING_UNSPECIFIED" - Unspecified Encoding type. Should never be used.//   "HEX" - Hex encoding.//   "BASE64" - Base 64 encoding.Encodingstring `json:"encoding,omitempty"`// EncryptionInfo: Optional. Encryption information for UserData uploads. If// not set, it's assumed that uploaded identifying information is hashed but// not encrypted. For non `UserData` uploads, this field is ignored.EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`// TermsOfService: Optional. The terms of service that the user has// accepted/rejected.TermsOfService *TermsOfService `json:"termsOfService,omitempty"`// ValidateOnly: Optional. For testing purposes. If `true`, the request is// validated but not executed. Only errors are returned, not results.ValidateOnlybool `json:"validateOnly,omitempty"`// ForceSendFields is a list of field names (e.g. "AudienceMembers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudienceMembers") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestAudienceMembersRequest: Request to upload audience members to theprovided destinations. Returns an IngestAudienceMembersResponse.

func (IngestAudienceMembersRequest)MarshalJSON

func (sIngestAudienceMembersRequest) MarshalJSON() ([]byte,error)

typeIngestAudienceMembersResponse

type IngestAudienceMembersResponse struct {// RequestId: The auto-generated ID of the request.RequestIdstring `json:"requestId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "RequestId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RequestId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestAudienceMembersResponse: Response from theIngestAudienceMembersRequest.

func (IngestAudienceMembersResponse)MarshalJSON

func (sIngestAudienceMembersResponse) MarshalJSON() ([]byte,error)

typeIngestAudienceMembersStatus

type IngestAudienceMembersStatus struct {// MobileDataIngestionStatus: The status of the mobile data ingestion to the// destination.MobileDataIngestionStatus *IngestMobileDataStatus `json:"mobileDataIngestionStatus,omitempty"`// PairDataIngestionStatus: The status of the pair data ingestion to the// destination.PairDataIngestionStatus *IngestPairDataStatus `json:"pairDataIngestionStatus,omitempty"`// UserDataIngestionStatus: The status of the user data ingestion to the// destination.UserDataIngestionStatus *IngestUserDataStatus `json:"userDataIngestionStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "MobileDataIngestionStatus")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MobileDataIngestionStatus") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestAudienceMembersStatus: The status of the ingest audience membersrequest.

func (IngestAudienceMembersStatus)MarshalJSON

func (sIngestAudienceMembersStatus) MarshalJSON() ([]byte,error)

typeIngestEventsRequest

type IngestEventsRequest struct {// Consent: Optional. Request-level consent to apply to all users in the// request. User-level consent overrides request-level consent, and can be// specified in each Event.Consent *Consent `json:"consent,omitempty"`// Destinations: Required. The list of destinations to send the events to.Destinations []*Destination `json:"destinations,omitempty"`// Encoding: Optional. Required for UserData uploads. The encoding type of the// user identifiers. For hashed user identifiers, this is the encoding type of// the hashed string. For encrypted hashed user identifiers, this is the// encoding type of the outer encrypted string, but not necessarily the inner// hashed string, meaning the inner hashed string could be encoded in a// different way than the outer encrypted string. For non `UserData` uploads,// this field is ignored.//// Possible values://   "ENCODING_UNSPECIFIED" - Unspecified Encoding type. Should never be used.//   "HEX" - Hex encoding.//   "BASE64" - Base 64 encoding.Encodingstring `json:"encoding,omitempty"`// EncryptionInfo: Optional. Encryption information for UserData uploads. If// not set, it's assumed that uploaded identifying information is hashed but// not encrypted. For non `UserData` uploads, this field is ignored.EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`// Events: Required. The list of events to send to the specified destinations.// At most 2000 Event resources can be sent in a single request.Events []*Event `json:"events,omitempty"`// ValidateOnly: Optional. For testing purposes. If `true`, the request is// validated but not executed. Only errors are returned, not results.ValidateOnlybool `json:"validateOnly,omitempty"`// ForceSendFields is a list of field names (e.g. "Consent") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Consent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestEventsRequest: Request to upload audience members to the provideddestinations. Returns an IngestEventsResponse.

func (IngestEventsRequest)MarshalJSON

func (sIngestEventsRequest) MarshalJSON() ([]byte,error)

typeIngestEventsResponse

type IngestEventsResponse struct {// RequestId: The auto-generated ID of the request.RequestIdstring `json:"requestId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "RequestId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RequestId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestEventsResponse: Response from the IngestEventsRequest.

func (IngestEventsResponse)MarshalJSON

func (sIngestEventsResponse) MarshalJSON() ([]byte,error)

typeIngestEventsStatus

type IngestEventsStatus struct {// RecordCount: The total count of events sent in the upload request. Includes// all events in the request, regardless of whether they were successfully// ingested or not.RecordCountint64 `json:"recordCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "RecordCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RecordCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestEventsStatus: The status of the events ingestion to the destination.

func (IngestEventsStatus)MarshalJSON

func (sIngestEventsStatus) MarshalJSON() ([]byte,error)

typeIngestMobileDataStatus

type IngestMobileDataStatus struct {// MobileIdCount: The total count of mobile ids sent in the upload request for// the destination. Includes all mobile ids in the request, regardless of// whether they were successfully ingested or not.MobileIdCountint64 `json:"mobileIdCount,omitempty,string"`// RecordCount: The total count of audience members sent in the upload request// for the destination. Includes all audience members in the request,// regardless of whether they were successfully ingested or not.RecordCountint64 `json:"recordCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "MobileIdCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MobileIdCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestMobileDataStatus: The status of the mobile data ingestion to thedestination containing stats related to the ingestion.

func (IngestMobileDataStatus)MarshalJSON

func (sIngestMobileDataStatus) MarshalJSON() ([]byte,error)

typeIngestPairDataStatus

type IngestPairDataStatus struct {// PairIdCount: The total count of pair ids sent in the upload request for the// destination. Includes all pair ids in the request, regardless of whether// they were successfully ingested or not.PairIdCountint64 `json:"pairIdCount,omitempty,string"`// RecordCount: The total count of audience members sent in the upload request// for the destination. Includes all audience members in the request,// regardless of whether they were successfully ingested or not.RecordCountint64 `json:"recordCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "PairIdCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PairIdCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestPairDataStatus: The status of the pair data ingestion to thedestination containing stats related to the ingestion.

func (IngestPairDataStatus)MarshalJSON

func (sIngestPairDataStatus) MarshalJSON() ([]byte,error)

typeIngestUserDataStatus

type IngestUserDataStatus struct {// RecordCount: The total count of audience members sent in the upload request// for the destination. Includes all audience members in the request,// regardless of whether they were successfully ingested or not.RecordCountint64 `json:"recordCount,omitempty,string"`// UploadMatchRateRange: The match rate range of the upload.//// Possible values://   "MATCH_RATE_RANGE_UNKNOWN" - The match rate range is unknown.//   "MATCH_RATE_RANGE_NOT_ELIGIBLE" - The match rate range is not eligible.//   "MATCH_RATE_RANGE_LESS_THAN_20" - The match rate range is less than 20%// (in the interval `[0, 20)`).//   "MATCH_RATE_RANGE_20_TO_30" - The match rate range is between 20% and 30%// (in the interval `[20, 31)`).//   "MATCH_RATE_RANGE_31_TO_40" - The match rate range is between 31% and 40%// (in the interval `[31, 41)`).//   "MATCH_RATE_RANGE_41_TO_50" - The match rate range is between 41% and 50%// (in the interval `[41, 51)`).//   "MATCH_RATE_RANGE_51_TO_60" - The match rate range is between 51% and 60%// (in the interval `[51, 61)`.//   "MATCH_RATE_RANGE_61_TO_70" - The match rate range is between 61% and 70%// (in the interval `[61, 71)`).//   "MATCH_RATE_RANGE_71_TO_80" - The match rate range is between 71% and 80%// (in the interval `[71, 81)`).//   "MATCH_RATE_RANGE_81_TO_90" - The match rate range is between 81% and 90%// (in the interval `[81, 91)`).//   "MATCH_RATE_RANGE_91_TO_100" - The match rate range is between 91% and// 100% (in the interval `[91, 100]`).UploadMatchRateRangestring `json:"uploadMatchRateRange,omitempty"`// UserIdentifierCount: The total count of user identifiers sent in the upload// request for the destination. Includes all user identifiers in the request,// regardless of whether they were successfully ingested or not.UserIdentifierCountint64 `json:"userIdentifierCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "RecordCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RecordCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestUserDataStatus: The status of the user data ingestion to thedestination containing stats related to the ingestion.

func (IngestUserDataStatus)MarshalJSON

func (sIngestUserDataStatus) MarshalJSON() ([]byte,error)

typeItem

type Item struct {// AdditionalItemParameters: Optional. A bucket of any event parameters related// to an item// (https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events)// to be included within the event that were not already specified using other// structured fields.AdditionalItemParameters []*ItemParameter `json:"additionalItemParameters,omitempty"`// ItemId: Optional. A unique identifier to reference the item.ItemIdstring `json:"itemId,omitempty"`// MerchantProductId: Optional. The product ID within the Merchant Center// account.MerchantProductIdstring `json:"merchantProductId,omitempty"`// Quantity: Optional. The number of this item associated with the event.Quantityint64 `json:"quantity,omitempty,string"`// UnitPrice: Optional. The unit price excluding tax, shipping, and any// transaction level discounts.UnitPricefloat64 `json:"unitPrice,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalItemParameters")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalItemParameters") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Item: Represents an item in the cart associated with the event.

func (Item)MarshalJSON

func (sItem) MarshalJSON() ([]byte,error)

func (*Item)UnmarshalJSON

func (s *Item) UnmarshalJSON(data []byte)error

typeItemParameteradded inv0.256.0

type ItemParameter struct {// ParameterName: Required. The name of the parameter to use.ParameterNamestring `json:"parameterName,omitempty"`// Value: Required. The string representation of the value of the parameter to// set.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "ParameterName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ParameterName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ItemParameter: A bucket of any event parameters related to an item(https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events)to be included within the event that were not already specified using otherstructured fields.

func (ItemParameter)MarshalJSONadded inv0.256.0

func (sItemParameter) MarshalJSON() ([]byte,error)

typeMobileData

type MobileData struct {// MobileIds: Required. The list of mobile device IDs (advertising ID/IDFA). At// most 10 `mobileIds` can be provided in a single AudienceMember.MobileIds []string `json:"mobileIds,omitempty"`// ForceSendFields is a list of field names (e.g. "MobileIds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MobileIds") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MobileData: Mobile IDs for the audience. At least one mobile ID is required.

func (MobileData)MarshalJSON

func (sMobileData) MarshalJSON() ([]byte,error)

typePairData

type PairData struct {// PairIds: Required. Cleanroom-provided PII data, hashed with SHA256, and// encrypted with an EC commutative cipher using publisher key for the PAIR// ((//support.google.com/admanager/answer/15067908)) user list. At most 10// `pairIds` can be provided in a single AudienceMember.PairIds []string `json:"pairIds,omitempty"`// ForceSendFields is a list of field names (e.g. "PairIds") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PairIds") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PairData: PAIR (//support.google.com/admanager/answer/15067908) IDs for theaudience. At least one PAIR ID is required.

func (PairData)MarshalJSON

func (sPairData) MarshalJSON() ([]byte,error)

typeProductAccount

type ProductAccount struct {// AccountId: Required. The ID of the account. For example, your Google Ads// account ID.AccountIdstring `json:"accountId,omitempty"`// AccountType: Optional. The type of the account. For example, `GOOGLE_ADS`.// Either `account_type` or the deprecated `product` is required. If both are// set, the values must match.//// Possible values://   "ACCOUNT_TYPE_UNSPECIFIED" - Unspecified product. Should never be used.//   "GOOGLE_ADS" - Google Ads.//   "DISPLAY_VIDEO_PARTNER" - Display & Video 360 partner.//   "DISPLAY_VIDEO_ADVERTISER" - Display & Video 360 advertiser.//   "DATA_PARTNER" - Data Partner.//   "GOOGLE_ANALYTICS_PROPERTY" - Google Analytics.AccountTypestring `json:"accountType,omitempty"`// Product: Deprecated. Use `account_type` instead.//// Possible values://   "PRODUCT_UNSPECIFIED" - Unspecified product. Should never be used.//   "GOOGLE_ADS" - Google Ads.//   "DISPLAY_VIDEO_PARTNER" - Display & Video 360 partner.//   "DISPLAY_VIDEO_ADVERTISER" - Display & Video 360 advertiser.//   "DATA_PARTNER" - Data Partner.Productstring `json:"product,omitempty"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductAccount: Represents a specific account.

func (ProductAccount)MarshalJSON

func (sProductAccount) MarshalJSON() ([]byte,error)

typeRemoveAudienceMembersRequest

type RemoveAudienceMembersRequest struct {// AudienceMembers: Required. The list of users to remove.AudienceMembers []*AudienceMember `json:"audienceMembers,omitempty"`// Destinations: Required. The list of destinations to remove the users from.Destinations []*Destination `json:"destinations,omitempty"`// Encoding: Optional. Required for UserData uploads. The encoding type of the// user identifiers. Applies to only the outer encoding for encrypted user// identifiers. For non `UserData` uploads, this field is ignored.//// Possible values://   "ENCODING_UNSPECIFIED" - Unspecified Encoding type. Should never be used.//   "HEX" - Hex encoding.//   "BASE64" - Base 64 encoding.Encodingstring `json:"encoding,omitempty"`// EncryptionInfo: Optional. Encryption information for UserData uploads. If// not set, it's assumed that uploaded identifying information is hashed but// not encrypted. For non `UserData` uploads, this field is ignored.EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`// ValidateOnly: Optional. For testing purposes. If `true`, the request is// validated but not executed. Only errors are returned, not results.ValidateOnlybool `json:"validateOnly,omitempty"`// ForceSendFields is a list of field names (e.g. "AudienceMembers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudienceMembers") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemoveAudienceMembersRequest: Request to remove users from an audience inthe provided destinations. Returns a RemoveAudienceMembersResponse.

func (RemoveAudienceMembersRequest)MarshalJSON

func (sRemoveAudienceMembersRequest) MarshalJSON() ([]byte,error)

typeRemoveAudienceMembersResponse

type RemoveAudienceMembersResponse struct {// RequestId: The auto-generated ID of the request.RequestIdstring `json:"requestId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "RequestId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RequestId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemoveAudienceMembersResponse: Response from theRemoveAudienceMembersRequest.

func (RemoveAudienceMembersResponse)MarshalJSON

func (sRemoveAudienceMembersResponse) MarshalJSON() ([]byte,error)

typeRemoveAudienceMembersStatus

type RemoveAudienceMembersStatus struct {// MobileDataRemovalStatus: The status of the mobile data removal from the// destination.MobileDataRemovalStatus *RemoveMobileDataStatus `json:"mobileDataRemovalStatus,omitempty"`// PairDataRemovalStatus: The status of the pair data removal from the// destination.PairDataRemovalStatus *RemovePairDataStatus `json:"pairDataRemovalStatus,omitempty"`// UserDataRemovalStatus: The status of the user data removal from the// destination.UserDataRemovalStatus *RemoveUserDataStatus `json:"userDataRemovalStatus,omitempty"`// ForceSendFields is a list of field names (e.g. "MobileDataRemovalStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MobileDataRemovalStatus") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemoveAudienceMembersStatus: The status of the remove audience membersrequest.

func (RemoveAudienceMembersStatus)MarshalJSON

func (sRemoveAudienceMembersStatus) MarshalJSON() ([]byte,error)

typeRemoveMobileDataStatus

type RemoveMobileDataStatus struct {// MobileIdCount: The total count of mobile Ids sent in the removal request.// Includes all mobile ids in the request, regardless of whether they were// successfully removed or not.MobileIdCountint64 `json:"mobileIdCount,omitempty,string"`// RecordCount: The total count of audience members sent in the removal// request. Includes all audience members in the request, regardless of whether// they were successfully removed or not.RecordCountint64 `json:"recordCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "MobileIdCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MobileIdCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemoveMobileDataStatus: The status of the mobile data removal from thedestination.

func (RemoveMobileDataStatus)MarshalJSON

func (sRemoveMobileDataStatus) MarshalJSON() ([]byte,error)

typeRemovePairDataStatus

type RemovePairDataStatus struct {// PairIdCount: The total count of pair ids sent in the removal request.// Includes all pair ids in the request, regardless of whether they were// successfully removed or not.PairIdCountint64 `json:"pairIdCount,omitempty,string"`// RecordCount: The total count of audience members sent in the removal// request. Includes all audience members in the request, regardless of whether// they were successfully removed or not.RecordCountint64 `json:"recordCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "PairIdCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PairIdCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemovePairDataStatus: The status of the pair data removal from thedestination.

func (RemovePairDataStatus)MarshalJSON

func (sRemovePairDataStatus) MarshalJSON() ([]byte,error)

typeRemoveUserDataStatus

type RemoveUserDataStatus struct {// RecordCount: The total count of audience members sent in the removal// request. Includes all audience members in the request, regardless of whether// they were successfully removed or not.RecordCountint64 `json:"recordCount,omitempty,string"`// UserIdentifierCount: The total count of user identifiers sent in the removal// request. Includes all user identifiers in the request, regardless of whether// they were successfully removed or not.UserIdentifierCountint64 `json:"userIdentifierCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "RecordCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RecordCount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemoveUserDataStatus: The status of the user data removal from thedestination.

func (RemoveUserDataStatus)MarshalJSON

func (sRemoveUserDataStatus) MarshalJSON() ([]byte,error)

typeRequestStatusPerDestination

type RequestStatusPerDestination struct {// AudienceMembersIngestionStatus: The status of the ingest audience members// request.AudienceMembersIngestionStatus *IngestAudienceMembersStatus `json:"audienceMembersIngestionStatus,omitempty"`// AudienceMembersRemovalStatus: The status of the remove audience members// request.AudienceMembersRemovalStatus *RemoveAudienceMembersStatus `json:"audienceMembersRemovalStatus,omitempty"`// Destination: A destination within a DM API request.Destination *Destination `json:"destination,omitempty"`// ErrorInfo: An error info error containing the error reason and error counts// related to the upload.ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"`// EventsIngestionStatus: The status of the ingest events request.EventsIngestionStatus *IngestEventsStatus `json:"eventsIngestionStatus,omitempty"`// RequestStatus: The request status of the destination.//// Possible values://   "REQUEST_STATUS_UNKNOWN" - The request status is unknown.//   "SUCCESS" - The request succeeded.//   "PROCESSING" - The request is processing.//   "FAILED" - The request failed.//   "PARTIAL_SUCCESS" - The request partially succeeded.RequestStatusstring `json:"requestStatus,omitempty"`// WarningInfo: A warning info containing the warning reason and warning counts// related to the upload.WarningInfo *WarningInfo `json:"warningInfo,omitempty"`// ForceSendFields is a list of field names (e.g.// "AudienceMembersIngestionStatus") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudienceMembersIngestionStatus")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RequestStatusPerDestination: A request status per destination.

func (RequestStatusPerDestination)MarshalJSON

func (sRequestStatusPerDestination) MarshalJSON() ([]byte,error)

typeRequestStatusRetrieveCall

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

func (*RequestStatusRetrieveCall)Context

Context sets the context to be used in this call's Do method.

func (*RequestStatusRetrieveCall)Do

Do executes the "datamanager.requestStatus.retrieve" call.Any non-2xx status code is an error. Response headers are in either*RetrieveRequestStatusResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*RequestStatusRetrieveCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RequestStatusRetrieveCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*RequestStatusRetrieveCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*RequestStatusRetrieveCall)RequestId

RequestId sets the optional parameter "requestId": Required. Required. Therequest ID of the Data Manager API request.

typeRequestStatusService

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

funcNewRequestStatusService

func NewRequestStatusService(s *Service) *RequestStatusService

func (*RequestStatusService)Retrieve

Retrieve: Gets the status of a request given request id.

typeRetrieveRequestStatusResponse

type RetrieveRequestStatusResponse struct {// RequestStatusPerDestination: A list of request statuses per destination. The// order of the statuses matches the order of the destinations in the original// request.RequestStatusPerDestination []*RequestStatusPerDestination `json:"requestStatusPerDestination,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "RequestStatusPerDestination") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RequestStatusPerDestination") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RetrieveRequestStatusResponse: Response from theRetrieveRequestStatusRequest.

func (RetrieveRequestStatusResponse)MarshalJSON

func (sRetrieveRequestStatusResponse) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentAudienceMembers *AudienceMembersServiceEvents *EventsServiceRequestStatus *RequestStatusService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewService

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeTermsOfService

type TermsOfService struct {// CustomerMatchTermsOfServiceStatus: Optional. The Customer Match terms of// service:https://support.google.com/adspolicy/answer/6299717. This must be// accepted when ingesting UserData or MobileData. This field is not required// for Partner Match User list.//// Possible values://   "TERMS_OF_SERVICE_STATUS_UNSPECIFIED" - Not specified.//   "ACCEPTED" - Status indicating the caller has chosen to accept the terms// of service.//   "REJECTED" - Status indicating the caller has chosen to reject the terms// of service.CustomerMatchTermsOfServiceStatusstring `json:"customerMatchTermsOfServiceStatus,omitempty"`// ForceSendFields is a list of field names (e.g.// "CustomerMatchTermsOfServiceStatus") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "CustomerMatchTermsOfServiceStatus") to include in API requests with the// JSON null value. By default, fields with empty values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields for// more details.NullFields []string `json:"-"`}

TermsOfService: The terms of service that the user has accepted/rejected.

func (TermsOfService)MarshalJSON

func (sTermsOfService) MarshalJSON() ([]byte,error)

typeUserData

type UserData struct {// UserIdentifiers: Required. The identifiers for the user. It's possible to// provide multiple instances of the same type of data (for example, multiple// email addresses). To increase the likelihood of a match, provide as many// identifiers as possible. At most 10 `userIdentifiers` can be provided in a// single AudienceMember or Event.UserIdentifiers []*UserIdentifier `json:"userIdentifiers,omitempty"`// ForceSendFields is a list of field names (e.g. "UserIdentifiers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UserIdentifiers") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserData: Data that identifies the user. At least one identifier isrequired.

func (UserData)MarshalJSON

func (sUserData) MarshalJSON() ([]byte,error)

typeUserIdentifier

type UserIdentifier struct {// Address: The known components of a user's address. Holds a grouping of// identifiers that are matched all at once.Address *AddressInfo `json:"address,omitempty"`// EmailAddress: Hashed email address using SHA-256 hash function after// normalization.EmailAddressstring `json:"emailAddress,omitempty"`// PhoneNumber: Hashed phone number using SHA-256 hash function after// normalization (E164 standard).PhoneNumberstring `json:"phoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "Address") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserIdentifier: A single identifier for the user.

func (UserIdentifier)MarshalJSON

func (sUserIdentifier) MarshalJSON() ([]byte,error)

typeUserProperties

type UserProperties struct {// AdditionalUserProperties: Optional. A bucket of any additional user// properties// (https://developers.google.com/analytics/devguides/collection/protocol/ga4/user-properties)// for the user associated with this event.AdditionalUserProperties []*UserProperty `json:"additionalUserProperties,omitempty"`// CustomerType: Optional. Type of the customer associated with the event.//// Possible values://   "CUSTOMER_TYPE_UNSPECIFIED" - Unspecified CustomerType. Should never be// used.//   "NEW" - The customer is new to the advertiser.//   "RETURNING" - The customer is returning to the advertiser.//   "REENGAGED" - The customer has re-engaged with the advertiser.CustomerTypestring `json:"customerType,omitempty"`// CustomerValueBucket: Optional. The advertiser-assessed value of the// customer.//// Possible values://   "CUSTOMER_VALUE_BUCKET_UNSPECIFIED" - Unspecified CustomerValueBucket.// Should never be used.//   "LOW" - The customer is low value.//   "MEDIUM" - The customer is medium value.//   "HIGH" - The customer is high value.CustomerValueBucketstring `json:"customerValueBucket,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalUserProperties")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalUserProperties") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserProperties: Advertiser-assessed information about the user at the timethat the event happened. Seehttps://support.google.com/google-ads/answer/14007601 for more details.

func (UserProperties)MarshalJSON

func (sUserProperties) MarshalJSON() ([]byte,error)

typeUserPropertyadded inv0.256.0

type UserProperty struct {// PropertyName: Required. The name of the user property to use.PropertyNamestring `json:"propertyName,omitempty"`// Value: Required. The string representation of the value of the user property// to use.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "PropertyName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PropertyName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserProperty: A bucket of any additional user properties(https://developers.google.com/analytics/devguides/collection/protocol/ga4/user-properties)for the user associated with this event.

func (UserProperty)MarshalJSONadded inv0.256.0

func (sUserProperty) MarshalJSON() ([]byte,error)

typeWarningCount

type WarningCount struct {// Reason: The warning reason.//// Possible values://   "PROCESSING_WARNING_REASON_UNSPECIFIED" - The processing warning reason is// unknown.//   "PROCESSING_WARNING_REASON_KEK_PERMISSION_DENIED" - The system did not// have the permissions needed to access the KEK.//   "PROCESSING_WARNING_REASON_DEK_DECRYPTION_ERROR" - The DEK failed to be// decrypted.//   "PROCESSING_WARNING_REASON_DECRYPTION_ERROR" - The event has a decryption// error.//   "PROCESSING_WARNING_REASON_WIP_AUTH_FAILED" - The WIP could not be used// because it was rejected by its attestation condition.//   "PROCESSING_WARNING_REASON_INVALID_WIP" - The WIP is formatted incorrectly// or the WIP does not exist.//   "PROCESSING_WARNING_REASON_INVALID_KEK" - The KEK cannot decrypt data// because it is the wrong KEK, or it does not exist.//   "PROCESSING_WARNING_REASON_USER_IDENTIFIER_DECRYPTION_ERROR" - Failed to// decrypt th UserIdentifier data using the DEK.//   "PROCESSING_WARNING_REASON_INTERNAL_ERROR" - Internal error.//   "PROCESSING_WARNING_REASON_AWS_AUTH_FAILED" - The system failed to// authenticate with AWS.Reasonstring `json:"reason,omitempty"`// RecordCount: The count of records that have a warning.RecordCountint64 `json:"recordCount,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Reason") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Reason") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

WarningCount: The warning count for a given warning reason.

func (WarningCount)MarshalJSON

func (sWarningCount) MarshalJSON() ([]byte,error)

typeWarningInfo

type WarningInfo struct {// WarningCounts: A list of warnings and counts per warning reason.WarningCounts []*WarningCount `json:"warningCounts,omitempty"`// ForceSendFields is a list of field names (e.g. "WarningCounts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "WarningCounts") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

WarningInfo: Warning counts for each type of warning.

func (WarningInfo)MarshalJSON

func (sWarningInfo) MarshalJSON() ([]byte,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp