PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 4, 2022

[FIXED] is it allowed to create a web custom audience in facebook ads sdk v2.8 in sandbox?

 February 04, 2022     facebook, facebook-ads-api, facebook-graph-api, facebook-php-sdk     No comments   

Issue

I know there's already a version 2.9 of the facebook marketing api, but am still currently using the v2.8, and I am running calls using the sandbox. now my question is, are we allowed to create web custom audience in the sandbox ? I tried to run this snippet in the facebook graph explorer

act_<ACCOUNT ID>/?fields=tos_accepted

I got this result for my sandbox account

{
  "tos_accepted": {
    "custom_audience_tos": 1
  },
  "id": "act_<my account id>"
}

but when I tried to run the same query using a non-sandbox account, I got different result

{
  "tos_accepted": {
    "custom_audience_tos": 1,
    "web_custom_audience_tos": 1
  },
  "id": "act_<my account id>"
}

you see the web_custom_audience_tos property is not in the output when I used a sandbox account


Solution

Yes you can create Website Custom Audiences (WCA) using the Sandbox, however you will need to accept the terms & conditions for this.

If you try to create a WCA without accepting them, you'll get something like this:

{"error":{"message":"(#2663) Terms of service has not been accepted. To accept, go to https:\/\/www.facebook.com\/customaudiences\/app\/tos\/?act=ACCOUNT_ID","type":"OAuthException","code":2663,"fbtrace_id":""}}

To accept the TOS, you can go here, replacing the act ID with your Sandbox ID:

https://www.facebook.com/customaudiences/app/tos/?act=12312312



Answered By - Paul Bain
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing