Get the UTM tags with Facebook Marketing API

混江龙づ霸主 提交于 2019-12-04 17:07:29

After so many trials, I could resolve this.

Case 1: Need Data from Campaign level to Ad data(Including UTM 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.

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)

Sources : 1) Get campaign to ad level data 2) Ad level data (including UTM)

Case 2 You have ad level data (Ofcourse ad_id)

In this case you have Ad creative edge where you pass ad_id as creative_id. This source will help you out.

Johan de Beurs

You should be able to access the target URLs from the ad creatives edge for each ad. See here for the documentation, noting in particular the various ad url data types here.

My understanding is that the target URL is not available from the Ad Insights edge

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!