Thank you very much! It works!
On Monday, September 5, 2022 at 9:58:23 PM UTC+3 adsapi wrote: > 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* > <https://googleads.googleapis.com/v11/customers/6074981807/campaigns:search>' > to get all the campaigns. > > Following are the two endpoints to fetch the objects from Google Ads: > > > search > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.googleAds/search> > > POST /v11/customers/{customerId}/googleAds:search > > Returns all rows that match the search query. > > searchStream > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.googleAds/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* > <https://developers.google.com/google-ads/api/rest/examples?hl=en#search> > for the reports. Also, the *Query Cookbook* > <https://developers.google.com/google-ads/api/docs/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* > <https://developers.google.com/google-ads/api/fields/latest/overview_query_builder> > > tool is also a great resource for building custom queries interactively. > > Regards, > [image: Google Logo] > 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/114c1704-bd1d-4c67-a71e-864d338f071en%40googlegroups.com.