Hi Thanks for reply.
These informations do help me :D And what I really want to get should be Media_Size_StringMapEntry url : templateAd.getAdAsImage().getUrls() url.getValue() <-- This That's all I need. Peter Oliquino於 2017年5月4日星期四 UTC+8下午5時39分19秒寫道: > > Hi, > > Since the ad type you specified is Display Ad > <https://developers.google.com/adwords/api/docs/appendix/reports/ad-performance-report#adtype> > , then you may perform the following steps to get the ImageUrl of a > templateAd: > > - You could try getting the TemplateAd > > <https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupAdService.TemplateAd> > information > by using the AdGroupAdService.get > > <https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupAdService#get> > and > get the templateElements > > <https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupAdService.TemplateAd#templateelements> > of > the template ad. > - Retrieve the fields > > <https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupAdService.TemplateElement#fields> > of > the templateElements. > - Extract the fieldMedia > > <https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupAdService.TemplateElementField#fieldmedia> > field > and retrieve the details of the Image object to get the sourceUrl > > <https://developers.google.com/adwords/api/docs/reference/v201702/AdGroupAdService.Image#sourceurl> > . > > Let me know if this is what you were looking for. > > Thanks and regards, > Peter > AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 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/8dff6f57-c416-490f-94de-c646f25dd4d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
