How do I get the AssetId from the MarketingImage? I can get mediaId from the MarketingImage, but I don't see where I'd get an AssetId to search.
On Wednesday, January 9, 2019 at 4:37:24 PM UTC-6, Bharani Cherukuri (AdWords API Team) wrote: > > Hello Steven, > > You may use the AssetService.get() > <https://developers.google.com/adwords/api/docs/reference/v201809/AssetService#get> > which > will return all the image assets. You will be able to filter this based on > the AssetId. You may refer to the GetAllImageAssets > <https://developers.google.com/adwords/api/docs/samples/php/miscellaneous#get-all-image-assets> > PHP > code sample as a reference. Let me know if you have any other questions. > > Regards, > Bharani, AdWords API Team > > On Wednesday, January 9, 2019 at 10:37:03 AM UTC-5, Steven Horvat wrote: >> >> I'm setting up functionality to allow us to copy ResponsiveDisplayAds and >> MultiAssetResponsiveDisplayAds >> across accounts. I realize I basically need to pull all the information out >> of the ads and create new ones in my destination adGroup. For downloading >> all the images (marketingImage(s), squareMarketingImage(s), etc) whats >> the recommended way to go about that? Should I be trying to download from >> the image URL, or is there a way to get the image data directly? >> >> I tried to get the image data from the adGroupAdService selection I used >> for all the other Ad Fields, but I'm getting NULL. >> >> $marketing_image_data = $adGroupAd->getAd()->getMarketingImage()->getData(); >> >> >> >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/9957f35e-7a35-4c8a-8206-4367c36bd929%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.