How to retrieve Performance MAX campaigns Google Ads into Google Big Query - google-bigquery

I am using a third-party tool that use the Adwords Reporting https://developers.google.com/adwords/api/docs/appendix/reports/all-reports to retrieve data.
At the moment all the "Performance Max" campaigns are lost from the Adwords Reporting and I need to retrieve them to include their costs.
With the migration from Adwords to Ads, also, I need to find a solution before April 2022.
I only need to move that data into my Google BigQuery project.
At the moment the solution using the BigQuery Data Transfer is NOT OK because use the same v201809 reporting of Adwords ( https://cloud.google.com/bigquery-transfer/docs/adwords-transfer?hl=en-GB )
.
Also the Google Ads Script don't support Google Ads but only report name of Adwords v201809 ( https://developers.google.com/google-ads/scripts/docs/solutions/bigquery-exporter )
Do you have a suggestion to help me?
Thanks

You have several options and the solutions depends on level in which you want to report data. On campaign level you can fetch data about impressions, clicks and cost from Google Analytics API if you have connected ads and analytics accounts.
If you want more granular information you can create report in google ads and schedule downloads of this report, for example everyday. Only problem is that performance max campaigns combine multiple types of ads, so on some dimensions you can get no data, for example campaign spend 50 eur yesterday, but in report with product id this campaign spent only 25. I combine this two sources, it isn't ideal, but better than total blindness now days.

Remember: Do not select an AdGroup when querying Performance Max campaigns, as no campaigns will be returned.
https://developers.google.com/google-ads/api/docs/performance-max/reporting
Solution --> I use two different GAQL :
one FROM ad_group for the details needed with the ad_groups resource
another FROM campaign without any ad_group in the SELECT

Related

Is there a way to get a report of Landing Pages in Google Ads via the Google Ads API, Scripts or BigQuery Data Transfer Service?

I am currently in the process of creating an overview of ad spent per landing page/destination url.
We are using several campaign types:
Shopping
(Responsive) Search Ads
Dynamic Search Ads
I am struggling to get a report per landingpage for each campaign type. We have multiple Customer Ids and I would need data for all Customer Ids. When looking at the Google Ads API documentation I think I would need these two reports to get all I need
Keywordless Query Report (for Dynamic Search Ads landing pages): https://developers.google.com/adwords/api/docs/appendix/reports/keywordless-query-report
Landing Page Report (for Shopping and (responsive) search ads landing pages): https://developers.google.com/adwords/api/docs/appendix/reports/landing-page-report
Ideally, the data would be uploaded to a BigQuery dataset.
What I have tried:
I have set up a BigQuery Data Transfer (https://cloud.google.com/bigquery-transfer/docs/adwords-transfer). This contains a lot of reports but not the two reports listed above.
I have tried a Google Ads script, but my knowledge of that is too little to write a script that woudl give the same/similar results as the two reports listed above. Next to that I would need help getting this data in my BigQuery project.
Solved it.
There is a Google Ads Script which requires minimum adjustments to fulfill my needs:
Single Account: https://developers.google.com/google-ads/scripts/docs/solutions/bigquery-exporter
Manager Account: https://developers.google.com/google-ads/scripts/docs/solutions/adsmanagerapp-bigquery-exporter
I simply had to change the:
BIGQUERY_PROJECT_ID
BIGQUERY_DATASET_ID
list of reports (I only needed "LANDING_PAGE_REPORT")

Retrive Sales Data through API for sales from POS

I am trying to do some custom analytics and analysis for my business. We use the Square POS, and have access to the API. I can retrieve the transactions, but cannot seem to get the Order ID's that I need to batch retrieve the orders. What am I missing? Is it possible through the API to access the same sales data that I can see in my dashboard?
It depends on what exactly you are looking for. Items that are sold? Try the v1Payments endpoint. The order's endpoint that you are using is for primarily for pulling the transaction data from e-commerce transactions.

How can I count the results in Gnip's Powertrack API?

I am looking for a URL to count the results retrieved using Powertrack API. Something similar to what I find using Search API:
https://search.gnip.com/accounts/ACCOUNT_NAME/search/LABEL/counts.json
I've been looking at Gnip's docs but I have found nothing that allows me to count the results.
I tried using other URLs (stream.gnip.com, and using search.gnip.com with 'powertrack' instead of 'search'). I can't paste more than 1 link so I can't show the complete URLs here, sorry.
I also looked at Historical PowerTrack API reference, and I can't find anything there related to this.
Thank you.
The only products that support a counts endpoint are the 30 Day and Full Archive Search APIs.
Because PowerTrack is a streaming API and supports 10's of thousands of concurrent rules, your best bet would be to store the data into a database or document storage system (NoSQL) that would allow for filtered queries to extract the counts you need.
Historical PowerTrack could technically allow you to determine a count for a specific query, just based on the total number of activities returned, but to execute an HPT job for the sole purpose of getting a count would not be cost-effective.
Like Steven suggested you better store it in a (NoSQL) database and perform your own aggregations.
Gnip does provide a Usage API which will give you the total volume per period per source.

How to get number of Instagram followers on a specified date like minter.io does?

From the picture, you can see how followers statistics looks on minter.io
The only way how I imagine I would count the followers change: I would download the list of all he followers every day by the Instagram API to my DB. And after having this history already can calculate any change.
But on minter.io you can have such a graphics after few minutes after registration... How???
They are probably storing this information on a daily basis and hence are able to keep a historical trend.
If you go to the minter.io website, they mention at the bottom that they have collected data for close to 198 million accounts. I guess you were one of those.
You don't need to get the list of all followers just to show the absolute change in the numbers. The Instagram API gives that directly when you query any of the endpoints giving user information.
I know how it works at smartmetrics.co.
Smartmetrics collects information about all followers of tracked accounts and build history based on this data. So if you followed someone who is already tracked, you can get history for your account.
But minter makes fake linear graph according to some tests: How to Get Historical Data from Instagram API
Crowdbabble and Minter re-use Twitter tokens, which allows them to collect data on millions of accounts. This gives you the historical data that you want -- change in followers over time. As an individual, you aren't able to access the Twitter API and aggregate data like that for storage as easily. You don't have thousands of people giving you tokens that you can then scrape and store on a regular basis.
Crowdbabble has a free 14 day trial with no payment info required. If you don't want in-depth analytics, Twittercounter will give you your follower numbers over the past 30 days -- you can view each day separately.

Analytics API query - "Number of keywords delivering visits"

I've been tasked with coming up with a report using the Google Analytics API that shows "Number of keywords delivering visits", which should return the number of unique keywords delivering visits for each day over the last 30 days. I have no problem using the API itself, but cannot seem to figure out what metrics I would use to generate this statistic. There is a "ga:searchUniques" which seems ideal, but it is only available for internal site search. Any ideas?