admob

package
v0.0.0-...-bd8f9a0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MediationReportSpec_Dimension_name = map[int32]string{
	0:  "DIMENSION_UNSPECIFIED",
	1:  "DATE",
	2:  "MONTH",
	3:  "WEEK",
	4:  "AD_SOURCE",
	5:  "AD_SOURCE_INSTANCE",
	6:  "AD_UNIT",
	7:  "APP",
	11: "MEDIATION_GROUP",
	8:  "COUNTRY",
	9:  "FORMAT",
	10: "PLATFORM",
}
View Source
var MediationReportSpec_Dimension_value = map[string]int32{
	"DIMENSION_UNSPECIFIED": 0,
	"DATE":                  1,
	"MONTH":                 2,
	"WEEK":                  3,
	"AD_SOURCE":             4,
	"AD_SOURCE_INSTANCE":    5,
	"AD_UNIT":               6,
	"APP":                   7,
	"MEDIATION_GROUP":       11,
	"COUNTRY":               8,
	"FORMAT":                9,
	"PLATFORM":              10,
}
View Source
var MediationReportSpec_Metric_name = map[int32]string{
	0: "METRIC_UNSPECIFIED",
	1: "AD_REQUESTS",
	2: "CLICKS",
	3: "ESTIMATED_EARNINGS",
	4: "IMPRESSIONS",
	5: "IMPRESSION_CTR",
	6: "MATCHED_REQUESTS",
	7: "MATCH_RATE",
	8: "OBSERVED_ECPM",
}
View Source
var MediationReportSpec_Metric_value = map[string]int32{
	"METRIC_UNSPECIFIED": 0,
	"AD_REQUESTS":        1,
	"CLICKS":             2,
	"ESTIMATED_EARNINGS": 3,
	"IMPRESSIONS":        4,
	"IMPRESSION_CTR":     5,
	"MATCHED_REQUESTS":   6,
	"MATCH_RATE":         7,
	"OBSERVED_ECPM":      8,
}
View Source
var NetworkReportSpec_Dimension_name = map[int32]string{
	0: "DIMENSION_UNSPECIFIED",
	1: "DATE",
	2: "MONTH",
	3: "WEEK",
	4: "AD_UNIT",
	5: "APP",
	7: "COUNTRY",
	8: "FORMAT",
	9: "PLATFORM",
}
View Source
var NetworkReportSpec_Dimension_value = map[string]int32{
	"DIMENSION_UNSPECIFIED": 0,
	"DATE":                  1,
	"MONTH":                 2,
	"WEEK":                  3,
	"AD_UNIT":               4,
	"APP":                   5,
	"COUNTRY":               7,
	"FORMAT":                8,
	"PLATFORM":              9,
}
View Source
var NetworkReportSpec_Metric_name = map[int32]string{
	0: "METRIC_UNSPECIFIED",
	1: "AD_REQUESTS",
	2: "CLICKS",
	3: "ESTIMATED_EARNINGS",
	4: "IMPRESSIONS",
	5: "IMPRESSION_CTR",
	6: "IMPRESSION_RPM",
	7: "MATCHED_REQUESTS",
	8: "MATCH_RATE",
	9: "SHOW_RATE",
}
View Source
var NetworkReportSpec_Metric_value = map[string]int32{
	"METRIC_UNSPECIFIED": 0,
	"AD_REQUESTS":        1,
	"CLICKS":             2,
	"ESTIMATED_EARNINGS": 3,
	"IMPRESSIONS":        4,
	"IMPRESSION_CTR":     5,
	"IMPRESSION_RPM":     6,
	"MATCHED_REQUESTS":   7,
	"MATCH_RATE":         8,
	"SHOW_RATE":          9,
}
View Source
var ReportWarning_Type_name = map[int32]string{
	0: "TYPE_UNSPECIFIED",
	1: "DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE",
	2: "DATA_DELAYED",
	3: "OTHER",
	4: "REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY",
}
View Source
var ReportWarning_Type_value = map[string]int32{
	"TYPE_UNSPECIFIED":                     0,
	"DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE":  1,
	"DATA_DELAYED":                         2,
	"OTHER":                                3,
	"REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY": 4,
}
View Source
var SortOrder_name = map[int32]string{
	0: "SORT_ORDER_UNSPECIFIED",
	1: "ASCENDING",
	2: "DESCENDING",
}
View Source
var SortOrder_value = map[string]int32{
	"SORT_ORDER_UNSPECIFIED": 0,
	"ASCENDING":              1,
	"DESCENDING":             2,
}

Functions

func RegisterAdMobApiServer

func RegisterAdMobApiServer(s *grpc.Server, srv AdMobApiServer)

Types

type AdMobApiClient

type AdMobApiClient interface {
	// Gets information about the specified AdMob publisher account.
	GetPublisherAccount(ctx context.Context, in *GetPublisherAccountRequest, opts ...grpc.CallOption) (*PublisherAccount, error)
	// Lists the AdMob publisher account accessible with the client credential.
	// Currently, all credentials have access to at most one AdMob account.
	ListPublisherAccounts(ctx context.Context, in *ListPublisherAccountsRequest, opts ...grpc.CallOption) (*ListPublisherAccountsResponse, error)
	// Generates an AdMob Network report based on the provided report
	// specification.
	GenerateNetworkReport(ctx context.Context, in *GenerateNetworkReportRequest, opts ...grpc.CallOption) (AdMobApi_GenerateNetworkReportClient, error)
	// Generates an AdMob Mediation report based on the provided report
	// specification.
	GenerateMediationReport(ctx context.Context, in *GenerateMediationReportRequest, opts ...grpc.CallOption) (AdMobApi_GenerateMediationReportClient, error)
}

AdMobApiClient is the client API for AdMobApi service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAdMobApiClient

func NewAdMobApiClient(cc *grpc.ClientConn) AdMobApiClient

type AdMobApiServer

type AdMobApiServer interface {
	// Gets information about the specified AdMob publisher account.
	GetPublisherAccount(context.Context, *GetPublisherAccountRequest) (*PublisherAccount, error)
	// Lists the AdMob publisher account accessible with the client credential.
	// Currently, all credentials have access to at most one AdMob account.
	ListPublisherAccounts(context.Context, *ListPublisherAccountsRequest) (*ListPublisherAccountsResponse, error)
	// Generates an AdMob Network report based on the provided report
	// specification.
	GenerateNetworkReport(*GenerateNetworkReportRequest, AdMobApi_GenerateNetworkReportServer) error
	// Generates an AdMob Mediation report based on the provided report
	// specification.
	GenerateMediationReport(*GenerateMediationReportRequest, AdMobApi_GenerateMediationReportServer) error
}

AdMobApiServer is the server API for AdMobApi service.

type AdMobApi_GenerateMediationReportClient

type AdMobApi_GenerateMediationReportClient interface {
	Recv() (*GenerateMediationReportResponse, error)
	grpc.ClientStream
}

type AdMobApi_GenerateMediationReportServer

type AdMobApi_GenerateMediationReportServer interface {
	Send(*GenerateMediationReportResponse) error
	grpc.ServerStream
}

type AdMobApi_GenerateNetworkReportClient

type AdMobApi_GenerateNetworkReportClient interface {
	Recv() (*GenerateNetworkReportResponse, error)
	grpc.ClientStream
}

type AdMobApi_GenerateNetworkReportServer

type AdMobApi_GenerateNetworkReportServer interface {
	Send(*GenerateNetworkReportResponse) error
	grpc.ServerStream
}

type DateRange

type DateRange struct {
	// Start date of the date range, inclusive. Must be less than or equal to the
	// end date.
	StartDate *date.Date `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// End date of the date range, inclusive. Must be greater than or equal to the
	// start date.
	EndDate              *date.Date `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Specification of a single date range. Both dates are inclusive.

func (*DateRange) Descriptor

func (*DateRange) Descriptor() ([]byte, []int)

func (*DateRange) GetEndDate

func (m *DateRange) GetEndDate() *date.Date

func (*DateRange) GetStartDate

func (m *DateRange) GetStartDate() *date.Date

func (*DateRange) ProtoMessage

func (*DateRange) ProtoMessage()

func (*DateRange) Reset

func (m *DateRange) Reset()

func (*DateRange) String

func (m *DateRange) String() string

func (*DateRange) XXX_DiscardUnknown

func (m *DateRange) XXX_DiscardUnknown()

func (*DateRange) XXX_Marshal

func (m *DateRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DateRange) XXX_Merge

func (m *DateRange) XXX_Merge(src proto.Message)

func (*DateRange) XXX_Size

func (m *DateRange) XXX_Size() int

func (*DateRange) XXX_Unmarshal

func (m *DateRange) XXX_Unmarshal(b []byte) error

type GenerateMediationReportRequest

type GenerateMediationReportRequest struct {
	// Resource name of the account to generate the report for.
	// Example: accounts/pub-9876543210987654
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Network report specification.
	ReportSpec           *MediationReportSpec `protobuf:"bytes,2,opt,name=report_spec,json=reportSpec,proto3" json:"report_spec,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Request to generate an AdMob Mediation report.

func (*GenerateMediationReportRequest) Descriptor

func (*GenerateMediationReportRequest) Descriptor() ([]byte, []int)

func (*GenerateMediationReportRequest) GetParent

func (m *GenerateMediationReportRequest) GetParent() string

func (*GenerateMediationReportRequest) GetReportSpec

func (*GenerateMediationReportRequest) ProtoMessage

func (*GenerateMediationReportRequest) ProtoMessage()

func (*GenerateMediationReportRequest) Reset

func (m *GenerateMediationReportRequest) Reset()

func (*GenerateMediationReportRequest) String

func (*GenerateMediationReportRequest) XXX_DiscardUnknown

func (m *GenerateMediationReportRequest) XXX_DiscardUnknown()

func (*GenerateMediationReportRequest) XXX_Marshal

func (m *GenerateMediationReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenerateMediationReportRequest) XXX_Merge

func (m *GenerateMediationReportRequest) XXX_Merge(src proto.Message)

func (*GenerateMediationReportRequest) XXX_Size

func (m *GenerateMediationReportRequest) XXX_Size() int

func (*GenerateMediationReportRequest) XXX_Unmarshal

func (m *GenerateMediationReportRequest) XXX_Unmarshal(b []byte) error

type GenerateMediationReportResponse

type GenerateMediationReportResponse struct {
	// Each stream response message contains one type of payload.
	//
	// Types that are valid to be assigned to Payload:
	//	*GenerateMediationReportResponse_Header
	//	*GenerateMediationReportResponse_Row
	//	*GenerateMediationReportResponse_Footer
	Payload              isGenerateMediationReportResponse_Payload `protobuf_oneof:"payload"`
	XXX_NoUnkeyedLiteral struct{}                                  `json:"-"`
	XXX_unrecognized     []byte                                    `json:"-"`
	XXX_sizecache        int32                                     `json:"-"`
}

The streaming response for the AdMob Mediation report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message.

For example:

[{
  "header": {
    "date_range": {
      "start_date": {"year": 2018, "month": 9, "day": 1},
      "end_date": {"year": 2018, "month": 9, "day": 30}
    }
    "localization_settings": {
      "currency_code": "USD",
      "language_code": "en-US"
    }
  }
},
{
  "row": {
    "dimension_values": {
      "DATE": {"value": "20180918"},
      "APP": {
        "value": "ca-app-pub-8123415297019784~1001342552",
         "display_label": "My app name!"
      }
    },
    "metric_values": {
      "ESTIMATED_EARNINGS": {"decimal_value": "1324746"}
    }
  }
},
{
  "footer": {"matching_row_count": 1}
}]

func (*GenerateMediationReportResponse) Descriptor

func (*GenerateMediationReportResponse) Descriptor() ([]byte, []int)

func (*GenerateMediationReportResponse) GetFooter

func (*GenerateMediationReportResponse) GetHeader

func (*GenerateMediationReportResponse) GetPayload

func (m *GenerateMediationReportResponse) GetPayload() isGenerateMediationReportResponse_Payload

func (*GenerateMediationReportResponse) GetRow

func (*GenerateMediationReportResponse) ProtoMessage

func (*GenerateMediationReportResponse) ProtoMessage()

func (*GenerateMediationReportResponse) Reset

func (*GenerateMediationReportResponse) String

func (*GenerateMediationReportResponse) XXX_DiscardUnknown

func (m *GenerateMediationReportResponse) XXX_DiscardUnknown()

func (*GenerateMediationReportResponse) XXX_Marshal

func (m *GenerateMediationReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenerateMediationReportResponse) XXX_Merge

func (m *GenerateMediationReportResponse) XXX_Merge(src proto.Message)

func (*GenerateMediationReportResponse) XXX_OneofWrappers

func (*GenerateMediationReportResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GenerateMediationReportResponse) XXX_Size

func (m *GenerateMediationReportResponse) XXX_Size() int

func (*GenerateMediationReportResponse) XXX_Unmarshal

func (m *GenerateMediationReportResponse) XXX_Unmarshal(b []byte) error
type GenerateMediationReportResponse_Footer struct {
	Footer *ReportFooter `protobuf:"bytes,3,opt,name=footer,proto3,oneof"`
}

type GenerateMediationReportResponse_Header

type GenerateMediationReportResponse_Header struct {
	Header *ReportHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}

type GenerateMediationReportResponse_Row

type GenerateMediationReportResponse_Row struct {
	Row *ReportRow `protobuf:"bytes,2,opt,name=row,proto3,oneof"`
}

type GenerateNetworkReportRequest

type GenerateNetworkReportRequest struct {
	// Resource name of the account to generate the report for.
	// Example: accounts/pub-9876543210987654
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Network report specification.
	ReportSpec           *NetworkReportSpec `protobuf:"bytes,2,opt,name=report_spec,json=reportSpec,proto3" json:"report_spec,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Request to generate an AdMob Network report.

func (*GenerateNetworkReportRequest) Descriptor

func (*GenerateNetworkReportRequest) Descriptor() ([]byte, []int)

func (*GenerateNetworkReportRequest) GetParent

func (m *GenerateNetworkReportRequest) GetParent() string

func (*GenerateNetworkReportRequest) GetReportSpec

func (m *GenerateNetworkReportRequest) GetReportSpec() *NetworkReportSpec

func (*GenerateNetworkReportRequest) ProtoMessage

func (*GenerateNetworkReportRequest) ProtoMessage()

func (*GenerateNetworkReportRequest) Reset

func (m *GenerateNetworkReportRequest) Reset()

func (*GenerateNetworkReportRequest) String

func (*GenerateNetworkReportRequest) XXX_DiscardUnknown

func (m *GenerateNetworkReportRequest) XXX_DiscardUnknown()

func (*GenerateNetworkReportRequest) XXX_Marshal

func (m *GenerateNetworkReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenerateNetworkReportRequest) XXX_Merge

func (m *GenerateNetworkReportRequest) XXX_Merge(src proto.Message)

func (*GenerateNetworkReportRequest) XXX_Size

func (m *GenerateNetworkReportRequest) XXX_Size() int

func (*GenerateNetworkReportRequest) XXX_Unmarshal

func (m *GenerateNetworkReportRequest) XXX_Unmarshal(b []byte) error

type GenerateNetworkReportResponse

type GenerateNetworkReportResponse struct {
	// Each stream response message contains one type of payload.
	//
	// Types that are valid to be assigned to Payload:
	//	*GenerateNetworkReportResponse_Header
	//	*GenerateNetworkReportResponse_Row
	//	*GenerateNetworkReportResponse_Footer
	Payload              isGenerateNetworkReportResponse_Payload `protobuf_oneof:"payload"`
	XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
	XXX_unrecognized     []byte                                  `json:"-"`
	XXX_sizecache        int32                                   `json:"-"`
}

The streaming response for the AdMob Network report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message.

For example:

[{
  "header": {
    "dateRange": {
      "startDate": {"year": 2018, "month": 9, "day": 1},
      "endDate": {"year": 2018, "month": 9, "day": 30}
    }
    "localizationSettings": {
      "currencyCode": "USD",
      "languageCode": "en-US"
    }
  }
},
{
  "row": {
    "dimensionValues": {
      "DATE": {"value": "20180918"},
      "APP": {
        "value": "ca-app-pub-8123415297019784~1001342552",
         displayLabel: "My app name!"
      }
    },
    "metricValues": {
      "ESTIMATED_EARNINGS": {"microsValue": 6500000}
    }
  }
},
...
{
  "footer": {"matchingRowCount": 5}
}]

func (*GenerateNetworkReportResponse) Descriptor

func (*GenerateNetworkReportResponse) Descriptor() ([]byte, []int)

func (*GenerateNetworkReportResponse) GetFooter

func (*GenerateNetworkReportResponse) GetHeader

func (*GenerateNetworkReportResponse) GetPayload

func (m *GenerateNetworkReportResponse) GetPayload() isGenerateNetworkReportResponse_Payload

func (*GenerateNetworkReportResponse) GetRow

func (*GenerateNetworkReportResponse) ProtoMessage

func (*GenerateNetworkReportResponse) ProtoMessage()

func (*GenerateNetworkReportResponse) Reset

func (m *GenerateNetworkReportResponse) Reset()

func (*GenerateNetworkReportResponse) String

func (*GenerateNetworkReportResponse) XXX_DiscardUnknown

func (m *GenerateNetworkReportResponse) XXX_DiscardUnknown()

func (*GenerateNetworkReportResponse) XXX_Marshal

func (m *GenerateNetworkReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenerateNetworkReportResponse) XXX_Merge

func (m *GenerateNetworkReportResponse) XXX_Merge(src proto.Message)

func (*GenerateNetworkReportResponse) XXX_OneofWrappers

func (*GenerateNetworkReportResponse) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GenerateNetworkReportResponse) XXX_Size

func (m *GenerateNetworkReportResponse) XXX_Size() int

func (*GenerateNetworkReportResponse) XXX_Unmarshal

func (m *GenerateNetworkReportResponse) XXX_Unmarshal(b []byte) error
type GenerateNetworkReportResponse_Footer struct {
	Footer *ReportFooter `protobuf:"bytes,3,opt,name=footer,proto3,oneof"`
}

type GenerateNetworkReportResponse_Header

type GenerateNetworkReportResponse_Header struct {
	Header *ReportHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}

type GenerateNetworkReportResponse_Row

type GenerateNetworkReportResponse_Row struct {
	Row *ReportRow `protobuf:"bytes,2,opt,name=row,proto3,oneof"`
}

type GetPublisherAccountRequest

type GetPublisherAccountRequest struct {
	// Resource name of the publisher account to retrieve.
	// Example: accounts/pub-9876543210987654
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to retrieve the specified publisher account.

func (*GetPublisherAccountRequest) Descriptor

func (*GetPublisherAccountRequest) Descriptor() ([]byte, []int)

func (*GetPublisherAccountRequest) GetName

func (m *GetPublisherAccountRequest) GetName() string

func (*GetPublisherAccountRequest) ProtoMessage

func (*GetPublisherAccountRequest) ProtoMessage()

func (*GetPublisherAccountRequest) Reset

func (m *GetPublisherAccountRequest) Reset()

func (*GetPublisherAccountRequest) String

func (m *GetPublisherAccountRequest) String() string

func (*GetPublisherAccountRequest) XXX_DiscardUnknown

func (m *GetPublisherAccountRequest) XXX_DiscardUnknown()

func (*GetPublisherAccountRequest) XXX_Marshal

func (m *GetPublisherAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPublisherAccountRequest) XXX_Merge

func (m *GetPublisherAccountRequest) XXX_Merge(src proto.Message)

func (*GetPublisherAccountRequest) XXX_Size

func (m *GetPublisherAccountRequest) XXX_Size() int

func (*GetPublisherAccountRequest) XXX_Unmarshal

func (m *GetPublisherAccountRequest) XXX_Unmarshal(b []byte) error

type ListPublisherAccountsRequest

type ListPublisherAccountsRequest struct {
	// Maximum number of accounts to return.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The value returned by the last `ListPublisherAccountsResponse`; indicates
	// that this is a continuation of a prior `ListPublisherAccounts` call, and
	// that the system should return the next page of data.
	PageToken            string   `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to retrieve the AdMob publisher account accessible with the client credential. Currently all credentials have access to at most 1 account.

func (*ListPublisherAccountsRequest) Descriptor

func (*ListPublisherAccountsRequest) Descriptor() ([]byte, []int)

func (*ListPublisherAccountsRequest) GetPageSize

func (m *ListPublisherAccountsRequest) GetPageSize() int32

func (*ListPublisherAccountsRequest) GetPageToken

func (m *ListPublisherAccountsRequest) GetPageToken() string

func (*ListPublisherAccountsRequest) ProtoMessage

func (*ListPublisherAccountsRequest) ProtoMessage()

func (*ListPublisherAccountsRequest) Reset

func (m *ListPublisherAccountsRequest) Reset()

func (*ListPublisherAccountsRequest) String

func (*ListPublisherAccountsRequest) XXX_DiscardUnknown

func (m *ListPublisherAccountsRequest) XXX_DiscardUnknown()

func (*ListPublisherAccountsRequest) XXX_Marshal

func (m *ListPublisherAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListPublisherAccountsRequest) XXX_Merge

func (m *ListPublisherAccountsRequest) XXX_Merge(src proto.Message)

func (*ListPublisherAccountsRequest) XXX_Size

func (m *ListPublisherAccountsRequest) XXX_Size() int

func (*ListPublisherAccountsRequest) XXX_Unmarshal

func (m *ListPublisherAccountsRequest) XXX_Unmarshal(b []byte) error

type ListPublisherAccountsResponse

type ListPublisherAccountsResponse struct {
	// Publisher that the client credentials can access.
	Account []*PublisherAccount `protobuf:"bytes,1,rep,name=account,proto3" json:"account,omitempty"`
	// If not empty, indicates that there might be more accounts for the request;
	// you must pass this value in a new `ListPublisherAccountsRequest`.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for the publisher account list request.

func (*ListPublisherAccountsResponse) Descriptor

func (*ListPublisherAccountsResponse) Descriptor() ([]byte, []int)

func (*ListPublisherAccountsResponse) GetAccount

func (*ListPublisherAccountsResponse) GetNextPageToken

func (m *ListPublisherAccountsResponse) GetNextPageToken() string

func (*ListPublisherAccountsResponse) ProtoMessage

func (*ListPublisherAccountsResponse) ProtoMessage()

func (*ListPublisherAccountsResponse) Reset

func (m *ListPublisherAccountsResponse) Reset()

func (*ListPublisherAccountsResponse) String

func (*ListPublisherAccountsResponse) XXX_DiscardUnknown

func (m *ListPublisherAccountsResponse) XXX_DiscardUnknown()

func (*ListPublisherAccountsResponse) XXX_Marshal

func (m *ListPublisherAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListPublisherAccountsResponse) XXX_Merge

func (m *ListPublisherAccountsResponse) XXX_Merge(src proto.Message)

func (*ListPublisherAccountsResponse) XXX_Size

func (m *ListPublisherAccountsResponse) XXX_Size() int

func (*ListPublisherAccountsResponse) XXX_Unmarshal

func (m *ListPublisherAccountsResponse) XXX_Unmarshal(b []byte) error

type LocalizationSettings

type LocalizationSettings struct {
	// Currency code of the earning related metrics, which is the 3-letter code
	// defined in ISO 4217. The daily average rate is used for the currency
	// conversion. Defaults to the account currency code if unspecified.
	CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// Language used for any localized text, such as some dimension value display
	// labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if
	// unspecified.
	LanguageCode         string   `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Localization settings for reports, such as currency and language. It affects how metrics are calculated.

func (*LocalizationSettings) Descriptor

func (*LocalizationSettings) Descriptor() ([]byte, []int)

func (*LocalizationSettings) GetCurrencyCode

func (m *LocalizationSettings) GetCurrencyCode() string

func (*LocalizationSettings) GetLanguageCode

func (m *LocalizationSettings) GetLanguageCode() string

func (*LocalizationSettings) ProtoMessage

func (*LocalizationSettings) ProtoMessage()

func (*LocalizationSettings) Reset

func (m *LocalizationSettings) Reset()

func (*LocalizationSettings) String

func (m *LocalizationSettings) String() string

func (*LocalizationSettings) XXX_DiscardUnknown

func (m *LocalizationSettings) XXX_DiscardUnknown()

func (*LocalizationSettings) XXX_Marshal

func (m *LocalizationSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalizationSettings) XXX_Merge

func (m *LocalizationSettings) XXX_Merge(src proto.Message)

func (*LocalizationSettings) XXX_Size

func (m *LocalizationSettings) XXX_Size() int

func (*LocalizationSettings) XXX_Unmarshal

func (m *LocalizationSettings) XXX_Unmarshal(b []byte) error

type MediationReportSpec

type MediationReportSpec struct {
	// The date range for which the report is generated.
	DateRange *DateRange `protobuf:"bytes,1,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
	// List of dimensions of the report. The value combination of these dimensions
	// determines the row of the report. If no dimensions are specified, the
	// report returns a single row of requested metrics for the entire account.
	Dimensions []MediationReportSpec_Dimension `` /* 136-byte string literal not displayed */
	// List of metrics of the report. A report must specify at least one metric.
	Metrics []MediationReportSpec_Metric `` /* 127-byte string literal not displayed */
	// Describes which report rows to match based on their dimension values.
	DimensionFilters []*MediationReportSpec_DimensionFilter `protobuf:"bytes,4,rep,name=dimension_filters,json=dimensionFilters,proto3" json:"dimension_filters,omitempty"`
	// Describes the sorting of report rows. The order of the condition in the
	// list defines its precedence; the earlier the condition, the higher its
	// precedence. If no sort conditions are specified, the row ordering is
	// undefined.
	SortConditions []*MediationReportSpec_SortCondition `protobuf:"bytes,5,rep,name=sort_conditions,json=sortConditions,proto3" json:"sort_conditions,omitempty"`
	// Localization settings of the report.
	LocalizationSettings *LocalizationSettings `protobuf:"bytes,6,opt,name=localization_settings,json=localizationSettings,proto3" json:"localization_settings,omitempty"`
	// Maximum number of report data rows to return. If the value is not set, the
	// API returns as many rows as possible, up to 100000. Acceptable values are
	// 1-100000, inclusive. Any other values are treated as 100000.
	MaxReportRows        int32    `protobuf:"varint,7,opt,name=max_report_rows,json=maxReportRows,proto3" json:"max_report_rows,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The specification for generating an AdMob Mediation report. For example, the specification to get observed ECPM sliced by ad source and app for the 'US' and 'CN' countries can look like the following example:

{
  "date_range": {
    "start_date": {"year": 2018, "month": 9, "day": 1},
    "end_date": {"year": 2018, "month": 9, "day": 30}
  },
  "dimensions": ["AD_SOURCE", "APP", "COUNTRY"],
  "metrics": ["OBSERVED_ECPM"],
  "dimension_filters": [
    {
      "dimension": "COUNTRY",
      "matches_any": {"values": [{"value": "US", "value": "CN"}]}
    }
  ],
  "sort_conditions": [
    {"dimension":"APP", order: "ASCENDING"}
  ],
  "localization_settings": {
    "currency_code": "USD",
    "language_code": "en-US"
  }
}

For a better understanding, you can treat the preceding specification like the following pseudo SQL:

SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM
FROM MEDIATION_REPORT
WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
    AND COUNTRY IN ('US', 'CN')
GROUP BY AD_SOURCE, APP, COUNTRY
ORDER BY APP ASC;

func (*MediationReportSpec) Descriptor

func (*MediationReportSpec) Descriptor() ([]byte, []int)

func (*MediationReportSpec) GetDateRange

func (m *MediationReportSpec) GetDateRange() *DateRange

func (*MediationReportSpec) GetDimensionFilters

func (m *MediationReportSpec) GetDimensionFilters() []*MediationReportSpec_DimensionFilter

func (*MediationReportSpec) GetDimensions

func (*MediationReportSpec) GetLocalizationSettings

func (m *MediationReportSpec) GetLocalizationSettings() *LocalizationSettings

func (*MediationReportSpec) GetMaxReportRows

func (m *MediationReportSpec) GetMaxReportRows() int32

func (*MediationReportSpec) GetMetrics

func (*MediationReportSpec) GetSortConditions

func (m *MediationReportSpec) GetSortConditions() []*MediationReportSpec_SortCondition

func (*MediationReportSpec) ProtoMessage

func (*MediationReportSpec) ProtoMessage()

func (*MediationReportSpec) Reset

func (m *MediationReportSpec) Reset()

func (*MediationReportSpec) String

func (m *MediationReportSpec) String() string

func (*MediationReportSpec) XXX_DiscardUnknown

func (m *MediationReportSpec) XXX_DiscardUnknown()

func (*MediationReportSpec) XXX_Marshal

func (m *MediationReportSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MediationReportSpec) XXX_Merge

func (m *MediationReportSpec) XXX_Merge(src proto.Message)

func (*MediationReportSpec) XXX_Size

func (m *MediationReportSpec) XXX_Size() int

func (*MediationReportSpec) XXX_Unmarshal

func (m *MediationReportSpec) XXX_Unmarshal(b []byte) error

type MediationReportSpec_Dimension

type MediationReportSpec_Dimension int32

The dimensions of the mediation report. Dimensions are data attributes to break down or refine the quantitative measurements (metrics) by certain attributes, such as the ad format or the platform an ad was viewed on.

const (
	// Default value for an unset field. Do not use.
	MediationReportSpec_DIMENSION_UNSPECIFIED MediationReportSpec_Dimension = 0
	// A date in the YYYY-MM-DD format (for example, "2018-12-21"). Requests can
	// specify at most one time dimension.
	MediationReportSpec_DATE MediationReportSpec_Dimension = 1
	// A month in the YYYY-MM format (for example, "2018-12"). Requests can
	// specify at most one time dimension.
	MediationReportSpec_MONTH MediationReportSpec_Dimension = 2
	// The date of the first day of a week in the YYYY-MM-DD format
	// (for example, "2018-12-21"). Requests can specify at most one time
	// dimension.
	MediationReportSpec_WEEK MediationReportSpec_Dimension = 3
	// The unique ID of the ad source (for example, "5450213213286189855" and
	// "AdMob Network" as label value).
	MediationReportSpec_AD_SOURCE MediationReportSpec_Dimension = 4
	// The unique ID of the ad source instance (for example,
	// "ca-app-pub-1234#5678" and "AdMob (default)" as label value).
	// Warning: The dimension is incompatible with ESTIMATED_EARNINGS and
	// OBSERVED_ECPM metrics.
	MediationReportSpec_AD_SOURCE_INSTANCE MediationReportSpec_Dimension = 5
	// The unique ID of the ad unit (for example, "ca-app-pub-1234/8790").
	// If AD_UNIT dimension is specified, then APP is included automatically.
	MediationReportSpec_AD_UNIT MediationReportSpec_Dimension = 6
	// The unique ID of the mobile application (for example,
	// "ca-app-pub-1234~1234").
	MediationReportSpec_APP MediationReportSpec_Dimension = 7
	// The unique ID of the mediation group (for example,
	// "ca-app-pub-1234:mg:1234" and "AdMob (default)" as label value).
	// Warning: The dimension is incompatible with ESTIMATED_EARNINGS and
	// OBSERVED_ECPM metrics.
	MediationReportSpec_MEDIATION_GROUP MediationReportSpec_Dimension = 11
	// CLDR country code of the place where the ad views/clicks occur (for
	// example, "US" or "FR"). This is a geography dimension.
	MediationReportSpec_COUNTRY MediationReportSpec_Dimension = 8
	// Format of the ad unit (for example, "banner", "native"), an ad delivery
	// dimension.
	MediationReportSpec_FORMAT MediationReportSpec_Dimension = 9
	// Mobile OS platform of the app (for example, "Android" or "iOS").
	MediationReportSpec_PLATFORM MediationReportSpec_Dimension = 10
)

func (MediationReportSpec_Dimension) EnumDescriptor

func (MediationReportSpec_Dimension) EnumDescriptor() ([]byte, []int)

func (MediationReportSpec_Dimension) String

type MediationReportSpec_DimensionFilter

type MediationReportSpec_DimensionFilter struct {
	// Applies the filter criterion to the specified dimension.
	Dimension MediationReportSpec_Dimension `` /* 127-byte string literal not displayed */
	// Filter operator to be applied.
	//
	// Types that are valid to be assigned to Operator:
	//	*MediationReportSpec_DimensionFilter_MatchesAny
	Operator             isMediationReportSpec_DimensionFilter_Operator `protobuf_oneof:"operator"`
	XXX_NoUnkeyedLiteral struct{}                                       `json:"-"`
	XXX_unrecognized     []byte                                         `json:"-"`
	XXX_sizecache        int32                                          `json:"-"`
}

Describes which report rows to match based on their dimension values.

func (*MediationReportSpec_DimensionFilter) Descriptor

func (*MediationReportSpec_DimensionFilter) Descriptor() ([]byte, []int)

func (*MediationReportSpec_DimensionFilter) GetDimension

func (*MediationReportSpec_DimensionFilter) GetMatchesAny

func (m *MediationReportSpec_DimensionFilter) GetMatchesAny() *StringList

func (*MediationReportSpec_DimensionFilter) GetOperator

func (m *MediationReportSpec_DimensionFilter) GetOperator() isMediationReportSpec_DimensionFilter_Operator

func (*MediationReportSpec_DimensionFilter) ProtoMessage

func (*MediationReportSpec_DimensionFilter) ProtoMessage()

func (*MediationReportSpec_DimensionFilter) Reset

func (*MediationReportSpec_DimensionFilter) String

func (*MediationReportSpec_DimensionFilter) XXX_DiscardUnknown

func (m *MediationReportSpec_DimensionFilter) XXX_DiscardUnknown()

func (*MediationReportSpec_DimensionFilter) XXX_Marshal

func (m *MediationReportSpec_DimensionFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MediationReportSpec_DimensionFilter) XXX_Merge

func (*MediationReportSpec_DimensionFilter) XXX_OneofWrappers

func (*MediationReportSpec_DimensionFilter) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MediationReportSpec_DimensionFilter) XXX_Size

func (*MediationReportSpec_DimensionFilter) XXX_Unmarshal

func (m *MediationReportSpec_DimensionFilter) XXX_Unmarshal(b []byte) error

type MediationReportSpec_DimensionFilter_MatchesAny

type MediationReportSpec_DimensionFilter_MatchesAny struct {
	MatchesAny *StringList `protobuf:"bytes,2,opt,name=matches_any,json=matchesAny,proto3,oneof"`
}

type MediationReportSpec_Metric

type MediationReportSpec_Metric int32

The metrics of the mediation report. Metrics are quantitative measurements indicating how the publisher business is performing. They are aggregated from the individual ad events and grouped by the report dimensions. The metric value is either integer, or decimal (without rounding).

const (
	// Default value for an unset field. Do not use.
	MediationReportSpec_METRIC_UNSPECIFIED MediationReportSpec_Metric = 0
	// The number of requests. The value is an integer.
	MediationReportSpec_AD_REQUESTS MediationReportSpec_Metric = 1
	// The number of times a user clicks an ad. The value is an integer.
	MediationReportSpec_CLICKS MediationReportSpec_Metric = 2
	// The estimated earnings of the AdMob publisher. The currency unit (USD,
	// EUR, or other) of the earning metrics are determined by the localization
	// setting for currency. The amount is in micros. For example, $6.50 would
	// be represented as 6500000.
	// Warning: The metric is incompatible with AD_SOURCE_INSTANCE and
	// MEDIATION_GROUP dimensions.
	MediationReportSpec_ESTIMATED_EARNINGS MediationReportSpec_Metric = 3
	// The total number of ads shown to users. The value is an integer.
	MediationReportSpec_IMPRESSIONS MediationReportSpec_Metric = 4
	// The ratio of clicks over impressions. The value is a double precision
	// (approximate) decimal value.
	MediationReportSpec_IMPRESSION_CTR MediationReportSpec_Metric = 5
	// The number of times ads are returned in response to a request. The value
	// is an integer.
	MediationReportSpec_MATCHED_REQUESTS MediationReportSpec_Metric = 6
	// The ratio of matched ad requests over the total ad requests. The value is
	// a double precision (approximate) decimal value.
	MediationReportSpec_MATCH_RATE MediationReportSpec_Metric = 7
	// The third-party ad network's estimated average eCPM. The currency unit
	// (USD, EUR, or other) of the earning metrics are determined by the
	// localization setting for currency. The amount is in micros. For example,
	// $2.30 would be represented as 2300000.
	// Warning: The metric is incompatible with AD_SOURCE_INSTANCE and
	// MEDIATION_GROUP dimensions.
	MediationReportSpec_OBSERVED_ECPM MediationReportSpec_Metric = 8
)

func (MediationReportSpec_Metric) EnumDescriptor

func (MediationReportSpec_Metric) EnumDescriptor() ([]byte, []int)

func (MediationReportSpec_Metric) String

type MediationReportSpec_SortCondition

type MediationReportSpec_SortCondition struct {
	// Identifies which values to sort on.
	//
	// Types that are valid to be assigned to SortOn:
	//	*MediationReportSpec_SortCondition_Dimension
	//	*MediationReportSpec_SortCondition_Metric
	SortOn isMediationReportSpec_SortCondition_SortOn `protobuf_oneof:"sort_on"`
	// Sorting order of the dimension or metric.
	Order                SortOrder `protobuf:"varint,3,opt,name=order,proto3,enum=google.ads.admob.v1.SortOrder" json:"order,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Sorting direction to be applied on a dimension or a metric.

func (*MediationReportSpec_SortCondition) Descriptor

func (*MediationReportSpec_SortCondition) Descriptor() ([]byte, []int)

func (*MediationReportSpec_SortCondition) GetDimension

func (*MediationReportSpec_SortCondition) GetMetric

func (*MediationReportSpec_SortCondition) GetOrder

func (*MediationReportSpec_SortCondition) GetSortOn

func (m *MediationReportSpec_SortCondition) GetSortOn() isMediationReportSpec_SortCondition_SortOn

func (*MediationReportSpec_SortCondition) ProtoMessage

func (*MediationReportSpec_SortCondition) ProtoMessage()

func (*MediationReportSpec_SortCondition) Reset

func (*MediationReportSpec_SortCondition) String

func (*MediationReportSpec_SortCondition) XXX_DiscardUnknown

func (m *MediationReportSpec_SortCondition) XXX_DiscardUnknown()

func (*MediationReportSpec_SortCondition) XXX_Marshal

func (m *MediationReportSpec_SortCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MediationReportSpec_SortCondition) XXX_Merge

func (*MediationReportSpec_SortCondition) XXX_OneofWrappers

func (*MediationReportSpec_SortCondition) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MediationReportSpec_SortCondition) XXX_Size

func (m *MediationReportSpec_SortCondition) XXX_Size() int

func (*MediationReportSpec_SortCondition) XXX_Unmarshal

func (m *MediationReportSpec_SortCondition) XXX_Unmarshal(b []byte) error

type MediationReportSpec_SortCondition_Dimension

type MediationReportSpec_SortCondition_Dimension struct {
	Dimension MediationReportSpec_Dimension `protobuf:"varint,1,opt,name=dimension,proto3,enum=google.ads.admob.v1.MediationReportSpec_Dimension,oneof"`
}

type MediationReportSpec_SortCondition_Metric

type MediationReportSpec_SortCondition_Metric struct {
	Metric MediationReportSpec_Metric `protobuf:"varint,2,opt,name=metric,proto3,enum=google.ads.admob.v1.MediationReportSpec_Metric,oneof"`
}

type NetworkReportSpec

type NetworkReportSpec struct {
	// The date range for which the report is generated.
	DateRange *DateRange `protobuf:"bytes,1,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
	// List of dimensions of the report. The value combination of these dimensions
	// determines the row of the report. If no dimensions are specified, the
	// report returns a single row of requested metrics for the entire account.
	Dimensions []NetworkReportSpec_Dimension `` /* 134-byte string literal not displayed */
	// List of metrics of the report. A report must specify at least one metric.
	Metrics []NetworkReportSpec_Metric `protobuf:"varint,3,rep,packed,name=metrics,proto3,enum=google.ads.admob.v1.NetworkReportSpec_Metric" json:"metrics,omitempty"`
	// Describes which report rows to match based on their dimension values.
	DimensionFilters []*NetworkReportSpec_DimensionFilter `protobuf:"bytes,4,rep,name=dimension_filters,json=dimensionFilters,proto3" json:"dimension_filters,omitempty"`
	// Describes the sorting of report rows. The order of the condition in the
	// list defines its precedence; the earlier the condition, the higher its
	// precedence. If no sort conditions are specified, the row ordering is
	// undefined.
	SortConditions []*NetworkReportSpec_SortCondition `protobuf:"bytes,5,rep,name=sort_conditions,json=sortConditions,proto3" json:"sort_conditions,omitempty"`
	// Localization settings of the report.
	LocalizationSettings *LocalizationSettings `protobuf:"bytes,6,opt,name=localization_settings,json=localizationSettings,proto3" json:"localization_settings,omitempty"`
	// Maximum number of report data rows to return. If the value is not set, the
	// API returns as many rows as possible, up to 100000. Acceptable values are
	// 1-100000, inclusive. Any other values are treated as 100000.
	MaxReportRows        int32    `protobuf:"varint,7,opt,name=max_report_rows,json=maxReportRows,proto3" json:"max_report_rows,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The specification for generating an AdMob Network report. For example, the specification to get clicks and estimated earnings for only the 'US' and 'CN' countries can look like the following example:

{
  'date_range': {
    'start_date': {'year': 2018, 'month': 9, 'day': 1},
    'end_date': {'year': 2018, 'month': 9, 'day': 30}
  },
  'dimensions': ['DATE', 'APP', 'COUNTRY'],
  'metrics': ['CLICKS', 'ESTIMATED_EARNINGS'],
  'dimension_filters': [
    {
      'dimension': 'COUNTRY',
      'matches_any': {'values': [{'value': 'US', 'value': 'CN'}]}
    }
  ],
  'sort_conditions': [
    {'dimension':'APP', order: 'ASCENDING'},
    {'metric':'CLICKS', order: 'DESCENDING'}
  ],
  'localization_settings': {
    'currency_code': 'USD',
    'language_code': 'en-US'
  }
}

For a better understanding, you can treat the preceding specification like the following pseudo SQL:

SELECT DATE, APP, COUNTRY, CLICKS, ESTIMATED_EARNINGS
FROM NETWORK_REPORT
WHERE DATE >= '2018-09-01' AND DATE <= '2018-09-30'
    AND COUNTRY IN ('US', 'CN')
GROUP BY DATE, APP, COUNTRY
ORDER BY APP ASC, CLICKS DESC;

func (*NetworkReportSpec) Descriptor

func (*NetworkReportSpec) Descriptor() ([]byte, []int)

func (*NetworkReportSpec) GetDateRange

func (m *NetworkReportSpec) GetDateRange() *DateRange

func (*NetworkReportSpec) GetDimensionFilters

func (m *NetworkReportSpec) GetDimensionFilters() []*NetworkReportSpec_DimensionFilter

func (*NetworkReportSpec) GetDimensions

func (m *NetworkReportSpec) GetDimensions() []NetworkReportSpec_Dimension

func (*NetworkReportSpec) GetLocalizationSettings

func (m *NetworkReportSpec) GetLocalizationSettings() *LocalizationSettings

func (*NetworkReportSpec) GetMaxReportRows

func (m *NetworkReportSpec) GetMaxReportRows() int32

func (*NetworkReportSpec) GetMetrics

func (m *NetworkReportSpec) GetMetrics() []NetworkReportSpec_Metric

func (*NetworkReportSpec) GetSortConditions

func (m *NetworkReportSpec) GetSortConditions() []*NetworkReportSpec_SortCondition

func (*NetworkReportSpec) ProtoMessage

func (*NetworkReportSpec) ProtoMessage()

func (*NetworkReportSpec) Reset

func (m *NetworkReportSpec) Reset()

func (*NetworkReportSpec) String

func (m *NetworkReportSpec) String() string

func (*NetworkReportSpec) XXX_DiscardUnknown

func (m *NetworkReportSpec) XXX_DiscardUnknown()

func (*NetworkReportSpec) XXX_Marshal

func (m *NetworkReportSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkReportSpec) XXX_Merge

func (m *NetworkReportSpec) XXX_Merge(src proto.Message)

func (*NetworkReportSpec) XXX_Size

func (m *NetworkReportSpec) XXX_Size() int

func (*NetworkReportSpec) XXX_Unmarshal

func (m *NetworkReportSpec) XXX_Unmarshal(b []byte) error

type NetworkReportSpec_Dimension

type NetworkReportSpec_Dimension int32

The dimensions of the network report. Dimensions are data attributes to break down or refine the quantitative measurements (metrics) by certain attributes, such as the ad format or the platform an ad was viewed on.

const (
	// Default value for an unset field. Do not use.
	NetworkReportSpec_DIMENSION_UNSPECIFIED NetworkReportSpec_Dimension = 0
	// A date in the YYYY-MM-DD format (for example, "2018-12-21"). Requests can
	// specify at most one time dimension.
	NetworkReportSpec_DATE NetworkReportSpec_Dimension = 1
	// A month in the YYYY-MM format (for example, "2018-12"). Requests can
	// specify at most one time dimension.
	NetworkReportSpec_MONTH NetworkReportSpec_Dimension = 2
	// The date of the first day of a week in the YYYY-MM-DD format
	// (for example, "2018-12-21"). Requests can specify at most one time
	// dimension.
	NetworkReportSpec_WEEK NetworkReportSpec_Dimension = 3
	// The unique ID of the ad unit (for example, "ca-app-pub-1234/1234").
	// If AD_UNIT dimension is specified, then APP is included automatically.
	NetworkReportSpec_AD_UNIT NetworkReportSpec_Dimension = 4
	// The unique ID of the mobile application (for example,
	// "ca-app-pub-1234~1234").
	NetworkReportSpec_APP NetworkReportSpec_Dimension = 5
	// CLDR country code of the place where the ad views/clicks occur (for
	// example, "US" or "FR"). This is a geography dimension.
	NetworkReportSpec_COUNTRY NetworkReportSpec_Dimension = 7
	// Format of the ad unit (for example, "banner", "native"), an ad delivery
	// dimension.
	NetworkReportSpec_FORMAT NetworkReportSpec_Dimension = 8
	// Mobile OS platform of the app (for example, "Android" or "iOS").
	NetworkReportSpec_PLATFORM NetworkReportSpec_Dimension = 9
)

func (NetworkReportSpec_Dimension) EnumDescriptor

func (NetworkReportSpec_Dimension) EnumDescriptor() ([]byte, []int)

func (NetworkReportSpec_Dimension) String

type NetworkReportSpec_DimensionFilter

type NetworkReportSpec_DimensionFilter struct {
	// Applies the filter criterion to the specified dimension.
	Dimension NetworkReportSpec_Dimension `protobuf:"varint,1,opt,name=dimension,proto3,enum=google.ads.admob.v1.NetworkReportSpec_Dimension" json:"dimension,omitempty"`
	// Filter operator to be applied.
	//
	// Types that are valid to be assigned to Operator:
	//	*NetworkReportSpec_DimensionFilter_MatchesAny
	Operator             isNetworkReportSpec_DimensionFilter_Operator `protobuf_oneof:"operator"`
	XXX_NoUnkeyedLiteral struct{}                                     `json:"-"`
	XXX_unrecognized     []byte                                       `json:"-"`
	XXX_sizecache        int32                                        `json:"-"`
}

Describes which report rows to match based on their dimension values.

func (*NetworkReportSpec_DimensionFilter) Descriptor

func (*NetworkReportSpec_DimensionFilter) Descriptor() ([]byte, []int)

func (*NetworkReportSpec_DimensionFilter) GetDimension

func (*NetworkReportSpec_DimensionFilter) GetMatchesAny

func (m *NetworkReportSpec_DimensionFilter) GetMatchesAny() *StringList

func (*NetworkReportSpec_DimensionFilter) GetOperator

func (m *NetworkReportSpec_DimensionFilter) GetOperator() isNetworkReportSpec_DimensionFilter_Operator

func (*NetworkReportSpec_DimensionFilter) ProtoMessage

func (*NetworkReportSpec_DimensionFilter) ProtoMessage()

func (*NetworkReportSpec_DimensionFilter) Reset

func (*NetworkReportSpec_DimensionFilter) String

func (*NetworkReportSpec_DimensionFilter) XXX_DiscardUnknown

func (m *NetworkReportSpec_DimensionFilter) XXX_DiscardUnknown()

func (*NetworkReportSpec_DimensionFilter) XXX_Marshal

func (m *NetworkReportSpec_DimensionFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkReportSpec_DimensionFilter) XXX_Merge

func (*NetworkReportSpec_DimensionFilter) XXX_OneofWrappers

func (*NetworkReportSpec_DimensionFilter) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*NetworkReportSpec_DimensionFilter) XXX_Size

func (m *NetworkReportSpec_DimensionFilter) XXX_Size() int

func (*NetworkReportSpec_DimensionFilter) XXX_Unmarshal

func (m *NetworkReportSpec_DimensionFilter) XXX_Unmarshal(b []byte) error

type NetworkReportSpec_DimensionFilter_MatchesAny

type NetworkReportSpec_DimensionFilter_MatchesAny struct {
	MatchesAny *StringList `protobuf:"bytes,2,opt,name=matches_any,json=matchesAny,proto3,oneof"`
}

type NetworkReportSpec_Metric

type NetworkReportSpec_Metric int32

The metrics of the network report. Metrics are quantitative measurements indicating how the publisher business is performing. They are aggregated from the individual ad events and grouped by the report dimensions. The metric value is either integer, or decimal (without rounding).

const (
	// Default value for an unset field. Do not use.
	NetworkReportSpec_METRIC_UNSPECIFIED NetworkReportSpec_Metric = 0
	// The number of ad requests. The value is an integer.
	NetworkReportSpec_AD_REQUESTS NetworkReportSpec_Metric = 1
	// The number of times a user clicks an ad. The value is an integer.
	NetworkReportSpec_CLICKS NetworkReportSpec_Metric = 2
	// The estimated earnings of the AdMob publisher. The currency unit (USD,
	// EUR, or other) of the earning metrics are determined by the localization
	// setting for currency. The amount is in micros. For example, $6.50 would
	// be represented as 6500000.
	NetworkReportSpec_ESTIMATED_EARNINGS NetworkReportSpec_Metric = 3
	// The total number of ads shown to users. The value is an integer.
	NetworkReportSpec_IMPRESSIONS NetworkReportSpec_Metric = 4
	// The ratio of clicks over impressions. The value is a double precision
	// (approximate) decimal value.
	NetworkReportSpec_IMPRESSION_CTR NetworkReportSpec_Metric = 5
	// The estimated earnings per thousand ad impressions. The value is in
	// micros. For example, $1.03 would be represented as 1030000.
	NetworkReportSpec_IMPRESSION_RPM NetworkReportSpec_Metric = 6
	// The number of times ads are returned in response to a request. The value
	// is an integer.
	NetworkReportSpec_MATCHED_REQUESTS NetworkReportSpec_Metric = 7
	// The ratio of matched ad requests over the total ad requests. The value is
	// a double precision (approximate) decimal value.
	NetworkReportSpec_MATCH_RATE NetworkReportSpec_Metric = 8
	// The ratio of ads that are displayed over ads that are returned, defined
	// as impressions / matched requests. The value is a double precision
	// (approximate) decimal value.
	NetworkReportSpec_SHOW_RATE NetworkReportSpec_Metric = 9
)

func (NetworkReportSpec_Metric) EnumDescriptor

func (NetworkReportSpec_Metric) EnumDescriptor() ([]byte, []int)

func (NetworkReportSpec_Metric) String

func (x NetworkReportSpec_Metric) String() string

type NetworkReportSpec_SortCondition

type NetworkReportSpec_SortCondition struct {
	// Identifies which values to sort on.
	//
	// Types that are valid to be assigned to SortOn:
	//	*NetworkReportSpec_SortCondition_Dimension
	//	*NetworkReportSpec_SortCondition_Metric
	SortOn isNetworkReportSpec_SortCondition_SortOn `protobuf_oneof:"sort_on"`
	// Sorting order of the dimension or metric.
	Order                SortOrder `protobuf:"varint,3,opt,name=order,proto3,enum=google.ads.admob.v1.SortOrder" json:"order,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Sorting direction to be applied on a dimension or a metric.

func (*NetworkReportSpec_SortCondition) Descriptor

func (*NetworkReportSpec_SortCondition) Descriptor() ([]byte, []int)

func (*NetworkReportSpec_SortCondition) GetDimension

func (*NetworkReportSpec_SortCondition) GetMetric

func (*NetworkReportSpec_SortCondition) GetOrder

func (*NetworkReportSpec_SortCondition) GetSortOn

func (m *NetworkReportSpec_SortCondition) GetSortOn() isNetworkReportSpec_SortCondition_SortOn

func (*NetworkReportSpec_SortCondition) ProtoMessage

func (*NetworkReportSpec_SortCondition) ProtoMessage()

func (*NetworkReportSpec_SortCondition) Reset

func (*NetworkReportSpec_SortCondition) String

func (*NetworkReportSpec_SortCondition) XXX_DiscardUnknown

func (m *NetworkReportSpec_SortCondition) XXX_DiscardUnknown()

func (*NetworkReportSpec_SortCondition) XXX_Marshal

func (m *NetworkReportSpec_SortCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkReportSpec_SortCondition) XXX_Merge

func (m *NetworkReportSpec_SortCondition) XXX_Merge(src proto.Message)

func (*NetworkReportSpec_SortCondition) XXX_OneofWrappers

func (*NetworkReportSpec_SortCondition) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*NetworkReportSpec_SortCondition) XXX_Size

func (m *NetworkReportSpec_SortCondition) XXX_Size() int

func (*NetworkReportSpec_SortCondition) XXX_Unmarshal

func (m *NetworkReportSpec_SortCondition) XXX_Unmarshal(b []byte) error

type NetworkReportSpec_SortCondition_Dimension

type NetworkReportSpec_SortCondition_Dimension struct {
	Dimension NetworkReportSpec_Dimension `protobuf:"varint,1,opt,name=dimension,proto3,enum=google.ads.admob.v1.NetworkReportSpec_Dimension,oneof"`
}

type NetworkReportSpec_SortCondition_Metric

type NetworkReportSpec_SortCondition_Metric struct {
	Metric NetworkReportSpec_Metric `protobuf:"varint,2,opt,name=metric,proto3,enum=google.ads.admob.v1.NetworkReportSpec_Metric,oneof"`
}

type PublisherAccount

type PublisherAccount struct {
	// Resource name of this account.
	// Format is accounts/{publisher_id}.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The unique ID by which this publisher account can be identified
	// in the API requests (for example, pub-1234567890).
	PublisherId string `protobuf:"bytes,2,opt,name=publisher_id,json=publisherId,proto3" json:"publisher_id,omitempty"`
	// The time zone that is used in reports that are generated for this account.
	// The value is a time-zone ID as specified by the CLDR project,
	// for example, "America/Los_Angeles".
	ReportingTimeZone string `protobuf:"bytes,3,opt,name=reporting_time_zone,json=reportingTimeZone,proto3" json:"reporting_time_zone,omitempty"`
	// Currency code of the earning-related metrics, which is the 3-letter code
	// defined in ISO 4217. The daily average rate is used for the currency
	// conversion.
	CurrencyCode         string   `protobuf:"bytes,4,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A publisher account contains information relevant to the use of this API, such as the time zone used for the reports.

func (*PublisherAccount) Descriptor

func (*PublisherAccount) Descriptor() ([]byte, []int)

func (*PublisherAccount) GetCurrencyCode

func (m *PublisherAccount) GetCurrencyCode() string

func (*PublisherAccount) GetName

func (m *PublisherAccount) GetName() string

func (*PublisherAccount) GetPublisherId

func (m *PublisherAccount) GetPublisherId() string

func (*PublisherAccount) GetReportingTimeZone

func (m *PublisherAccount) GetReportingTimeZone() string

func (*PublisherAccount) ProtoMessage

func (*PublisherAccount) ProtoMessage()

func (*PublisherAccount) Reset

func (m *PublisherAccount) Reset()

func (*PublisherAccount) String

func (m *PublisherAccount) String() string

func (*PublisherAccount) XXX_DiscardUnknown

func (m *PublisherAccount) XXX_DiscardUnknown()

func (*PublisherAccount) XXX_Marshal

func (m *PublisherAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublisherAccount) XXX_Merge

func (m *PublisherAccount) XXX_Merge(src proto.Message)

func (*PublisherAccount) XXX_Size

func (m *PublisherAccount) XXX_Size() int

func (*PublisherAccount) XXX_Unmarshal

func (m *PublisherAccount) XXX_Unmarshal(b []byte) error

type ReportFooter

type ReportFooter struct {
	// Warnings associated with generation of the report.
	Warnings []*ReportWarning `protobuf:"bytes,1,rep,name=warnings,proto3" json:"warnings,omitempty"`
	// Total number of rows that did match the request.
	MatchingRowCount     int64    `protobuf:"varint,2,opt,name=matching_row_count,json=matchingRowCount,proto3" json:"matching_row_count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Groups data available after report generation, for example, warnings and row counts. Always sent as the last message in the stream response.

func (*ReportFooter) Descriptor

func (*ReportFooter) Descriptor() ([]byte, []int)

func (*ReportFooter) GetMatchingRowCount

func (m *ReportFooter) GetMatchingRowCount() int64

func (*ReportFooter) GetWarnings

func (m *ReportFooter) GetWarnings() []*ReportWarning

func (*ReportFooter) ProtoMessage

func (*ReportFooter) ProtoMessage()

func (*ReportFooter) Reset

func (m *ReportFooter) Reset()

func (*ReportFooter) String

func (m *ReportFooter) String() string

func (*ReportFooter) XXX_DiscardUnknown

func (m *ReportFooter) XXX_DiscardUnknown()

func (*ReportFooter) XXX_Marshal

func (m *ReportFooter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReportFooter) XXX_Merge

func (m *ReportFooter) XXX_Merge(src proto.Message)

func (*ReportFooter) XXX_Size

func (m *ReportFooter) XXX_Size() int

func (*ReportFooter) XXX_Unmarshal

func (m *ReportFooter) XXX_Unmarshal(b []byte) error

type ReportHeader

type ReportHeader struct {
	// The date range for which the report is generated. This is identical to the
	// range specified in the report request.
	DateRange *DateRange `protobuf:"bytes,1,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
	// Localization settings of the report. This is identical to the settings
	// in the report request.
	LocalizationSettings *LocalizationSettings `protobuf:"bytes,2,opt,name=localization_settings,json=localizationSettings,proto3" json:"localization_settings,omitempty"`
	// The report time zone. The value is a time-zone ID as specified by the CLDR
	// project, for example, "America/Los_Angeles".
	ReportingTimeZone    string   `protobuf:"bytes,3,opt,name=reporting_time_zone,json=reportingTimeZone,proto3" json:"reporting_time_zone,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Groups data helps to treat the generated report. Always sent as a first message in the stream response.

func (*ReportHeader) Descriptor

func (*ReportHeader) Descriptor() ([]byte, []int)

func (*ReportHeader) GetDateRange

func (m *ReportHeader) GetDateRange() *DateRange

func (*ReportHeader) GetLocalizationSettings

func (m *ReportHeader) GetLocalizationSettings() *LocalizationSettings

func (*ReportHeader) GetReportingTimeZone

func (m *ReportHeader) GetReportingTimeZone() string

func (*ReportHeader) ProtoMessage

func (*ReportHeader) ProtoMessage()

func (*ReportHeader) Reset

func (m *ReportHeader) Reset()

func (*ReportHeader) String

func (m *ReportHeader) String() string

func (*ReportHeader) XXX_DiscardUnknown

func (m *ReportHeader) XXX_DiscardUnknown()

func (*ReportHeader) XXX_Marshal

func (m *ReportHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReportHeader) XXX_Merge

func (m *ReportHeader) XXX_Merge(src proto.Message)

func (*ReportHeader) XXX_Size

func (m *ReportHeader) XXX_Size() int

func (*ReportHeader) XXX_Unmarshal

func (m *ReportHeader) XXX_Unmarshal(b []byte) error

type ReportRow

type ReportRow struct {
	// Map of dimension values in a row, with keys as enum name of the dimensions.
	DimensionValues map[string]*ReportRow_DimensionValue `` /* 194-byte string literal not displayed */
	// Map of metric values in a row, with keys as enum name of the metrics. If
	// a metric being requested has no value returned, the map will not include
	// it.
	MetricValues         map[string]*ReportRow_MetricValue `` /* 185-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

A row of the returning report.

func (*ReportRow) Descriptor

func (*ReportRow) Descriptor() ([]byte, []int)

func (*ReportRow) GetDimensionValues

func (m *ReportRow) GetDimensionValues() map[string]*ReportRow_DimensionValue

func (*ReportRow) GetMetricValues

func (m *ReportRow) GetMetricValues() map[string]*ReportRow_MetricValue

func (*ReportRow) ProtoMessage

func (*ReportRow) ProtoMessage()

func (*ReportRow) Reset

func (m *ReportRow) Reset()

func (*ReportRow) String

func (m *ReportRow) String() string

func (*ReportRow) XXX_DiscardUnknown

func (m *ReportRow) XXX_DiscardUnknown()

func (*ReportRow) XXX_Marshal

func (m *ReportRow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReportRow) XXX_Merge

func (m *ReportRow) XXX_Merge(src proto.Message)

func (*ReportRow) XXX_Size

func (m *ReportRow) XXX_Size() int

func (*ReportRow) XXX_Unmarshal

func (m *ReportRow) XXX_Unmarshal(b []byte) error

type ReportRow_DimensionValue

type ReportRow_DimensionValue struct {
	// Dimension value in the format specified in the report's spec Dimension
	// enum.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// The localized string representation of the value. If unspecified, the
	// display label should be derived from the value.
	DisplayLabel         string   `protobuf:"bytes,2,opt,name=display_label,json=displayLabel,proto3" json:"display_label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Representation of a dimension value.

func (*ReportRow_DimensionValue) Descriptor

func (*ReportRow_DimensionValue) Descriptor() ([]byte, []int)

func (*ReportRow_DimensionValue) GetDisplayLabel

func (m *ReportRow_DimensionValue) GetDisplayLabel() string

func (*ReportRow_DimensionValue) GetValue

func (m *ReportRow_DimensionValue) GetValue() string

func (*ReportRow_DimensionValue) ProtoMessage

func (*ReportRow_DimensionValue) ProtoMessage()

func (*ReportRow_DimensionValue) Reset

func (m *ReportRow_DimensionValue) Reset()

func (*ReportRow_DimensionValue) String

func (m *ReportRow_DimensionValue) String() string

func (*ReportRow_DimensionValue) XXX_DiscardUnknown

func (m *ReportRow_DimensionValue) XXX_DiscardUnknown()

func (*ReportRow_DimensionValue) XXX_Marshal

func (m *ReportRow_DimensionValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReportRow_DimensionValue) XXX_Merge

func (m *ReportRow_DimensionValue) XXX_Merge(src proto.Message)

func (*ReportRow_DimensionValue) XXX_Size

func (m *ReportRow_DimensionValue) XXX_Size() int

func (*ReportRow_DimensionValue) XXX_Unmarshal

func (m *ReportRow_DimensionValue) XXX_Unmarshal(b []byte) error

type ReportRow_MetricValue

type ReportRow_MetricValue struct {
	// Metric value in the format specified in the report's spec Metric enum
	// name.
	//
	// Types that are valid to be assigned to Value:
	//	*ReportRow_MetricValue_IntegerValue
	//	*ReportRow_MetricValue_DoubleValue
	//	*ReportRow_MetricValue_MicrosValue
	Value                isReportRow_MetricValue_Value `protobuf_oneof:"value"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

Representation of a metric value.

func (*ReportRow_MetricValue) Descriptor

func (*ReportRow_MetricValue) Descriptor() ([]byte, []int)

func (*ReportRow_MetricValue) GetDoubleValue

func (m *ReportRow_MetricValue) GetDoubleValue() float64

func (*ReportRow_MetricValue) GetIntegerValue

func (m *ReportRow_MetricValue) GetIntegerValue() int64

func (*ReportRow_MetricValue) GetMicrosValue

func (m *ReportRow_MetricValue) GetMicrosValue() int64

func (*ReportRow_MetricValue) GetValue

func (m *ReportRow_MetricValue) GetValue() isReportRow_MetricValue_Value

func (*ReportRow_MetricValue) ProtoMessage

func (*ReportRow_MetricValue) ProtoMessage()

func (*ReportRow_MetricValue) Reset

func (m *ReportRow_MetricValue) Reset()

func (*ReportRow_MetricValue) String

func (m *ReportRow_MetricValue) String() string

func (*ReportRow_MetricValue) XXX_DiscardUnknown

func (m *ReportRow_MetricValue) XXX_DiscardUnknown()

func (*ReportRow_MetricValue) XXX_Marshal

func (m *ReportRow_MetricValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReportRow_MetricValue) XXX_Merge

func (m *ReportRow_MetricValue) XXX_Merge(src proto.Message)

func (*ReportRow_MetricValue) XXX_OneofWrappers

func (*ReportRow_MetricValue) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ReportRow_MetricValue) XXX_Size

func (m *ReportRow_MetricValue) XXX_Size() int

func (*ReportRow_MetricValue) XXX_Unmarshal

func (m *ReportRow_MetricValue) XXX_Unmarshal(b []byte) error

type ReportRow_MetricValue_DoubleValue

type ReportRow_MetricValue_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3,oneof"`
}

type ReportRow_MetricValue_IntegerValue

type ReportRow_MetricValue_IntegerValue struct {
	IntegerValue int64 `protobuf:"varint,1,opt,name=integer_value,json=integerValue,proto3,oneof"`
}

type ReportRow_MetricValue_MicrosValue

type ReportRow_MetricValue_MicrosValue struct {
	MicrosValue int64 `protobuf:"varint,3,opt,name=micros_value,json=microsValue,proto3,oneof"`
}

type ReportWarning

type ReportWarning struct {
	// Type of the warning.
	Type ReportWarning_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.ads.admob.v1.ReportWarning_Type" json:"type,omitempty"`
	// Describes the details of the warning message, in English.
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Warnings associated with generation of the report.

func (*ReportWarning) Descriptor

func (*ReportWarning) Descriptor() ([]byte, []int)

func (*ReportWarning) GetDescription

func (m *ReportWarning) GetDescription() string

func (*ReportWarning) GetType

func (m *ReportWarning) GetType() ReportWarning_Type

func (*ReportWarning) ProtoMessage

func (*ReportWarning) ProtoMessage()

func (*ReportWarning) Reset

func (m *ReportWarning) Reset()

func (*ReportWarning) String

func (m *ReportWarning) String() string

func (*ReportWarning) XXX_DiscardUnknown

func (m *ReportWarning) XXX_DiscardUnknown()

func (*ReportWarning) XXX_Marshal

func (m *ReportWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReportWarning) XXX_Merge

func (m *ReportWarning) XXX_Merge(src proto.Message)

func (*ReportWarning) XXX_Size

func (m *ReportWarning) XXX_Size() int

func (*ReportWarning) XXX_Unmarshal

func (m *ReportWarning) XXX_Unmarshal(b []byte) error

type ReportWarning_Type

type ReportWarning_Type int32

Warning type.

const (
	// Default value for an unset field. Do not use.
	ReportWarning_TYPE_UNSPECIFIED ReportWarning_Type = 0
	// Some data in this report is aggregated based on a time zone different
	// from the requested time zone. This could happen if a local time-zone
	// report has the start time before the last time this time zone changed.
	// The description field will contain the date of the last time zone
	// change.
	ReportWarning_DATA_BEFORE_ACCOUNT_TIMEZONE_CHANGE ReportWarning_Type = 1
	// There is an unusual delay in processing the source data for the
	// requested date range. The report results might be less up to date than
	// usual. AdMob is aware of the issue and is actively working to resolve
	// it.
	ReportWarning_DATA_DELAYED ReportWarning_Type = 2
	// Warnings that are exposed without a specific type. Useful when new
	// warning types are added but the API is not changed yet.
	ReportWarning_OTHER ReportWarning_Type = 3
	// The currency being requested is not the account currency. The earning
	// metrics will be based on the requested currency, and thus not a good
	// estimation of the final payment anymore, due to the currency rate
	// fluctuation.
	ReportWarning_REPORT_CURRENCY_NOT_ACCOUNT_CURRENCY ReportWarning_Type = 4
)

func (ReportWarning_Type) EnumDescriptor

func (ReportWarning_Type) EnumDescriptor() ([]byte, []int)

func (ReportWarning_Type) String

func (x ReportWarning_Type) String() string

type SortOrder

type SortOrder int32

The sorting order.

const (
	// Default value for an unset field. Do not use.
	SortOrder_SORT_ORDER_UNSPECIFIED SortOrder = 0
	// Sort dimension value or metric value in ascending order.
	SortOrder_ASCENDING SortOrder = 1
	// Sort dimension value or metric value in descending order.
	SortOrder_DESCENDING SortOrder = 2
)

func (SortOrder) EnumDescriptor

func (SortOrder) EnumDescriptor() ([]byte, []int)

func (SortOrder) String

func (x SortOrder) String() string

type StringList

type StringList struct {
	// The string values.
	Values               []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List of string values.

func (*StringList) Descriptor

func (*StringList) Descriptor() ([]byte, []int)

func (*StringList) GetValues

func (m *StringList) GetValues() []string

func (*StringList) ProtoMessage

func (*StringList) ProtoMessage()

func (*StringList) Reset

func (m *StringList) Reset()

func (*StringList) String

func (m *StringList) String() string

func (*StringList) XXX_DiscardUnknown

func (m *StringList) XXX_DiscardUnknown()

func (*StringList) XXX_Marshal

func (m *StringList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringList) XXX_Merge

func (m *StringList) XXX_Merge(src proto.Message)

func (*StringList) XXX_Size

func (m *StringList) XXX_Size() int

func (*StringList) XXX_Unmarshal

func (m *StringList) XXX_Unmarshal(b []byte) error

type UnimplementedAdMobApiServer

type UnimplementedAdMobApiServer struct {
}

UnimplementedAdMobApiServer can be embedded to have forward compatible implementations.

func (*UnimplementedAdMobApiServer) GenerateMediationReport

func (*UnimplementedAdMobApiServer) GenerateNetworkReport

func (*UnimplementedAdMobApiServer) GetPublisherAccount

func (*UnimplementedAdMobApiServer) ListPublisherAccounts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL