Class YoutubeProductPerformanceView (0.44.0)

public final class YoutubeProductPerformanceView extends GeneratedMessageV3 implements YoutubeProductPerformanceViewOrBuilder

Fields available for query in youtube_product_performance_view table.

YouTube product performance data for your account. This data is only available if an account is enrolled in the YouTube Shopping Affiliate program.

Values are only set for fields requested explicitly in the request's search query.

Protobuf type google.shopping.merchant.reports.v1alpha.YoutubeProductPerformanceView

Static Fields

CLICKS_FIELD_NUMBER

public static final int CLICKS_FIELD_NUMBER
Field Value
Type Description
int

COMMISSIONS_FIELD_NUMBER

public static final int COMMISSIONS_FIELD_NUMBER
Field Value
Type Description
int

DATE_FIELD_NUMBER

public static final int DATE_FIELD_NUMBER
Field Value
Type Description
int

DISTINCT_CREATOR_COUNT_FIELD_NUMBER

public static final int DISTINCT_CREATOR_COUNT_FIELD_NUMBER
Field Value
Type Description
int

DISTINCT_VIDEO_COUNT_FIELD_NUMBER

public static final int DISTINCT_VIDEO_COUNT_FIELD_NUMBER
Field Value
Type Description
int

GROSS_SALES_FIELD_NUMBER

public static final int GROSS_SALES_FIELD_NUMBER
Field Value
Type Description
int

NET_SALES_FIELD_NUMBER

public static final int NET_SALES_FIELD_NUMBER
Field Value
Type Description
int

OFFER_ID_FIELD_NUMBER

public static final int OFFER_ID_FIELD_NUMBER
Field Value
Type Description
int

ORDERS_FIELD_NUMBER

public static final int ORDERS_FIELD_NUMBER
Field Value
Type Description
int

TITLE_FIELD_NUMBER

public static final int TITLE_FIELD_NUMBER
Field Value
Type Description
int

VIEWS_FIELD_NUMBER

public static final int VIEWS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static YoutubeProductPerformanceView getDefaultInstance()
Returns
Type Description
YoutubeProductPerformanceView

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static YoutubeProductPerformanceView.Builder newBuilder()
Returns
Type Description
YoutubeProductPerformanceView.Builder

newBuilder(YoutubeProductPerformanceView prototype)

public static YoutubeProductPerformanceView.Builder newBuilder(YoutubeProductPerformanceView prototype)
Parameter
Name Description
prototype YoutubeProductPerformanceView
Returns
Type Description
YoutubeProductPerformanceView.Builder

parseDelimitedFrom(InputStream input)

public static YoutubeProductPerformanceView parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static YoutubeProductPerformanceView parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static YoutubeProductPerformanceView parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static YoutubeProductPerformanceView parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static YoutubeProductPerformanceView parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static YoutubeProductPerformanceView parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static YoutubeProductPerformanceView parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static YoutubeProductPerformanceView parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static YoutubeProductPerformanceView parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static YoutubeProductPerformanceView parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static YoutubeProductPerformanceView parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static YoutubeProductPerformanceView parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
YoutubeProductPerformanceView
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<YoutubeProductPerformanceView> parser()
Returns
Type Description
Parser<YoutubeProductPerformanceView>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getClicks()

public long getClicks()

The number of product clicks.

optional int64 clicks = 10;

Returns
Type Description
long

The clicks.

getCommissions()

public Price getCommissions()

The commissions amount (pending and paid).

optional .google.shopping.type.Price commissions = 7;

Returns
Type Description
com.google.shopping.type.Price

The commissions.

getCommissionsOrBuilder()

public PriceOrBuilder getCommissionsOrBuilder()

The commissions amount (pending and paid).

optional .google.shopping.type.Price commissions = 7;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getDate()

public Date getDate()

Date in the merchant timezone to which metrics apply. Segment.

Condition on date is required in the WHERE clause.

.google.type.Date date = 1;

Returns
Type Description
com.google.type.Date

The date.

getDateOrBuilder()

public DateOrBuilder getDateOrBuilder()

Date in the merchant timezone to which metrics apply. Segment.

Condition on date is required in the WHERE clause.

.google.type.Date date = 1;

Returns
Type Description
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public YoutubeProductPerformanceView getDefaultInstanceForType()
Returns
Type Description
YoutubeProductPerformanceView

getDistinctCreatorCount()

public long getDistinctCreatorCount()

The number of distinct creator channels the product was shown on.

optional int64 distinct_creator_count = 5;

Returns
Type Description
long

The distinctCreatorCount.

getDistinctVideoCount()

public long getDistinctVideoCount()

The number of distinct videos the product was shown on.

optional int64 distinct_video_count = 4;

Returns
Type Description
long

The distinctVideoCount.

getGrossSales()

public Price getGrossSales()

The gross sales amount, before refunds.

optional .google.shopping.type.Price gross_sales = 6;

Returns
Type Description
com.google.shopping.type.Price

The grossSales.

getGrossSalesOrBuilder()

public PriceOrBuilder getGrossSalesOrBuilder()

The gross sales amount, before refunds.

optional .google.shopping.type.Price gross_sales = 6;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getNetSales()

public Price getNetSales()

The net sales amount (includes both purchase and refunds).

optional .google.shopping.type.Price net_sales = 11;

Returns
Type Description
com.google.shopping.type.Price

The netSales.

getNetSalesOrBuilder()

public PriceOrBuilder getNetSalesOrBuilder()

The net sales amount (includes both purchase and refunds).

optional .google.shopping.type.Price net_sales = 11;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getOfferId()

public String getOfferId()

The merchant-provided product id.

optional string offer_id = 3;

Returns
Type Description
String

The offerId.

getOfferIdBytes()

public ByteString getOfferIdBytes()

The merchant-provided product id.

optional string offer_id = 3;

Returns
Type Description
ByteString

The bytes for offerId.

getOrders()

public long getOrders()

The number of orders.

optional int64 orders = 8;

Returns
Type Description
long

The orders.

getParserForType()

public Parser<YoutubeProductPerformanceView> getParserForType()
Returns
Type Description
Parser<YoutubeProductPerformanceView>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTitle()

public String getTitle()

The product title.

optional string title = 2;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

The product title.

optional string title = 2;

Returns
Type Description
ByteString

The bytes for title.

getViews()

public long getViews()

The number of YouTube views.

optional int64 views = 9;

Returns
Type Description
long

The views.

hasClicks()

public boolean hasClicks()

The number of product clicks.

optional int64 clicks = 10;

Returns
Type Description
boolean

Whether the clicks field is set.

hasCommissions()

public boolean hasCommissions()

The commissions amount (pending and paid).

optional .google.shopping.type.Price commissions = 7;

Returns
Type Description
boolean

Whether the commissions field is set.

hasDate()

public boolean hasDate()

Date in the merchant timezone to which metrics apply. Segment.

Condition on date is required in the WHERE clause.

.google.type.Date date = 1;

Returns
Type Description
boolean

Whether the date field is set.

hasDistinctCreatorCount()

public boolean hasDistinctCreatorCount()

The number of distinct creator channels the product was shown on.

optional int64 distinct_creator_count = 5;

Returns
Type Description
boolean

Whether the distinctCreatorCount field is set.

hasDistinctVideoCount()

public boolean hasDistinctVideoCount()

The number of distinct videos the product was shown on.

optional int64 distinct_video_count = 4;

Returns
Type Description
boolean

Whether the distinctVideoCount field is set.

hasGrossSales()

public boolean hasGrossSales()

The gross sales amount, before refunds.

optional .google.shopping.type.Price gross_sales = 6;

Returns
Type Description
boolean

Whether the grossSales field is set.

hasNetSales()

public boolean hasNetSales()

The net sales amount (includes both purchase and refunds).

optional .google.shopping.type.Price net_sales = 11;

Returns
Type Description
boolean

Whether the netSales field is set.

hasOfferId()

public boolean hasOfferId()

The merchant-provided product id.

optional string offer_id = 3;

Returns
Type Description
boolean

Whether the offerId field is set.

hasOrders()

public boolean hasOrders()

The number of orders.

optional int64 orders = 8;

Returns
Type Description
boolean

Whether the orders field is set.

hasTitle()

public boolean hasTitle()

The product title.

optional string title = 2;

Returns
Type Description
boolean

Whether the title field is set.

hasViews()

public boolean hasViews()

The number of YouTube views.

optional int64 views = 9;

Returns
Type Description
boolean

Whether the views field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public YoutubeProductPerformanceView.Builder newBuilderForType()
Returns
Type Description
YoutubeProductPerformanceView.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected YoutubeProductPerformanceView.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
YoutubeProductPerformanceView.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public YoutubeProductPerformanceView.Builder toBuilder()
Returns
Type Description
YoutubeProductPerformanceView.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException