Represents a LineItem.
Implements
Package
@google-ads/admanagerConstructors
(constructor)(properties)
constructor(properties?: google.ads.admanager.v1.ILineItem);Constructs a new LineItem.
| Parameter | |
|---|---|
| Name | Description |
properties |
ILineItem
Properties to set |
Properties
allowedFormats
public allowedFormats: google.ads.admanager.v1.LineItemAllowedFormatEnum.LineItemAllowedFormat[];LineItem allowedFormats.
allowOverbook
public allowOverbook?: (boolean|null);LineItem allowOverbook.
appliedLabels
public appliedLabels: google.ads.admanager.v1.IAppliedLabel[];LineItem appliedLabels.
archived
public archived?: (boolean|null);LineItem archived.
autoExtensionDays
public autoExtensionDays?: (number|null);LineItem autoExtensionDays.
budget
public budget?: (google.type.IMoney|null);LineItem budget.
childContentEligibility
public childContentEligibility?: (google.ads.admanager.v1.ChildContentEligibilityEnum.ChildContentEligibility|keyof typeof google.ads.admanager.v1.ChildContentEligibilityEnum.ChildContentEligibility|null);LineItem childContentEligibility.
companionDeliveryOption
public companionDeliveryOption?: (google.ads.admanager.v1.CompanionDeliveryOptionEnum.CompanionDeliveryOption|keyof typeof google.ads.admanager.v1.CompanionDeliveryOptionEnum.CompanionDeliveryOption|null);LineItem companionDeliveryOption.
competitiveConstraintScope
public competitiveConstraintScope?: (google.ads.admanager.v1.ExclusionScopeEnum.ExclusionScope|keyof typeof google.ads.admanager.v1.ExclusionScopeEnum.ExclusionScope|null);LineItem competitiveConstraintScope.
contractedUnitsBought
public contractedUnitsBought?: (number|Long|string|null);LineItem contractedUnitsBought.
costType
public costType?: (google.ads.admanager.v1.LineItemCostTypeEnum.LineItemCostType|keyof typeof google.ads.admanager.v1.LineItemCostTypeEnum.LineItemCostType|null);LineItem costType.
createTime
public createTime?: (google.protobuf.ITimestamp|null);LineItem createTime.
creativePlaceholders
public creativePlaceholders: google.ads.admanager.v1.ICreativePlaceholder[];LineItem creativePlaceholders.
creativeRotationType
public creativeRotationType?: (google.ads.admanager.v1.CreativeRotationTypeEnum.CreativeRotationType|keyof typeof google.ads.admanager.v1.CreativeRotationTypeEnum.CreativeRotationType|null);LineItem creativeRotationType.
creativeTargetings
public creativeTargetings: google.ads.admanager.v1.ICreativeTargeting[];LineItem creativeTargetings.
customFieldValues
public customFieldValues: google.ads.admanager.v1.ICustomFieldValue[];LineItem customFieldValues.
customPacingCurve
public customPacingCurve?: (google.ads.admanager.v1.ICustomPacingCurve|null);LineItem customPacingCurve.
customVastExtension
public customVastExtension?: (string|null);LineItem customVastExtension.
dealInfo
public dealInfo?: (google.ads.admanager.v1.ILineItemDealInfo|null);LineItem dealInfo.
deliveryForecastSource
public deliveryForecastSource?: (google.ads.admanager.v1.LineItemDeliveryForecastSourceEnum.LineItemDeliveryForecastSource|keyof typeof google.ads.admanager.v1.LineItemDeliveryForecastSourceEnum.LineItemDeliveryForecastSource|null);LineItem deliveryForecastSource.
deliveryIndicator
public deliveryIndicator?: (google.ads.admanager.v1.IDeliveryIndicator|null);LineItem deliveryIndicator.
deliveryRateType
public deliveryRateType?: (google.ads.admanager.v1.LineItemDeliveryRateTypeEnum.LineItemDeliveryRateType|keyof typeof google.ads.admanager.v1.LineItemDeliveryRateTypeEnum.LineItemDeliveryRateType|null);LineItem deliveryRateType.
discount
public discount?: (google.ads.admanager.v1.ILineItemDiscount|null);LineItem discount.
displayName
public displayName?: (string|null);LineItem displayName.
effectiveAppliedLabels
public effectiveAppliedLabels: google.ads.admanager.v1.IAppliedLabel[];LineItem effectiveAppliedLabels.
endTime
public endTime?: (google.protobuf.ITimestamp|null);LineItem endTime.
endTimeUnlimited
public endTimeUnlimited?: (boolean|null);LineItem endTimeUnlimited.
environmentType
public environmentType?: (google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType|keyof typeof google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType|null);LineItem environmentType.
externalLineItemId
public externalLineItemId?: (string|null);LineItem externalLineItemId.
frequencyCaps
public frequencyCaps: google.ads.admanager.v1.IFrequencyCap[];LineItem frequencyCaps.
goal
public goal?: (google.ads.admanager.v1.IGoal|null);LineItem goal.
grpSettings
public grpSettings?: (google.ads.admanager.v1.IGrpSettings|null);LineItem grpSettings.
lineItemType
public lineItemType?: (google.ads.admanager.v1.LineItemTypeEnum.LineItemType|keyof typeof google.ads.admanager.v1.LineItemTypeEnum.LineItemType|null);LineItem lineItemType.
maxVideoCreativeDuration
public maxVideoCreativeDuration?: (google.protobuf.IDuration|null);LineItem maxVideoCreativeDuration.
missingCreatives
public missingCreatives?: (boolean|null);LineItem missingCreatives.
name
public name: string;LineItem name.
notes
public notes?: (string|null);LineItem notes.
order
public order?: (string|null);LineItem order.
orderDisplayName
public orderDisplayName?: (string|null);LineItem orderDisplayName.
priority
public priority?: (number|null);LineItem priority.
rate
public rate?: (google.type.IMoney|null);LineItem rate.
repeatedCreativeServingEnabled
public repeatedCreativeServingEnabled?: (boolean|null);LineItem repeatedCreativeServingEnabled.
reservationStatus
public reservationStatus?: (google.ads.admanager.v1.LineItemReservationStatusEnum.LineItemReservationStatus|keyof typeof google.ads.admanager.v1.LineItemReservationStatusEnum.LineItemReservationStatus|null);LineItem reservationStatus.
reserveOnCreation
public reserveOnCreation?: (boolean|null);LineItem reserveOnCreation.
roadblockingType
public roadblockingType?: (google.ads.admanager.v1.RoadblockingTypeEnum.RoadblockingType|keyof typeof google.ads.admanager.v1.RoadblockingTypeEnum.RoadblockingType|null);LineItem roadblockingType.
sameAdvertiserExceptionEnabled
public sameAdvertiserExceptionEnabled?: (boolean|null);LineItem sameAdvertiserExceptionEnabled.
secondaryGoals
public secondaryGoals: google.ads.admanager.v1.IGoal[];LineItem secondaryGoals.
skipCrossSellingRuleWarningChecks
public skipCrossSellingRuleWarningChecks?: (boolean|null);LineItem skipCrossSellingRuleWarningChecks.
skipInventoryCheck
public skipInventoryCheck?: (boolean|null);LineItem skipInventoryCheck.
skippableAdType
public skippableAdType?: (google.ads.admanager.v1.SkippableAdTypeEnum.SkippableAdType|keyof typeof google.ads.admanager.v1.SkippableAdTypeEnum.SkippableAdType|null);LineItem skippableAdType.
sponsorshipExclusivityEnabled
public sponsorshipExclusivityEnabled?: (boolean|null);LineItem sponsorshipExclusivityEnabled.
startTime
public startTime?: (google.protobuf.ITimestamp|null);LineItem startTime.
stats
public stats?: (google.ads.admanager.v1.ILineItemStats|null);LineItem stats.
status
public status?: (google.ads.admanager.v1.LineItemComputedStatusEnum.LineItemComputedStatus|keyof typeof google.ads.admanager.v1.LineItemComputedStatusEnum.LineItemComputedStatus|null);LineItem status.
targetEndTime
public targetEndTime?: (google.protobuf.ITimestamp|null);LineItem targetEndTime.
targeting
public targeting?: (google.ads.admanager.v1.ITargeting|null);LineItem targeting.
thirdPartyMeasurementSettings
public thirdPartyMeasurementSettings?: (google.ads.admanager.v1.IThirdPartyMeasurementSettings|null);LineItem thirdPartyMeasurementSettings.
updateSource
public updateSource?: (string|null);LineItem updateSource.
updateTime
public updateTime?: (google.protobuf.ITimestamp|null);LineItem updateTime.
valueCpm
public valueCpm?: (google.type.IMoney|null);LineItem valueCpm.
viewabilityProviderCompanies
public viewabilityProviderCompanies: string[];LineItem viewabilityProviderCompanies.
webPropertyCode
public webPropertyCode?: (string|null);LineItem webPropertyCode.
youtubeKidsRestricted
public youtubeKidsRestricted?: (boolean|null);LineItem youtubeKidsRestricted.
Methods
create(properties)
public static create(properties?: google.ads.admanager.v1.ILineItem): google.ads.admanager.v1.LineItem;Creates a new LineItem instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
ILineItem
Properties to set |
| Returns | |
|---|---|
| Type | Description |
LineItem |
LineItem instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.ads.admanager.v1.LineItem;Decodes a LineItem 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 |
LineItem |
LineItem |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.ads.admanager.v1.LineItem;Decodes a LineItem message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
LineItem |
LineItem |
encode(message, writer)
public static encode(message: google.ads.admanager.v1.ILineItem, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified LineItem message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
ILineItem
LineItem 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.ads.admanager.v1.ILineItem, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified LineItem message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
ILineItem
LineItem 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.ads.admanager.v1.LineItem;Creates a LineItem 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 |
LineItem |
LineItem |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for LineItem
| 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 LineItem to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.ads.admanager.v1.LineItem, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a LineItem message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
LineItem
LineItem |
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 LineItem message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|