How to get youtube long data type ID.

35 views
Skip to first unread message

teenco ssam

unread,
Nov 4, 2018, 8:48:30 PM11/4/18
to AdWords API and Google Ads API Forum
I want to create mobile app campaign contains youtube video using google ads API
The video is shown below.

In the API specification, video ID is must be long data type, how to get that?
https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService.UniversalAppCampaignSetting#youtubevideomediaids

thanks.

Luis Xander Talag (AdWords API Team)

unread,
Nov 5, 2018, 1:30:57 AM11/5/18
to AdWords API and Google Ads API Forum
Hi Teenco,

It is currently not possible to create YoutubeVideoMedia via AdWords API. You may refer to one of the notes in this link, it states that "Note: The AdWords API doesn't support creating YoutubeVideoMedia so you need to manually set the campaign's YouTube Video assets through the AdWords UI.". Once you already have a video uploaded via the UI, you can get the media id associated with the video using the MediaService.get() and you need to check for the media type VIDEO.

Let me know if you have further concerns.

Thanks,
Luis
AdWords API Team

teenco ssam

unread,
Nov 6, 2018, 7:32:12 AM11/6/18
to AdWords API and Google Ads API Forum
Thanks Luis.

"You need to manually set the campaign's YouTube video assets via the AdWords UI"
Does this sentence mean that should I use the function shown in the red circle in the attached file?
Is it right?
ads video.png

Luis Xander Talag (AdWords API Team)

unread,
Nov 6, 2018, 11:05:48 PM11/6/18
to AdWords API and Google Ads API Forum
Hi Teenco,

Yes, you may add youtube video assets that way into your mobile app campaign via UI. If you have further concerns, you may post it on the AdWords Community Forum in this link since this is not an AdWords API specific concern.

Thanks,
Luis
AdWords API Team

Reply all
Reply to author
Forward
0 new messages