Hi,
Thank you for reaching out to Google Ads API Forum.
Although there is no code example from the documentation about adding a youtube asset to Performance Max campaign Asset Group, you may refer to this Linking asset groups to assets to a Performance Max campaign example from the documentation. However, can you try setting the AssetFieldType of the AssetGroupAsset to YOUTUBE_VIDEO?
You may also refer to this interactive guide which is specific to creating assets for Performance max campaigns. However, this is not yet available in PHP but soon to be available.
Let me know how it goes.
Regards,
 |
| Abigail |
| Google Ads API Team |
|
|
| |

ref:_00D1U1174p._5004Q2jFaqB:ref