How to add metrics like 'criteria' in New Google Ad API - google-ads-api

Since Google is going to have a new API after April, some of existing reports/metrics will be unavailable such as
Missing the whole CRITERIA_PERFORMANCE_REPORT
Missing CriteriaId in CLICK_PERFORMANCE_REPORT
However, some of the metrics are quite import for existing reports...
May I ask if there is any way to get the old metrics in the new Google API?

You can see the mappings from the old to new api here : https://developers.google.com/google-ads/api/docs/migration/mapping

Related

Is it possible to create, update, and delete events on a public folder calendar through the MS Graph API?

The question pretty much sums it up. I'd like to create/delete/update events in a calendar that's accessed by several people on a public folder using the Graph API, but haven't been able to find much about how to do it, at least not in the official documentation.
I found this post from 2018 saying "Public Folders aren't yet accessible via the Graph API", but I don't know if that still applies in 2021.
As for SO, the only other question I could find which seems related to this was How to read Public calendar with MS Graph API , but it unfortunately doesn't contain much information either.
In case Graph doesn't support this, would it be possible to do it in some other way (e.g. with some other API)? Ideally something that can be used from Java. Thanks in advance!
No you can't access Public Folders (or Online Archives) using the Microsoft Graph and given the legacy status of Public Folders I don't think they have plans to change this. You can use EWS to access them (make sure you include routing headers through https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/public-folder-access-with-ews-in-exchange).
Moving your Public Folder Calendars to a Office365 Unified Groups is generally a better idea you get improved functionality and you can use the Graph API and other Group workloads for future needs etc.

Keywords Planner in Google Ads API

I am trying to use Keywords Planner programmatically, through its API.I came across Generating Targeting Ideas, which pretty much summarizes the use. When I visit Get Started, it states
Try the new Google Ads API—which has the latest Google Ads features. The AdWords API is in maintenance mode and not being actively developed.
I visit Google Ads API, where I cannot find anything related to the Keyword Planner.
Has someone any idea if the planner is available through the new API, or do I have to use the old one?
Thanks,
Alexios
I'm currently working on converting an old Adwords cron job to the new Ads API. While I'm not sure if this is exactly what you're looking for, the old TargetingIdeaService has been replaced with a new KeywordPlanIdeaService (see https://developers.google.com/google-ads/api/docs/migration/services).
You can find examples for KeywordPlanIdeaService here:
https://developers.google.com/google-ads/api/docs/samples/generate-keyword-ideas
Pay careful attention to how the code formats each selector field and using a helper class to format language and geotargeting codes. It's not the most intuitive way of passing paramters.

What are the 'subtle changes' in Google Spreadsheets API?

Google is upgrading old spreadsheets to the new version of Google Sheets.
This is beginning to screw up a web service I'm running that uses the Google Spreadsheets API. I need to quickly make some code changes so it understands the new API, but I don't know where to start.
The above linked has only this to say:
APIs — You may notice some subtle differences in API behavior.
What are these 'subtle differences'? Why can't I find a list of what has changed?
Well one thing that changed is it no longer suports the old way of authenticating. You now have to use OAuth. I think this is where my problem was.

Authorize just one spreadsheet in the Google Spreadsheet API

I'm working on some .Net code to collect some data on a server and put it in a Google Spreadsheet. The job needs to run once a day, clear out the sheet and repopulate it. I have all that working, but I can't get the authorization right. I can do it with my personal Google credentials, and I can get it to work with OAUTH by allowing the app to manipulate all my spreadsheets using the https://spreadsheets.google.com/feeds scope. But, what I really want to do is allow my script to read and write just one sheet. Is that possible, and how would I do that?
You are using very old scopes. Look at the drive.file scope
https://developers.google.com/drive/web/scopes
Its not possible using the spreadsheets API. That api is very old and doesnt have a scope for indivdual files.
it might be possible by creating a spreadsheet using the drive API by uploading a CSV with conversion, but you will need permission to create new drive files and that also means permission to the entire drive.
Workaround: Create a new google account and share the spreadsheet with it. Do the OAuth using the new account.
#Zig Mandel is right - the API (Gdata style) wants access to all spreadsheets. But you can workaround the problem using a new account.

Is it possible to change google doc (table) using google API?

Following the API's description :
"The Google Documents List API allows developers to create, retrieve, update, and delete Google Docs"
What if I need to write something in a table using an external application?
This is totally and completely possible. For example, I am using python to create and update Google Doc Spreadsheets based on what the user does. There are multiple languages for you to choose from and all are fairly well documented.

Resources