使用 Facebook Marketing API 获取 UTM 标签 [英] Get the UTM tags with Facebook Marketing API

查看:24
本文介绍了使用 Facebook Marketing API 获取 UTM 标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 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 标签的目标网址吗?那么如何获取目标网址(带有 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)?

我听说过 Ad Report Stats,但没有关于它的说明.此链接无效: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-接口

之前谢谢!

推荐答案

经过这么多次尝试,我可以解决这个问题.

After so many trials, I could resolve this.

案例 1: 需要从广告系列级别到广告数据(包括 UTM 标签)的数据

Case 1: Need Data from Campaign level to Ad data(Including UTM tags)

我们需要使用 广告系列洞察优势. 一旦我们得到这个,我们就会为每一行数据提供 ad_id.然后遍历每个广告并将 ad_id 传递给 广告活动边缘 以获取 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 文档中没有提到一种方法可以连接两端以获取端到端数据(广告系列到广告 UTMtags)

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 您有广告级数据(当然是 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆