You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/API/Google/AdsAssetGroupAsset.php
+43-12Lines changed: 43 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -308,20 +308,30 @@ function ( $asset ) use ( $asset_group_id ) {
308
308
/**
309
309
* Edit assets group assets.
310
310
*
311
-
* @param int $asset_group_id The asset group id.
312
-
* @param array $assets The assets to create.
311
+
* When brand guidelines is enabled, business name and logo must NOT be linked at asset group level
312
+
* (they must be CampaignAssets only, per Google Ads API requirements). This method skips creating
313
+
* AssetGroupAsset operations for brand assets and returns the created asset data so the caller can
314
+
* link them at campaign level instead.
313
315
*
314
-
* @return array The asset group asset operations.
316
+
* @param int $asset_group_id The asset group id.
317
+
* @param array $assets The assets to create.
318
+
* @param bool $is_brand_guidelines_enabled Whether brand guidelines is enabled for the asset group's campaign.
319
+
*
320
+
* @return array{operations: MutateOperation[], assets_for_creation: array, created_asset_resource_names: array} Asset group operations and creation data for campaign-level linking.
315
321
* @throws Exception If the asset type is not supported.
0 commit comments