Bing API: How to get data types for requested report columns? - bing-api

What is the best way to get data type when pulling performance data using python sdk?
For example is there any API call to get data type of dimensions and metrics, ie 'CampaignId' or 'Impressions' from CampaignPerformanceReport?
Appreciate any help with this,
Cheers,
Alex

There isn't a set contract, so as a starting point please assume the data returned in the file is a string. You can assume the entity IDs e.g., keyword ID are long, and other columns will vary. Note, this is also answered in the Bing Ads API Development forum.

Related

Understanding FHIR composite code-value-quantity queries

Having trouble understanding why my composite query for patient (synthetic data) with identifier 37b847a5-7e5b-439e-9adf-c325f0c837c8 on the HAPI FHIR server is yielding different results.
Using code-value-quantity https://hapi.fhir.org/baseR4/Observation?code-value-quantity=http://loinc.org|6298-4$lt3.0 I can find a potassium observation less than 3.0.
However, this entry is absent when retrieving observations for the patient using Patient.identifier https://hapi.fhir.org/baseR4/Observation?subject:Patient.identifier=37b847a5-7e5b-439e-9adf-c325f0c837c8 and only two observations greater than 3.0 are retrieved.
Really confused as to what's going on here!
I expected that retrieving observations using Patient.identifier should return all of the observations for that patient.
When I execute the 'patient' query, I get the first 20 Observations as well as the 'next' link. Have you navigated through all of the 'next' links to receive all of the pages rather than just the first page?

Is snowflake generated ID can be bigger then unsigned_long? (2^64-1)

It's a bit stupid question, but I don't have enough relevant expirience to answer it myself.
Can a snowflake generated ID (274950720577339394), be bigger then unsigned_long type of integer? (2^64-1)
Just a bit more info. I'd like to store snowflake IDs inside the elasticsearch index, and according to it's integer types there is a unsigned_long which I guess should perfectly fit, and store snowflake as a number. So doesn't it a good idea? Or it's safe to use keyword instead of int types?
No, they can't.
According to this post on Google Groups,
IDs will still be 64-bit unsigned integers
Note that this post was posted in 2010, which is a while ago, but it doesn't seem it was changed.

Xcode - Displaying variations of using Firebase and Algolia

I've got data in my Algolia index and Firebase Database that are stored as presented in the first image.
enter image description here
There is a parent exercise (in this case "Chest Press") which has two variation factors ("type" and "variation"). When a user searches for an exercise, I would like the data to be presented as shown in the second image.
enter image description here
Is this possible using my current database structure? Any help would be greatly appreciated.
Thanks
I would flatten this out in your index so that each exercise/variation is a unique record. This will aid Algolia indexing and speed up search.

Keep having errors with importxml + xpath

I spend hours trying to fix this but can't find where the issue is.
I try to import data in google spreadsheet using importxml.
Here is the url :
http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098
I'm interested in exctracting email and phone number for exemple. I used chrome inspector to copy the Xpath, and few chrome plugins. I guess the issu is the Xpath. Here is the formula I used in spreadsheet :
=importxml("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098";"/html/body/div[4]/div/div[1]/div[2]/div[1]/div/div/div/div/div[10]/table/tbody/tr[2]/td[2]")
Hope someone can help
Since the data you want is in tables, it might be easier to use importhtml.
The table you want you can get with this:
=IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2)
To get just the phone number add index (row and column of table)
=index(IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2),3,2)
email is:
=index(IMPORTHTML("http://www.journaldesfemmes.com/maman/creches/3-pom/creche-3098","table",2),4,2)

Can I request only items updated after a certain date?

My app needs to get any items that have been updated since the last time I retrieved the items. Is there a way to pass a date/time parameter to the /items endpoint and only be returned those items which have been updated since that date/time? Otherwise, I need to get back all items and then have to go back for each to get the details in order to determine if their modifiers have changed. This seems very wasteful, plus the batch request that I have to use can take from 10-25 seconds for a batch of 30 items. There are over 400 items defined currently :( Any suggestions would be greatly appreciated!
Thanks,
Mike
It is not currently possible to filter items by the date of their last update with the Connect API. I've passed this use case along to the API development team.
You can also try using the new Catalog APIs to more efficiently batch retrieve and batch upsert your item catalog for processing situations like this.

Resources