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 780d9d2f
authored
Jun 22, 2021
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#19498 Снхронизация объявлений с целевыми
1 parent
36ce0046
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
app/Service/Requests/Direct/GetAds.php
app/Service/Requests/Direct/GetAds.php
View file @
780d9d2
...
@@ -131,7 +131,7 @@ class GetAds extends DirectRequest
...
@@ -131,7 +131,7 @@ class GetAds extends DirectRequest
'turbo_page_id'
=>
$ad
[
'TextAd'
][
'TurboPageId'
],
'turbo_page_id'
=>
$ad
[
'TextAd'
][
'TurboPageId'
],
'turbo_page_moderation'
=>
$ad
[
'TextAd'
][
'TurboPageModeration'
],
'turbo_page_moderation'
=>
$ad
[
'TextAd'
][
'TurboPageModeration'
],
'business_id'
=>
$ad
[
'TextAd'
][
'BusinessId'
],
'business_id'
=>
$ad
[
'TextAd'
][
'BusinessId'
],
'prefer_v_card_over_business'
=>
$ad
[
'TextAd'
][
'PreferVCardOverBusiness'
]
===
'YES'
,
'prefer_v_card_over_business'
=>
isset
(
$ad
[
'TextAd'
][
'PreferVCardOverBusiness'
])
?
$ad
[
'TextAd'
][
'PreferVCardOverBusiness'
]
===
'YES'
:
null
,
]);
]);
}
}
...
@@ -156,10 +156,29 @@ class GetAds extends DirectRequest
...
@@ -156,10 +156,29 @@ class GetAds extends DirectRequest
$this
->
setService
(
'Ads'
);
$this
->
setService
(
'Ads'
);
$this
->
setMethod
(
'get'
);
$this
->
setMethod
(
'get'
);
$params
=
[
$params
=
[
"SelectionCriteria"
=>
[
"Types"
=>
[
"TEXT_AD"
,
],
],
"FieldNames"
=>
[
"FieldNames"
=>
[
"AdCategories"
,
"AgeLabel"
,
"AdGroupId"
,
"AdCategories"
,
"AgeLabel"
,
"AdGroupId"
,
"CampaignId"
,
"Id"
,
"State"
,
"Status"
,
"CampaignId"
,
"Id"
,
"State"
,
"Status"
,
"StatusClarification"
,
"Type"
,
"Subtype"
"StatusClarification"
,
"Type"
,
"Subtype"
,
],
"TextAdFieldNames"
=>
[
"AdImageHash"
,
"DisplayDomain"
,
"Href"
,
"SitelinkSetId"
,
"Text"
,
"Title"
,
"Title2"
,
"Mobile"
,
"VCardId"
,
"DisplayUrlPath"
,
"AdImageModeration"
,
"SitelinksModeration"
,
"VCardModeration"
,
"AdExtensions"
,
"DisplayUrlPathModeration"
,
"VideoExtension"
,
"TurboPageId"
,
"TurboPageModeration"
,
"BusinessId"
,
"PreferVCardOverBusiness"
,
],
"TextAdPriceExtensionFieldNames"
=>
[
"Price"
,
"OldPrice"
,
"PriceCurrency"
,
"PriceQualifier"
,
],
],
];
];
if
(
isset
(
$filter
[
'CampaignIds'
]))
{
if
(
isset
(
$filter
[
'CampaignIds'
]))
{
...
...
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