GAQL for html5 ad: 
SELECT ad_group_ad.ad.display_upload_ad.display_upload_product_type, 
ad_group_ad.ad.display_upload_ad.media_bundle
FROM ad_group_ad;

GAQL for html5 zip file: 
SELECT media_file.mime_type, media_file.resource_name, 
media_file.media_bundle.url, media_file.id
FROM media_file

from "ad_group_ad.ad.display_upload_ad.media_bundle", I can tell the html5 
ad is using which html5 zip file by asset id.
from "media_file.resource_name", I can tell the media id of html5 zip file.
So I know media and asset id, but I do not know the relationship, and it 
causes not knowing the association between html5 ad and its zip file.
Sorry I cannot provide any UI screenshot because policy issue, but I am 
sure this is a general question for any account that has html5 ad.

On Wednesday, May 21, 2025 at 2:40:18 PM UTC+8 Google Ads API and AdWords 
API Forum wrote:

Hi,

Could you please provide us with the uncropped UI screenshot with a visible 
customer Id by highlighting the asset Id that you are trying to retrieve 
using Google Ads API. Also, as requested earlier can you provide your GAQL 
queries on how you are trying to retrieve the html5 ad and the asset Id 
linked to html5 from the Google Ads API? 

You can send the details via *Reply privately to the author option*, or *direct 
private reply* to this email.

Thanks,
Google Ads API Team.
On Tuesday, May 20, 2025 at 10:07:28 AM UTC+5:30 qirenz...@gmail.com wrote:

Hi, thanks for replying.
So my question is not related some specific API requests. What I am asking 
is that, from this query

1) query html5 zip file using condition: MimeType= Html5AdZip, and get 
something like ResourceName: customers/123/mediaFiles/456 (media id)
2) query the ad and select the column 
ad_group_ad.ad.display_upload_ad.media_bundle, get something like customers/
123/mediaFiles/789 (asset id)
 
in the ad query, I can get html5 ad and an asset id 789 linking to the 
html5 zip file, but in the asset query, try to get the html5 zip file 
itself, i only get the media id 456. obviously 789 and 456 mean two 
different ids,  so i don't know the ad is which asset/media, i need the 
association to get the html5 zip file for an ad.

Thanks.
On Monday, May 19, 2025 at 7:46:55 PM UTC+8 Google Ads API Forum Advisor 
wrote:

Hi,

Thank you for reaching out to the Google Ads API support team. 

Can you confirm whether you have uploaded HTML5 ads and are trying to 
retrieve them using the Google Ads API? If yes, I would recommend you to 
refer to this documentation 
<https://developers.google.com/google-ads/api/docs/display-upload-ads/html5-upload-ads>
 
for more detailed information. Can you provide more clarity on your 
question 'how do i link the asset id with media id, clearly these two ids 
are different' to further assist you better. Also, can you provide your 
GAQL queries on how you are trying to retrieve the html5 ad and the html5 
zip file from the Google Ads API? 

In order to investigate your issue further, kindly provide us with the 
complete API logs (request 
<https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
 
and response 
<https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
 
logs with request-id 
<https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
 
and request header 
<https://developers.google.com/google-ads/api/docs/concepts/call-structure#request_headers>)
 
generated at your end and uncropped UI screenshot of the Google Ads account 
(with visible customer ID) by highlighting of what you are trying to 
retrieve via the API. 

If you are using a client library and haven't enabled the logging yet, I 
would request you to enable logging for the specific client library that 
you are using. You can refer to the guides Java 
<https://developers.google.com/google-ads/api/docs/client-libs/java/logging>, 
.Net 
<https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging>, 
PHP 
<https://developers.google.com/google-ads/api/docs/client-libs/php/logging>, 
Python 
<https://developers.google.com/google-ads/api/docs/client-libs/python/logging>, 
Ruby 
<https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging> 
or Perl 
<https://developers.google.com/google-ads/api/docs/client-libs/perl/logging> 
to enable logging at your end. For REST interface requests, you can enable 
logging via the curl command by using the -i flag.

You can send the details via *Reply privately to the author option*, or *direct 
private reply* to this email.
  

Thanks,
  [image: Google Logo] Google Ads API Team 
Feedback
How was our support today? 

[image: rating1] 
<https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001qXQDsIAO>
  
  [image: rating2] 
<https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001qXQDsIAO>
  
  [image: rating3] 
<https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001qXQDsIAO>
  
  [image: rating4] 
<https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001qXQDsIAO>
  
  [image: rating5] 
<https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001qXQDsIAO>
[2025-05-19 11:46:13Z GMT] This message is in relation to case 
"ref:!00D1U01174p.!500Ht01qXQDs:ref" (ADR-00306841)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/f97b0c84-e954-42b5-a9c3-e2b1ff6cbd65n%40googlegroups.com.
  • Me... Qiren Zhang
    • ... kiyo C
      • ... Google Ads API and AdWords API Forum
        • ... kiyo C
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to