Hi!
I'm sending 2 requests for different APIs and receive different responses:
for AdWords API:
*curl --request POST --http1.1 --header "Authorization: Bearer
${AUTH_TOKEN}" --header "developerToken: ${DEV_TOKEN}" --header
"clientCustomerId: ${CUSTOMER_ID}" --data "__rdquery=SELECT Id, Cost,
CriterionId from AD_PERFORMANCE_REPORT where Cost > 0 DURING
20220214,20220214&__fmt=CSV"
https://adwords.google.com/api/adwords/reportdownload/v201809*
I'm receiving 22 rows with all filled CriterionId
for Google Ads API:
*curl --http1.1 --header "Authorization: Bearer ${AUTH_TOKEN}" --header
"Content-Type: application/json" --header "developer-token: ${DEV_TOKEN}"
--header "login-customer-id: ${LOGIN_CUSTOMER_ID}" --data-raw '{"query":
"SELECT ad_group_ad.ad.id, metrics.cost_micros,
segments.keyword.ad_group_criterion FROM ad_group_ad where
segments.date='20220214' and metrics.cost_micros > 0"}'
"https://googleads.googleapis.com/v9/customers/${CUSTOMER_ID}/googleAds:searchStream"*
And I'm receiving 0 rows.
If I remove *segments.keyword.ad_group_criterion* I receive same values as
in AdWords API.
I know that Google Ads API ignores rows where segment is null, but here we
have criterions for ads.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/a3930e75-a260-4389-a9b3-a1c92943ae60n%40googlegroups.com.