Hi Sergei,
I looked at the underlying error for that request on our side, and it
appears that something's going wrong when the API attempts to populate the
*ad_group_ad.policy_summary* field. I've reported this issue to the team,
but in the meantime, if you remove that field from your SELECT clause, the
query should work.
Thanks,
Josh, Google Ads API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
https://ads-developers.googleblog.com/search/label/google_ads_api
https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
On 04/25/19 05:36:51 [email protected] wrote:
Dear Team,
This request is failing with no reason:
curl -X POST -H 'Authorization: {{ access_token }}' -H 'Content-Type:
application/json' -H 'developer-token: {{ developer_token }}'
-d '{"query":"SELECT
ad_group.id, ad_group_ad.ad_strength, ad_group_ad.policy_summary,
ad_group_ad.status, ad_group_ad.ad.display_url,
ad_group_ad.ad.final_mobile_urls, ad_group_ad.ad.final_urls,
ad_group_ad.ad.id, ad_group_ad.ad.name,
ad_group_ad.ad.tracking_url_template, ad_group_ad.ad.type,
ad_group_ad.ad.text_ad.description1, ad_group_ad.ad.text_ad.description2,
ad_group_ad.ad.text_ad.headline,
ad_group_ad.ad.expanded_text_ad.description,
ad_group_ad.ad.expanded_text_ad.description2,
ad_group_ad.ad.expanded_text_ad.headline_part1,
ad_group_ad.ad.expanded_text_ad.headline_part2,
ad_group_ad.ad.expanded_text_ad.headline_part3,
ad_group_ad.ad.call_only_ad.business_name,
ad_group_ad.ad.call_only_ad.description1,
ad_group_ad.ad.call_only_ad.description2,
ad_group_ad.ad.call_only_ad.headline1,
ad_group_ad.ad.call_only_ad.headline2,
ad_group_ad.ad.call_only_ad.phone_number,
ad_group_ad.ad.expanded_dynamic_search_ad.description,
ad_group_ad.ad.gmail_ad.marketing_image_headline,
ad_group_ad.ad.gmail_ad.marketing_image_description,
ad_group_ad.ad.gmail_ad.teaser.business_name,
ad_group_ad.ad.gmail_ad.teaser.description,
ad_group_ad.ad.gmail_ad.teaser.headline, ad_group_ad.ad.image_ad.mime_type,
ad_group_ad.ad.image_ad.name, ad_group_ad.ad.image_ad.pixel_height,
ad_group_ad.ad.image_ad.pixel_width,
ad_group_ad.ad.video_ad.in_stream.action_headline,
ad_group_ad.ad.video_ad.out_stream.description,
ad_group_ad.ad.video_ad.out_stream.headline,
ad_group_ad.ad.legacy_responsive_display_ad.business_name,
ad_group_ad.ad.legacy_responsive_display_ad.description,
ad_group_ad.ad.legacy_responsive_display_ad.long_headline,
ad_group_ad.ad.legacy_responsive_display_ad.short_headline,
ad_group_ad.ad.responsive_display_ad.business_name,
ad_group_ad.ad.responsive_display_ad.descriptions,
ad_group_ad.ad.responsive_display_ad.headlines,
ad_group_ad.ad.responsive_display_ad.long_headline FROM ad_group_ad WHERE
ad_group_ad.status IN (ENABLED, PAUSED) AND ad_group_ad.ad.type IN
(CALL_ONLY_AD, EXPANDED_DYNAMIC_SEARCH_AD, EXPANDED_TEXT_AD, GMAIL_AD,
IMAGE_AD, LEGACY_RESPONSIVE_DISPLAY_AD, RESPONSIVE_DISPLAY_AD, TEXT_AD,
VIDEO_AD) AND ad_group.id = 64617421141"}' https://
googleads.googleapis.com/v1/customers/8396942525/googleAds:search
Resp:
< HTTP/2 500
< request-id: NoaN2mcisWcHW3t-jj1sSQ
< vary: X-Origin
< vary: Referer
< vary: Origin,Accept-Encoding
< content-type: application/json; charset=UTF-8
< date: Thu, 25 Apr 2019 09:30:56 GMT
< server: ESF
< cache-control: private
< x-xss-protection: 1; mode=block
< x-frame-options: SAMEORIGIN
< x-content-type-options: nosniff
< alt-svc: quic=":443"; ma=2592000; v="46,44,43,39"
< accept-ranges: none
<
{
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
}
What can we do?
Sergei Kim
CoMagic
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3f5812c1-ac0f-434f-b89b-d252983163ee%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/3f5812c1-ac0f-434f-b89b-d252983163ee%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/00d12i0u5o000000g4v2gk000bnefew6smj0e1o68o30c1g68qjgc9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.