Google ads api list all accounts and their campaigns - google-ads-api

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.

Related

Create keyword label via Google Ads API

does anybody know if there is a way how to create a label for a keyword using Google Ads API? It can be done using the web interface and apparently it could be done using the Adwords API, but I can't find a way how to do it using Google Ads API so I don't know if it's a feature which they didn't implement or if I'm blind.
Their documentation says
Labels allow you to categorize your campaigns, ad groups, ads, and keywords, and use those categories to simplify your workflow in a variety of ways.
which would suggest that it CAN be done, however below on the same page it states
You can assign labels to your campaigns, customers, ad groups, criteria, or ads.
No word about keywords. I am working with PHP / Laravel and I am using their official php package for the API communication. The package has classes like CampaignLabelOperation, CustomerLabelOperation, AdGroupLabelOperation, etc. but NO "KeywordLabelOperation".
Anybody have a clue if I just can't find it or whatever I could do? Thanks a lot for any help
Technically speaking, Keywords are Ad Group Criteria. Therefore, you'd need to use the AdGroupCriterionLabelService's MutateAdGroupCriterionLabels to create a keyword label.

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!

How to Embed a PowerBI Tile in a Rails app? (and apply filter to it)

I'm struggling with this since a week... I have tried so many things, read so many documentations (walkthrougsh), I can't find any solutions and I have lost the clarity. I really need your help.
I have created a simple Rails app.
I have a Power BI account and a Azure account.
I'm using an example set of data on PowerBI (Retail Analysis Sample).
I want my users to signin on my app (through devise), then access to some pages and see embedded PowerBI Tiles (or report, or dashboard maybe). Then I want them to be able to filter the results. A client-side example is https://microsoft.github.io/PowerBI-JavaScript/demo/filters.html.
I want to be able to do the same.
I'm lost with all the client id, secret, ressource uri, ressource url, ...
What solution/walkthrough must I use?
Thank you so much for your time
Fro
New tile API allows to integrate content from a user’s Power BI
account into application UI for tiles that are on a user’s
dashboards. You can leverage this to add personalized BI content from
your user’s Power BI account into your application.
See documentation
A Sample application
You may want to look into Power Bi Embedded here. This will allow you to control who can see what content from within your application without having to authenticate with the Power Bi service. Power Bi Embedded is an azure service that allows you to upload pbix files which are then subsequently available for view by using an "Access key" to get a token to view the report. I know it works well for displaying "Reports," I am not sure about just showing "Tiles." They recently released RLS and some new Javascript SDK for more advanced features like filtering, check that here.
Hope this helps.

API to get Orders and Upload Shipment information?

I have tried to find the answer using Google, but I'm a bit confused as there are a number of eBay APIs.
In order to get orders, the Trading API GetOrders command should be used?
I would like to be able to upload via an API a completed order shipment information, tracking, and courier name. Is the CompleteSale command in the the Trading API the correct command to use?
How to get the Authentication codes from an eBay store (my app can connect to many eBay stores)
I'm planning to use this Rails GEM: https://github.com/ReverseRetail/ebay_client
1) Yes, use GetOrders to retrieve orders from eBay (Dont use getsellertransactions it is super buggy). Here is the doc for GetOrders Best Practices. You may also want to take a look at this article Order management using Trading API - GetOrders (I would set the set "Create / Mod TimeTo" time to 5 minutes instead of their recommended 2 minutes.)
2) Yes, you would use CompleteSale, you are going to need three bits of information the OrderID, ShipmentTrackingNumber, and ShippingCarrierUsed. You might also want to note that you cannot use the same tracking number for multiple packages, the API will error thinking you are trying to game the system.
3) If you want perform the trading api requests on a store that you do not have access to, you will need to allow clients to authenticate their store with your app. Documentation on that process is very detailed and can be viewed here: Getting Tokens

How do I pull Google analytics data into a rails app for multiple users who each have their own site?

I have a rails app where users can create projects. For each project, I want to allow my users to associate a google account with the project and then pull in relevant google analytics data (i.e. page views, organic traffic, paid traffic) to be presented as part of this project dashboard. What would be the best way to pull in this google data for multiple users, each who will add their own unique google analytics account for a given project?
I've seen some references to Garb as the standard Ruby library to access the google API, but I'm not able to figure out how to use that in my rails app to pull in the relevant data I'm looking for.
Is Garb still a relevant solution for Ruby/Rails? Are there any good example applications that use Garb to pull in Google data? Sorry for the open ended nature of this question, but I've been researching this one for a while with little success. Thanks for your help!

Resources