Commit c343e63f by Vladislav

#19498 Снхронизация объявлений с целевыми

1 parent 7fc5b0f8
......@@ -21,6 +21,7 @@ class ProcessCallAPI implements ShouldQueue
private $api;
private $limitId;
public $tries = 1;
public $timeout = 1500;
/**
......
......@@ -115,11 +115,11 @@ class UpdateAds extends DirectRequest
}
if ($goalAdvertisement->href) {
$data['TextAd']['Href'] = $goalAdvertisement->href;
$data['TextAd']['Href'] = StrReplaceByVariables::getInstance($goalAdvertisement->href, $list)->get();
}
if ($goalAdvertisement->display_url_path) {
$data['TextAd']['DisplayUrlPath'] = $goalAdvertisement->display_url_path;
$data['TextAd']['DisplayUrlPath'] = StrReplaceByVariables::getInstance($goalAdvertisement->display_url_path, $list)->get();
}
if ($goalAdvertisement->v_card_id) {
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ChangeAdvertisementsColumnNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('advertisements', function (Blueprint $table) {
$table->bigInteger('campaign_id')->unsigned()->nullable();
$table->bigInteger('ad_group_id')->unsigned()->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!