I want to get the report as shown here https://prnt.sc/oG7ms7tOdVfH

The input is Country = USA
Date from and Date to

But this gives non US states and it doesnt summarize the resuly by *state 
names*

Can anyone help me to get the REST API?

curl 
"https://googleads.googleapis.com/v10/customers/${CUSTOMER_ID}/googleAds:searchStream";
 
\ --header "Content-Type: application/json" \ --header "developer-token: 
${DEVELOPER_TOKEN}" \ --header "login-customer-id: ${MANAGER_CUSTOMER_ID}" 
\ --header "Authorization: Bearer ${OAUTH2_ACCESS_TOKEN}" \ --data '{ 
"query": " SELECT campaign.name, segments.geo_target_state, 
metrics.cost_micros FROM geographic_view WHERE 
geographic_view.location_type = LOCATION_OF_PRESENCE AND segments.date 
BETWEEN 20220101 AND 20220430 " }'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6a1d7287-5e9d-42fb-a54f-68aabb6afb06n%40googlegroups.com.
  • Ge... Darren D'Mello
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Darren D'Mello

Reply via email to