adding youtube videos when creating an app ad in an app campaign

70 views
Skip to first unread message

Marc Schuetze

unread,
Nov 29, 2022, 6:28:18 PM11/29/22
to Google Ads API and AdWords API Forum
I'm trying to create new ad groups containing headlines, descriptions and youtube videos.


Is there a way to add youtube videos to an app ad?
I've tried the following

ad_group_ad = client.resource.ad_group_ad do |aga|
  aga.status = :ENABLED
  aga.ad_group = ad_group_resource_name
    ad.app_ad = client.resource.app_ad_info do |info|
      info.youtube_videos << client.resource.youtube_video_asset do |youtube_video_asset|
      youtube_video_asset.youtube_video_id = "video_id"
    end
  end
end
end

but I'm getting the error 

*** Google::Protobuf::TypeError Exception: Invalid type Google::Ads::GoogleAds::V12::Common::YoutubeVideoAsset to assign to submessage field ''.

Is there a way to add videos?

If so, what type does the Google::Ads::GoogleAds::V12::Common::AppAdInfo.youtube_videos protobuffer accept?


thanks for your help

Google Ads API Forum Advisor

unread,
Nov 30, 2022, 4:26:32 PM11/30/22
to ma...@playvalve.com, adwor...@googlegroups.com
Hi Marc,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2gglmw:ref
Reply all
Reply to author
Forward
0 new messages