GithubHelp home page GithubHelp logo

Comments (6)

yandod avatar yandod commented on April 19, 2024

@sankak could you provide minimal code sample reproduce that issue?

from facebook-ruby-business-sdk.

sankak avatar sankak commented on April 19, 2024

here is sample source code.

@ad_acc = FacebookAds::AdAccount.get("act_XXXXXXXXXX",  {
    access_token: "YYYYYYYYYYY",
    app_secret: "ZZZZZZZZZZZZZZ"
})

@ca = @ad_acc.customaudiences.create({
  name: "name",
  subtype: "CUSTOM",
  description: "description",
})

# ids is examples for app scoped user id.
ids=[99999999990, 999999999991, 999999999992] 

# 00000000000000 is example for FB application id.
# ids is hashed in add_user method in the gem
@ca.add_user(ids, 'UID', {app_ids: [00000000000000]})

then, send marketing api with is_raw paramater true.

from facebook-ruby-business-sdk.

yandod avatar yandod commented on April 19, 2024

お待たせして申し訳ありません。
状況を確認いたしました。
すでに対策されているかもですが、上記のユースケースだけで言えば pre_hashedにtrueを指定すれば is_rawがtrueでデータもrawのリクエストを作れそうです。

ids=['99999999990', '999999999991', '999999999992']
p @ca.prepare_params(ids, 'UID', {app_ids: ['936846693102846'], pre_hashed: true})
{:payload=>{:schema=>"UID", :data=>["99999999990", "999999999991", "999999999992"], :is_raw=>true, :app_ids=>["936846693102846"]}}

そもそもハッシュ化した形で送信する仕様にすべきどうかで、gem自体の修正方針が変わってきますのでこちらは引き続き確認いたします。

from facebook-ruby-business-sdk.

sankak avatar sankak commented on April 19, 2024

ご連絡ありがとうございます。
pre_hashedにtrueを指定した所、正常にカスタムオーディエンスが登録できました。

from facebook-ruby-business-sdk.

stale avatar stale commented on April 19, 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 19, 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.

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.