How can I get the image url?

32 views
Skip to first unread message

高嶋葵

unread,
Apr 1, 2020, 10:24:24 AM4/1/20
to AdWords API and Google Ads API Forum
Hi!

We would like to get the image url of “MultiAssetResponsiveDisplayAd”.

So I have called report api as the following. But the response doesn’t include the image url we want.
How can I get the image url? Please tell us how!!

---
 
var rows = AdWordsApp.report(
'SELECT MultiAssetResponsiveDisplayAdMarketingImages' +
+
' FROM AD_PERFORMANCE_REPORT'
+ ' DURING ' + PERIOD_FROM + ', ' + PERIOD_TO, {
apiVersion: API_VERSION
}
).
rows();

while(rows.hasNext()) {
var row = rows.next();
var res = JSON.parse(row['MultiAssetResponsiveDisplayAdMarketingImages']);
}
// res : [{assetId=7.705862799E9, assetPerformanceLabel=--, assetApprovalStatus=APPROVED}]

Thanks in Advance!! :)
Asset_details_-_【Webつく】FORTUNE_GARDEN_KYOTO★6133_-_Google_Ads.png

高嶋葵

unread,
Apr 1, 2020, 10:31:06 AM4/1/20
to adwor...@googlegroups.com
===============================================
添付ファイルパスワードのお知らせ
===============================================

先程送りましたメールの添付ファイルのパスワードをお知らせします。

[件名] How can I get the image url?
[ファイル名] 2020040127595061.zip
[パスワード] 5*Cd=2<%B/

Google Ads API Forum Advisor Prod

unread,
Apr 1, 2020, 6:50:28 PM4/1/20
to taka...@weddingpark.co.jp, adwor...@googlegroups.com
Hello,

Thank you for reaching out to us! If you are looking to get the downloadable image URLs, then you can use the get method of MediaService in order to get the sourceUrl. You can refer to this sample code (in Java) to see how this can be accomplished.

If this is not what you are looking for, kindly elaborate so that I may better assist you. 

Thanks,
Danica Calusin, Google Ads API Team 

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