GithubHelp home page GithubHelp logo

Comments (4)

paulbain avatar paulbain commented on April 25, 2024

As with the other issue you reported, the start_time is the start of the reporting period, not the start_time of campaign. This will be empty or missing if you did not request a specific start time for your report.

from facebook-php-business-sdk.

kentmt avatar kentmt commented on April 25, 2024

hi Paulbain !
How to get start_time of campaign
Thanks

from facebook-php-business-sdk.

paulbain avatar paulbain commented on April 25, 2024
$campaign = new AdCampaign($id) ;
$fields = array(
  AdCampaignFields::START_TIME
);
$campaign->read($fields);
echo $campaign->start_time

from facebook-php-business-sdk.

javiervelaz avatar javiervelaz commented on April 25, 2024

hi kentmt, did you fix the problem? i have the same error on campaign creation

FacebookAds\Http\Request Object ( [client:protected] => FacebookAds\Http\Client Object ( [requestPrototype:protected] => FacebookAds\Http\Request Object ( [client:protected] => FacebookAds\Http\Client Object RECURSION [headers:protected] => [method:protected] => GET [protocol:protected] => https:// [domain:protected] => [path:protected] => [graphVersion:protected] => [queryParams:protected] => [bodyParams:protected] => [fileParams:protected] => ) [responsePrototype:protected] => FacebookAds\Http\Response Object ( [request:protected] => [statusCode:protected] => [headers:protected] => [body:protected] => [content:protected] => ) [defaultRequestHeaders:protected] => FacebookAds\Http\Headers Object ( [storage:ArrayObject:private] => Array ( [User-Agent] => fb-php-ads-2.5.1 [Accept-Encoding] => * ) ) [adapter:protected] => FacebookAds\Http\Adapter\CurlAdapter Object ( [curl:protected] => FacebookAds\Http\Adapter\Curl\Curl Object ( [handle:protected] => Resource id #217 ) [opts:protected] => ArrayObject Object ( [storage:ArrayObject:private] => Array ( [78] => 10 [13] => 60 [19913] => 1 [42] => 1 [10065] => /home/digital6/public_html/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/../../../fb_ca_chain_bundle.crt ) ) [client:protected] => FacebookAds\Http\Client Object RECURSION ) [caBundlePath:protected] => /home/digital6/public_html/vendor/facebook/php-ads-sdk/src/FacebookAds/Http/../../../fb_ca_chain_bundle.crt [defaultGraphBaseDomain:protected] => facebook.com ) [headers:protected] => FacebookAds\Http\Headers Object ( [storage:ArrayObject:private] => Array ( [User-Agent] => fb-php-ads-2.5.1 [Accept-Encoding] => * ) ) [method:protected] => POST [protocol:protected] => https:// [domain:protected] => graph.facebook.com [path:protected] => /act_4069523148218/campaigns [graphVersion:protected] => 2.5 [queryParams:protected] => FacebookAds\Http\Parameters Object ( [storage:ArrayObject:private] => Array ( ) ) [bodyParams:protected] => FacebookAds\Http\Parameters Object ( [storage:ArrayObject:private] => Array ( [name] => febrero [objective] => LINK_CLICKS [status] => PAUSED [access_token] => CAABveNcNunkBALkSgPwungfY0EYnOXhdJZAnngw3u1Jsoq5xXS27BfDbDSOIiSpZChcupCL1XN0kfeIZCYH97zqnQLuVmqsrCNDA6D5TtasnFanzu7Q8OKFrYjPr5Nzue8wN1yLGvhh3ehXm37lsszWjaJ2POSJjKM0xZCrox5C0G82QWNhP70rlDVP6yMQZD [appsecret_proof] => 25cad600012e4e51769e3e71e8b06e51c4fc2e5dd22f6ad39051e893e9228dfa ) ) [fileParams:protected] => FacebookAds\Http\Parameters Object ( [storage:ArrayObject:private] => Array ( ) ) )

from facebook-php-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.