Built-In Variables: delete

یک یا چند متغیر داخلی GTM را حذف می کند. الآن امتحانش کن .

درخواست

درخواست HTTP

DELETE https://www.googleapis.com/tagmanager/v2/path

مولفه های

نام پارامتر ارزش شرح
پارامترهای مسیر
path string مسیر نسبی API GTM BuiltInVariable. مثال: حساب‌ها/{account_id}/containers/{container_id}/workspace/{workspace_id}/built_in_variables
پارامترهای پرس و جو اختیاری
type string انواع متغیرهای داخلی برای حذف

مقادیر قابل قبول عبارتند از:
  • " advertiserId "
  • advertisingTrackingEnabled
  • " ampBrowserLanguage "
  • " ampCanonicalHost "
  • " ampCanonicalPath "
  • " ampCanonicalUrl "
  • " ampClientId "
  • " ampClientMaxScrollX "
  • " ampClientMaxScrollY "
  • " ampClientScreenHeight "
  • " ampClientScreenWidth "
  • " ampClientScrollX "
  • " ampClientScrollY "
  • " ampClientTimestamp "
  • " ampClientTimezone "
  • " ampGtmEvent "
  • " ampPageDownloadTime "
  • " ampPageLoadTime "
  • " ampPageViewId "
  • " ampReferrer "
  • " ampTitle "
  • " ampTotalEngagedTime "
  • " appId "
  • " appName "
  • " appVersionCode "
  • " appVersionName "
  • " builtInVariableTypeUnspecified "
  • " clickClasses "
  • " clickElement "
  • " clickId "
  • " clickTarget "
  • " clickText "
  • " clickUrl "
  • " clientName "
  • " containerId "
  • " containerVersion "
  • " debugMode "
  • " deviceName "
  • " elementVisibilityFirstTime "
  • " elementVisibilityRatio "
  • " elementVisibilityRecentTime "
  • " elementVisibilityTime "
  • environmentName
  • " errorLine "
  • " errorMessage "
  • " errorUrl "
  • " event "
  • " eventName "
  • " firebaseEventParameterCampaign "
  • " firebaseEventParameterCampaignAclid "
  • " firebaseEventParameterCampaignAnid "
  • " firebaseEventParameterCampaignClickTimestamp "
  • " firebaseEventParameterCampaignContent "
  • " firebaseEventParameterCampaignCp1 "
  • " firebaseEventParameterCampaignGclid "
  • " firebaseEventParameterCampaignSource "
  • " firebaseEventParameterCampaignTerm "
  • " firebaseEventParameterCurrency "
  • " firebaseEventParameterDynamicLinkAcceptTime "
  • " firebaseEventParameterDynamicLinkLinkid "
  • " firebaseEventParameterNotificationMessageDeviceTime "
  • " firebaseEventParameterNotificationMessageId "
  • " firebaseEventParameterNotificationMessageName "
  • " firebaseEventParameterNotificationMessageTime "
  • " firebaseEventParameterNotificationTopic "
  • " firebaseEventParameterPreviousAppVersion "
  • " firebaseEventParameterPreviousOsVersion "
  • " firebaseEventParameterPrice "
  • " firebaseEventParameterProductId "
  • " firebaseEventParameterQuantity "
  • " firebaseEventParameterValue "
  • " firstPartyServingUrl "
  • " formClasses "
  • " formElement "
  • " formId "
  • " formTarget "
  • " formText "
  • " formUrl "
  • " historySource "
  • " htmlId "
  • " language "
  • newHistoryFragment
  • " newHistoryState "
  • " newHistoryUrl "
  • " oldHistoryFragment "
  • " oldHistoryState "
  • " oldHistoryUrl "
  • " osVersion "
  • " pageHostname "
  • " pagePath "
  • " pageUrl "
  • " platform "
  • " queryString "
  • " randomNumber "
  • " referrer "
  • " requestMethod "
  • " requestPath "
  • " resolution "
  • " scrollDepthDirection "
  • " scrollDepthThreshold "
  • " scrollDepthUnits "
  • " sdkVersion "
  • " serverPageLocationHostname "
  • " serverPageLocationPath "
  • " serverPageLocationUrl "
  • " videoCurrentTime "
  • " videoDuration "
  • " videoPercent "
  • " videoProvider "
  • " videoStatus "
  • " videoTitle "
  • " videoUrl "
  • " videoVisible "
  • " visitorRegion "

مجوز

این درخواست به مجوز با محدوده زیر نیاز دارد:

محدوده
https://www.googleapis.com/auth/tagmanager.edit.containers

برای اطلاعات بیشتر، به صفحه احراز هویت و مجوز مراجعه کنید.

درخواست بدن

با این روش بدنه درخواستی ارائه نکنید.

واکنش

در صورت موفقیت آمیز بودن، این روش یک بدنه پاسخ خالی را برمی گرداند.

آن را امتحان کنید!

از APIs Explorer زیر برای فراخوانی این روش در داده‌های زنده و دیدن پاسخ استفاده کنید.