Real time updates via AdBridge to Facebook, Google

Real time updates via AdBridge to Facebook, Google

The AdBridge ability to send a smart list / list over to Facebook Custom Audiences, LinkedIn, or Google Customer Match is great. But you still need to manually put these over to ensure it stays relevant. Wouldn't it be great if you could set it to keep the audience in sync hourly/daily? Or even in real time?

Then, you could automatically drop customers out of ad sets when they have purchased, for example.

16 Comments
Level 6

Stephanie Sweetland​ sure! Are you at all familiar with Python? I used a combination of Python and the Google Ads framework you can find on their side. The hardest part with all of this stuff is authenticating.

You firstly need to get access to the Google Ads account where shared audiences are stored. Then create an API user for that account and submit to Google your intended uses to get access to production. From there, here's how I run it:

1. I have a folder in Marketo called "Automated Audiences". This has a bunch of static lists in there that correspond to the audiences I'd like to maintain in Google and Facebook. Nightly, smart campaign remove and re-populate the lists to ensure it's up to date.

2. When I run the Python script, it uses the Marketo API to fetch all of the lists under that Automated Audiences folder, and extract every email address. It then "hashes" then to ensure it's in the right format for Google.

3. Then the script looks into our Google Ads account via API and tries to find a list that matches the ID and name of the lists in Marketo. Eg. 19771 - Customers. If it finds an equivalent list in Google, it removes everyone from the list and then re-populates it with all the new hashed emails. If the list doesn't exist, it creates it in Google and populates it.

Make sense? I won't pretend this was easy for me, it took a fair bit of grinding and help from our Tech team. But I'm happy to help where I can

This is really helpful, thanks so much for taking time to share!

Community Manager
Status changed to: Under review
 
@Phillip_Wild any chance you can release open source to Github? Or provide me access to the repo? 
 

 

Level 6

Hi @Sean_Richards , I've uploaded to Github:https://github.com/philwild2/marketo-google-audiences/tree/master.

 

So....caveat that you will need to install Google Ads API client library to get it to work, and I did this so long ago I don't actually remember how I did it! Hopefully you can figure it out. Basically you need a local file with your Google API credentials that the script can access. Something like that.

 

Forgive me, I'm not really a developer, I wrote this with help from my more experienced colleagues!

Level 6

I've completed some code for this - it syncs both Google and Facebook audiences with a given set of static lists in Marketo. Written in Python.

 

It's far from bulletproof (I'm a quasi-developer at best) but I'm happy to share some knowledge on this if you have some development resources in-house, or are good with Python and APIs. DM me if you're interested.