|
@@ 273-279 (lines=7) @@
|
| 270 |
|
} |
| 271 |
|
|
| 272 |
|
$tags = []; |
| 273 |
|
if (isset($options['keywords']) && is_array($options['keyword'])) { |
| 274 |
|
foreach ($options['keywords'] as $keyword) { |
| 275 |
|
$tags[] = ['tag' => $keyword]; |
| 276 |
|
} |
| 277 |
|
} else { |
| 278 |
|
$tags[] = ['tag' => 'none']; |
| 279 |
|
} |
| 280 |
|
$jobSpec['tags'] = $tags; |
| 281 |
|
|
| 282 |
|
if (isset($options['advertisingregions']) && is_array($options['advertisingregions'])) { |
|
@@ 282-288 (lines=7) @@
|
| 279 |
|
} |
| 280 |
|
$jobSpec['tags'] = $tags; |
| 281 |
|
|
| 282 |
|
if (isset($options['advertisingregions']) && is_array($options['advertisingregions'])) { |
| 283 |
|
$regions = []; |
| 284 |
|
foreach ($options['advertisingregions'] as $adreg) { |
| 285 |
|
$regions[] = ['regioncode' => $adreg]; |
| 286 |
|
} |
| 287 |
|
$jobSpec['advertisingregions'] = $regions; |
| 288 |
|
} |
| 289 |
|
|
| 290 |
|
if (isset($options['advertisingcountries']) && is_array($options['advertisingcountries'])) { |
| 291 |
|
$countries = []; |
|
@@ 290-296 (lines=7) @@
|
| 287 |
|
$jobSpec['advertisingregions'] = $regions; |
| 288 |
|
} |
| 289 |
|
|
| 290 |
|
if (isset($options['advertisingcountries']) && is_array($options['advertisingcountries'])) { |
| 291 |
|
$countries = []; |
| 292 |
|
foreach ($options['advertisingcountries'] as $adcountry) { |
| 293 |
|
$countries[] = ['regioncode' => $adcountry]; |
| 294 |
|
} |
| 295 |
|
$jobSpec['advertisingcountrycodes'] = $countries; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
|
| 299 |
|
return XmlBuilder::createXml(['job' => $jobSpec]); |