RE: Get ad_group_ad image_url of ad type: GMAIL_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, RESPONSIVE_SEARCH_AD

2019-12-26 Thread Google Ads API Forum Advisor Prod
Hi ,


This is Fan assisting you on Nadine's behalf as she's on vacation.



1. As Nadine mentioned, you can download media images on the AdWords API if you 
do a query with Media.Image.urls field. If possible, I would recommend using 
the AdWords API to get this information and attached is a Java code sample.



2. In the Google Ads API, this field(image url) is not yet available. We will 
prioritize but there is not a timeline of when it will be available. You can 
watch our release notes for a future release when we may add it.


Besides, if you issue an GAQL like below, a "PROHIBITED_FIELD_IN_SELECT_CLAUSE" 
error is returned which means reading MEDIA image data directly is not 
supported. a.k.a it's impossible to download media image via Google Ads API in 
the interim.




SELECT media_file.resource_name, media_file.type, media_file.source_url, 
media_file.file_size, media_file.image.data FROM media_file





3. On the Google Ads API, most ad formats have migrated to image ASSET instead 
of image MEDIA, e.g. the Responsive Display Ad and App Ad. Please checkout the 
code samples about how to upload and read image and video assets, and attach to 
the newly created ads.


Thanks and regards

Fan, Google Ads API Team
ref:_00D1U1174p._5001UOEI65:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/-gbBB0Q341VD00TuIMmHsiTY2n3-fBVWR3FA%40sfdc.net.


MediaService.java
Description: application/java-source


Re: Get ad_group_ad image_url of ad type: GMAIL_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, RESPONSIVE_SEARCH_AD

2019-12-25 Thread Project YSS


Hi,
Is there another way to get raw image data through Google Ads API?

I have tried to request GetMediaFile 

 
method of Google Ads API through gRPC.
Then get MediaImage 

 
of MediaFile 
.
 
But i couldn't.
I requested media file (customers/2995081632/mediaFiles/1932967848) and API 
return MimeType 

 
is 2. (This value means UNKNOWN?)
Only get MediaImage 

 
with MimeType is 3?

We need to get raw data on Google Ads API urgently. Thanks for your support.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7dc03be9-5bd6-42e1-a662-69eb51ab2efe%40googlegroups.com.


RE: Get ad_group_ad image_url of ad type: GMAIL_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, RESPONSIVE_SEARCH_AD

2019-12-18 Thread Google Ads API Forum Advisor Prod
Hi,

Thank you for the information. I’m checking this issue internally with my team 
and I will update you soon.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5001UOEI65:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5Ba9l0Q2Q4M500mo_CIe7hStCk7Kycavw_KA%40sfdc.net.


Re: Get ad_group_ad image_url of ad type: GMAIL_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, RESPONSIVE_SEARCH_AD

2019-12-17 Thread Project YSS
Hi Bryan and Anthony,

Thanks for your suggestion.

I requested to *media_file* resource. 

   - A few response has media file type, file size but source url is empty. 
   Resource name of media file: *customers/4485964052/mediaFiles/3243603275*
   ,  *customers/4485964052/mediaFiles/3243605018*
   - A few seem return file name. Such as: 
c*ustomers/5880265091/mediaFiles/31446668383, 
   customers/5880265091/mediaFiles/31446668377*
   - And Other return with format: 
   media://cnext?source=upload&uuId=--&fileName=1.jpg or 
   
https://adwords.google.com/awda/creatives/Asset?__u=&__c=&ocid=1234&authuser=1&hl=ja&id=x
 (Resource 
   name: *customers/2995081632/mediaFiles/1932967848, 
   customers/2995081632/mediaFiles/3125858335)*

How can i download media file with source_url like that?

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2a204cd5-9518-465f-80fe-d10db8732e4c%40googlegroups.com.


RE: Get ad_group_ad image_url of ad type: GMAIL_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, RESPONSIVE_SEARCH_AD

2019-12-17 Thread Google Ads API Forum Advisor Prod
Hi,

My name is Bryan and I’m Anthony’s colleague assisting you on his behalf. Yes, 
if your Image data name has type resource_name, then it relates to the 
media_file.resource_name field. You are also able to get the source_url of the 
original media file using media_file.source_url, which is used for AUDIO and 
IMAGE media types. Please let me know if you have any more questions.

Thank you,
Bryan, Google Ads API Team
ref:_00D1U1174p._5001UOEI65:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ew5up0Q2OAQN00K8PrKzlVSmmkZvJPrW4kkg%40sfdc.net.


Re: Get ad_group_ad image_url of ad type: GMAIL_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, RESPONSIVE_SEARCH_AD

2019-12-16 Thread Project YSS
I could get image data name. It relates to *media_file.resource_name* field 
of *media_file* resource. Right? 
But Can i get media data (Maybe binary data of file or URL to download 
them) if i have *media_file.resource_name?*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e7320715-10f9-4979-91d4-d8fb61e49877%40googlegroups.com.


RE: Get ad_group_ad image_url of ad type: GMAIL_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, RESPONSIVE_SEARCH_AD

2019-12-11 Thread Google Ads API Forum Advisor Prod
Hi,


Thanks for reaching out to us. Unfortunately, you cannot get the 
ad_group_ad.ad.image_ad.image_url field of the ad.types you listed because this 
query is for ads with the “image_ad” type. An image_ad type is it’s own ad type 
and is different from gmail_ad, legacy_responsive_display_ad, 
responsive_display_ad and responsive_search_ad.


While you are unable to get image_url data for the ad.types you have listed, 
here are some things you can query:


For gmail_ad types, you can use ad_group_ad.ad.gmail_ad.header_image, 
ad_group_ad.ad.gmail_ad.marketing_image, or 
ad_group_ad.ad.gmail_ad.product_images to get image name data. Please see here 
for query choices.


For legacy_responsive_display_ads, you can use 
ad_group_ad.ad.legacy_responsive_display_ad.marketing_image to get image name 
data. Please see here for query choices.


For responsive_display_ads, you can use 
ad_group_ad.ad.responsive_display_ad.marketing_images to get image name data. 
Please see here for query choices.


For responsive_search_ads, there unfortunately aren’t any image data query 
types. Please see here for query choices.


Please see here for the different supported ad types. Let me know if you have 
any more questions.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UOEI65:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/53ldY0Q2D41300t7izILWARwiIyNv6UiH3pA%40sfdc.net.