Constants
ConversionSourcesService_CreateConversionSource_FullMethodName, ConversionSourcesService_UpdateConversionSource_FullMethodName, ConversionSourcesService_DeleteConversionSource_FullMethodName, ConversionSourcesService_UndeleteConversionSource_FullMethodName, ConversionSourcesService_GetConversionSource_FullMethodName, ConversionSourcesService_ListConversionSources_FullMethodName
const (
ConversionSourcesService_CreateConversionSource_FullMethodName = "/google.shopping.merchant.conversions.v1beta.ConversionSourcesService/CreateConversionSource"
ConversionSourcesService_UpdateConversionSource_FullMethodName = "/google.shopping.merchant.conversions.v1beta.ConversionSourcesService/UpdateConversionSource"
ConversionSourcesService_DeleteConversionSource_FullMethodName = "/google.shopping.merchant.conversions.v1beta.ConversionSourcesService/DeleteConversionSource"
ConversionSourcesService_UndeleteConversionSource_FullMethodName = "/google.shopping.merchant.conversions.v1beta.ConversionSourcesService/UndeleteConversionSource"
ConversionSourcesService_GetConversionSource_FullMethodName = "/google.shopping.merchant.conversions.v1beta.ConversionSourcesService/GetConversionSource"
ConversionSourcesService_ListConversionSources_FullMethodName = "/google.shopping.merchant.conversions.v1beta.ConversionSourcesService/ListConversionSources"
)Variables
ConversionSource_State_name, ConversionSource_State_value
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.
ConversionSource_Controller_name, ConversionSource_Controller_value
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.
AttributionSettings_AttributionModel_name, AttributionSettings_AttributionModel_value
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.
ConversionSourcesService_ServiceDesc
var ConversionSourcesService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.shopping.merchant.conversions.v1beta.ConversionSourcesService",
HandlerType: (*ConversionSourcesServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "CreateConversionSource",
Handler: _ConversionSourcesService_CreateConversionSource_Handler,
},
{
MethodName: "UpdateConversionSource",
Handler: _ConversionSourcesService_UpdateConversionSource_Handler,
},
{
MethodName: "DeleteConversionSource",
Handler: _ConversionSourcesService_DeleteConversionSource_Handler,
},
{
MethodName: "UndeleteConversionSource",
Handler: _ConversionSourcesService_UndeleteConversionSource_Handler,
},
{
MethodName: "GetConversionSource",
Handler: _ConversionSourcesService_GetConversionSource_Handler,
},
{
MethodName: "ListConversionSources",
Handler: _ConversionSourcesService_ListConversionSources_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/shopping/merchant/conversions/v1beta/conversionsources.proto",
}ConversionSourcesService_ServiceDesc is the grpc.ServiceDesc for ConversionSourcesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
File_google_shopping_merchant_conversions_v1beta_conversionsources_proto
var File_google_shopping_merchant_conversions_v1beta_conversionsources_proto protoreflect.FileDescriptorFunctions
func RegisterConversionSourcesServiceServer
func RegisterConversionSourcesServiceServer(s grpc.ServiceRegistrar, srv ConversionSourcesServiceServer)AttributionSettings
type AttributionSettings struct {
// Required. Lookback windows (in days) used for attribution in this source.
// Supported values are 7, 30, 40.
AttributionLookbackWindowDays int32 `protobuf:"varint,1,opt,name=attribution_lookback_window_days,json=attributionLookbackWindowDays,proto3" json:"attribution_lookback_window_days,omitempty"`
// Required. Attribution model.
AttributionModel AttributionSettings_AttributionModel `protobuf:"varint,2,opt,name=attribution_model,json=attributionModel,proto3,enum=google.shopping.merchant.conversions.v1beta.AttributionSettings_AttributionModel" json:"attribution_model,omitempty"`
// 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
func (*AttributionSettings) Descriptor() ([]byte, []int)Deprecated: Use AttributionSettings.ProtoReflect.Descriptor instead.
func (*AttributionSettings) GetAttributionLookbackWindowDays
func (x *AttributionSettings) GetAttributionLookbackWindowDays() int32func (*AttributionSettings) GetAttributionModel
func (x *AttributionSettings) GetAttributionModel() AttributionSettings_AttributionModelfunc (*AttributionSettings) GetConversionType
func (x *AttributionSettings) GetConversionType() []*AttributionSettings_ConversionTypefunc (*AttributionSettings) ProtoMessage
func (*AttributionSettings) ProtoMessage()func (*AttributionSettings) ProtoReflect
func (x *AttributionSettings) ProtoReflect() protoreflect.Messagefunc (*AttributionSettings) Reset
func (x *AttributionSettings) Reset()func (*AttributionSettings) String
func (x *AttributionSettings) String() stringAttributionSettings_AttributionModel
type AttributionSettings_AttributionModel int32The 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.
AttributionSettings_ATTRIBUTION_MODEL_UNSPECIFIED, AttributionSettings_CROSS_CHANNEL_LAST_CLICK, AttributionSettings_ADS_PREFERRED_LAST_CLICK, AttributionSettings_CROSS_CHANNEL_DATA_DRIVEN, AttributionSettings_CROSS_CHANNEL_FIRST_CLICK, AttributionSettings_CROSS_CHANNEL_LINEAR, AttributionSettings_CROSS_CHANNEL_POSITION_BASED, AttributionSettings_CROSS_CHANNEL_TIME_DECAY
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.EnumDescriptorfunc (AttributionSettings_AttributionModel) Enum
func (x AttributionSettings_AttributionModel) Enum() *AttributionSettings_AttributionModelfunc (AttributionSettings_AttributionModel) EnumDescriptor
func (AttributionSettings_AttributionModel) EnumDescriptor() ([]byte, []int)Deprecated: Use AttributionSettings_AttributionModel.Descriptor instead.
func (AttributionSettings_AttributionModel) Number
func (x AttributionSettings_AttributionModel) Number() protoreflect.EnumNumberfunc (AttributionSettings_AttributionModel) String
func (x AttributionSettings_AttributionModel) String() stringfunc (AttributionSettings_AttributionModel) Type
func (AttributionSettings_AttributionModel) Type() protoreflect.EnumTypeAttributionSettings_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
func (*AttributionSettings_ConversionType) Descriptor() ([]byte, []int)Deprecated: Use AttributionSettings_ConversionType.ProtoReflect.Descriptor instead.
func (*AttributionSettings_ConversionType) GetName
func (x *AttributionSettings_ConversionType) GetName() stringfunc (*AttributionSettings_ConversionType) GetReport
func (x *AttributionSettings_ConversionType) GetReport() boolfunc (*AttributionSettings_ConversionType) ProtoMessage
func (*AttributionSettings_ConversionType) ProtoMessage()func (*AttributionSettings_ConversionType) ProtoReflect
func (x *AttributionSettings_ConversionType) ProtoReflect() protoreflect.Messagefunc (*AttributionSettings_ConversionType) Reset
func (x *AttributionSettings_ConversionType) Reset()func (*AttributionSettings_ConversionType) String
func (x *AttributionSettings_ConversionType) String() stringConversionSource
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 `protobuf:"varint,5,opt,name=state,proto3,enum=google.shopping.merchant.conversions.v1beta.ConversionSource_State" json:"state,omitempty"`
// 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 `protobuf:"varint,7,opt,name=controller,proto3,enum=google.shopping.merchant.conversions.v1beta.ConversionSource_Controller" json:"controller,omitempty"`
// 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
func (*ConversionSource) Descriptor() ([]byte, []int)Deprecated: Use ConversionSource.ProtoReflect.Descriptor instead.
func (*ConversionSource) GetController
func (x *ConversionSource) GetController() ConversionSource_Controllerfunc (*ConversionSource) GetExpireTime
func (x *ConversionSource) GetExpireTime() *timestamppb.Timestampfunc (*ConversionSource) GetGoogleAnalyticsLink
func (x *ConversionSource) GetGoogleAnalyticsLink() *GoogleAnalyticsLinkfunc (*ConversionSource) GetMerchantCenterDestination
func (x *ConversionSource) GetMerchantCenterDestination() *MerchantCenterDestinationfunc (*ConversionSource) GetName
func (x *ConversionSource) GetName() stringfunc (*ConversionSource) GetSourceData
func (m *ConversionSource) GetSourceData() isConversionSource_SourceDatafunc (*ConversionSource) GetState
func (x *ConversionSource) GetState() ConversionSource_Statefunc (*ConversionSource) ProtoMessage
func (*ConversionSource) ProtoMessage()func (*ConversionSource) ProtoReflect
func (x *ConversionSource) ProtoReflect() protoreflect.Messagefunc (*ConversionSource) Reset
func (x *ConversionSource) Reset()func (*ConversionSource) String
func (x *ConversionSource) String() stringConversionSource_Controller
type ConversionSource_Controller int32Entity controlling the conversion source.
ConversionSource_CONTROLLER_UNSPECIFIED, ConversionSource_MERCHANT, ConversionSource_YOUTUBE_AFFILIATES
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.EnumDescriptorfunc (ConversionSource_Controller) Enum
func (x ConversionSource_Controller) Enum() *ConversionSource_Controllerfunc (ConversionSource_Controller) EnumDescriptor
func (ConversionSource_Controller) EnumDescriptor() ([]byte, []int)Deprecated: Use ConversionSource_Controller.Descriptor instead.
func (ConversionSource_Controller) Number
func (x ConversionSource_Controller) Number() protoreflect.EnumNumberfunc (ConversionSource_Controller) String
func (x ConversionSource_Controller) String() stringfunc (ConversionSource_Controller) Type
func (ConversionSource_Controller) Type() protoreflect.EnumTypeConversionSource_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"`
}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"`
}ConversionSource_State
type ConversionSource_State int32Represents state of the conversion source.
ConversionSource_STATE_UNSPECIFIED, ConversionSource_ACTIVE, ConversionSource_ARCHIVED, ConversionSource_PENDING
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.EnumDescriptorfunc (ConversionSource_State) Enum
func (x ConversionSource_State) Enum() *ConversionSource_Statefunc (ConversionSource_State) EnumDescriptor
func (ConversionSource_State) EnumDescriptor() ([]byte, []int)Deprecated: Use ConversionSource_State.Descriptor instead.
func (ConversionSource_State) Number
func (x ConversionSource_State) Number() protoreflect.EnumNumberfunc (ConversionSource_State) String
func (x ConversionSource_State) String() stringfunc (ConversionSource_State) Type
func (ConversionSource_State) Type() protoreflect.EnumTypeConversionSourcesServiceClient
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewConversionSourcesServiceClient
func NewConversionSourcesServiceClient(cc grpc.ClientConnInterface) ConversionSourcesServiceClientConversionSourcesServiceServer
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. All implementations should embed UnimplementedConversionSourcesServiceServer for forward compatibility
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
func (*CreateConversionSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*CreateConversionSourceRequest) GetConversionSource
func (x *CreateConversionSourceRequest) GetConversionSource() *ConversionSourcefunc (*CreateConversionSourceRequest) GetParent
func (x *CreateConversionSourceRequest) GetParent() stringfunc (*CreateConversionSourceRequest) ProtoMessage
func (*CreateConversionSourceRequest) ProtoMessage()func (*CreateConversionSourceRequest) ProtoReflect
func (x *CreateConversionSourceRequest) ProtoReflect() protoreflect.Messagefunc (*CreateConversionSourceRequest) Reset
func (x *CreateConversionSourceRequest) Reset()func (*CreateConversionSourceRequest) String
func (x *CreateConversionSourceRequest) String() stringDeleteConversionSourceRequest
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
func (*DeleteConversionSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*DeleteConversionSourceRequest) GetName
func (x *DeleteConversionSourceRequest) GetName() stringfunc (*DeleteConversionSourceRequest) ProtoMessage
func (*DeleteConversionSourceRequest) ProtoMessage()func (*DeleteConversionSourceRequest) ProtoReflect
func (x *DeleteConversionSourceRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteConversionSourceRequest) Reset
func (x *DeleteConversionSourceRequest) Reset()func (*DeleteConversionSourceRequest) String
func (x *DeleteConversionSourceRequest) String() stringGetConversionSourceRequest
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
func (*GetConversionSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*GetConversionSourceRequest) GetName
func (x *GetConversionSourceRequest) GetName() stringfunc (*GetConversionSourceRequest) ProtoMessage
func (*GetConversionSourceRequest) ProtoMessage()func (*GetConversionSourceRequest) ProtoReflect
func (x *GetConversionSourceRequest) ProtoReflect() protoreflect.Messagefunc (*GetConversionSourceRequest) Reset
func (x *GetConversionSourceRequest) Reset()func (*GetConversionSourceRequest) String
func (x *GetConversionSourceRequest) String() stringGoogleAnalyticsLink
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
func (*GoogleAnalyticsLink) Descriptor() ([]byte, []int)Deprecated: Use GoogleAnalyticsLink.ProtoReflect.Descriptor instead.
func (*GoogleAnalyticsLink) GetAttributionSettings
func (x *GoogleAnalyticsLink) GetAttributionSettings() *AttributionSettingsfunc (*GoogleAnalyticsLink) GetProperty
func (x *GoogleAnalyticsLink) GetProperty() stringfunc (*GoogleAnalyticsLink) GetPropertyId
func (x *GoogleAnalyticsLink) GetPropertyId() int64func (*GoogleAnalyticsLink) ProtoMessage
func (*GoogleAnalyticsLink) ProtoMessage()func (*GoogleAnalyticsLink) ProtoReflect
func (x *GoogleAnalyticsLink) ProtoReflect() protoreflect.Messagefunc (*GoogleAnalyticsLink) Reset
func (x *GoogleAnalyticsLink) Reset()func (*GoogleAnalyticsLink) String
func (x *GoogleAnalyticsLink) String() stringListConversionSourcesRequest
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
func (*ListConversionSourcesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListConversionSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListConversionSourcesRequest) GetPageSize
func (x *ListConversionSourcesRequest) GetPageSize() int32func (*ListConversionSourcesRequest) GetPageToken
func (x *ListConversionSourcesRequest) GetPageToken() stringfunc (*ListConversionSourcesRequest) GetParent
func (x *ListConversionSourcesRequest) GetParent() stringfunc (*ListConversionSourcesRequest) GetShowDeleted
func (x *ListConversionSourcesRequest) GetShowDeleted() boolfunc (*ListConversionSourcesRequest) ProtoMessage
func (*ListConversionSourcesRequest) ProtoMessage()func (*ListConversionSourcesRequest) ProtoReflect
func (x *ListConversionSourcesRequest) ProtoReflect() protoreflect.Messagefunc (*ListConversionSourcesRequest) Reset
func (x *ListConversionSourcesRequest) Reset()func (*ListConversionSourcesRequest) String
func (x *ListConversionSourcesRequest) String() stringListConversionSourcesResponse
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
func (*ListConversionSourcesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListConversionSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListConversionSourcesResponse) GetConversionSources
func (x *ListConversionSourcesResponse) GetConversionSources() []*ConversionSourcefunc (*ListConversionSourcesResponse) GetNextPageToken
func (x *ListConversionSourcesResponse) GetNextPageToken() stringfunc (*ListConversionSourcesResponse) ProtoMessage
func (*ListConversionSourcesResponse) ProtoMessage()func (*ListConversionSourcesResponse) ProtoReflect
func (x *ListConversionSourcesResponse) ProtoReflect() protoreflect.Messagefunc (*ListConversionSourcesResponse) Reset
func (x *ListConversionSourcesResponse) Reset()func (*ListConversionSourcesResponse) String
func (x *ListConversionSourcesResponse) String() stringMerchantCenterDestination
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
func (*MerchantCenterDestination) Descriptor() ([]byte, []int)Deprecated: Use MerchantCenterDestination.ProtoReflect.Descriptor instead.
func (*MerchantCenterDestination) GetAttributionSettings
func (x *MerchantCenterDestination) GetAttributionSettings() *AttributionSettingsfunc (*MerchantCenterDestination) GetCurrencyCode
func (x *MerchantCenterDestination) GetCurrencyCode() stringfunc (*MerchantCenterDestination) GetDestination
func (x *MerchantCenterDestination) GetDestination() stringfunc (*MerchantCenterDestination) GetDisplayName
func (x *MerchantCenterDestination) GetDisplayName() stringfunc (*MerchantCenterDestination) ProtoMessage
func (*MerchantCenterDestination) ProtoMessage()func (*MerchantCenterDestination) ProtoReflect
func (x *MerchantCenterDestination) ProtoReflect() protoreflect.Messagefunc (*MerchantCenterDestination) Reset
func (x *MerchantCenterDestination) Reset()func (*MerchantCenterDestination) String
func (x *MerchantCenterDestination) String() stringUndeleteConversionSourceRequest
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
func (*UndeleteConversionSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use UndeleteConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*UndeleteConversionSourceRequest) GetName
func (x *UndeleteConversionSourceRequest) GetName() stringfunc (*UndeleteConversionSourceRequest) ProtoMessage
func (*UndeleteConversionSourceRequest) ProtoMessage()func (*UndeleteConversionSourceRequest) ProtoReflect
func (x *UndeleteConversionSourceRequest) ProtoReflect() protoreflect.Messagefunc (*UndeleteConversionSourceRequest) Reset
func (x *UndeleteConversionSourceRequest) Reset()func (*UndeleteConversionSourceRequest) String
func (x *UndeleteConversionSourceRequest) String() stringUnimplementedConversionSourcesServiceServer
type UnimplementedConversionSourcesServiceServer struct {
}UnimplementedConversionSourcesServiceServer should 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)UnsafeConversionSourcesServiceServer
type UnsafeConversionSourcesServiceServer interface {
// contains filtered or unexported methods
}UnsafeConversionSourcesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConversionSourcesServiceServer will result in compilation errors.
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
func (*UpdateConversionSourceRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateConversionSourceRequest.ProtoReflect.Descriptor instead.
func (*UpdateConversionSourceRequest) GetConversionSource
func (x *UpdateConversionSourceRequest) GetConversionSource() *ConversionSourcefunc (*UpdateConversionSourceRequest) GetUpdateMask
func (x *UpdateConversionSourceRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateConversionSourceRequest) ProtoMessage
func (*UpdateConversionSourceRequest) ProtoMessage()func (*UpdateConversionSourceRequest) ProtoReflect
func (x *UpdateConversionSourceRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateConversionSourceRequest) Reset
func (x *UpdateConversionSourceRequest) Reset()func (*UpdateConversionSourceRequest) String
func (x *UpdateConversionSourceRequest) String() string