Posts tagged with facebook-ads-api

I've encounted a problem. I need to get metrics from Facebook API insights (I'm using version 18) to build my own report. Some of metrics are displayed in Facebook Adsmanager, but not found in API insights. Those metrics are:

I've read through all Facebook Insights doc and call its API by many ways but cannot get the above metrics. So are there other ways to get those metrics either by APIs or from Facebook Adsmanager?

I have implemented server-side tagging in in Google Tag Manager (GTM), but I'm sending HTTP requests directly from my backend code, rather than using JavaScript on the frontend (as many other developers). Since, the conversion tracking cookies set by Meta and Google aren't automatically sent when sending a HTTP request from my backend code, I am getting the _fbp and _fbc cookie values from the context and sending them as a "ep.x-fb-ck-fbp" and "ep.x-fb-ck-fbc" to the GTM server container, which allows me to track Facebook ads conversions successfully.

I am now looking to replicate this process for Google Ads. I understand that for Google Ads conversion tracking, the GCLID is a parameter that sets the _gcl_aw cookie which I should use to track conversion. However, I am not certain how to send this cookie value in the Http request that I'm sending from my server to the GTM server container.

In other words, if I'm sending the Meta's _fbc cookie value as a "ep.x-fb-ck-fbc" parameter, how should I send the Google's _gcl_aw and _gcl_au cookies.

I made a playable ad and now i want to make a build for Mintegral platform. As the whole point of playable ad is to redirect user to store, i need to implement a CTA (call to action) method, that will do so. Every platform requires specific code to redirect user to store. And there is no much information about minegral code requirements. I found this recomendation on their website: The whole process of the playable needs a button for directing to Store, in order to make sure a button labeled “Download Now” can be shown all the time through the game and direct to Store. All features that direct to App Store must call API

window.install && window.install(); 

Is it all i hve to do for cta method? there is no specific url. May be i need to assign a url in their dashboard, not in the playable itself?

i tried to implenent this code as a cta method, but mintegral playable test site(https://www.mindworks-creative.com/review/) does not detect my method as a cta method.

onClick: function (store) {         window.install && window.install();            if (store === undefined)                store = navigator.userAgent.toLowerCase().indexOf("android") > -1 ? "google" : "apple";                var urls = {                "google": "https://play.google.com/store/apps/details?id=my id",                "apple": "https://apps.apple.com/us/app/my id"            };            var url = urls[store];            mraid.open(url);        } 

I'm trying to finish my analytics setup and I've got a bit confused what is the best way forward. The end goal is to have tracking setup that enables me to optimize my Google and Facebook campaigns towards approved users instead of just signed up users. Our product has the following funnel:

  1. User visits our website
  2. He signs up for our product using website lead form (at this moment I have user's email, name, phone number etc.)
  3. Based on our evaluation (that can take hours or days) the user is approved or disapproved in our CRM

I want to provide the advertising systems (mainly Google Ads and Facebook Ads) with an information when the user was approved with all the required ids so the system can trace the event back to the ad the user clicked.

I have the following analytical stack that I am working with:

  • Website GTM container
  • Server GTM container (GA4+ UA clients, GA4 + UA + FCAPI tags)
  • Facebook Conversion API implemented in sGTM

What would be the best way in your opinion to implement the tracking of the event that is fired from our CRM when user is approved? I was thinking about using Measurement Protocol to send the event to sGTM/GA4 or Enhanced conversions for leads for Google Ads but neither solutions seems to fit 100 % to my scenario. What would you recommend? Thank you for any inputs.

For monitoring, we are using Application Insights.

Since we are advertising on multiple platforms, (Google, Facebook, LinkedIn, other 3rd party platforms) one of the business goals is to track which marketing dollars on which platform result in most subscriptions, and pour more money there.

To do that I need to know which platform did user originate from.

Where do I find, where the user originated from, in Azure Portal? (referer URL maybe),

If it is not supported "out of the box" I would have to guess I need to pass parameter in URL that would indicate the platform or something similar like grab a cookie, how does one track where the user originated from?

This is obviously a solved problem, but I am having a hard time finding any articles on how to do this the way Microsoft expects it.