Reports for "Ad rotation" don't work

2022-07-22 Thread Miguel Angel Garcia
I'm trying to show the "ad rotation" settings on a report (using Google Ads API). I don't see any ad rotation API field on the campaign level (where we set that in the UI). I see an ad rotation field on the ad group level (https://developers.google.com/google-ads/api/reference/rpc/v11/AdGrou

Check active rules using the API

2022-07-24 Thread Miguel Angel Garcia
Hi, is there a way to check the Automated Rules (https://support.google.com/google-ads/answer/2472779?hl=en) that are active in an account with the API? Just for reporting, not for changing them. Thanks! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https

Get the list of Customer IDs under a Manager account

2022-07-26 Thread Miguel Angel Garcia
I want to get info (just for reporting) of all the customers that are being managed by my Manager account. I'm specially interested in getting a list of all the Customer IDs, but having other extra info and stats would be nice too. I've tried with https://developers.google.com/google-ads/api

Re: Get the list of Customer IDs under a Manager account

2022-07-27 Thread Miguel Angel Garcia
Thanks for the detailed response, but it sounds super confusing to me. Probably my fault, not yours. I want the top left - middle accounts drop down (accounts under my MCC), so I guess I have to use https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy, right?

Best way to create reports at Manager/MCC level?

2022-08-18 Thread Miguel Angel Garcia
I want to create API reports that show data from each account that I manage (using a Manager account). For example, show the number of clicks that each account got in the last 30 days. This is pretty easy in the UI and a very common use case, so I assume it should be easy too to do with the A

Best way to compare dates?

2022-11-30 Thread Miguel Angel Garcia
Hi, I want to compare data between 2 date ranges. For example, I want to show in a table how many clicks certain campaigns had in the last 30 days VS the previous 30 days (I'm interested also in other date ranges, not just this example). What is the best way to do this using the API? I guess

Requirements for app (Required Minimum Functionality)

2023-05-08 Thread Miguel Angel Garcia
A year ago I created an "app" based on Google Ads API that I use to detect errors and opportunities in the ad campaigns that I manage (things like "show an alert if a campaign has spent +$1000 and delivered 0 conversions"). I've been using it only internally (just myself), but I'm considering

Re: Get the names of the customer accounts using listAccessibleCustomers

2023-08-08 Thread Miguel Angel Garcia
Any updates on this? Seems like a pretty frequent need (I've found several threads about this in this forum and other websites). If listAccessibleCustomers is not going to provide account names anytime soon, can you at least provide code examples of how to get that info in the most efficient an

Re: Get the names of the customer accounts using listAccessibleCustomers

2023-08-08 Thread Miguel Angel Garcia
OK, and what about the second part of my message? *If listAccessibleCustomers is not going to provide account names anytime soon, can you at least provide code examples of how to get that info in the most efficient and reliable way possible (I need it for Python).* On Tuesday, August 8, 2023 at

Re: Get the names of the customer accounts using listAccessibleCustomers

2023-08-08 Thread Miguel Angel Garcia
authorization_error: USER_PERMISSION_DENIED*" (which I don't understand, because it should be automatically showing the accounts that the user has permission to access, I'm not giving those accounts/IDs manually). On Wednesday, August 9, 2023 at 8:11:45 AM UTC+2 Miguel Angel Garcia wr

Re: CUSTOMER_NOT_ENABLED

2023-08-11 Thread Miguel Angel Garcia
In my API query, I'm using the filter: WHERE customer_client.status = 'ENABLED' But I still get: authorization_error: CUSTOMER_NOT_ENABLED message: "The customer account can\'t be accessed because it is not yet enabled or has been deactivated." Is that the correct filter? Or do I have to use

Upgrading to V15

2024-02-06 Thread Miguel Angel Garcia
Hi, My app was working OK a few weeks ago, but now it's giving me the error "*Version v13 is deprecated. Requests to this version will be blocked.*" So I updated the Google Ads API for Python (using "*pip install --upgrade google-ads*"). Now I have the latest version installed, but the app st

Beginner question: Start with API or scripts?

2022-05-15 Thread Miguel Angel Garcia
I do Google Ads consulting and I want to learn programming (basically to automate tasks, but also just to learn while creating useful stuff). Should I start by creating scripts or directly using the API? I guess scripts should be easier, but if learning the API will bring something extra (more

Count instead of listing elements

2022-05-24 Thread Miguel Angel Garcia
Hi, Instead of getting a list of elements, I want only the count of those elements. For example, instead of getting a list of 30 keywords, I just want to receive the number "30". Is there a way to do this using the API? I've tried with SELECT COUNT(), but it gives me "Error in query: unexp

Date filters/ranges

2022-06-10 Thread Miguel Angel Garcia
Is there a way to filter API reports by dates using ranges such as LAST 90 DAYS, LAST 12 MONTHS or ALL TIME? I know there are some predefined ranges (such as LAST_30_DAYS), but those are too limited for me. And putting speci

Certain metrics not showing in the reports

2022-06-13 Thread Miguel Angel Garcia
There are certain metrics that don't show in my API reports when I request them. It doesn't matter if their values are 0 or something else, they never show up. The query works OK (no errors) and the official query validator says it's OK. So far, the metrics that I've detected that don't sh

Problem with generate_user_credentials.py

2022-06-22 Thread Miguel Angel Garcia
I'm following the instructions on https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-web to generate the refresh token The instructions says to run "generate_user_credentials.py ..." in the terminal, but all my terminals (VS Code, command prompt, Powershell) says that

Re: Problem with generate_user_credentials.py

2022-06-23 Thread Miguel Angel Garcia
So the API examples are designed to be run as "independent files", not to use their functions inside a Python/Ruby/whatever app? On Wednesday, June 22, 2022 at 7:59:06 PM UTC+2 adsapi wrote: > Hi Migual, > > Thank you for reaching out to the Google Ads API support team. > > With regards to your

Recommended Python library for Oauth

2022-06-24 Thread Miguel Angel Garcia
I'm having trouble configuring Oauth with Python/Django and I would prefer to use a good library instead of my custom code. I want to use the Google Ads REST API (not gRPC and client libraries). I've seen that the Google API Python Client (the generic client, not the specific for Ads) recomm

Re: Recommended Python library for Oauth

2022-06-27 Thread Miguel Angel Garcia
Thanks, but I don't think so. As I've mentioned, I'm not using that Python client library at all, so they are probably going to say that is not their concern either. I guess I have to look for another place to ask. Any other suggestions? On Mon, Jun 27, 2022 at 4:29 AM Google Ads API Forum Adviso

How are examples supposed to be used

2022-06-28 Thread Miguel Angel Garcia
I'm a programming beginner and I'm struggling to make sense of your official docs and examples. I've managed to configure the Oauth process, but I don't really understand how to use the code examples from the client libraries to make a real website/app. For example, I want to show the result

Any examples or explanations to automate changes based on certain conditions?

2022-07-03 Thread Miguel Angel Garcia
*Any examples, tutorials or tips to use the API to automate changes based on certain conditions?* *For example: Pause all ads that have less than 100 clicks in the last year.* This kind of automation is a very common use case. And there are a lot of Google Ads Scripts for these automations (

RE: requirements for app (required minimum functionality)

2023-05-09 Thread Miguel Angel Garcia del Valle
Thanks for replying, but that answer it's not helpful at all. I've already read that text (I even linked it in my question), but I explained very specific questions about it (that you haven't addressed at all). My app doesn't even have columns (it doesn't show traditional reports with columns),