Google Ads Ad Manager V1 Client - Class EarningsProductBreakdown (0.7.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class EarningsProductBreakdown.

The product type breakdown of earnings for a given month between a parent and child publisher in MCM.

Generated from protobuf message google.ads.admanager.v1.EarningsProductBreakdown

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ product_type int

The syndication product type of the child's earnings in MCM.

↳ total_earnings Google\Type\Money

The total earnings for the specified product type for the month.

↳ parent_payment Google\Type\Money

The portion of the total earnings for the specified product type paid to the parent publisher.

↳ child_payment Google\Type\Money

The portion of the total earnings for the specified product type paid to the child publisher.

↳ deductions Google\Type\Money

The deductions for the specified product type for the month due to spam.

getProductType

The syndication product type of the child's earnings in MCM.

Returns
Type Description
int

hasProductType

clearProductType

setProductType

The syndication product type of the child's earnings in MCM.

Parameter
Name Description
var int
Returns
Type Description
$this

getTotalEarnings

The total earnings for the specified product type for the month.

Returns
Type Description
Google\Type\Money|null

hasTotalEarnings

clearTotalEarnings

setTotalEarnings

The total earnings for the specified product type for the month.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this

getParentPayment

The portion of the total earnings for the specified product type paid to the parent publisher.

Returns
Type Description
Google\Type\Money|null

hasParentPayment

clearParentPayment

setParentPayment

The portion of the total earnings for the specified product type paid to the parent publisher.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this

getChildPayment

The portion of the total earnings for the specified product type paid to the child publisher.

Returns
Type Description
Google\Type\Money|null

hasChildPayment

clearChildPayment

setChildPayment

The portion of the total earnings for the specified product type paid to the child publisher.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this

getDeductions

The deductions for the specified product type for the month due to spam.

Returns
Type Description
Google\Type\Money|null

hasDeductions

clearDeductions

setDeductions

The deductions for the specified product type for the month due to spam.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this