Pull conversion key metric

ads
analytics
api

#1

Hi,
I’m using the stats api to pull analytics data for ads .
https://ads-api.twitter.com/1/stats/accounts/account:id

i pulled the conversion data by sending metric_groups = WEB_CONVERSION
what called the metric conversion key in the api .

Thanks in advance,
Asad.


#2

The concept of key conversion in Ads API is the “primary_web_event_tag” ID. In order to replicate this behavior in your own UI you can segment stats data for a line_item on the primary_web_event_tag ID for that line_item and display that separately from the total conversions for that line_item.


#4

thanks @JBabichJapan for reply , ,
there metric called key conversions in the api that return integer data ,

is this the same total conversion when send segment = primary_web_event_tag ID ? that what you mean ?
picture attached .

Thanks.


#5

Yes I basically mean that you should be able to use segmentation_type=CONVERSION_TAGS and then pull out the one which is the right ID for key conversion (= set as primary_web_event_tag) and display it or export it in the same way. If you are not able to do this, feel free to let us know.

Thanks,

John