Reg: MediaService

65 views
Skip to first unread message

Suresh Kumar Shenbagam

unread,
Aug 8, 2019, 1:11:51 PM8/8/19
to AdWords API and Google Ads API Forum
Hi,

I am able to create/upload an image and returned with image id (media id) by using this sample code - https://developers.google.com/adwords/api/docs/samples/java/miscellaneous#upload-an-image

Is there any I can update the uploaded image with the same media id ? is there any mediaoperation for that? or is it possible via MediaService?
Please guide me in right direction.
My requirement is - I would like use the same media id across different Image Ads and I want to upload the image once. I can save the media id in my local server. And I should be able to update the media (with new image) for the same media id. So that I do not want to create new image ad for every new images.
Is it possible? If it is, please share me some sample code to do that and If not, please provide an alternate solution.

Suresh

Google Ads API Forum Advisor Prod

unread,
Aug 9, 2019, 3:38:54 AM8/9/19
to adwor...@googlegroups.com
Hi Suresh,

Thank you for contacting support.

I am afraid updating the images using the MediaService is not possible since the SET operator is currently not supported. The only solution for this is to create another Image and assign this to each of your ads if you want to change the image of your ad.

Regards,
Dannison
Google Ads API Team

ref:_00D1U1174p._5001UEIQHS:ref

Suresh Kumar Shenbagam

unread,
Aug 9, 2019, 5:39:02 AM8/9/19
to AdWords API and Google Ads API Forum
Hi Dannison,

Thank you for the reply. Can I use ImageAsset to store the images and I think AssetService is capable of updating the image. How AssetService is different from MediaService? When should I you which?

Can I see all the images uploaded to Google Ads in Google Ads UI?

Suresh

Google Ads API Forum Advisor Prod

unread,
Aug 13, 2019, 2:03:37 AM8/13/19
to adwor...@googlegroups.com
Hi Suresh,

The AssetService.mutate() also does not allow SET operators, which means it can also not update the assets. 

MediaService and AssetService depends on which ad type you are uploading for. As an example, Responsive Ads for Display uses the MediaService to upload images while Responsive Search Ads and Multi-Asset Responsive Display Ads uses the AssetService.

You should be able to see the uploaded images from the API in the UI.
Reply all
Reply to author
Forward
0 new messages