An error occurs when attempting to create and update YouTubeVideoAsset in MultiAssetResponsiveDisplayAd type.

51 views
Skip to first unread message

harrison

unread,
Nov 10, 2020, 10:14:13 PM11/10/20
to AdWords API and Google Ads API Forum
Hi,
I am trying to modify the AD of the MultiAssetResponsiveDisplayAd type using PHP library.
There is an error when I try to create YouTubeVideoAsset and update that part. Please let me know if there is a solution.

I attached the source code and error code, so please check it.  
sourceCode.txt
error.txt

Google Ads API Forum Advisor Prod

unread,
Nov 11, 2020, 4:31:36 PM11/11/20
to style...@gmail.com, adwor...@googlegroups.com
Hi Harrison,

The required error you are getting indicates that the YouTubeVideoId is not correctly set when calling the mutate method with operator, set. Can you please check that the variable, youtubeId, is passed and is not null when it is applied to the asset?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q27sx1O:ref

harrison

unread,
Nov 11, 2020, 10:05:20 PM11/11/20
to AdWords API and Google Ads API Forum
Hi, Matt.
I found out that AssetId and YouTubeVideoId need to be updated together! 
Thank you for helping me solve the problem.  

2020년 11월 12일 목요일 오전 6시 31분 36초 UTC+9에 adsapiforumadvisor님이 작성:
Reply all
Reply to author
Forward
0 new messages