v0.1.0
Version 0.1.0
07/27/26
| Type | Location | Event | Previous Version | Updated Version | Notes |
|---|---|---|---|---|---|
| parameter | playbook.yaml | N/A | N/A | 0.1.0 | Added version parameter |
| parameter | playbook.yaml | N/A | N/A | {"cart_viewed":{"enrichments":[{"outputKey":"event.eventName","staticString":"view_cart"}],"mappings":[{"inputKey":"input","outputKey":"event.conversionValue","transforms":[{"expression":{"body":"return TOTAL_VALUE(input.properties.products)","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.conversionCount","transforms":[{"expression":{"body":"return SUM(MAP(input.properties.products, function(p) return p.quantity or 1 end)) or 1","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.cartData","transforms":[{"expression":{"body":"local cart = {}\nif input.properties and input.properties.products then\n cart.items = MAP(input.properties.products, function(p)\n local params = {}\n if p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\n if p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\n return {\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n }\n end)\nend\nreturn cart","lang":"lua"}}]}]},"checkout_started":{"enrichments":[{"outputKey":"event.eventName","staticString":"begin_checkout"}],"mappings":[{"inputKey":"properties.revenue","outputKey":"event.conversionValue"},{"inputKey":"input","outputKey":"event.conversionCount","transforms":[{"expression":{"body":"return SUM(MAP(input.properties.products, function(p) return p.quantity or 1 end)) or input.properties.quantity or 1","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.cartData","transforms":[{"expression":{"body":"local cart = {}\nif input.properties and input.properties.coupon then\n cart.couponCodes = { input.properties.coupon }\nend\nif input.properties and input.properties.products then\n cart.items = MAP(input.properties.products, function(p)\n local params = {}\n if p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\n if p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\n return {\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n }\n end)\nend\nreturn cart","lang":"lua"}}]}]},"order_completed":{"enrichments":[{"outputKey":"event.eventName","staticString":"purchase"}],"mappings":[{"inputKey":"input","outputKey":"event.destinationReferences","transforms":[{"expression":{"body":"return {\"ga4\", \"floodlight_purchase\", \"google_ads_purchase\"}","lang":"lua"}}]},{"inputKey":"properties.revenue","outputKey":"event.conversionValue"},{"inputKey":"input","outputKey":"event.conversionCount","transforms":[{"expression":{"body":"return SUM(MAP(input.properties.products, function(p) return p.quantity or 1 end)) or 1","lang":"lua"}}]},{"inputKey":"properties.order_id","outputKey":"event.transactionId"},{"inputKey":"input","outputKey":"event.additionalEventParameters","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.tax and p.tax ~= \"\" then table.insert(params, { parameterName = \"tax\", value = TO_STRING(p.tax) }) end\nif p.shipping and p.shipping ~= \"\" then table.insert(params, { parameterName = \"shipping\", value = TO_STRING(p.shipping) }) end\nreturn params","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.cartData","transforms":[{"expression":{"body":"local cart = {}\ncart.merchantId = \"ADD_MERCHANT_ID_HERE\"\nif input.properties and input.properties.coupon then\n cart.couponCodes = { input.properties.coupon }\nend\nif input.properties and input.properties.products then\n cart.items = MAP(input.properties.products, function(p)\n local params = {}\n if p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\n if p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\n return {\n itemId = p.product_id,\n merchantProductId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n }\n end)\nend\nreturn cart","lang":"lua"}}]}]},"order_refunded":{"enrichments":[{"outputKey":"event.eventName","staticString":"refund"}],"mappings":[{"inputKey":"properties.revenue","outputKey":"event.conversionValue"},{"inputKey":"input","outputKey":"event.conversionCount","transforms":[{"expression":{"body":"return SUM(MAP(input.properties.products, function(p) return p.quantity or 1 end)) or 1","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.additionalEventParameters","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.tax and p.tax ~= \"\" then table.insert(params, { parameterName = \"tax\", value = TO_STRING(p.tax) }) end\nif p.shipping and p.shipping ~= \"\" then table.insert(params, { parameterName = \"shipping\", value = TO_STRING(p.shipping) }) end\nreturn params","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.cartData","transforms":[{"expression":{"body":"local cart = {}\nif input.properties and input.properties.coupon then\n cart.couponCodes = { input.properties.coupon }\nend\nif input.properties and input.properties.products then\n cart.items = MAP(input.properties.products, function(p)\n local params = {}\n if p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\n if p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\n if p.position then table.insert(params, { parameterName = \"index\", value = TO_STRING(p.position) }) end\n return {\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n }\n end)\nend\nreturn cart","lang":"lua"}}]}]},"page":{"enrichments":[{"outputKey":"event.eventName","staticString":"page"}],"mappings":[{"inputKey":"input","outputKey":"event.destinationReferences","transforms":[{"expression":{"body":"return {\"ga4\", \"floodlight_page\", \"google_ads_page\"}","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.additionalEventParameters","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.url and p.url ~= \"\" then table.insert(params, { parameterName = \"page_location\", value = p.url }) end\nif p.title and p.title ~= \"\" then table.insert(params, { parameterName = \"page_title\", value = p.title }) end\nif p.referrer and p.referrer ~= \"\" then table.insert(params, { parameterName = \"page_referrer\", value = p.referrer }) end\nif p.search and p.search ~= \"\" then table.insert(params, { parameterName = \"search\", value = p.search }) end\nreturn params","lang":"lua"}}]}]},"product_added":{"enrichments":[{"outputKey":"event.eventName","staticString":"add_to_cart"}],"mappings":[{"inputKey":"input","outputKey":"event.conversionValue","transforms":[{"expression":{"body":"return TOTAL_VALUE(input.properties)","lang":"lua"}}]},{"inputKey":"properties.quantity","outputKey":"event.conversionCount"},{"inputKey":"input","outputKey":"event.cartData.items","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\nif p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\nif p.variant then table.insert(params, { parameterName = \"item_variant\", value = p.variant }) end\nif p.brand then table.insert(params, { parameterName = \"item_brand\", value = p.brand }) end\nif p.discount then table.insert(params, { parameterName = \"discount\", value = TO_STRING(p.discount) }) end\nif p.position then table.insert(params, { parameterName = \"index\", value = TO_STRING(p.position) }) end\nif p.coupon then table.insert(params, { parameterName = \"coupon\", value = p.coupon }) end\nreturn {{\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n}}","lang":"lua"}}]}]},"product_added_to_wishlist":{"enrichments":[{"outputKey":"event.eventName","staticString":"add_to_wishlist"}],"mappings":[{"inputKey":"input","outputKey":"event.conversionValue","transforms":[{"expression":{"body":"return TOTAL_VALUE(input.properties)","lang":"lua"}}]},{"inputKey":"properties.quantity","outputKey":"event.conversionCount"},{"inputKey":"input","outputKey":"event.cartData.items","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\nif p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\nif p.variant then table.insert(params, { parameterName = \"item_variant\", value = p.variant }) end\nif p.coupon then table.insert(params, { parameterName = \"coupon\", value = p.coupon }) end\nif p.brand then table.insert(params, { parameterName = \"item_brand\", value = p.brand }) end\nif p.discount then table.insert(params, { parameterName = \"discount\", value = TO_STRING(p.discount) }) end\nif p.position then table.insert(params, { parameterName = \"index\", value = TO_STRING(p.position) }) end\nreturn {{\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n}}","lang":"lua"}}]}]},"product_clicked":{"enrichments":[{"outputKey":"event.eventName","staticString":"select_item"}],"mappings":[{"inputKey":"input","outputKey":"event.conversionValue","transforms":[{"expression":{"body":"return TOTAL_VALUE(input.properties)","lang":"lua"}}]},{"inputKey":"properties.quantity","outputKey":"event.conversionCount"},{"inputKey":"input","outputKey":"event.cartData.items","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\nif p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\nif p.variant then table.insert(params, { parameterName = \"item_variant\", value = p.variant }) end\nif p.brand then table.insert(params, { parameterName = \"item_brand\", value = p.brand }) end\nif p.discount then table.insert(params, { parameterName = \"discount\", value = TO_STRING(p.discount) }) end\nif p.position then table.insert(params, { parameterName = \"index\", value = TO_STRING(p.position) }) end\nif p.coupon then table.insert(params, { parameterName = \"coupon\", value = p.coupon }) end\nreturn {{\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n}}","lang":"lua"}}]}]},"product_list_viewed":{"enrichments":[{"outputKey":"event.eventName","staticString":"view_item_list"}],"mappings":[{"inputKey":"input","outputKey":"event.additionalEventParameters","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.list_id and p.list_id ~= \"\" then table.insert(params, { parameterName = \"item_list_id\", value = p.list_id }) end\nif p.category and p.category ~= \"\" then table.insert(params, { parameterName = \"item_list_name\", value = p.category }) end\nreturn params","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.cartData","transforms":[{"expression":{"body":"local cart = {}\nif input.properties and input.properties.products then\n cart.items = MAP(input.properties.products, function(p)\n local params = {}\n if p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\n if p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\n if p.position then table.insert(params, { parameterName = \"index\", value = TO_STRING(p.position) }) end\n return {\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n }\n end)\nend\nreturn cart","lang":"lua"}}]}]},"product_removed":{"enrichments":[{"outputKey":"event.eventName","staticString":"remove_from_cart"}],"mappings":[{"inputKey":"input","outputKey":"event.conversionValue","transforms":[{"expression":{"body":"return TOTAL_VALUE(input.properties)","lang":"lua"}}]},{"inputKey":"properties.quantity","outputKey":"event.conversionCount"},{"inputKey":"input","outputKey":"event.cartData.items","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\nif p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\nif p.variant then table.insert(params, { parameterName = \"item_variant\", value = p.variant }) end\nif p.coupon then table.insert(params, { parameterName = \"coupon\", value = p.coupon }) end\nif p.brand then table.insert(params, { parameterName = \"item_brand\", value = p.brand }) end\nif p.discount then table.insert(params, { parameterName = \"discount\", value = TO_STRING(p.discount) }) end\nif p.position then table.insert(params, { parameterName = \"index\", value = TO_STRING(p.position) }) end\nreturn {{\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n}}","lang":"lua"}}]}]},"product_viewed":{"enrichments":[{"outputKey":"event.eventName","staticString":"view_item"}],"mappings":[{"inputKey":"input","outputKey":"event.conversionValue","transforms":[{"expression":{"body":"return TOTAL_VALUE(input.properties)","lang":"lua"}}]},{"inputKey":"properties.quantity","outputKey":"event.conversionCount"},{"inputKey":"input","outputKey":"event.cartData.items","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.name then table.insert(params, { parameterName = \"item_name\", value = p.name }) end\nif p.category then table.insert(params, { parameterName = \"item_category\", value = p.category }) end\nif p.variant then table.insert(params, { parameterName = \"item_variant\", value = p.variant }) end\nif p.brand then table.insert(params, { parameterName = \"item_brand\", value = p.brand }) end\nif p.coupon then table.insert(params, { parameterName = \"coupon\", value = p.coupon }) end\nif p.discount then table.insert(params, { parameterName = \"discount\", value = TO_STRING(p.discount) }) end\nif p.position then table.insert(params, { parameterName = \"index\", value = TO_STRING(p.position) }) end\nreturn {{\n itemId = p.product_id,\n quantity = p.quantity or 1,\n unitPrice = p.price,\n additionalItemParameters = params,\n}}","lang":"lua"}}]}]},"products_searched":{"enrichments":[{"outputKey":"event.eventName","staticString":"search"}],"mappings":[{"inputKey":"input","outputKey":"event.additionalEventParameters","transforms":[{"expression":{"body":"local params = {}\nif input.properties and input.properties.query and input.properties.query ~= \"\" then\n table.insert(params, {\n parameterName = \"search_term\",\n value = input.properties.query,\n })\nend\nreturn params","lang":"lua"}}]}]},"promotion_clicked":{"enrichments":[{"outputKey":"event.eventName","staticString":"select_promotion"}],"mappings":[{"inputKey":"input","outputKey":"event.additionalEventParameters","transforms":[{"expression":{"body":"local p = input.properties\nlocal params = {}\nif p.promotion_id and p.promotion_id ~= \"\" then table.insert(params, { parameterName = \"promotion_id\", value = p.promotion_id }) end\nif p.name and p.name ~= \"\" then table.insert(params, { parameterName = \"promotion_name\", value = p.name }) end\nif p.creative and p.creative ~= \"\" then table.insert(params, { parameterName = \"creative_name\", value = p.creative }) end\nif p.position and p.position ~= \"\" then table.insert(params, { parameterName = \"creative_slot\", value = p.position }) end\nreturn params","lang":"lua"}}]}]}} | Added eventSpecific parameter |
| parameter | playbook.yaml | default | N/A | {"filters":[{"byEventNames":{"action":"allow","events":[""]}}]} | Added default parameter |
| parameter | playbook.yaml | global | N/A | {"enrichments":[{"outputKey":"event.consent.adUserData","staticString":"CONSENT_GRANTED"},{"outputKey":"event.consent.adPersonalization","staticString":"CONSENT_GRANTED"},{"outputKey":"encoding","staticString":"HEX"},{"outputKey":"validateOnly","staticBool":false}],"filters":[{"byConditions":{"action":"allow","when":{"matchesAny":{"conditions":[{"inputPathExists":{"inputPath":"context.providers.CM360.gclid"}},{"inputPathExists":{"inputPath":"context.providers.googleGtag.data.gclid"}},{"inputPathExists":{"inputPath":"context.providers.googleAds.wbraid"}},{"inputPathExists":{"inputPath":"context.providers.googleGtag.data.wbraid"}},{"inputPathExists":{"inputPath":"traits.email"}},{"inputPathExists":{"inputPath":"traits.phone"}},{"matchesAll":{"conditions":[{"inputPathExists":{"inputPath":"traits.firstName"}},{"inputPathExists":{"inputPath":"traits.lastName"}},{"inputPathExists":{"inputPath":"traits.address.postalCode"}},{"inputPathExists":{"inputPath":"traits.address.country"}}]}},{"inputPathExists":{"inputPath":"context.providers.CM360.dclid"}},{"inputPathExists":{"inputPath":"context.providers.googleGtag.data.dclid"}},{"inputPathExists":{"inputPath":"context.device.advertisingId"}},{"inputPathExists":{"inputPath":"context.providers.googleAnalytics4.clientID"}},{"inputPathExists":{"inputPath":"context.providers.googleGtag.data.ga"}}]}}}}],"mappings":[{"inputKey":"input","outputKey":"destinations","transforms":[{"expression":{"body":"local function destination(reference, accountType, accountId, productDestinationId)\n return {\n reference = reference,\n operatingAccount = { accountType = accountType, accountId = accountId },\n productDestinationId = productDestinationId,\n }\nend\nreturn {\n -- Please fill in the destinations you're using and remove the rest.\n -- Update the destinationReferences mappings to match your changes.\n -- Then delete the matching global.filters conditions.\n\n destination(\"ga4\", \"GOOGLE_ANALYTICS_PROPERTY\", \"ADD_GA4_PROPERTY_ID_HERE\",\"ADD_GA4_MEASUREMENT_ID_HERE\"),\n\n destination(\"google_ads_purchase\", \"GOOGLE_ADS\", \"ADD_GOOGLE_ADS_ACCOUNT_ID_HERE\", \"ADD_PURCHASE_CONVERSION_ACTION_ID_HERE\"),\n destination(\"google_ads_page\", \"GOOGLE_ADS\", \"ADD_GOOGLE_ADS_ACCOUNT_ID_HERE\", \"ADD_PAGE_CONVERSION_ACTION_ID_HERE\"),\n\n destination(\"floodlight_purchase\", \"FLOODLIGHT_CONFIG\", \"ADD_FLOODLIGHT_CONFIG_ID_HERE\", \"ADD_PURCHASE_FLOODLIGHT_ACTIVITY_ID_HERE\"),\n destination(\"floodlight_page\", \"FLOODLIGHT_CONFIG\", \"ADD_FLOODLIGHT_CONFIG_ID_HERE\", \"ADD_PAGE_FLOODLIGHT_ACTIVITY_ID_HERE\"),\n}","lang":"lua","name":"destinations"}}]},{"inputKey":"input","outputKey":"event.adIdentifiers.gclid","transforms":[{"expression":{"body":"if input.context.providers.CM360.gclid or input.context.providers.googleGtag.data.gclid then\n return input.context.providers.CM360.gclid or SPLIT(input.context.providers.googleGtag.data.gclid,\".\",3)[3]\nend","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.adIdentifiers.wbraid","transforms":[{"expression":{"body":"if input.context.providers.googleAds.wbraid or SPLIT(input.context.providers.googleGtag.data.wbraid,\".\",3)[3] then\n return input.context.providers.googleAds.wbraid or SPLIT(input.context.providers.googleGtag.data.wbraid,\".\",3)[3]\nend","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.adIdentifiers.dclid","transforms":[{"expression":{"body":"if input.context.providers.CM360.dclid or SPLIT(input.context.providers.googleGtag.data.dclid, \".\", 3)[3] then\n return input.context.providers.CM360.dclid or SPLIT(input.context.providers.googleGtag.data.dclid, \".\", 3)[3]\nend","lang":"lua"}}]},{"inputKey":"anonymousId","outputKey":"event.adIdentifiers.matchId"},{"inputKey":"context.ip","outputKey":"event.adIdentifiers.landingPageDeviceInfo.ipAddress"},{"inputKey":"context.userAgent","outputKey":"event.adIdentifiers.landingPageDeviceInfo.userAgent"},{"inputKey":"input","outputKey":"event.adIdentifiers.landingPageDeviceInfo.languageCode","transforms":[{"expression":{"body":"return SPLIT(TRIM(input.context.locale), \"-\", 1)[1]","lang":"lua"}}]},{"inputKey":"messageId","outputKey":"event.transactionId"},{"inputKey":"input","outputKey":"event.eventTimestamp","transforms":[{"expression":{"body":"return input.timestamp or input.originalTimestamp","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.eventSource","transforms":[{"expression":{"body":"if input.context.app.name or input.context.device.type or input.context.os.name then return 'APP' end\nreturn 'WEB'","lang":"lua"}}]},{"inputKey":"input","outputKey":"event.userData.userIdentifiers","transforms":[{"expression":{"body":"local userIdentifiers = {}\nif input.traits.email then\n local email = LOWER(TRIM(input.traits.email))\n local parts = SPLIT(email, \"@\", 2)\n if parts[2] == \"gmail.com\" or parts[2] == \"googlemail.com\" then\n email = parts[1]:gsub(\"%.\", \"\"):gsub(\"%+.*\", \"\") .. \"@\" .. parts[2]\n end\n table.insert(userIdentifiers, { emailAddress = TO_SHA256_HASH(email) })\nend\nif input.traits.phone then\n local phone = TRIM(input.traits.phone)\n local normalized_phone = phone:gsub(\"[^%d+]\", \"\"):gsub(\"^00\", \"+\"):gsub(\"^(%d)\", \"+1%1\")\n table.insert(userIdentifiers, {\n phoneNumber = TO_SHA256_HASH(normalized_phone)\n })\n end\nif input.traits.firstName and input.traits.lastName and input.traits.address and input.traits.address.country and input.traits.address.postalCode then\n local a = input.traits.address\n table.insert(userIdentifiers, {\n address = {\n givenName = TO_SHA256_HASH(LOWER(TRIM(input.traits.firstName))),\n familyName = TO_SHA256_HASH(LOWER(TRIM(input.traits.lastName))),\n postalCode = a.postalCode,\n regionCode = TO_ISO_COUNTRY(a.country),\n }\n })\nend\nif #userIdentifiers \u003e 0 then\n return userIdentifiers\nend","lang":"lua","name":"userIdentifiers"}}]},{"inputKey":"context.device.advertisingId","outputKey":"event.adIdentifiers.mobileDeviceId"},{"inputKey":"input","outputKey":"event.clientId","transforms":[{"expression":{"body":"if input.context.providers.googleAnalytics4.clientID then\n return input.context.providers.googleAnalytics4.clientID\nend\n\nif input.context.providers.googleGtag.data.ga then\n local value = input.context.providers.googleGtag.data.ga\n local arr = {}\n local ga = SPLIT(value, \".\", 4)\n arr[1] = ga[3]\n arr[2] = ga[4]\n return JOIN(arr, \".\")\nend","lang":"lua"}}]},{"inputKey":"userId","outputKey":"event.userId"},{"inputKey":"input","outputKey":"event.destinationReferences","transforms":[{"expression":{"body":"return {\"ga4\"}","lang":"lua"}}]},{"inputKey":"properties.currency","outputKey":"event.currency"}]} | Added global parameter |
| parameter | connection.yaml | N/A | N/A | {"batchSize":500,"endpoint":"https://datamanager.googleapis.com/$$API_VERSION$$/events:ingest","headers":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Accept-Encoding","value":"identity"}],"method":"POST","oauth2Auth":{"jwt":{"claims":[{"key":"aud","value":"https://oauth2.googleapis.com/token"},{"key":"scope","value":"https://www.googleapis.com/auth/datamanager https://www.googleapis.com/auth/cloud-platform"},{"key":"iss","value":"$$SERVICE_ACCOUNT_EMAIL$$"}],"requestKey":"assertion","rsaPemKey":"$$PRIVATE_KEY$$","signingMethod":"SIGNING_METHOD_RS256"},"request":{"body":[{"key":"grant_type","value":"urn:ietf:params:oauth:grant-type:jwt-bearer"}],"contentType":"application/x-www-form-urlencoded","method":"POST","url":"https://oauth2.googleapis.com/token"},"responseAccessTokenKey":"access_token"},"transform":{"body":"local events = {}\nfor _, item in ipairs(batch) do\n table.insert(events, item.event)\nend\nlocal destinations = (batch[1] and batch[1].destinations) or {}\nlocal encoding = batch[1] and batch[1].encoding\nrequest.body = {\n destinations = destinations,\n events = events,\n encoding = encoding,\n validateOnly = batch[1].validateOnly,\n}\nreturn request","lang":"lua"}} | Added default parameter |
| parameter | connection.yaml | N/A | N/A | [{"defaultValue":"v1","name":"API_VERSION"},{"exampleValue":"my-service-account-email","name":"SERVICE_ACCOUNT_EMAIL"},{"exampleValue":"my-private-key","name":"PRIVATE_KEY"}] | Added params parameter |
Updated about 2 months ago