Reports that were in Adwords API no longer present in Ads API - google-ads-api

I have always referred to to Adwords API (https://developers.google.com/adwords/api/docs/appendix/reports) as a guide for exporting reports from Google Ads. When moving to new Ads API (https://developers.google.com/google-ads/api/fields/v6/overview) I was confused with the new feature "resources" which is the alternative for "old" reports.
Some reports in Adwords API match these resources in Ads API (Ad Group Performance) but I am unable to find matches for Account Performance Report and Criteria Performance Report. I'm not also sure that Audience Performance Report is similar to Campaign Audience View.
Can someone please explain how I can export these unmatched reports using Ads API? Thanks!

There's an overview page showing which Google Adwords API report maps to which Google Ads resource.
The Account Performance Report can be recreated by querying the customer resource as indicated by the documentation.
The Criteria Performance Report on the other hand is not listed at all. I think you'll have to use the different *_view resources such as keyword_view in combination with fields from the ad_group_criterion resource in order to get metrics for different criteria types. From the query cookbook page, here's an example how to recreate the age demographics screen in the UI:
SELECT ad_group_criterion.age_range.type,
campaign.name,
ad_group.name,
ad_group_criterion.system_serving_status,
ad_group_criterion.bid_modifier,
metrics.clicks,
metrics.impressions,
metrics.ctr,
metrics.average_cpc,
metrics.cost_micros,
campaign.advertising_channel_type
FROM age_range_view
WHERE segments.date DURING LAST_7_DAYS

Related

Google ads api list all accounts and their campaigns

I am totally new to google ads, I have a google ads account setup. I have a customer id (which I believe is the parent account id), under this I have a lot of 'Accounts' (url: ads.google.com/aw/accounts) setup. Every account have a list of campaigns. I want to prepare a report to fetch all campaigns and there settings. I am using postman to hit google apis (googleads.googleapis.com/v8).
I want to know what apis I can use to list all customer accounts and their campaigns?
Using the rest API for this sort of operation is not advised. It's expensive and there's an extremely tight limit.
It's advised to use the gRPC client libraries as they use search operations. You can learn more here: https://developers.google.com/google-ads/api/docs/start
Each of the client libraries has a robust set of examples and sample code that demonstrates exactly what you're trying to achieve (called list_accessible_accounts or similar). If you let me know what language you're using I can point you to the correct one.

Difference in results between google ad words API and keyword planner console

I’m trying to forecast the value of various keywords using the google Adwords API, using the traffic estimator service. So far, the clicks, costs per click, and other metrics returned through the API don’t come anywhere close to those retrieved through the Keyword Planner console. There are several adjustable forecast parameters in the console such as language, location, and search network, and I tried to match these parameters in the API.
I'm wondering if there is some other element that needs to be adjusted that I'm missing. For example, the console gives you the option to "select an ad group" for the forecast, and I'm not sure how this would be applied within the API.
If you're interested in obtaining the results that the KW planner provides in the Ads web UI, you'd need to use the TargetingIdeaService instead of the TrafficEstimatorService.
There's also a reference document with some pointers explaining how to map the web settings with the TargetingIdeaSelector values available in the API.
Note that in my experience, you'll sometimes still find discrepancies between what's shown in the web UI and the stats provided by the API. This is also a recurring theme in the Ads API forum (just search for "TargetingIdeaService Difference" or similar).

How to use google click id (GCLID) to extract AdWords Campaign, Ad Group, Keyword, Ad, etc

I tried searching for api which can help in extracting AdWords Campaign, Ad Group, Keyword, Ad, Keyword, etc.. from Google Click ID (gclid), but I end up with Click Performance Reports. Well it wont solve my requirement completely.
So is there any way to use "gclid" in adwords to extract data.
Any public API would be of great use.
This question is quite old but I wanted to share: Google AdWords has an API.
https://developers.google.com/adwords/api/docs/guides/start
Check out the PHP Library on Github.
https://github.com/googleads/googleads-php-lib
Gclid is exactly that - Click ID. With this, you can fetch Click Performance report like you have done. It contains CampaignID, AdgroupID and Criteria which has KeywordID. Then with these ID's, you can fetch appropriate reports which contain any additional information you may want!

Adwords API report, what is AutomaticContent and Content?

Pulling a report from the Adwords API. Trying to list out keywords ranked by impression.
Two 'keywords', AutomaticContent and Content appear in the list a few times. What are these? We are not running ads on those keywords so I assume Google is inserting them to mean something.
This is the AWQL we are using:
SELECT+Criteria,Impressions+FROM+KEYWORDS_PERFORMANCE_REPORT+where+Impressions>0

Capture keyword used when user clicks on adwords ad

I wanted to know if it is possible to be able to capture the keyword that was searched when the user clicks on one of my ads. For instance say a user searches for "HVAC Installation" I would like to match a lead with a particular keyword searched for. Is that possible?
I'm assuming maybe from a POST I could capture the keyword?
If you just need the keyword as the user is entering your site, take a look at ValueTrack parameters, especially matchtype and keyword: ValueTrack documentation at support.google.com
On the other hand, there's the Search Query Performance Report which gives you detailed statistics for every search term that caused at least one impression of your ads for a given time frame. It's available under the "Dimensions" tab in the Adwords Web UI or using the ad-hoc reporting functionality of the Adwords API: Report definition at developers.google.com.

Resources