Hi Anna,

Thanks for reaching out to the Google Ads API Forum.

The URL sent is incorrect, and this is the reason you received the error 404. 
Instead, you may use the 
‘https://googleads.googleapis.com/v11/customers/6074981807/googleAds:search' to 
get all the campaigns.

Following are the two endpoints to fetch the objects from Google Ads:

search

POST /v11/customers/{customerId}/googleAds:search

Returns all rows that match the search query.

searchStream

POST /v11/customers/{customerId}/googleAds:searchStream

Returns all rows that match the search stream query.



To get the all the campaigns, you may use below GAQL:

SELECT

  campaign.name,

  campaign.status, 

 metrics.impressions,

  metrics.clicks,

  metrics.ctr,

  metrics.average_cpc,

  metrics.cost_micros

FROM campaign

ORDER BY campaign.id

You may refer to this example guide for the reports. Also, the Query Cookbook 
guide contains many reporting samples that correspond to some of the default 
Google Ads screens and work with the same environment variables used in this 
guide. Our interactive query builder tool is also a great resource for building 
custom queries interactively.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2dvToi: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/oHx57000000000000000000000000000000000000000000000RHR3CN00FltgWhpHQjqziwGNYbOd8w%40sfdc.net.
  • ge... Anna Lysak
    • ... Anna Lysak
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
        • ... Anna Lysak

Reply via email to