GoogleAdsCustomerId dimension value not coming from Ads API - google-ads-api

I used the google analytical API to fetch the data for Adwords with metric - ga:impressions,ga:adClicks,ga:adCost,ga:users,ga:sessions and dimensions=ga:date,ga:adGroup,ga:adwordsCustomerID,ga:campaign, ga:keyword,ga:sourceMedium, ga:channelGrouping
when I queried them all together, I am not able to fetch the "GoogleAdsCustomerId" dimension values. all values are coming as (not set).
though below combinations of Metrics and Dimensions are working fine
Adwords with metric - ga:impressions,ga:adClicks,ga:adCost,ga:users,ga:sessions and dimensions=ga:date,ga:adGroup,ga:adwordsCustomerID,ga:campaign.
What is the possible way to get the GoodleAdsCustomerId with all the required metric and dimensions - Highlighted Bold above? Please guide me. Thank you

Related

Google Ads API: want to find the cost data through API

The Image shows the overview of ads related to an ad account, I need to find the cost marked in the pic through API
I tried with
ad_group metrics.average_cost, metrics.cost,
account_budget.amount_served_micros,
account_budget.total_adjustments_micros,
account_budget.proposed_spending_limit_micros,
account_budget_proposal.account_budget,
account_budget_proposal.approved_spending_limit_micros, account_budget_proposal.proposed_spending_limit_micros,
campaign.campaign_budget,
campaign_budget.amount_micros,
campaign_budget.total_amount_micros
most of the values I got in these are zero or not relevant to the cost in the overview (marked in pic) . Can someone help me find the cost value( which is marked in the image) in the ads overview screen through GoogleAds API.
Your query isn't a complete query. We don't know what resource you're querying. For example, why are you requesting budgets?
If you share your code, we might be able to help you more. But you need to query the campaign costs from the campaign resource and aggregate yourself.
https://developers.google.com/google-ads/api/fields/v12/campaign?hl=en

Google Spreadsheet chart not pulling information from table correctly

I have 2 tabs relating to the graph I'm working with. I have multiple graphs all working properly but one in particular. I have tried selecting different ranges to use for the data range, I have tried using different types of graphs. All the same I get the same results. The other graphs use the same information from the same table.
The graph's purpose is to compare the Highest Price and the Lowest Price per item. HERE is a link to a sample sheet with the same information as the original. Thank you for any help you can give!
values needs to be numeric not text string so in worst case a conversion is needed:
=ArrayFormula({INDEX(SPLIT(F4:F13, " "),,1), INDEX(SPLIT(G4:G13, " "),,1)})
and then you can plot your chart...

Does Google Firestore and/or their Realtime DB have the querying capability to get posts by location (within x miles), order by date, and limit?

I am currently using Firestore for my iOS app and I need to implement a scalable solution for my posts feed. I need to get posts within say 20 miles, order them by date, and limit the amount of posts fetched for pagination. Any and all database solutions would very much appreciated! Thank you!
As a low budget/time alternative to libraries, we have implemented storing the first few digits of lat/long coordinates as a document or collection name and then accessed data that way. The first decimal place gives resolution to around 10 miles or so (exact values for longitude change depending on what latitude you are at). So in your database you could have a collection or document named something like +33.6-112.0. This would mark a reference in Firestore to put all data within (33.8 N, 112.0 W). Be careful with how you round the exact location data before placing it in the respective document or collection.
Then you can retrieve all data at any location you want. This may not give you exactly 20 miles, but some client side sorting can handle that. Note you could make the reference go to any decimal place necessary to achieve the level of precision you are looking for to minimize data base calls (to save you money) and minimize impact on the user's cell data plan.
This is a rather simple solution with limitations, maybe for an MVP, and if not careful could pull way more data than anticipated.
Below is a chart showing the approximate physical distance between each decimal place at the equator. So for example, the distance between (33.3 N, 0 W) and (33.5 N, 0 W) would be about 14 miles.
Neither of those databases have native geospatial querying capabilities. You would have to use some sort of add-on library to help with that. Geofire and Geofirestore are popular for this.

YouTube Analytics API channel: The response has no rows parameter

When using the API for retrieving aggregated metrics for the channel's content the report returns a single row of data that contains totals for each requested metric during the specified date
range.
Here's an API Example link.
Sometimes not even account information is received; the object rows is not present in the response but only columnHeaders, even though the account has the appropriate fields populated (I can see it on the profile available on youtube).
I have made the same observations as jay. Somehow some metrics returned no result rows. But for me it turned out that those missing rows were also not available in youtube's Analytics integration.
As you can see, all "Interaktionen (Interactions)" have 0 values, but the "Geteilte Inhalte (shares)" column differs from the rest. It has no values attached. If you click on the metric you get the following notification
It says: "There is no data available at the moment, chose a diffrent time range or wait some more days".
So for me the API data was always corresponding with youtube's analytics integration.

YouTube Analytics API - Demographics Minimum Views Seem to Be Required for Query

I've been working with the demographics queries available in the YouTube Analytics API and was hoping you could shed some light on the following situation:
If I ask for demographics for a channel for a day where the channel
had around 2000 views or less, I get no rows returned.
If I ask for 3 such days in separate queries, I still get no demographic data
returned.
But if I ask for all 3 days in a single query that spans the days, I do get demographic data
So it seems like there's an imposed minimum number of views that a query needs to cover before demographic data will be returned by the API, even when other methods show there is some demog data avilable. Am I understanding this correctly? Is the API supposed to behave this way?
[Update: I originally stated that the Analytics dashboard was not matching the API on thi, when in fact they return the same results, so I've updated the title and the description.]
I can confirm that this is the intended behavior of both the API and the YouTube Analytics web interface.
This makes sense from a statistical point of view. Most statistics have a margin of error, a bigger sample helps reduce this. If there isn't enough data the analytics wouldn't be accurate. It would be possible to show those analytics (for smaller numbers) if they also included their margin of errors, but if the margin of error is too high the data would be useless. However, it should be possible to extrapolate the data for day "N" using the demographics for (N-3,N) and (N-3,N-1) and total views for those ranges (plus for day "N") (considering there is demographic data the ranges) by subtracting the demographics of the 3day range from the 4day range.
For example (assuming 10k views/day), if the 4day range has 75% green viewers out of 40,000 you have 30,000 green (lizard-people) viewers in the past 4 days. If the 3day (3 days right before day "N") range has 87.5% green viewers out of 30,000 total, you have 26,250 green viewers in that range. By subtracting, 4day-range from 3day-range you're left with 3,750 green viewers for day "N", and since day "N" has 10k views, that means 37.5% of those views are from green lizard-people.
It should work, but I wouldn't trust that data to have a reliable margin of error. (please don't use this if it's for something important)

Resources