Class protos.google.shopping.merchant.reports.v1beta.ProductPerformanceView (0.7.0)

Represents a ProductPerformanceView.

Package

@google-shopping/reports

Constructors

(constructor)(properties)

constructor(properties?: google.shopping.merchant.reports.v1beta.IProductPerformanceView);

Constructs a new ProductPerformanceView.

Parameter
Name Description
properties IProductPerformanceView

Properties to set

Properties

_brand

public _brand?: "brand";

ProductPerformanceView _brand.

_categoryL1

public _categoryL1?: "categoryL1";

ProductPerformanceView _categoryL1.

_categoryL2

public _categoryL2?: "categoryL2";

ProductPerformanceView _categoryL2.

_categoryL3

public _categoryL3?: "categoryL3";

ProductPerformanceView _categoryL3.

_categoryL4

public _categoryL4?: "categoryL4";

ProductPerformanceView _categoryL4.

_categoryL5

public _categoryL5?: "categoryL5";

ProductPerformanceView _categoryL5.

_clicks

public _clicks?: "clicks";

ProductPerformanceView _clicks.

_clickThroughRate

public _clickThroughRate?: "clickThroughRate";

ProductPerformanceView _clickThroughRate.

_conversionRate

public _conversionRate?: "conversionRate";

ProductPerformanceView _conversionRate.

_conversions

public _conversions?: "conversions";

ProductPerformanceView _conversions.

_customerCountryCode

public _customerCountryCode?: "customerCountryCode";

ProductPerformanceView _customerCountryCode.

_customLabel0

public _customLabel0?: "customLabel0";

ProductPerformanceView _customLabel0.

_customLabel1

public _customLabel1?: "customLabel1";

ProductPerformanceView _customLabel1.

_customLabel2

public _customLabel2?: "customLabel2";

ProductPerformanceView _customLabel2.

_customLabel3

public _customLabel3?: "customLabel3";

ProductPerformanceView _customLabel3.

_customLabel4

public _customLabel4?: "customLabel4";

ProductPerformanceView _customLabel4.

_impressions

public _impressions?: "impressions";

ProductPerformanceView _impressions.

_marketingMethod

public _marketingMethod?: "marketingMethod";

ProductPerformanceView _marketingMethod.

_offerId

public _offerId?: "offerId";

ProductPerformanceView _offerId.

_productTypeL1

public _productTypeL1?: "productTypeL1";

ProductPerformanceView _productTypeL1.

_productTypeL2

public _productTypeL2?: "productTypeL2";

ProductPerformanceView _productTypeL2.

_productTypeL3

public _productTypeL3?: "productTypeL3";

ProductPerformanceView _productTypeL3.

_productTypeL4

public _productTypeL4?: "productTypeL4";

ProductPerformanceView _productTypeL4.

_productTypeL5

public _productTypeL5?: "productTypeL5";

ProductPerformanceView _productTypeL5.

_title

public _title?: "title";

ProductPerformanceView _title.

brand

public brand?: (string|null);

ProductPerformanceView brand.

categoryL1

public categoryL1?: (string|null);

ProductPerformanceView categoryL1.

categoryL2

public categoryL2?: (string|null);

ProductPerformanceView categoryL2.

categoryL3

public categoryL3?: (string|null);

ProductPerformanceView categoryL3.

categoryL4

public categoryL4?: (string|null);

ProductPerformanceView categoryL4.

categoryL5

public categoryL5?: (string|null);

ProductPerformanceView categoryL5.

clicks

public clicks?: (number|Long|string|null);

ProductPerformanceView clicks.

clickThroughRate

public clickThroughRate?: (number|null);

ProductPerformanceView clickThroughRate.

conversionRate

public conversionRate?: (number|null);

ProductPerformanceView conversionRate.

conversions

public conversions?: (number|null);

ProductPerformanceView conversions.

conversionValue

public conversionValue?: (google.shopping.type.IPrice|null);

ProductPerformanceView conversionValue.

customerCountryCode

public customerCountryCode?: (string|null);

ProductPerformanceView customerCountryCode.

customLabel0

public customLabel0?: (string|null);

ProductPerformanceView customLabel0.

customLabel1

public customLabel1?: (string|null);

ProductPerformanceView customLabel1.

customLabel2

public customLabel2?: (string|null);

ProductPerformanceView customLabel2.

customLabel3

public customLabel3?: (string|null);

ProductPerformanceView customLabel3.

customLabel4

public customLabel4?: (string|null);

ProductPerformanceView customLabel4.

date

public date?: (google.type.IDate|null);

ProductPerformanceView date.

impressions

public impressions?: (number|Long|string|null);

ProductPerformanceView impressions.

marketingMethod

public marketingMethod?: (google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum|keyof typeof google.shopping.merchant.reports.v1beta.MarketingMethod.MarketingMethodEnum|null);

ProductPerformanceView marketingMethod.

offerId

public offerId?: (string|null);

ProductPerformanceView offerId.

productTypeL1

public productTypeL1?: (string|null);

ProductPerformanceView productTypeL1.

productTypeL2

public productTypeL2?: (string|null);

ProductPerformanceView productTypeL2.

productTypeL3

public productTypeL3?: (string|null);

ProductPerformanceView productTypeL3.

productTypeL4

public productTypeL4?: (string|null);

ProductPerformanceView productTypeL4.

productTypeL5

public productTypeL5?: (string|null);

ProductPerformanceView productTypeL5.

title

public title?: (string|null);

ProductPerformanceView title.

week

public week?: (google.type.IDate|null);

ProductPerformanceView week.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.reports.v1beta.IProductPerformanceView): google.shopping.merchant.reports.v1beta.ProductPerformanceView;

Creates a new ProductPerformanceView instance using the specified properties.

Parameter
Name Description
properties IProductPerformanceView

Properties to set

Returns
Type Description
ProductPerformanceView

ProductPerformanceView instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.reports.v1beta.ProductPerformanceView;

Decodes a ProductPerformanceView message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
ProductPerformanceView

ProductPerformanceView

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.reports.v1beta.ProductPerformanceView;

Decodes a ProductPerformanceView message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
ProductPerformanceView

ProductPerformanceView

encode(message, writer)

public static encode(message: google.shopping.merchant.reports.v1beta.IProductPerformanceView, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ProductPerformanceView message. Does not implicitly messages.

Parameters
Name Description
message IProductPerformanceView

ProductPerformanceView message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.shopping.merchant.reports.v1beta.IProductPerformanceView, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ProductPerformanceView message, length delimited. Does not implicitly messages.

Parameters
Name Description
message IProductPerformanceView

ProductPerformanceView message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.shopping.merchant.reports.v1beta.ProductPerformanceView;

Creates a ProductPerformanceView message from a plain object. Also converts values to their respective internal types.

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
ProductPerformanceView

ProductPerformanceView

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for ProductPerformanceView

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this ProductPerformanceView to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.shopping.merchant.reports.v1beta.ProductPerformanceView, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a ProductPerformanceView message. Also converts values to other types if specified.

Parameters
Name Description
message ProductPerformanceView

ProductPerformanceView

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a ProductPerformanceView message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not