Hi Mohammad,

You would first need to setup your YouTube video assets directly via the
Google Ads UI and once you have done so, you can then use the
MediaService.get()
<https://developers.google.com/adwords/api/docs/reference/v201809/MediaService#get> to
retrieve the mediaId
<https://developers.google.com/adwords/api/docs/reference/v201809/MediaService.Media#mediaid> which
you can then use to specify in the youtubeVideoMediaIds
<https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.UniversalAppCampaignSetting#youtubevideomediaids> field.
Let me know if this helps.

Thanks and regards,
Peter
Google Ads API Team

On 04/11/19 13:57:26 [email protected] wrote:

Hello
I have used youtube API to add a video on YouTube and it uploads the video
successfully. Then I have the YouTubeId which is a string and is what you
see in a YouTube URL when you watch a video.
But my problem is I don't know how to convert this to MediaId to add it to
UniversalAppCampaignInfo. I searched a lot but I couldn't find anything
helpful so I decided to ask here.
How can I achieve MediaId from a YouTubeId?
Thank you for your help

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/cc4877cb-7404-48b1-bdf9-94ca1f4b996b%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/cc4877cb-7404-48b1-bdf9-94ca1f4b996b%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ijlio0pf300000000r0f9a000prataz6gmjgdpj70o30c1g68qjie9i%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • How to ... Mohammad Reza Kiani
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to