type LineItemActivityAssociation (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
A LineItemActivityAssociation
associates a LineItem with an Activity
so
that the conversions of the Activity
can be counted against the LineItem.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
activityId
|
xsd:int
The ID of the Activity to which the LineItem should be associated. This
attribute is required.
|
clickThroughConversionCost
|
Money
The amount of money to attribute per click through conversion. This attribute is required for
creating a LineItemActivityAssociation . The currency code is readonly and should match
the LineItem.
|
viewThroughConversionCost
|
Money
The amount of money to attribute per view through conversion. This attribute is required for
creating a LineItemActivityAssociation . The currency code is readonly and should match
the LineItem.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eLineItemActivityAssociation\u003c/code\u003e links a LineItem with an Activity, enabling the Activity's conversions to be counted towards the LineItem's performance.\u003c/p\u003e\n"],["\u003cp\u003eThis association requires an \u003ccode\u003eactivityId\u003c/code\u003e and monetary values for both click-through (\u003ccode\u003eclickThroughConversionCost\u003c/code\u003e) and view-through (\u003ccode\u003eviewThroughConversionCost\u003c/code\u003e) conversions, which must be in the LineItem's currency.\u003c/p\u003e\n"],["\u003cp\u003eThese monetary values represent the cost attributed per click-through and view-through conversion, respectively.\u003c/p\u003e\n"]]],["The `LineItemActivityAssociation` links a `LineItem` to an `Activity`, allowing conversion tracking. This requires three fields: `activityId`, the ID of the associated `Activity`; `clickThroughConversionCost`, the monetary value per click-through conversion; and `viewThroughConversionCost`, the monetary value per view-through conversion. Both conversion costs are mandatory upon creation. The currency code of these costs must match the associated `LineItem`. All the definitions reside under `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# type LineItemActivityAssociation (v202408)\n\n**Service** \n**ForecastService** [LineItemService](/ad-manager/api/reference/v202408/LineItemService.LineItemActivityAssociation) **Dependencies** \n[LineItemSummary](/ad-manager/api/reference/v202408/ForecastService.LineItemSummary) \n▼\n**LineItemActivityAssociation**\n\nA `LineItemActivityAssociation` associates a [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem) with an `Activity` so\nthat the conversions of the `Activity` can be counted against the [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|----------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `activityId` | ` `xsd:`int` The ID of the `Activity` to which the [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem) should be associated. This attribute is required. |\n| ### `clickThroughConversionCost` | ` `[Money](/ad-manager/api/reference/v202408/ForecastService.Money)` ` The amount of money to attribute per click through conversion. This attribute is required for creating a `LineItemActivityAssociation`. The currency code is readonly and should match the [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem). |\n| ### `viewThroughConversionCost` | ` `[Money](/ad-manager/api/reference/v202408/ForecastService.Money)` ` The amount of money to attribute per view through conversion. This attribute is required for creating a `LineItemActivityAssociation`. The currency code is readonly and should match the [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem). |"]]