متغیرهای تبدیل سفارشی
با مجموعهها، منظم بمانید ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
متغیرهای تبدیل سفارشی به شما امکان میدهند اطلاعات اضافی را به شکل برچسبها به تبدیلی که با استفاده از Google Ads API وارد میکنید، مانند تبدیل کلیک یا تماس، مرتبط کنید. با استفاده از این اطلاعات، میتوانید گزارشهای تقسیمبندی شده ایجاد کنید که دادههای غنیتری درباره تبدیلهای شما ارائه میکند.
به عنوان مثال، هنگام وارد کردن تبدیل برای خرید یک کلاه آبی جدید، میتوانید دو برچسب مرتبط را نیز وارد کنید: color
و status
به ترتیب با مقادیر blue
و new
. در اینجا مراحل انجام می شود:
هر تعداد متغیر تبدیل سفارشی که نیاز دارید ایجاد کنید. هر متغیر مربوط به یک تگ است. بنابراین، اگر دو تگ ( color
و status
) می خواهید، باید دو متغیر سفارشی ایجاد کنید. فیلدهای مورد نیاز برای ConversionCustomVariable
به شرح زیر است:
-
name
: متغیر را مشخص می کند. نام باید منحصر به فرد باشد. -
tag
: برای مثال ما، برچسب ها color
و status
هستند. هنگامی که یک تبدیل توسط وب سایت شما به Google Ads ارسال می شود، از برچسب ها در قطعه رویداد استفاده می شود. اگر از Google Ads API استفاده میکنید، باید نام منبع متغیرهای سفارشی را هنگام وارد کردن تبدیلها، همانطور که در مرحله بعد توضیح داده شده است، مشخص کنید.
هنگام وارد کردن یک تبدیل، مانند ClickConversion
، custom_variables
روی لیست همه متغیرهای سفارشی که در مرحله قبل ایجاد کردید، تنظیم کنید. شما باید تمام فیلدهای هر متغیر سفارشی را تنظیم کنید:
-
conversion_custom_variable
: نام منبع متغیر سفارشی که در مرحله قبل ایجاد کردید. -
value
: مقدار برچسبی که می خواهید با تبدیل مرتبط کنید. برای مثال ما: blue
و new
.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-26 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-08-26 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eCustom conversion variables allow associating additional information, like tags, to conversions uploaded via the Google Ads API.\u003c/p\u003e\n"],["\u003cp\u003eTo use custom variables, first create them, defining a unique name and tag for each desired piece of information.\u003c/p\u003e\n"],["\u003cp\u003eWhen uploading a conversion, include the custom variables, specifying their resource name and the corresponding value for the tag.\u003c/p\u003e\n"],["\u003cp\u003eThis process lets you add details like 'color' or 'status' to conversions, enabling richer data analysis and reporting.\u003c/p\u003e\n"]]],[],null,["# Custom Conversion Variables\n\n[Custom conversion variables](//support.google.com/google-ads/answer/9964350)\nlet you associate additional information, in the form of tags, to a conversion\nthat you import using the Google Ads API, such as click or call conversions. With this\ninformation, you can create segmented reports that provide richer data about\nyour conversions.\n\nFor example, when importing a conversion for the purchase of a new blue hat,\nyou could also import two associated tags: `color` and `status` with the values\n`blue` and `new`, respectively. Here are the steps:\n\n1. Create as many custom conversion variables as you need. Each variable\n corresponds to one tag. Therefore, if you want two tags (`color` and\n `status`), you need to create two custom variables. The required fields for\n [`ConversionCustomVariable`](/google-ads/api/reference/rpc/v21/ConversionCustomVariable) are as\n follows:\n\n | **Note:** See [`ConversionCustomVariable`](/google-ads/api/reference/rpc/v21/ConversionCustomVariable) for limitations on its fields.\n - [`name`](/google-ads/api/reference/rpc/v21/ConversionCustomVariable#name): Identifies the variable. The name must be unique.\n - [`tag`](/google-ads/api/reference/rpc/v21/ConversionCustomVariable#tag): For our example, the tags are `color` and `status`. Tags are used in the [event\n snippet](//support.google.com/google-ads/answer/9962082#Add&zippy=%2Cconversion-tracking-using-tags-on-your-website) 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 importing conversions, as detailed in the next step.\n2. When importing a conversion, such as\n [`ClickConversion`](/google-ads/api/reference/rpc/v21/ClickConversion), set\n [`custom_variables`](/google-ads/api/reference/rpc/v21/ClickConversion#custom_variables%5B%5D) to\n the list of all custom variables you created in the previous step. You need\n to set all the fields of each custom variable:\n\n - [`conversion_custom_variable`](/google-ads/api/reference/rpc/v21/CustomVariable#conversion_custom_variable): The resource name of the custom variable you created in the previous step.\n - [`value`](/google-ads/api/reference/rpc/v21/CustomVariable#conversion_custom_variable): The value for the tag you want to associate with the conversion. For our example: `blue` and `new`."]]