I think you misunderstood me. My problem is: If I don't use this with WHERE ad_group_criterion.position_estimates.first_page_cpc_micros > 0, PHP returns "null" for some words and gives a Fatal Error and the process is interrupted.
ad_group_criterion.position_estimates.first_page_cpc_micros > 0 when I use this, I don't get all the words either. In other words, I need to do 2 actions to get all the words in the ad group in that campaign. How can I get all the words without getting a Fatal Error? On Tuesday, 4 April 2023 at 19:54:33 UTC+3 Google Ads API Forum Advisor wrote: > Hello, > > Thank you for getting back to us. > > I understand that in this case, with your current query, you want to > obtain *keyword*. I can see that the in the query “ > *ad_group_criterion.keyword.text*” is not present in the Select clause. > > Please try using the sample query and substituting some of the values for > the WHERE clause to see if you will get your expected data: > > > SELECT > metrics.clicks, > metrics.impressions,*ad_group_criterion.keyword.text,* > > > ad_group_criterion.position_estimates.first_page_cpc_micros > FROM keyword_view > WHEREcampaign.id="*XXXXXX*" ANDad_group.id="*YYYYYY*" AND > ad_group_criterion.position_estimates.first_page_cpc_micros > 0 > > Please let me know how it goes. > > Regards, > [image: Google Logo] Google Ads API Team > > ref:_00D1U1174p._5004Q2a2Tfz: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 "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 on the web visit https://groups.google.com/d/msgid/adwords-api/de1ea1fc-f393-49f0-9aba-4dd233a2630cn%40googlegroups.com.