广告列表取图规则
This commit is contained in:
parent
9d6e55988f
commit
c8e69a1d26
@ -130,7 +130,7 @@ class GoogleAdsReportService
|
|||||||
if (is_object($metadata)) {
|
if (is_object($metadata)) {
|
||||||
$metadata = (array)$metadata;
|
$metadata = (array)$metadata;
|
||||||
}
|
}
|
||||||
$imageUrls = isset($metadata['square_marketing_images']) ? $metadata['square_marketing_images'] : [];
|
$imageUrls = isset($metadata['marketing_images']) ? $metadata['marketing_images'] : (isset($metadata['square_marketing_images']) ? $metadata['square_marketing_images'] : []);
|
||||||
|
|
||||||
// Extract asset_id from the image URL
|
// Extract asset_id from the image URL
|
||||||
$assetId = 0;
|
$assetId = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user