Re: Get 0 for cost_micros in query

2022-06-27 Thread Vladimir Hiuk
Hi, I am unable to get the data you requested. But I don't think they are necessary. I don't have an error in the query, I'm just wondering if I can get 0 as an answer for dates with costs equal to 0. For example, for one of the campaigns for a period of 180 days, I get only 11 values, since

Get 0 for cost_micros in query

2022-06-24 Thread Vladimir Hiuk
Hello, I need to get all cost_micros for a certain period. In the query below, I get all the data for the period I specified, but there is one problem. In the event that there were no clicks on a certain day, i.e. nothing was spent, I need to get 0. That is, if the period spans 20 days, then I

Re: Get Customer Labels Name

2022-05-18 Thread Vladimir Hiuk
Thank you, I managed to get the labels, but there is another problem. For some reason queries with some IDs return an empty string even though the label exists. Below are 2 of my queries: the first one is for getting ids and the second one is for getting labels: "SELECT customer_label.label

Re: Get Customer Labels Name

2022-05-18 Thread Vladimir Hiuk
Problem solved. The thing was that some labels were created in the sub account and therefore were not available from the top level account среда, 18 мая 2022 г. в 10:17:21 UTC+2, Vladimir Hiuk: > Hi, > > thanks, that helped, but there was another problem: > > "SELECT custo

Re: Get Customer Labels Name

2022-05-18 Thread Vladimir Hiuk
Hi, thanks, that helped, but there was another problem: "SELECT customer_label.label FROM customer_label WHERE customer.id = 9"; "SELECT label.id, label.name, label.resource_name FROM label WHERE label.id IN (1б, 2)"; In the first request I get the IDs and in the

Get Customer Labels Name

2022-05-17 Thread Vladimir Hiuk
Hello, I'm trying to get customer/account labels but don't know how. I've tried all the options I've found. Here is my last option: *I need this labels from Screen* [image: 2022-05-17_11-00.png] *My Code:* $queryLabels3 = "SELECT customer_label.customer, customer_label.label,

Update Campaign budget (daily budget)

2022-03-18 Thread Vladimir Hiuk
Hello, Similar to the example for creating and editing a company (which works for me), I tried to write a function to update the budget. Unfortunately, I'm getting an error. What am I doing wrong? Below function code and error from console. public function run( GoogleAdsClient

Why am I not getting a list of all campaigns when using the google-ads-php getCampaigns example library?

2022-03-09 Thread Vladimir Hiuk
As a result of executing the code below, I do not receive any data. Although, for example, such an example as GetAccountHierarchy works for me. I am currently working on migrating a running project from adWords API to Ads API. Can it be not in the code, but in the account settings? My PHP

Not result with example getCampaign in google-ads-php

2022-03-09 Thread Vladimir Hiuk
I'm trying to get a list of all campaigns using the Google Ads API. To do this, I use an example from the google-ads-php library, but this code does not work for me. What's weird is that the foreach loop doesn't even run and I don't see the output of var_dump. Can anyone suggest me what I'm