Hello,

You could use the ad_group_ad.resource_name
<https://developers.google.com/google-ads/api/docs/fields/ad_group_ad#ad_group_adresource_name>
 and ad_group_ad.ad.type
<https://developers.google.com/google-ads/api/docs/fields/ad_group_ad#ad_group_adadtype> fields
to find the resource name and type of the Ads from your account. You could
use the below query to get the information required.

.setQuery("SELECT ad_group_ad.resource_name, ad_group_ad.ad.type FROM
ad_group_ad ORDER BY ad_group_ad.ad.type")

In-case you are looking to get the resource name of the images then you can
use the media_file.resource_name
<https://developers.google.com/google-ads/api/docs/fields/media_file#media_fileresource_name>
 and media_file.type
<https://developers.google.com/google-ads/api/docs/fields/media_file#media_filetype> fields
of the media_file resource. Below is the query for your reference.

.setQuery("SELECT media_file.resource_name, media_file.type FROM media_file
ORDER BY media_file.type")

If you are still not seeing any resource names for Image Ads/Images? could
you please share the query you are running and the account CID you are
pointing to? You could share the requested information via the reply
privately to the author option.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 02/07/19 07:56:31 [email protected] wrote:

I can't get the MediaFile resource name of an image_ad but i can get the MediaFile
resource name of a video_ad.
I don't understand the reason of this, why is it different?
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f9321edc-e792-4bbf-af1d-fadac1597e68%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/f9321edc-e792-4bbf-af1d-fadac1597e68%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/186upko0000000018nj54k000bst16x6smj8d9g6go30c1g68qj6d9o%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Why the... javoeria
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to