Re: change status vs. change history

2020-01-25 Thread Asaf Zinger
I understand that the change_status service call does not directly map to 
the change history in the UI and the response I received is because of 
small process changes made by google.

Is there a way to query only human-related changes without internal 
changes? 
I need to find out when was the last change that the campaign owner did so 
if there is another way to find it, it will be great.


On Tuesday, January 21, 2020 at 5:10:22 PM UTC+2, Asaf Zinger wrote:
>
> Hi,
> I'm using GoogleAds API change_status to get my campaign change history 
> with this query:
>
>> SELECT 
>> change_status.ad_group,
>> change_status.last_change_date_time,
>> change_status.ad_group_ad,
>> change_status.resource_status, 
>> change_status.resource_type, 
>> change_status.campaign,
>> change_status.ad_group_criterion, 
>> change_status.campaign_criterion,
>> campaign.resource_name
>> 
>>  FROM 
>>  change_status
>>  
>>  WHERE 
>>  change_status.last_change_date_time DURING 
>> LAST_7_DAYS and
>>  campaign.resource_name = '{google_campaign_id}' 
>> and
>>  change_status.resource_type in ('CAMPAIGN', 
>> 'AD_GROUP', 'AD_GROUP_AD')
>>  
>>  ORDER BY change_status.last_change_date_time
>
>
>
> The API result is different than the Ads Manager UI result. 
> for example, when searching for the changes in the last 7 days, the API 
> returns 5 results (AD_GROUP_AD changes)  but the UI change history view 
> shows 0 results.
> What can be the problem? Am I using it wrongly or is this the wrong API to 
> get the change history?
>
> Thanks,
> Asaf.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5652aeb1-7ed1-4cb3-9778-6a2ce8311b81%40googlegroups.com.


change status vs. change history

2020-01-21 Thread Asaf Zinger
Hi,
I'm using GoogleAds API change_status to get my campaign change history 
with this query:

> SELECT 
> change_status.ad_group,
> change_status.last_change_date_time,
> change_status.ad_group_ad,
> change_status.resource_status, 
> change_status.resource_type, 
> change_status.campaign,
> change_status.ad_group_criterion, 
> change_status.campaign_criterion,
> campaign.resource_name
> 
>  FROM 
>  change_status
>  
>  WHERE 
>  change_status.last_change_date_time DURING 
> LAST_7_DAYS and
>  campaign.resource_name = '{google_campaign_id}' 
> and
>  change_status.resource_type in ('CAMPAIGN', 
> 'AD_GROUP', 'AD_GROUP_AD')
>  
>  ORDER BY change_status.last_change_date_time



The API result is different than the Ads Manager UI result. 
for example, when searching for the changes in the last 7 days, the API 
returns 5 results (AD_GROUP_AD changes)  but the UI change history view 
shows 0 results.
What can be the problem? Am I using it wrongly or is this the wrong API to 
get the change history?

Thanks,
Asaf.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e5c5f99f-0c44-4ae4-bc7a-3f0cc52f50db%40googlegroups.com.


Re: Bug Google Ads Search Customer Client

2019-10-07 Thread Asaf Zinger

>
> I have the same issue, when changing the API version to v1 it works fine:
> ga_service = client.get_service('GoogleAdsService', version='v1')
>

when I use v2 and select from customer_client I always get empty result 
without errors (it used to work fine for me too a month ago)


 

On Friday, September 27, 2019 at 9:15:12 PM UTC+3, adsapiforumadvisor wrote:
>
> Hello Tony, 
>
> We are taking a look into this issue. We will get back to you with an 
> update soon.
>
> Thanks,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UHIA6P:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e44ab9f1-e1cc-49d3-9d92-14481324de9b%40googlegroups.com.


Google Ads API Cannot create linked customer with api v2

2019-07-17 Thread Asaf Zinger
Hi,
I'm trying to create a new customer using the example from git:
https://github.com/googleads/google-ads-python/blob/master/examples/account_management/create_customer.py

I'm getting the following error:
TypeError: create_customer_client() missing 2 required positional arguments: 
'email_address' and 'access_role'

(BTW, it is working just fine when switching to V1)

I tried to alter the code like this:
 
role = client.get_type('AccessRoleEnum').ADMIN
response = customer_service.create_customer_client(mgr_id, customer, 
"m...@gmail.com", role)

But now I'm getting this error:
 File <>/.local/share/virtualenvs/ml-googleapi-n6J6a0FH/lib/python3.7/site-
packages/google/ads/google_ads/v2/services/customer_service_client.py", 
line 390, in create_customer_client
access_role=access_role,
TypeError: Parameter to MergeFrom() must be instance of same class: 
expected google.protobuf.StringValue got str.


Can anyone know how to do it correctly?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/83ec7dfb-fc66-4e50-98be-894626b614dc%40googlegroups.com.