Hi Johnny,

The keyword ID should come from the field ad_group_criterion.criterion_id,
which you included in your report query. Can you please provide your CID
through *reply privately to author *so I can take a closer look?

Thanks,
Anthony
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/30/19 02:49:17 [email protected] wrote:

These are the results, in text for better visibility;

campaignCollection
resourceName customers/123-123-1234/campaigns/1466683191
id 1466683191
name CL - Search - Generic - UK - EN
adGroupCollection
resourceName customers/123-123-1234/adGroups/56506182866
id 56506182866
name apartment san pedro
metricsCollection
clicks 0
conversions 0
costMicros 0
ctr 0
impressions 2
adGroupCriterionCollection
resourceName customers/123-123-1234/adGroupCriteria/56506182866~306978744910
status ENABLED
criterionId 306978744910
keywordCollection
text +apartment +san +pedro
keywordViewCollection
resourceName customers/123-123-1234/keywordViews/56506182866~306978744910
segmentsCollection
date 2019-01-01


I dont have any Keyword ID in there, only Keyword Text.
How do I call the Keyword ID?

Thanks.


On Monday, April 29, 2019 at 11:20:41 PM UTC+2, [email protected]
wrote:

I am using the following query:

{ query : "SELECT campaign.id, campaign.name, ad_group.id, ad_group.name,
ad_group_criterion.criterion_id, ad_group_criterion.keyword.text,
ad_group_criterion.status, metrics.impressions, metrics.clicks,
metrics.conversions, metrics.cost_micros, metrics.ctr,
metrics.conversions_from_interactions_rate, metrics.average_cpc,
metrics.cost_per_conversion, segments.date FROM keyword_view WHERE
segments.date BETWEEN '2019-01-01' AND '2019-01-01' AND metrics.impressions
0" }

and I get this result:

[image: results.png]


However, I dont understand how to also get the KEYWORD ID in the results.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6959364c-0d63-4039-af58-e0959e5b8aff%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/6959364c-0d63-4039-af58-e0959e5b8aff%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/186v9180000000000t7s8q00046sgew6gmjee1j60o30c1g68r32e9l%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • How to ... johnny . jensen
    • Re... johnny . jensen
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
    • Re... johnny . jensen

Reply via email to