This is my code and I don't understand what is wrong here:
$videoURL = new Video();
$videoURL->setMediaId('zcs2xAXXaZw');
// Creates a Gmail ad.
$gmailAd = new GmailAd();
$gmailAd->setTeaser($teaser);
$gmailAd->setProductVideoList([$videoURL]);
$gmailAd->setMarketingImage($marketingImage);
$gmailAd->setMarketingImageHeadline($ad_headlines[0]);
$gmailAd->setMarketingImageDescription($ad_Descriptions[0]);
$gmailAd->setFinalUrls(array(FixFinalUrl($extURL,$customH1title,'')));
When I remove this line:
$gmailAd->setProductVideoList([$videoURL]);
Every thing is working good of-course.
And this is the error I'm getting:
operations[25].operand.ad.productVideoList[0].mediaId
RequiredError.REQUIRED
Thanks