You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while schedule / uploading video on twitter using twitter php ads sdk its showing following error maximum execution time exceeded. below i have attached my code plz check it and give a solution.
$scheduledTweet->setText("this is my tweet on twitter with text and video.");
$scheduledTweet->setAsUserId(self::USER_ID);
$scheduledTweet->setNullcast(true);
$scheduledTweet->setScheduledAt('2021-01-08T17:00:00Z');
$scheduledTweet->setMediaKeys($media_keys);
$scheduledTweet->save();`
The text was updated successfully, but these errors were encountered:
while schedule / uploading video on twitter using twitter php ads sdk its showing following error maximum execution time exceeded. below i have attached my code plz check it and give a solution.
`require_once dirname(FILE) . '/../../../vendor/autoload.php';
// Create twitter ads client
$api = TwitterAds::init(self::CONSUMER_KEY, self::CONSUMER_SECRET, self::ACCESS_TOKEN, self::ACCESS_TOKEN_SECRET);
$account = (new Account (self::ACCOUNT_ID))->read();
$media1 = $api->upload(['media' => public_path('/images/rain.mp4'), 'media_type' => 'video/mp4'], true);
$media_keys = implode(',', [$media1->media_key,]);
$scheduledTweet = new ScheduledTweet();
$scheduledTweet->setText("this is my tweet on twitter with text and video.");
$scheduledTweet->setAsUserId(self::USER_ID);
$scheduledTweet->setNullcast(true);
$scheduledTweet->setScheduledAt('2021-01-08T17:00:00Z');
$scheduledTweet->setMediaKeys($media_keys);
$scheduledTweet->save();`
The text was updated successfully, but these errors were encountered: