Giter Site home page Giter Site logo

removing users from custom audience is throwing error ''Data is missing or does not match schema:" about facebook-ruby-business-sdk HOT 7 CLOSED

facebook avatar facebook commented on April 18, 2024
removing users from custom audience is throwing error ''Data is missing or does not match schema:"

from facebook-ruby-business-sdk.

Comments (7)

mtam2 avatar mtam2 commented on April 18, 2024

As far as I can tell, you can only remove users by email. So only

emails = [ ['[email protected]'], ['[email protected]'] ]
schema = ['EMAIL']
ca.remove_user(emails, schema)

from facebook-ruby-business-sdk.

guruprasad83 avatar guruprasad83 commented on April 18, 2024

@mtam2 @anudeepreddyg - I am also getting the error when deleting the users from audience. But for me the error says OAuth "Facebook Platform" "invalid_request" "Permissions error"
I had validated my token from here - https://developers.facebook.com/tools/debug
and it seems all the permission sets, scopes are proper. Any help on this would be greatly appreciated.

from facebook-ruby-business-sdk.

stale avatar stale commented on April 18, 2024

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

from facebook-ruby-business-sdk.

stale avatar stale commented on April 18, 2024

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

from facebook-ruby-business-sdk.

al13bash avatar al13bash commented on April 18, 2024

Having same issue here. I'm doing custom_audience.users.destroy({ payload: payload }) and getting FacebookAds::ClientError ((#100) Data is missing or does not match schema: (fbtrace_id: AAvLiebehl7JhmxoiC6UY2T)). Same payload works fine for custom_audience.users.create({ payload: payload }).

from facebook-ruby-business-sdk.

mtam2 avatar mtam2 commented on April 18, 2024

@al13bash fb_audience.remove_user(array_of_emails, ["EMAIL"]) https://github.com/facebook/facebook-ruby-business-sdk/blob/master/lib/facebook_ads/ad_objects/helpers/custom_audience_helpers.rb#L57
Sometimes the remove schema is incompatible so I cut it down to the bare minimum email. I can't find any documentation for it so you'll have to keep guessing what the schema is unfortunately. https://developers.facebook.com/docs/marketing-api/audiences/guides/custom-audiences#remove

from facebook-ruby-business-sdk.

guruprasad83 avatar guruprasad83 commented on April 18, 2024

Just in case if it would be helpful for someone, Actually the delete API has some constraint and for us it did not worked and was getting error OAuth "Facebook Platform" "invalid_request" "Permissions error"
Even though our token validation and all were proper. But digging more, we came to know that it was actually because of Audience size. If the audience size is lesser in size (not sure may be 100) it wont delete the users and throws error. We came to know this error only when we use facebook developer platform to tried the same delete request and got the error.

from facebook-ruby-business-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.