how to get compaigns videoid in using java adwords api?

15 views
Skip to first unread message

avidl...@gmail.com

unread,
Oct 30, 2018, 7:06:26 AM10/30/18
to AdWords API and Google Ads API Forum
hi all:


        when I upload a video in a web, how to get compaigns videoid in using java adwords api?  

I using  UniversalAppCampaignSetting.

mycode is following:

        Object[] settings = campaign.getSettings();  
        
        when I got this setting is null, why ?


        pls help me?


        

     I would appreciate it very much if you would help me with it.



    tks, 
   abin



Milind Sankeshware (AdWords API Team)

unread,
Oct 30, 2018, 1:25:33 PM10/30/18
to AdWords API and Google Ads API Forum
Hi Lei,

If 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 may need to check for the media type Video. To get the media associated with UAC campaign, you could use the CampaignService.get() and look for the youtubeVideoMediaIds and imageMediaIds in UniversalAppCampaignSetting the Let me know if you have any further questions.

Thanks,
Milind, AdWords API Team
Reply all
Reply to author
Forward
0 new messages