About AdGroupAdService transition to Google Ads API

41 views
Skip to first unread message

粟飯原元

unread,
Aug 26, 2019, 7:25:20 PM8/26/19
to AdWords API and Google Ads API Forum

Hello,


I'm moving from AdWords API to Google Ads API.


MediaId and FileSize information that could be obtained from AdWords AdGroupAdService is not obtained from AdGroupAdService in Google Ads API,

so can I use MediaFileService to get it?


Is my understanding correct?


For official documents

https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.resources#google.ads.googleads.v2.resources.AdGroupAd

https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.resources#google.ads.googleads.v2.resources.Ad


Best regards,

Gen Aihara

Google Ads API Forum Advisor Prod

unread,
Aug 27, 2019, 11:00:07 AM8/27/19
to gen.a...@brainpad.co.jp, adwor...@googlegroups.com
Hi Gen, 

You may use the media_file resource which will return the existing media available in the account along with the file size. The AdGroupAdService will return the Media Id in the Asset field as a string value in the resource. Could you please take a look and let us know if you have any issues? 

Thanks,
Bharani, Google Ads API Team

 

ref:_00D1U1174p._5001UHEkZv:ref
Reply all
Reply to author
Forward
0 new messages