I am trying to add youtube video to assets of a google performance ads using following php code
$i = 1; foreach ($youtubeURLs as $youtubeURL) { $operations = array_merge($operations, self::createYoutubeVideoAsset( $customerId, $youtubeURL, AssetFieldType::YOUTUBE_VIDEO, 'Youtube URL' . $i )); } private static function createYoutubeVideoAsset ( int $customerId, string $videoId, int $fieldType, string $assetName ) { $operations[] = new MutateOperation([ 'asset_operation' => new AssetOperation([ 'create' => new Asset([ 'resource_name' => ResourceNames::forAsset($customerId, self::$nextTempId), 'name' => $assetName, 'youtube_video_asset' => new YoutubeVideoAsset(['youtube_video_id' => $videoId]), ]), ]), ]); self::$nextTempId--; return $operations; } Can you give me a code sample ? But its not adding.. Any idea whats went wrong? the video is adding to the campaign but not linking with the campaign, when i check the video is in the asset folder -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8f1c5838-8e29-4ffd-b34a-ab4b4290edf1n%40googlegroups.com.