Hi,
I am getting conversion action detail, able to get below info:
"tagSnippets" : [
{
"eventSnippet" : "<!-- Event snippet for Sign up conversion
page\nIn your html page, add the snippet and call gtag_report_conversion
when someone clicks on the chosen link or button. -->\n<script>\nfunction
gtag_report_conversion(url) {\n var callback = function () {\n if
(typeof(url) != 'undefined') {\n window.location = url;\n }\n };\n
gtag('event', 'conversion', {\n 'send_to':
'AW-758258222/icIRCO6E2MkBEK60yOkC',\n 'value': 1.0,\n
'currency': 'USD',\n 'event_callback': callback\n });\n return
false;\n}\n</script>\n",
"globalSiteTag" : "<!-- Global site tag (gtag.js) - Google Ads:
758258222 -->\n<script async
src=\"https://www.googletagmanager.com/gtag/js?id=AW-758258222\"></script>\n<script>\n
window.dataLayer = window.dataLayer || [];\n function
gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n
gtag('config', 'AW-758258222');\n</script>\n",
"pageFormat" : "HTML"
},
{
"eventSnippet" : "\"C_WiLQEGJl7rc\": {\n \"on\": \"click\",\n
\"selector\": \"CSS_SELECTOR\",\n \"vars\": {\n \"event_name\":
\"conversion\",\n \"value\": 1.0,\n \"currency\": \"USD\",\n
\"send_to\": [\"AW-758258222/icIRCO6E2MkBEK60yOkC\"]\n }\n}\n",
"globalSiteTag" : "<!-- Global site tag (gtag) - Google Ads:
758258222 -->\n<amp-analytics type=\"gtag\"
data-credentials=\"include\">\n<script type=\"application/json\">\n{\n
\"vars\": {\n \"gtag_id\": \"AW-758258222\",\n \"config\": {\n
\"AW-758258222\": {\n \"groups\": \"default\"\n }\n }\n
},\n \"triggers\": {\n }\n}\n</script>\n</amp-analytics>\n",
"pageFormat" : "AMP"
}
],
However eventSnippet is in string.
Then is there any query or solution to extract value of "send_to"?
I would like to get "AW-758258222/icIRCO6E2MkBEK60yOkC" from converision
action detail.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/01927c01-07f2-4e16-80be-baaa20994377n%40googlegroups.com.