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:
|
|
|
|
|
|
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,
|
||||||