Hi all,

Currently when retrieve a conversion action from api, we only have the 
snippet tags that include Conversion id and Conversion label, something 
like this:

“globalSiteTag”: “<!-- Global site tag (gtag.js) - Google Ads: 
> <conversion-id> -->\n<script async 
> src=\“https://www.googletagmanager.com/gtag/js?id=AW-<conversion-id>\“></script>\n<script>\n
>   
> window.dataLayer = window.dataLayer || [];\n  function 
> gtag(){dataLayer.push(arguments);}\n  gtag(‘js’, new Date());\n\n  
> gtag(‘config’, ‘AW-<conversion-id>’);\n</script>\n”,

 

> “eventSnippet”: “<!-- Event snippet for Store purchases conversion page 
> -->\n<script>\n  gtag(‘event’, ‘conversion’, {\n      ‘send_to’: 
> ‘AW-<conversion-id>/<conversion-label>’,\n      ‘value’: 
> <conversion-default-value>,\n      ‘currency’: ‘<account-currency>’,\n      
> ‘transaction_id’: ‘’\n  });\n</script>\n”
>

Is there any better way to get the conversion id and conversion label from 
api beside extract it using Regex?  I hope that these attributes just 
return directly from api so we can store it easily.

Thank you and have a nice day.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0548fabb-6744-40e5-9988-8d0e9376d2cf%40googlegroups.com.

Reply via email to