Invalid View Tags - facebook

I am trying to add view tags to ad group, and I am always receiving the same response:
{
"error": {
"message": "Invalid parameter",
"type": "FacebookApiException",
"code": 100,
"error_subcode": 1487248,
"is_transient": false,
"error_user_title": "Invalid View Tags",
"error_user_msg": "The view tags are invalid."
}
}
I make a POST request to https://graph.facebook.com/<AD_GROUP_ID> with view_tags=["https://cdn.thenextad.com/1.php"]
The pixel seems to satisfy all requirements from here.
Do you have any ideas that might help?

Related

What does Facebook error code "-1" subcode "2018012" error_key "E-1_S2018012"mean?

I received this error from Facebook, for a specific guest user:
"message": "[FacebookClient] response",
"status": 400,
"request": {
"baseURL": "https://graph.facebook.com/v8.0/",
"url": "/me/messages?access_token=EAAT9ZAq9Nm..."
},
"data": {
"error": {
"message": "(#-1) Unexpected internal error",
"type": "OAuthException",
"code": -1,
"error_subcode": 2018012,
"fbtrace_id": "AJcFpXZa28zOMut3XAUxorW"
}
},
....
"error_key": "E-1_S2018012"
Facebook documentation did not mention anything about this error. And very few info from Internet with reasons (not encode as unicode, send same payload messages in same time and timezone) that are not applicable to me.
Pls help me what it is and how to solve? Thank a lot!

Facebook graph api filtering nested object

How to filter by creativeid on Ads using facebook graph api.
I tried below query but it is not working.
act_xxxxxx/ads?fields=creative{id}&filtering=[{field: "creative",operator:"EQUAL", value:"id_of_creative"}]
act_xxxxxx/ads?fields=creative{id}&filtering=[{field: "ad.creative.id",operator:"EQUAL", value:"id_of_creative"}]
act_xxxxxx/ads?fields=creative{id}&filtering=[{field: "creative.id",operator:"EQUAL", value:"id_of_creative"}]
But for all above response is
{ "error": { "message": "(#100) Filtering field 'creative.' with operation 'equal' is not supported", "type": "OAuthException", "code": 100, "error_data": "An unknown error occurred", "fbtrace_id": "AlWsddsx" } }

How to create a BigQuery View using REST request

I've tried building and sending the REST request using the Google Tables: insert page with the following (sanitised) values:
Request parameters
projectId:prj-name
datasetId:dataset_name
Request body
{
"view": {
"useLegacySql": false,
"query": "SELECT * FROM `prj-name.dataset_name.hello_world`"
},
"type": "VIEW",
"tableReference": {
"projectId": "prj-name",
"datasetId": "dataset_name",
"tableId": "v_hello_world"
}
}
This post suggests these parameters should work, but Google returns the following response:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Output field used as input"
}
],
"code": 400,
"message": "Output field used as input"
}
}
I've experimented with the REST properties and I think the 400 issue is caused by the inclusion of the tableReference property. But if I exclude it I get the following alternative error:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Required parameter is missing"
}
],
"code": 400,
"message": "Required parameter is missing"
}
}
It's a shame that the "Required parameter" is not named in this error message!
I can use this code method to create the view but that code method throws an exception when patching views.
Help is appreciated. I'd rather not have to maintain two different ways of managing views in my code.
Thanks.
Remove "type": "VIEW", from your request.
That's not an input parameter. It's an output field from the response.
https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#resource

How to delete a facebook marketing lead form using graph api

According to the facebook documentation here Deleting a Lead Form
this is how you do it:
Send a delete http request to https://graph.facebook.com/v2.10/formId?access_token=the_access_token.
However I get the error below when I try the above:
{
"error": {
"message": "(#210) This call requires a Page access token.",
"type": "OAuthException",
"code": 210,
"fbtrace_id": "ABC123/xyz"
}
}
When I use a Page access token (as suggest by the error response) this is what I get:
{
"error": {
"message": "(#3) Subject must be on whitelist",
"type": "OAuthException",
"code": 3,
"fbtrace_id": "IJK123/uvw"
}
}
If it matters the accessToken initially used is the same token used to create the leadform.
How can I get this to work? What am I missing?

Invalid View Tags 1487248

when we create view_tags,
6042082954722?view_tags=["https://da.info.co/tr?key=view_tags"]
We get this error :
{
"error": {
"message": "Invalid parameter",
"type": "FacebookApiException",
"code": 100,
"error_subcode": 1487248,
"is_transient": false,
"error_user_title": "Invalid View Tags",
"error_user_msg": "The view tags are invalid.",
"fbtrace_id": "FxlLxqGwwC4"
},
"__fb_trace_id__": "FxlLxqGwwC4"
}
You cannot just use any tag for Facebook, only certified tags. It looks like this one is not a valid domain to be used.