Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c50e7b8f
authored
Dec 08, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исправления
1 parent
8fd54f7a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
13 deletions
app/Service/Requests/Direct/AddAdGroups.php
app/Service/Requests/Direct/AddCampaigns.php
app/Service/Requests/Direct/AddRetargetinglists.php
app/Service/Requests/Direct/AddSitelinks.php
app/Service/Requests/Direct/AddVCards.php
app/Service/Requests/Direct/AddAdGroups.php
View file @
c50e7b8
...
...
@@ -92,19 +92,27 @@ class AddAdGroups extends DirectRequest
'reserve_create_at'
=>
null
,
]);
$goalAdGroup
->
goalKeywords
()
->
update
([
$goalAdGroup
->
goalKeywords
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'goal_ad_group_external_id'
=>
$external_id
,
]);
$goalAdGroup
->
goalAdvertisements
()
->
update
([
$goalAdGroup
->
goalAdvertisements
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'goal_ad_group_external_id'
=>
$external_id
,
]);
$goalAdGroup
->
goalBidModifiers
()
->
update
([
$goalAdGroup
->
goalBidModifiers
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'goal_ad_group_external_id'
=>
$external_id
,
]);
$goalAdGroup
->
goalAudienceTargets
()
->
update
([
$goalAdGroup
->
goalAudienceTargets
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'goal_ad_group_external_id'
=>
$external_id
,
]);
...
...
app/Service/Requests/Direct/AddCampaigns.php
View file @
c50e7b8
...
...
@@ -92,27 +92,39 @@ class AddCampaigns extends DirectRequest
'reserve_create_at'
=>
null
,
]);
$dictionaryCampaign
->
groups
()
->
update
([
$dictionaryCampaign
->
groups
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'dictionary_campaign_external_id'
=>
$external_id
,
]);
$dictionaryCampaign
->
goalKeywords
()
->
update
([
$dictionaryCampaign
->
goalKeywords
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'dictionary_campaign_external_id'
=>
$external_id
,
]);
$dictionaryCampaign
->
goalAdvertisements
()
->
update
([
$dictionaryCampaign
->
goalAdvertisements
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'dictionary_campaign_external_id'
=>
$external_id
,
]);
$dictionaryCampaign
->
goalBidModifiers
()
->
update
([
$dictionaryCampaign
->
goalBidModifiers
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'dictionary_campaign_external_id'
=>
$external_id
,
]);
$dictionaryCampaign
->
goalVCards
()
->
update
([
$dictionaryCampaign
->
goalVCards
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'dictionary_campaign_external_id'
=>
$external_id
,
]);
$dictionaryCampaign
->
goalAudienceTargets
()
->
update
([
$dictionaryCampaign
->
goalAudienceTargets
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'dictionary_campaign_external_id'
=>
$external_id
,
]);
...
...
app/Service/Requests/Direct/AddRetargetinglists.php
View file @
c50e7b8
...
...
@@ -92,7 +92,9 @@ class AddRetargetinglists extends DirectRequest
'reserve_create_at'
=>
null
,
]);
$goalRetargetinglist
->
goalAudienceTargets
()
->
update
([
$goalRetargetinglist
->
goalAudienceTargets
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'goal_retargetinglist_external_id'
=>
$external_id
,
]);
...
...
app/Service/Requests/Direct/AddSitelinks.php
View file @
c50e7b8
...
...
@@ -92,7 +92,9 @@ class AddSitelinks extends DirectRequest
'reserve_create_at'
=>
null
,
]);
$goalSitelink
->
goalAdvertisements
()
->
update
([
$goalSitelink
->
goalAdvertisements
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'goal_sitelink_external_id'
=>
$external_id
,
]);
...
...
app/Service/Requests/Direct/AddVCards.php
View file @
c50e7b8
...
...
@@ -92,7 +92,9 @@ class AddVCards extends DirectRequest
'reserve_create_at'
=>
null
,
]);
$goalVCard
->
goalAdvertisements
()
->
update
([
$goalVCard
->
goalAdvertisements
()
->
where
(
function
(
$query
)
{
$query
->
getModel
()
->
timestamps
=
false
;
})
->
update
([
'goal_v_card_external_id'
=>
$external_id
,
]);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment