使用Facebook Marketing API获取UTM标签 [英] Get the UTM tags with Facebook Marketing API
问题描述
我在Facebook上的广告很少.
I have few ads on Facebook.
如何通过Facebook Marketing API获取此广告的UTM标签?
How should I get the UTM tags of this ads through the Facebook Marketing API?
因此,即使没有人打开带有UTM标签的链接,我每天都使用Facebook Marketing API来获取有关印象数,点击数,来源,媒介,关键字等的信息.
So even nobody open the link with UTM tags, everyday I use Facebook Marketing API to get information about impressions, clicks, source, medium, keyword etc.
我应该使用哪种方法?还是可以从广告统计信息中获取带有UTM标签的目标网址?那么如何获得目标URL(带有UTM标签)?
What method should I use? Or may I get the target URL with UTM tags from ad statistic? So how can I get the targeted URL (with UTM tags)?
我听说过广告报告统计信息,但现在没有任何说明.此链接无效: https://developers.facebook.com/docs/reference/ads-api/adreportstats/
I heard about Ad Report Stats, but there is no instruction anymore about it. This link doesn't work: https://developers.facebook.com/docs/reference/ads-api/adreportstats/
它重定向到 https://developers.facebook.com/docs/marketing-api/insights- api
以前是谢谢!
推荐答案
经过多次尝试,我可以解决这个问题.
After so many trials, I could resolve this.
情况1::需要从广告系列级到广告数据(包括UTM标签)
Case 1: Need Data from Campaign level to Ad data(Including UTM tags)
我们需要使用广告系列优势以获得UTM参数.为我们提供UTM标签的字段是 url_tags .
We need to get Campaign to Ad level data using Campaign insights edge. Once we get this we will have ad_id for each row of data. Then loop through each Ad and and pass ad_id to Ad campaigns edge in order to get UTM params. Field that gives us UTM tags is url_tags.
不幸的是,找不到解决方法,因为在营销API文档中没有地方提到了一种将两个方面结合起来以获取端到端数据(从广告系列到广告UTM标签)的方法
Unfortunately could not find a way around as no where in the marketing API docs there's a way mentioned to join both the edges to get end to end data(Campaign to Ad UTMtags)
来源:1)将广告系列转换为广告级数据2)广告级别数据(包括UTM)
Sources : 1) Get campaign to ad level data 2) Ad level data (including UTM)
案例2 ,您有广告级数据(Ofcourse ad_id)
Case 2 You have ad level data (Ofcourse ad_id)
在这种情况下,您具有广告广告素材优势,可以在其中传递ad_id作为creative_id. 此来源将为您提供帮助.
In this case you have Ad creative edge where you pass ad_id as creative_id. This source will help you out.
这篇关于使用Facebook Marketing API获取UTM标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!