Hi Teenco,

It is currently not possible to create YoutubeVideoMedia via AdWords API. 
You may refer to one of the notes in this link 
<https://developers.google.com/adwords/api/docs/guides/mobile-app-campaigns#constructing_a_campaign>,
 
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() 
<https://developers.google.com/adwords/api/docs/reference/v201809/MediaService#get>
 and 
you need to check for the media type 
<https://developers.google.com/adwords/api/docs/reference/v201806/MediaService.Media#type>
 VIDEO.

Let me know if you have further concerns.

Thanks,
Luis
AdWords API Team

On Monday, November 5, 2018 at 9:48:30 AM UTC+8, teenco ssam wrote:
>
> I want to create mobile app campaign contains youtube video using google 
> ads API
> The video is shown below.
> https://www.youtube.com/watch?v=0MbNocgMm5c
>
> 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.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f7904a52-e765-424d-87f3-78b56d4d5257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... teenco ssam
    • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to