Interested in sharing your feedback about the Google Ads API?
Sign up to be invited to participate in user research!
Custom Conversion Variables
Stay organized with collections
Save and categorize content based on your preferences.
Custom conversion variables
let you associate additional information, in the form of tags, to a conversion
that you upload using the Google Ads API, such as click or call conversions.
For example, when uploading a conversion for the purchase of a new blue hat,
you could also upload two associated tags: color
and status
with the values
blue
and new
, respectively. Here are the steps:
Create as many custom conversion variables as you need. Each variable
corresponds to one tag. Therefore, if you want two tags (color
and
status
), you need to create two custom variables. The required fields for
ConversionCustomVariable
are as
follows:
name
: Identifies the
variable. The name must be unique.
tag
: For our example,
the tags are color
and status
. Tags are used in the event
snippet
when a conversion is sent to Google Ads by your website. If you use the
Google Ads API, you would need to specify the resource name of the custom
variables when uploading conversions, as detailed in the next step.
When uploading a conversion, such as
ClickConversion
, set
custom_variables
to
the list of all custom variables you created in the previous step. You need
to set all the fields of each custom variable:
conversion_custom_variable
:
The resource name of the custom variable you created in the previous
step.
value
: The
value for the tag you want to associate with the conversion. For our
example: blue
and new
.
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-01-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[[["Custom conversion variables allow associating additional information, like tags, to conversions uploaded via the Google Ads API."],["To use custom variables, first create them, defining a unique name and tag for each desired piece of information."],["When uploading a conversion, include the custom variables, specifying their resource name and the corresponding value for the tag."],["This process lets you add details like 'color' or 'status' to conversions, enabling richer data analysis and reporting."]]],[]]