Documentation ¶
Index ¶
- Variables
- func RegisterConversionSourcesServiceServer(s *grpc.Server, srv ConversionSourcesServiceServer)
- type AttributionSettings
- func (*AttributionSettings) Descriptor() ([]byte, []int)deprecated
- func (x *AttributionSettings) GetAttributionLookbackWindowDays() int32
- func (x *AttributionSettings) GetAttributionModel() AttributionSettings_AttributionModel
- func (x *AttributionSettings) GetConversionType() []*AttributionSettings_ConversionType
- func (*AttributionSettings) ProtoMessage()
- func (x *AttributionSettings) ProtoReflect() protoreflect.Message
- func (x *AttributionSettings) Reset()
- func (x *AttributionSettings) String() string
- type AttributionSettings_AttributionModel
- func (AttributionSettings_AttributionModel) Descriptor() protoreflect.EnumDescriptor
- func (x AttributionSettings_AttributionModel) Enum() *AttributionSettings_AttributionModel
- func (AttributionSettings_AttributionModel) EnumDescriptor() ([]byte, []int)deprecated
- func (x AttributionSettings_AttributionModel) Number() protoreflect.EnumNumber
- func (x AttributionSettings_AttributionModel) String() string
- func (AttributionSettings_AttributionModel) Type() protoreflect.EnumType
- type AttributionSettings_ConversionType
- func (*AttributionSettings_ConversionType) Descriptor() ([]byte, []int)deprecated
- func (x *AttributionSettings_ConversionType) GetName() string
- func (x *AttributionSettings_ConversionType) GetReport() bool
- func (*AttributionSettings_ConversionType) ProtoMessage()
- func (x *AttributionSettings_ConversionType) ProtoReflect() protoreflect.Message
- func (x *AttributionSettings_ConversionType) Reset()
- func (x *AttributionSettings_ConversionType) String() string
- type ConversionSource
- func (*ConversionSource) Descriptor() ([]byte, []int)deprecated
- func (x *ConversionSource) GetController() ConversionSource_Controller
- func (x *ConversionSource) GetExpireTime() *timestamppb.Timestamp
- func (x *ConversionSource) GetGoogleAnalyticsLink() *GoogleAnalyticsLink
- func (x *ConversionSource) GetMerchantCenterDestination() *MerchantCenterDestination
- func (x *ConversionSource) GetName() string
- func (m *ConversionSource) GetSourceData() isConversionSource_SourceData
- func (x *ConversionSource) GetState() ConversionSource_State
- func (*ConversionSource) ProtoMessage()
- func (x *ConversionSource) ProtoReflect() protoreflect.Message
- func (x *ConversionSource) Reset()
- func (x *ConversionSource) String() string
- type ConversionSource_Controller
- func (ConversionSource_Controller) Descriptor() protoreflect.EnumDescriptor
- func (x ConversionSource_Controller) Enum() *ConversionSource_Controller
- func (ConversionSource_Controller) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConversionSource_Controller) Number() protoreflect.EnumNumber
- func (x ConversionSource_Controller) String() string
- func (ConversionSource_Controller) Type() protoreflect.EnumType
- type ConversionSource_GoogleAnalyticsLink
- type ConversionSource_MerchantCenterDestination
- type ConversionSource_State
- func (ConversionSource_State) Descriptor() protoreflect.EnumDescriptor
- func (x ConversionSource_State) Enum() *ConversionSource_State
- func (ConversionSource_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConversionSource_State) Number() protoreflect.EnumNumber
- func (x ConversionSource_State) String() string
- func (ConversionSource_State) Type() protoreflect.EnumType
- type ConversionSourcesServiceClient
- type ConversionSourcesServiceServer
- type CreateConversionSourceRequest
- func (*CreateConversionSourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateConversionSourceRequest) GetConversionSource() *ConversionSource
- func (x *CreateConversionSourceRequest) GetParent() string
- func (*CreateConversionSourceRequest) ProtoMessage()
- func (x *CreateConversionSourceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateConversionSourceRequest) Reset()
- func (x *CreateConversionSourceRequest) String() string
- type DeleteConversionSourceRequest
- func (*DeleteConversionSourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteConversionSourceRequest) GetName() string
- func (*DeleteConversionSourceRequest) ProtoMessage()
- func (x *DeleteConversionSourceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteConversionSourceRequest) Reset()
- func (x *DeleteConversionSourceRequest) String() string
- type GetConversionSourceRequest
- func (*GetConversionSourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConversionSourceRequest) GetName() string
- func (*GetConversionSourceRequest) ProtoMessage()
- func (x *GetConversionSourceRequest) ProtoReflect() protoreflect.Message
- func (x *GetConversionSourceRequest) Reset()
- func (x *GetConversionSourceRequest) String() string
- type GoogleAnalyticsLink
- func (*GoogleAnalyticsLink) Descriptor() ([]byte, []int)deprecated
- func (x *GoogleAnalyticsLink) GetAttributionSettings() *AttributionSettings
- func (x *GoogleAnalyticsLink) GetProperty() string
- func (x *GoogleAnalyticsLink) GetPropertyId() int64
- func (*GoogleAnalyticsLink) ProtoMessage()
- func (x *GoogleAnalyticsLink) ProtoReflect() protoreflect.Message
- func (x *GoogleAnalyticsLink) Reset()
- func (x *GoogleAnalyticsLink) String() string
- type ListConversionSourcesRequest
- func (*ListConversionSourcesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListConversionSourcesRequest) GetPageSize() int32
- func (x *ListConversionSourcesRequest) GetPageToken() string
- func (x *ListConversionSourcesRequest) GetParent() string
- func (x *ListConversionSourcesRequest) GetShowDeleted() bool
- func (*ListConversionSourcesRequest) ProtoMessage()
- func (x *ListConversionSourcesRequest) ProtoReflect() protoreflect.Message
- func (x *ListConversionSourcesRequest) Reset()
- func (x *ListConversionSourcesRequest) String() string
- type ListConversionSourcesResponse
- func (*ListConversionSourcesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListConversionSourcesResponse) GetConversionSources() []*ConversionSource
- func (x *ListConversionSourcesResponse) GetNextPageToken() string
- func (*ListConversionSourcesResponse) ProtoMessage()
- func (x *ListConversionSourcesResponse) ProtoReflect() protoreflect.Message
- func (x *ListConversionSourcesResponse) Reset()
- func (x *ListConversionSourcesResponse) String() string
- type MerchantCenterDestination
- func (*MerchantCenterDestination) Descriptor() ([]byte, []int)deprecated
- func (x *MerchantCenterDestination) GetAttributionSettings() *AttributionSettings
- func (x *MerchantCenterDestination) GetCurrencyCode() string
- func (x *MerchantCenterDestination) GetDestination() string
- func (x *MerchantCenterDestination) GetDisplayName() string
- func (*MerchantCenterDestination) ProtoMessage()
- func (x *MerchantCenterDestination) ProtoReflect() protoreflect.Message
- func (x *MerchantCenterDestination) Reset()
- func (x *MerchantCenterDestination) String() string
- type UndeleteConversionSourceRequest
- func (*UndeleteConversionSourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UndeleteConversionSourceRequest) GetName() string
- func (*UndeleteConversionSourceRequest) ProtoMessage()
- func (x *UndeleteConversionSourceRequest) ProtoReflect() protoreflect.Message
- func (x *UndeleteConversionSourceRequest) Reset()
- func (x *UndeleteConversionSourceRequest) String() string
- type UnimplementedConversionSourcesServiceServer
- func (*UnimplementedConversionSourcesServiceServer) CreateConversionSource(context.Context, *CreateConversionSourceRequest) (*ConversionSource, error)
- func (*UnimplementedConversionSourcesServiceServer) DeleteConversionSource(context.Context, *DeleteConversionSourceRequest) (*emptypb.Empty, error)
- func (*UnimplementedConversionSourcesServiceServer) GetConversionSource(context.Context, *GetConversionSourceRequest) (*ConversionSource, error)
- func (*UnimplementedConversionSourcesServiceServer) ListConversionSources(context.Context, *ListConversionSourcesRequest) (*ListConversionSourcesResponse, error)
- func (*UnimplementedConversionSourcesServiceServer) UndeleteConversionSource(context.Context, *UndeleteConversionSourceRequest) (*ConversionSource, error)
- func (*UnimplementedConversionSourcesServiceServer) UpdateConversionSource(context.Context, *UpdateConversionSourceRequest) (*ConversionSource, error)
- type UpdateConversionSourceRequest
- func (*UpdateConversionSourceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateConversionSourceRequest) GetConversionSource() *ConversionSource
- func (x *UpdateConversionSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateConversionSourceRequest) ProtoMessage()
- func (x *UpdateConversionSourceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateConversionSourceRequest) Reset()
- func (x *UpdateConversionSourceRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ConversionSource_State_name = map[int32]string{ 0: "STATE_UNSPECIFIED", 1: "ACTIVE", 2: "ARCHIVED", 3: "PENDING", } ConversionSource_State_value = map[string]int32{ "STATE_UNSPECIFIED": 0, "ACTIVE": 1, "ARCHIVED": 2, "PENDING": 3, } )
Enum value maps for ConversionSource_State.
var ( ConversionSource_Controller_name = map[int32]string{ 0: "CONTROLLER_UNSPECIFIED", 1: "MERCHANT", 2: "YOUTUBE_AFFILIATES", } ConversionSource_Controller_value = map[string]int32{ "CONTROLLER_UNSPECIFIED": 0, "MERCHANT": 1, "YOUTUBE_AFFILIATES": 2, } )
Enum value maps for ConversionSource_Controller.
var ( AttributionSettings_AttributionModel_name = map[int32]string{ 0: "ATTRIBUTION_MODEL_UNSPECIFIED", 1: "CROSS_CHANNEL_LAST_CLICK", 2: "ADS_PREFERRED_LAST_CLICK", 5: "CROSS_CHANNEL_DATA_DRIVEN", 6: "CROSS_CHANNEL_FIRST_CLICK", 7: "CROSS_CHANNEL_LINEAR", 8: "CROSS_CHANNEL_POSITION_BASED", 9: "CROSS_CHANNEL_TIME_DECAY", } AttributionSettings_AttributionModel_value = map[string]int32{ "ATTRIBUTION_MODEL_UNSPECIFIED": 0, "CROSS_CHANNEL_LAST_CLICK": 1, "ADS_PREFERRED_LAST_CLICK": 2, "CROSS_CHANNEL_DATA_DRIVEN": 5, "CROSS_CHANNEL_FIRST_CLICK": 6, "CROSS_CHANNEL_LINEAR": 7, "CROSS_CHANNEL_POSITION_BASED": 8, "CROSS_CHANNEL_TIME_DECAY": 9, } )
Enum value maps for AttributionSettings_AttributionModel.
var File_google_shopping_merchant_conversions_v1beta_conversionsources_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConversionSourcesServiceServer ¶
func RegisterConversionSourcesServiceServer(s *grpc.Server, srv ConversionSourcesServiceServer)
Types ¶
type AttributionSettings ¶
type AttributionSettings struct { // Required. Lookback windows (in days) used for attribution in this source. // Supported values are 7, 30, 40. AttributionLookbackWindowDays int32 `` /* 153-byte string literal not displayed */ // Required. Attribution model. AttributionModel AttributionSettings_AttributionModel `` /* 196-byte string literal not displayed */ // Immutable. Unordered list. List of different conversion types a conversion // event can be classified as. A standard "purchase" type will be // automatically created if this list is empty at creation time. ConversionType []*AttributionSettings_ConversionType `protobuf:"bytes,3,rep,name=conversion_type,json=conversionType,proto3" json:"conversion_type,omitempty"` // contains filtered or unexported fields }
Represents attribution settings for conversion sources receiving pre-attribution data.
func (*AttributionSettings) Descriptor
deprecated
func (*AttributionSettings) Descriptor() ([]byte, []int)
Deprecated: Use AttributionSettings.ProtoReflect.Descriptor instead.
func (*AttributionSettings) GetAttributionLookbackWindowDays ¶
func (x *AttributionSettings) GetAttributionLookbackWindowDays() int32
func (*AttributionSettings) GetAttributionModel ¶
func (x *AttributionSettings) GetAttributionModel() AttributionSettings_AttributionModel
func (*AttributionSettings) GetConversionType ¶
func (x *AttributionSettings) GetConversionType() []*AttributionSettings_ConversionType
func (*AttributionSettings) ProtoMessage ¶
func (*AttributionSettings) ProtoMessage()
func (*AttributionSettings) ProtoReflect ¶
func (x *AttributionSettings) ProtoReflect() protoreflect.Message
func (*AttributionSettings) Reset ¶
func (x *AttributionSettings) Reset()
func (*AttributionSettings) String ¶
func (x *AttributionSettings) String() string
type AttributionSettings_AttributionModel ¶
type AttributionSettings_AttributionModel int32
The attribution model used for this source. We support the same set of models offered by Google Analytics 4, as described in: https://support.google.com/analytics/answer/10596866.
const ( // Unspecified model. AttributionSettings_ATTRIBUTION_MODEL_UNSPECIFIED AttributionSettings_AttributionModel = 0 // Cross-channel Last Click model. AttributionSettings_CROSS_CHANNEL_LAST_CLICK AttributionSettings_AttributionModel = 1 // Ads-preferred Last Click model. AttributionSettings_ADS_PREFERRED_LAST_CLICK AttributionSettings_AttributionModel = 2 // Cross-channel Data Driven model. AttributionSettings_CROSS_CHANNEL_DATA_DRIVEN AttributionSettings_AttributionModel = 5 // Cross-channel First Click model. AttributionSettings_CROSS_CHANNEL_FIRST_CLICK AttributionSettings_AttributionModel = 6 // Cross-channel Linear model. AttributionSettings_CROSS_CHANNEL_LINEAR AttributionSettings_AttributionModel = 7 // Cross-channel Position Based model. AttributionSettings_CROSS_CHANNEL_POSITION_BASED AttributionSettings_AttributionModel = 8 // Cross-channel Time Decay model. AttributionSettings_CROSS_CHANNEL_TIME_DECAY AttributionSettings_AttributionModel = 9 )
func (AttributionSettings_AttributionModel) Descriptor ¶
func (AttributionSettings_AttributionModel) Descriptor() protoreflect.EnumDescriptor
func (AttributionSettings_AttributionModel) Enum ¶
func (x AttributionSettings_AttributionModel) Enum() *AttributionSettings_AttributionModel
func (AttributionSettings_AttributionModel) EnumDescriptor
deprecated
func (AttributionSettings_AttributionModel) EnumDescriptor() ([]byte, []int)
Deprecated: Use AttributionSettings_AttributionModel.Descriptor instead.
func (AttributionSettings_AttributionModel) Number ¶
func (x AttributionSettings_AttributionModel) Number() protoreflect.EnumNumber
func (AttributionSettings_AttributionModel) String ¶
func (x AttributionSettings_AttributionModel) String() string
func (AttributionSettings_AttributionModel) Type ¶
func (AttributionSettings_AttributionModel) Type() protoreflect.EnumType
type AttributionSettings_ConversionType ¶
type AttributionSettings_ConversionType struct { // Output only. Conversion event name, as it'll be reported by the client. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Option indicating if the type should be included in Merchant // Center reporting. Report bool `protobuf:"varint,2,opt,name=report,proto3" json:"report,omitempty"` // contains filtered or unexported fields }
Message representing a types of conversion events
func (*AttributionSettings_ConversionType) Descriptor
deprecated
func (*AttributionSettings_ConversionType) Descriptor() ([]byte, []int)
Deprecated: Use AttributionSettings_ConversionType.ProtoReflect.Descriptor instead.
func (*AttributionSettings_ConversionType) GetName ¶
func (x *AttributionSettings_ConversionType) GetName() string
func (*AttributionSettings_ConversionType) GetReport ¶
func (x *AttributionSettings_ConversionType) GetReport() bool
func (*AttributionSettings_ConversionType) ProtoMessage ¶
func (*AttributionSettings_ConversionType) ProtoMessage()
func (*AttributionSettings_ConversionType) ProtoReflect ¶
func (x *AttributionSettings_ConversionType) ProtoReflect() protoreflect.Message
func (*AttributionSettings_ConversionType) Reset ¶
func (x *AttributionSettings_ConversionType) Reset()
func (*AttributionSettings_ConversionType) String ¶
func (x *AttributionSettings_ConversionType) String() string
type ConversionSource ¶
type ConversionSource struct { // Required. // Conversion source data specific to each different type of source. // // Types that are assignable to SourceData: // // *ConversionSource_GoogleAnalyticsLink // *ConversionSource_MerchantCenterDestination SourceData isConversionSource_SourceData `protobuf_oneof:"source_data"` // Output only. Identifier. Generated by the Content API upon creation of a // new `ConversionSource`. Format: [a-z]{4}:.+ The four characters before the // colon represent the type of conversio source. Content after the colon // represents the ID of the conversion source within that type. The ID of two // different conversion sources might be the same across different types. The // following type prefixes are supported: // - galk: For GoogleAnalyticsLink sources. // - mcdn: For MerchantCenterDestination sources. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Output only. Current state of this conversion source. Can't be edited // through the API. State ConversionSource_State `` /* 136-byte string literal not displayed */ // Output only. The time when an archived conversion source becomes // permanently deleted and is no longer available to undelete. ExpireTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // Output only. Controller of the conversion source. Controller ConversionSource_Controller `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources.
func (*ConversionSource) Descriptor
deprecated
func (*ConversionSource) Descriptor() ([]byte, []int)
Deprecated: Use ConversionSource.ProtoReflect.Descriptor instead.
func (*ConversionSource) GetController ¶
func (x *ConversionSource) GetController() ConversionSource_Controller
func (*ConversionSource) GetExpireTime ¶
func (x *ConversionSource) GetExpireTime() *timestamppb.Timestamp
func (*ConversionSource) GetGoogleAnalyticsLink ¶
func (x *ConversionSource) GetGoogleAnalyticsLink() *GoogleAnalyticsLink
func (*ConversionSource) GetMerchantCenterDestination ¶
func (x *ConversionSource) GetMerchantCenterDestination() *MerchantCenterDestination
func (*ConversionSource) GetName ¶
func (x *ConversionSource) GetName() string
func (*ConversionSource) GetSourceData ¶
func (m *ConversionSource) GetSourceData() isConversionSource_SourceData
func (*ConversionSource) GetState ¶
func (x *ConversionSource) GetState() ConversionSource_State
func (*ConversionSource) ProtoMessage ¶
func (*ConversionSource) ProtoMessage()
func (*ConversionSource) ProtoReflect ¶
func (x *ConversionSource) ProtoReflect() protoreflect.Message
func (*ConversionSource) Reset ¶
func (x *ConversionSource) Reset()
func (*ConversionSource) String ¶
func (x *ConversionSource) String() string
type ConversionSource_Controller ¶
type ConversionSource_Controller int32
Entity controlling the conversion source.
const ( // Default value. This value is unused. ConversionSource_CONTROLLER_UNSPECIFIED ConversionSource_Controller = 0 // Controlled by the Merchant who owns the Conversion Source. ConversionSource_MERCHANT ConversionSource_Controller = 1 // Controlled by the YT Affiliates program. ConversionSource_YOUTUBE_AFFILIATES ConversionSource_Controller = 2 )
func (ConversionSource_Controller) Descriptor ¶
func (ConversionSource_Controller) Descriptor() protoreflect.EnumDescriptor
func (ConversionSource_Controller) Enum ¶
func (x ConversionSource_Controller) Enum() *ConversionSource_Controller
func (ConversionSource_Controller) EnumDescriptor
deprecated
func (ConversionSource_Controller) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConversionSource_Controller.Descriptor instead.
func (ConversionSource_Controller) Number ¶
func (x ConversionSource_Controller) Number() protoreflect.EnumNumber
func (ConversionSource_Controller) String ¶
func (x ConversionSource_Controller) String() string
func (ConversionSource_Controller) Type ¶
func (ConversionSource_Controller) Type() protoreflect.EnumType
type ConversionSource_GoogleAnalyticsLink ¶
type ConversionSource_GoogleAnalyticsLink struct { // Immutable. Conversion Source of type "Link to Google Analytics Property". GoogleAnalyticsLink *GoogleAnalyticsLink `protobuf:"bytes,3,opt,name=google_analytics_link,json=googleAnalyticsLink,proto3,oneof"` }
type ConversionSource_MerchantCenterDestination ¶
type ConversionSource_MerchantCenterDestination struct { // Conversion Source of type "Merchant Center Tag Destination". MerchantCenterDestination *MerchantCenterDestination `protobuf:"bytes,4,opt,name=merchant_center_destination,json=merchantCenterDestination,proto3,oneof"` }
type ConversionSource_State ¶
type ConversionSource_State int32
Represents state of the conversion source.
const ( // Conversion source has unspecified state. ConversionSource_STATE_UNSPECIFIED ConversionSource_State = 0 // Conversion source is fully functional. ConversionSource_ACTIVE ConversionSource_State = 1 // Conversion source has been archived in the last 30 days and not // currently functional. Can be restored using the undelete method. ConversionSource_ARCHIVED ConversionSource_State = 2 // Conversion source creation has started but not fully finished yet. ConversionSource_PENDING ConversionSource_State = 3 )
func (ConversionSource_State) Descriptor ¶
func (ConversionSource_State) Descriptor() protoreflect.EnumDescriptor
func (ConversionSource_State) Enum ¶
func (x ConversionSource_State) Enum() *ConversionSource_State
func (ConversionSource_State) EnumDescriptor
deprecated
func (ConversionSource_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConversionSource_State.Descriptor instead.
func (ConversionSource_State) Number ¶
func (x ConversionSource_State) Number() protoreflect.EnumNumber
func (ConversionSource_State) String ¶
func (x ConversionSource_State) String() string
func (ConversionSource_State) Type ¶
func (ConversionSource_State) Type() protoreflect.EnumType
type ConversionSourcesServiceClient ¶
type ConversionSourcesServiceClient interface { // Creates a new conversion source. CreateConversionSource(ctx context.Context, in *CreateConversionSourceRequest, opts ...grpc.CallOption) (*ConversionSource, error) // Updates information of an existing conversion source. Available only for // Merchant Center Destination conversion sources. UpdateConversionSource(ctx context.Context, in *UpdateConversionSourceRequest, opts ...grpc.CallOption) (*ConversionSource, error) // Archives an existing conversion source. If the conversion source is a // Merchant Center Destination, it will be recoverable for 30 days. If the // conversion source is a Google Analytics Link, it will be deleted // immediately and can be restored by creating a new one. DeleteConversionSource(ctx context.Context, in *DeleteConversionSourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Re-enables an archived conversion source. Only Available for Merchant // Center Destination conversion sources. UndeleteConversionSource(ctx context.Context, in *UndeleteConversionSourceRequest, opts ...grpc.CallOption) (*ConversionSource, error) // Fetches a conversion source. GetConversionSource(ctx context.Context, in *GetConversionSourceRequest, opts ...grpc.CallOption) (*ConversionSource, error) // Retrieves the list of conversion sources the caller has access to. ListConversionSources(ctx context.Context, in *ListConversionSourcesRequest, opts ...grpc.CallOption) (*ListConversionSourcesResponse, error) }
ConversionSourcesServiceClient is the client API for ConversionSourcesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConversionSourcesServiceClient ¶
func NewConversionSourcesServiceClient(cc grpc.ClientConnInterface) ConversionSourcesServiceClient
type ConversionSourcesServiceServer ¶
type ConversionSourcesServiceServer interface { // Creates a new conversion source. CreateConversionSource(context.Context, *CreateConversionSourceRequest) (*ConversionSource, error) // Updates information of an existing conversion source. Available only for // Merchant Center Destination conversion sources. UpdateConversionSource(context.Context, *UpdateConversionSourceRequest) (*ConversionSource, error) // Archives an existing conversion source. If the conversion source is a // Merchant Center Destination, it will be recoverable for 30 days. If the // conversion source is a Google Analytics Link, it will be deleted // immediately and can be restored by creating a new one. DeleteConversionSource(context.Context, *DeleteConversionSourceRequest) (*emptypb.Empty, error) // Re-enables an archived conversion source. Only Available for Merchant // Center Destination conversion sources. UndeleteConversionSource(context.Context, *UndeleteConversionSourceRequest) (*ConversionSource, error) // Fetches a conversion source. GetConversionSource(context.Context, *GetConversionSourceRequest) (*ConversionSource, error) // Retrieves the list of conversion sources the caller has access to. ListConversionSources(context.Context, *ListConversionSourcesRequest) (*ListConversionSourcesResponse, error) }
ConversionSourcesServiceServer is the server API for ConversionSourcesService service.
type CreateConversionSourceRequest ¶
type CreateConversionSourceRequest struct { // Required. The merchant account that will own the new conversion source. // Format: accounts/{account} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The conversion source description. A new ID will be automatically // assigned to it upon creation. ConversionSource *ConversionSource `protobuf:"bytes,2,opt,name=conversion_source,json=conversionSource,proto3" json:"conversion_source,omitempty"` // contains filtered or unexported fields }
Request message for the CreateConversionSource method.
func (*CreateConversionSourceRequest) Descriptor
deprecated
func (*CreateConversionSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*CreateConversionSourceRequest) GetConversionSource ¶
func (x *CreateConversionSourceRequest) GetConversionSource() *ConversionSource
func (*CreateConversionSourceRequest) GetParent ¶
func (x *CreateConversionSourceRequest) GetParent() string
func (*CreateConversionSourceRequest) ProtoMessage ¶
func (*CreateConversionSourceRequest) ProtoMessage()
func (*CreateConversionSourceRequest) ProtoReflect ¶
func (x *CreateConversionSourceRequest) ProtoReflect() protoreflect.Message
func (*CreateConversionSourceRequest) Reset ¶
func (x *CreateConversionSourceRequest) Reset()
func (*CreateConversionSourceRequest) String ¶
func (x *CreateConversionSourceRequest) String() string
type DeleteConversionSourceRequest ¶
type DeleteConversionSourceRequest struct { // Required. The name of the conversion source to be deleted. // Format: accounts/{account}/conversionSources/{conversion_source} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for the DeleteConversionSource method.
func (*DeleteConversionSourceRequest) Descriptor
deprecated
func (*DeleteConversionSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*DeleteConversionSourceRequest) GetName ¶
func (x *DeleteConversionSourceRequest) GetName() string
func (*DeleteConversionSourceRequest) ProtoMessage ¶
func (*DeleteConversionSourceRequest) ProtoMessage()
func (*DeleteConversionSourceRequest) ProtoReflect ¶
func (x *DeleteConversionSourceRequest) ProtoReflect() protoreflect.Message
func (*DeleteConversionSourceRequest) Reset ¶
func (x *DeleteConversionSourceRequest) Reset()
func (*DeleteConversionSourceRequest) String ¶
func (x *DeleteConversionSourceRequest) String() string
type GetConversionSourceRequest ¶
type GetConversionSourceRequest struct { // Required. The name of the conversion source to be fetched. // Format: accounts/{account}/conversionsources/{conversion_source} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for the GetConversionSource method.
func (*GetConversionSourceRequest) Descriptor
deprecated
func (*GetConversionSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*GetConversionSourceRequest) GetName ¶
func (x *GetConversionSourceRequest) GetName() string
func (*GetConversionSourceRequest) ProtoMessage ¶
func (*GetConversionSourceRequest) ProtoMessage()
func (*GetConversionSourceRequest) ProtoReflect ¶
func (x *GetConversionSourceRequest) ProtoReflect() protoreflect.Message
func (*GetConversionSourceRequest) Reset ¶
func (x *GetConversionSourceRequest) Reset()
func (*GetConversionSourceRequest) String ¶
func (x *GetConversionSourceRequest) String() string
type GoogleAnalyticsLink ¶
type GoogleAnalyticsLink struct { // Required. Immutable. ID of the Google Analytics property the merchant is // linked to. PropertyId int64 `protobuf:"varint,1,opt,name=property_id,json=propertyId,proto3" json:"property_id,omitempty"` // Output only. Attribution settings for the linked Google Analytics property. AttributionSettings *AttributionSettings `protobuf:"bytes,2,opt,name=attribution_settings,json=attributionSettings,proto3" json:"attribution_settings,omitempty"` // Output only. Name of the Google Analytics property the merchant is linked // to. Property string `protobuf:"bytes,3,opt,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
"Google Analytics Link" sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account.
func (*GoogleAnalyticsLink) Descriptor
deprecated
func (*GoogleAnalyticsLink) Descriptor() ([]byte, []int)
Deprecated: Use GoogleAnalyticsLink.ProtoReflect.Descriptor instead.
func (*GoogleAnalyticsLink) GetAttributionSettings ¶
func (x *GoogleAnalyticsLink) GetAttributionSettings() *AttributionSettings
func (*GoogleAnalyticsLink) GetProperty ¶
func (x *GoogleAnalyticsLink) GetProperty() string
func (*GoogleAnalyticsLink) GetPropertyId ¶
func (x *GoogleAnalyticsLink) GetPropertyId() int64
func (*GoogleAnalyticsLink) ProtoMessage ¶
func (*GoogleAnalyticsLink) ProtoMessage()
func (*GoogleAnalyticsLink) ProtoReflect ¶
func (x *GoogleAnalyticsLink) ProtoReflect() protoreflect.Message
func (*GoogleAnalyticsLink) Reset ¶
func (x *GoogleAnalyticsLink) Reset()
func (*GoogleAnalyticsLink) String ¶
func (x *GoogleAnalyticsLink) String() string
type ListConversionSourcesRequest ¶
type ListConversionSourcesRequest struct { // Required. The merchant account who owns the collection of conversion // sources. Format: accounts/{account} Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. The maximum number of conversion sources to return in a page. // If no `page_size` is specified, `100` is used as the default value. The // maximum value is `200`. Values above `200` will be coerced to `200`. // Regardless of pagination, at most `200` conversion sources are returned // in total. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. Page token. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Optional. Show deleted (archived) option. ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"` // contains filtered or unexported fields }
Request message for the ListConversionSources method.
func (*ListConversionSourcesRequest) Descriptor
deprecated
func (*ListConversionSourcesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListConversionSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListConversionSourcesRequest) GetPageSize ¶
func (x *ListConversionSourcesRequest) GetPageSize() int32
func (*ListConversionSourcesRequest) GetPageToken ¶
func (x *ListConversionSourcesRequest) GetPageToken() string
func (*ListConversionSourcesRequest) GetParent ¶
func (x *ListConversionSourcesRequest) GetParent() string
func (*ListConversionSourcesRequest) GetShowDeleted ¶
func (x *ListConversionSourcesRequest) GetShowDeleted() bool
func (*ListConversionSourcesRequest) ProtoMessage ¶
func (*ListConversionSourcesRequest) ProtoMessage()
func (*ListConversionSourcesRequest) ProtoReflect ¶
func (x *ListConversionSourcesRequest) ProtoReflect() protoreflect.Message
func (*ListConversionSourcesRequest) Reset ¶
func (x *ListConversionSourcesRequest) Reset()
func (*ListConversionSourcesRequest) String ¶
func (x *ListConversionSourcesRequest) String() string
type ListConversionSourcesResponse ¶
type ListConversionSourcesResponse struct { // List of conversion sources. ConversionSources []*ConversionSource `protobuf:"bytes,1,rep,name=conversion_sources,json=conversionSources,proto3" json:"conversion_sources,omitempty"` // Token to be used to fetch the next results page. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response message for the ListConversionSources method.
func (*ListConversionSourcesResponse) Descriptor
deprecated
func (*ListConversionSourcesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListConversionSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListConversionSourcesResponse) GetConversionSources ¶
func (x *ListConversionSourcesResponse) GetConversionSources() []*ConversionSource
func (*ListConversionSourcesResponse) GetNextPageToken ¶
func (x *ListConversionSourcesResponse) GetNextPageToken() string
func (*ListConversionSourcesResponse) ProtoMessage ¶
func (*ListConversionSourcesResponse) ProtoMessage()
func (*ListConversionSourcesResponse) ProtoReflect ¶
func (x *ListConversionSourcesResponse) ProtoReflect() protoreflect.Message
func (*ListConversionSourcesResponse) Reset ¶
func (x *ListConversionSourcesResponse) Reset()
func (*ListConversionSourcesResponse) String ¶
func (x *ListConversionSourcesResponse) String() string
type MerchantCenterDestination ¶
type MerchantCenterDestination struct { // Output only. Merchant Center Destination ID. Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // Required. Attribution settings being used for the Merchant Center // Destination. AttributionSettings *AttributionSettings `protobuf:"bytes,2,opt,name=attribution_settings,json=attributionSettings,proto3" json:"attribution_settings,omitempty"` // Required. Merchant-specified display name for the destination. This is the // name that identifies the conversion source within the Merchant Center UI. // Limited to 64 characters. DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // Required. Three-letter currency code (ISO 4217). The currency code defines // in which currency the conversions sent to this destination will be reported // in Merchant Center. CurrencyCode string `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` // contains filtered or unexported fields }
"Merchant Center Destination" sources can be used to send conversion events from an online store using a Google tag directly to a Merchant Center account where the source is created.
func (*MerchantCenterDestination) Descriptor
deprecated
func (*MerchantCenterDestination) Descriptor() ([]byte, []int)
Deprecated: Use MerchantCenterDestination.ProtoReflect.Descriptor instead.
func (*MerchantCenterDestination) GetAttributionSettings ¶
func (x *MerchantCenterDestination) GetAttributionSettings() *AttributionSettings
func (*MerchantCenterDestination) GetCurrencyCode ¶
func (x *MerchantCenterDestination) GetCurrencyCode() string
func (*MerchantCenterDestination) GetDestination ¶
func (x *MerchantCenterDestination) GetDestination() string
func (*MerchantCenterDestination) GetDisplayName ¶
func (x *MerchantCenterDestination) GetDisplayName() string
func (*MerchantCenterDestination) ProtoMessage ¶
func (*MerchantCenterDestination) ProtoMessage()
func (*MerchantCenterDestination) ProtoReflect ¶
func (x *MerchantCenterDestination) ProtoReflect() protoreflect.Message
func (*MerchantCenterDestination) Reset ¶
func (x *MerchantCenterDestination) Reset()
func (*MerchantCenterDestination) String ¶
func (x *MerchantCenterDestination) String() string
type UndeleteConversionSourceRequest ¶
type UndeleteConversionSourceRequest struct { // Required. The name of the conversion source to be undeleted. // Format: accounts/{account}/conversionSources/{conversion_source} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request message for the UndeleteConversionSource method.
func (*UndeleteConversionSourceRequest) Descriptor
deprecated
func (*UndeleteConversionSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UndeleteConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*UndeleteConversionSourceRequest) GetName ¶
func (x *UndeleteConversionSourceRequest) GetName() string
func (*UndeleteConversionSourceRequest) ProtoMessage ¶
func (*UndeleteConversionSourceRequest) ProtoMessage()
func (*UndeleteConversionSourceRequest) ProtoReflect ¶
func (x *UndeleteConversionSourceRequest) ProtoReflect() protoreflect.Message
func (*UndeleteConversionSourceRequest) Reset ¶
func (x *UndeleteConversionSourceRequest) Reset()
func (*UndeleteConversionSourceRequest) String ¶
func (x *UndeleteConversionSourceRequest) String() string
type UnimplementedConversionSourcesServiceServer ¶
type UnimplementedConversionSourcesServiceServer struct { }
UnimplementedConversionSourcesServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedConversionSourcesServiceServer) CreateConversionSource ¶
func (*UnimplementedConversionSourcesServiceServer) CreateConversionSource(context.Context, *CreateConversionSourceRequest) (*ConversionSource, error)
func (*UnimplementedConversionSourcesServiceServer) DeleteConversionSource ¶
func (*UnimplementedConversionSourcesServiceServer) DeleteConversionSource(context.Context, *DeleteConversionSourceRequest) (*emptypb.Empty, error)
func (*UnimplementedConversionSourcesServiceServer) GetConversionSource ¶
func (*UnimplementedConversionSourcesServiceServer) GetConversionSource(context.Context, *GetConversionSourceRequest) (*ConversionSource, error)
func (*UnimplementedConversionSourcesServiceServer) ListConversionSources ¶
func (*UnimplementedConversionSourcesServiceServer) ListConversionSources(context.Context, *ListConversionSourcesRequest) (*ListConversionSourcesResponse, error)
func (*UnimplementedConversionSourcesServiceServer) UndeleteConversionSource ¶
func (*UnimplementedConversionSourcesServiceServer) UndeleteConversionSource(context.Context, *UndeleteConversionSourceRequest) (*ConversionSource, error)
func (*UnimplementedConversionSourcesServiceServer) UpdateConversionSource ¶
func (*UnimplementedConversionSourcesServiceServer) UpdateConversionSource(context.Context, *UpdateConversionSourceRequest) (*ConversionSource, error)
type UpdateConversionSourceRequest ¶
type UpdateConversionSourceRequest struct { // Required. The new version of the conversion source data. // Format: accounts/{account}/conversionSources/{conversion_source} ConversionSource *ConversionSource `protobuf:"bytes,1,opt,name=conversion_source,json=conversionSource,proto3" json:"conversion_source,omitempty"` // Required. List of fields being updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request message for the UpdateConversionSource method.
func (*UpdateConversionSourceRequest) Descriptor
deprecated
func (*UpdateConversionSourceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*UpdateConversionSourceRequest) GetConversionSource ¶
func (x *UpdateConversionSourceRequest) GetConversionSource() *ConversionSource
func (*UpdateConversionSourceRequest) GetUpdateMask ¶
func (x *UpdateConversionSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateConversionSourceRequest) ProtoMessage ¶
func (*UpdateConversionSourceRequest) ProtoMessage()
func (*UpdateConversionSourceRequest) ProtoReflect ¶
func (x *UpdateConversionSourceRequest) ProtoReflect() protoreflect.Message
func (*UpdateConversionSourceRequest) Reset ¶
func (x *UpdateConversionSourceRequest) Reset()
func (*UpdateConversionSourceRequest) String ¶
func (x *UpdateConversionSourceRequest) String() string