Facebook 并没有检测到这些 BM,可以正常投放广告。同时,所有的 Facebook 触发器继续管理AC。也就是说,只需要一个这样的 BM 就可运行任意数量的广告。

 

https://business.facebook.com/settings/people/100085288313798?business_id=721962389018273

首先准备一个BM设置链接-点击设置指南

 

将你的广告账户ID替换到下面代码中 var accountId这里的ID:901641970372969

var accountId = require("BusinessUnifiedNavigationContext").adAccountID;
var fb_dtsg = require('DTSGInitialData').token;
var __user = require('CurrentUserInitialData').USER_ID;
var bm_id = location.href.split('?business_id=')[1].split('&')[0].trim();
var params = `__user=${__user}&__a=1&__csr=&__req=u&__hs=19233.BP%3Abrands_pkg.2.0.0.0.0&dpr=1&__ccg=EXCELLENT&__rev=1006107908&__s=6n2lwc%3Aa7z5og%3Asrwkmr&__hsi=7137284028269070087&__comet_req=0&fb_dtsg=${fb_dtsg}&jazoest=25466&lsd=djOwmsZGMY8CPHYIPh6YoQ&__spin_r=1006107908&__spin_b=trunk&__spin_t=1661778434&__jssesw=1`;

//put your ad account id below, it must share to same facebook account keep BM.
var accountId = "701671047790172";


fetch("https://business.facebook.com/business/objects/add/connections/?business_id=" + bm_id + "&from_id=" + bm_id + "&from_asset_type=brand&to_id=" + accountId + "&to_asset_type=ad-account", {
    "headers": {
        "content-type": "application/x-www-form-urlencoded",
    },
    "body": params,
    "method": "POST",
    "mode": "cors",
    "credentials": "include"
	}).then(e => { 
        console.log("Lets go to @cparip"); 
		console.log(e.text()); 
    })

按F12或者鼠标右键检查,将代码复制

稍等片刻,然后更新页面。如果一切操作完成。我们将得到不死BM。

 

关联无限数量的广告帐户

在不死BM 添加任意数量的广告帐户并从中投放广告,在const accountLists批量添加广告ID

将其粘贴到开发者控制台中(和不死BM一样),按 Enter

const businessId = require("BusinessUnifiedNavigationContext").businessID;
const fb_dtsg = require("DTSGInitialData").token;
const uid = require("CurrentUserInitialData").USER_ID;

const accountLists = `在此插入广告账户ID`;

const accountIds = accountLists.split("\n");
const length = accountIds.length;
const thread = 50;
const loop = length / thread;
for (let i = 0; i < loop; i++) {
  const startIndex = i * thread;
  const endIndex = (i + 1) * thread;
  for (let j = startIndex; j < endIndex; j++) {
    setTimeout(kyotvh_add, i * 10, accountIds[j]);
  }
}

function kyotvh_add(accountId) {
  const url = `https://business.facebook.com/business/objects/add/connections/?business_id=${businessId}&from_id=${businessId}&from_asset_type=brand&to_id=${accountId}&to_asset_type=ad-account`;
  const params = `__user=${uid}&__a=1&__dyn=7xeUmxa2C5rgydwCwRyU8EKnFG2Om2q12wAxuq3mq1FxebzA3aF98Sm4Euxa16xq2WdwJwy-2i13x21FxG9y8Gdz8hwgo5S3a4EuCx62a2q5E9UeUryE5mWyUd8S3bg-3tpUdoK7UC5U7y78jxiUa8522m3K2y3WElUScyo720FoO12Kmu7EK3i2a3Fe6rwnVUao9k2B12ewi8doa84K5E5WUrorx2awCx5e8wxK2efK6F8W1dx-q4VEhwww9O3ifzobEaUiwrUK5Ue8Sp1G3WcwMzUkGum2ym2WE4e8wl8hyVEKu9zUbVEHyU8U3yDwbm1bwzwqpbw&__csr=&__req=r&__hs=19234.BP%3Abrands_pkg.2.0.0.0.0&dpr=1.5&__ccg=EXCELLENT&__rev=1006115252&__s=ne9waj%3Acicyhn%3Aq28x8k&__hsi=7137596782722923131&__comet_req=0&fb_dtsg=${fb_dtsg}&jazoest=25661&lsd=tqhJ435PyAJ7SnONkDETc0&__spin_r=1006115252&__spin_b=trunk&__spin_t=1661851252&__jssesw=1`;
  var http = new XMLHttpRequest();
  http.open("POST", url, true);
  http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  http.onreadystatechange = function () {
    if (http.readyState == 4 && http.status == 200) {
      console.log("Lets go to @cparip");
    }
  };
  http.send(params);
}

我们刚刚组建了Crossker跨境交流群,欢迎各位跨境电商朋友加入!你有什么问题尽管提,我们将全力帮你解答,助力独立站卖家共同成长!

客服小C:Crossker-tool
扫描下方二维码拉你入群哦~