GithubHelp home page GithubHelp logo

Comments (6)

adam-szczombrowski avatar adam-szczombrowski commented on April 20, 2024

@alanho could you please look into it? I'm unable to get any attribute values on delivery_estimate object. It always returns Undefined method estimate_dau and similar to that.

from facebook-ruby-business-sdk.

alanho avatar alanho commented on April 20, 2024

hi @adam-szczombrowski , sorry for the delayed response. do you have any sample code that could reproduce the problem that i could look at?

from facebook-ruby-business-sdk.

adam-szczombrowski avatar adam-szczombrowski commented on April 20, 2024
client = FacebookAds::AdAccount.get(@account_id, {access_token: @access_token, app_secret: FacebookAds.config.app_secret })

delivery_estimate = client.adsets.first.delivery_estimate

and now whenever trying to send methods to delivery_estimate object it raises TypeError (the only method I found working is to_yaml)

from facebook-ruby-business-sdk.

adam-szczombrowski avatar adam-szczombrowski commented on April 20, 2024

@alanho here is the output from rails console:

[1] pry(main)> client = Facebook::GetClient.new(User.first).call
  User Load (2.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT $1  [["LIMIT", 1]]
=> #<FacebookAds::AdAccount {:id=>"act_103551207093597"}>
[2] pry(main)> estimate = client.adsets.first.delivery_estimate
=> #<#<Class:0x007f90499d9550>:0x007f904c470368
 @name=:delivery_estimate,
 @node=#<FacebookAds::AdSet {:id=>"120330000018073214"}>,
 @options={},
 @should_delegate=false>
[3] pry(main)> estimate.first
TypeError: no implicit conversion of Hash into String
from /Users/adam/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/json-2.1.0/lib/json/common.rb:156:in `initialize'

from facebook-ruby-business-sdk.

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