Re: How to get asset performance label for Responsive Display Ads with Python?

2023-06-08 Thread Wenjun Yang
Hi Team,
Already one year pass, any update for this feature?

Thanks!

On Monday, June 20, 2022 at 3:47:10 PM UTC+8 Google Ads API Forum Advisor 
wrote:

> Hi Wenjun,
>
> Thank you for the reply. I am also a member of the Google Ads API team and 
> let me provide support to your concern.
>
> Upon checking on my end, the only types of ad that the 
> *ad_group_ad_asset_view* supports are the following according to this 
> document 
> 
>  and 
> to our release notes document 
> : 
>
>- AppAds 
>- App pre registration ads 
>- App engagement ads 
>- Responsive search ads 
>
>
> Unfortunately, since the responsive display ad is not supported here and 
> the *ad_group_ad_asset_view* is the only report that can provide the 
> performance label between ads and text assets, then I am afraid that the 
> information that you are looking for is currently not possible to retrieve 
> in the Google Ads API. However, so that I can raise a feature request here, 
> please provide the screenshot of the whole UI where we can see the asset 
> with the performance label of responsive display ads as I can present it to 
> the team.
>
> You can provide it via Reply privately to author option. If this option is 
> not available, then send it instead on this email address 
> googleadsa...@google.com.
>
> Regards,
> [image: Google Logo] 
> Ernie John 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2bxKYZ: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 
"Google Ads API and AdWords 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/051affb6-e332-4957-b939-37cbf45a28a6n%40googlegroups.com.


Failed to update bid_modifier as 0.0 to opt out device with CampaignCriterionService

2022-11-17 Thread Wenjun Yang
Hi Team,
I referred to the 
document: 
https://developers.google.com/google-ads/api/docs/samples/update-campaign-criterion-bid-modifier
 

Below is my code to opt out some Tablet and Desktop from Display Campaign

from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException
from google.api_core import protobuf_helpers

campaign_criterion_service = 
src_client.get_service("CampaignCriterionService")
ops = []
criterion_id_list = ['3', '30002']
for criterion_id in criterion_id_list:
criterion_rname = campaign_criterion_service.campaign_criterion_path(
src_customer_id, src_campaign_id, criterion_id
)
print(f"criterion_rname={criterion_rname}")
campaign_criterion_operation = 
src_client.get_type("CampaignCriterionOperation")
campaign_criterion = campaign_criterion_operation.update
campaign_criterion.resource_name = criterion_rname
campaign_criterion.bid_modifier = 0.0   # 设置为0.0 进行排除
src_client.copy_from(
campaign_criterion_operation.update_mask,
protobuf_helpers.field_mask(None, campaign_criterion._pb),
)
ops.append(campaign_criterion_operation)

result_res_names = []
for row in campaign_criterion_service.mutate_campaign_criteria(
customer_id=src_customer_id, operations=ops
).results:
print(
"Update Campaign Criteria with resource name: "
f'"{row.resource_name}".'
)
result_res_names.append(row.resource_name)


Script run without error message, but it does not work. From UI, the device 
part does not opt out Desktop and Tablet as below screenshot.
[image: error-sample-2022-11-17.png]

I query with SQL as below, the bid value is not 0.0 as expected
query = f"""
select 
campaign.id,
campaign_criterion.resource_name,
campaign_criterion.type,
campaign_criterion.status,
campaign_criterion.criterion_id,
campaign_criterion.bid_modifier,
campaign_criterion.display_name,
campaign_criterion.negative
from campaign_criterion 
WHERE campaign.id = {src_campaign_id}
  and campaign_criterion.type = DEVICE
"""

I made a sample request and log as below. please help with this.
2022-11-17 09:01:23,095 [INFO] logging_interceptor.py@228 - 
log_successful_request(): Request made: ClientCustomerId: xx, Host: 
googleads.googleapis.com, Method: 
/google.ads.googleads.v11.services.CampaignCriterionService/MutateCampaignCriteria,
 
RequestId: *MCjVF87FC6PjR08Zc0Gkzw*, IsFault: False, FaultMessage: None

customer id is replaced with x


Thanks!
Wenjun

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/46cd5119-ca5f-41e7-ba99-9400806c8d6fn%40googlegroups.com.


Re: How to get asset performance label for Responsive Display Ads with Python?

2022-06-19 Thread Wenjun Yang
Hi,
Your website says  ad_group_ad_assest_view is for AppAd only. 
Is this also for Display Ads? I remembered I had tried before and response 
is empty.

Thanks!
Wenjun

On Saturday, June 18, 2022 at 12:42:55 AM UTC+8 adsapi wrote:

> Hi Yang,
>
> Thank you for reaching out to the Google Ads API support team.
>
> With regards to your concern, you can try with 
> ad_group_ad_assest_view.performance_label field report. If it is not works 
> for you, could you please provide full screen screenshot of the UI of what 
> you are looking for? So that i can further investigate the issue. Please 
> reply via privately author option.
>
> Thanks,
> [image: Google Logo] 
> Nirmitabahen Gaurav 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2bxKYZ: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 
"Google Ads API and AdWords 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/8cedaca5-9c74-4f84-abe8-530f81a86687n%40googlegroups.com.


How to get asset performance label for Responsive Display Ads with Python?

2022-06-17 Thread Wenjun Yang
Hi Team,
We already could get assets from ad_group_ad table, but we did not find 
performance label in this table. But it could be seen in Google Ads UI
For AppAds we could use ad_group_ad_asset_view to get performance label.
Could we get performance label for display ads?

Please help!
Thanks!
Wenjun

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/4f45c578-5d07-4afa-99e6-5a3ec3852612n%40googlegroups.com.


How to increase refresh token count limit ?

2022-03-01 Thread Wenjun Yang
Hi Team,
We are facing outside customers. 
Our platform could let them authorize their google ads accounts to us with 
OAuth App
I heard that Google Ads has 50 refresh tokens limit, and I also noticed 
that if a user auth for multiple times, the refresh token is different with 
before.
Will this make previous token expire, including token generated by this 
user and another user.

Thanks!
Wenjun

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/4bf55dc2-3fe2-46b8-b9b2-ce35c395615fn%40googlegroups.com.


Re: How to remove images/videos from App Campaign Ad?

2022-02-21 Thread Wenjun Yang
hello,

Yes, I set the images as empty list. 
also I tried set it as None, both not work.

I will collect request and response log later.

Thanks!
Wenjun

On Tuesday, February 22, 2022 at 12:15:59 AM UTC+8 adsapi wrote:

> Hello,
>
> Thanks for reaching out. Can you please provide us with the complete 
> request and response? Did you attempt to send your request with the images 
> 
>  
> field left empty?
>
> Thanks,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2WxZ17: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 
"Google Ads API and AdWords 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/4bef6347-d4c2-4343-9f29-efb4df415168n%40googlegroups.com.


How to remove images/videos from App Campaign Ad?

2022-02-20 Thread Wenjun Yang
Hi, 
I managed to create new campaign with images and videos for AppCampaign.
But I found using AdGroupAd.update could not remove images or videos.

Part of our python code are:

service_name = "AdGroupAdService"
service = self.client.get_service(service_name)
operation_name = "AdGroupAdOperation"
operation = self.client.get_type(operation_name)
update_obj = operation.update

ad_group_ad_resource_name = 'x' 
update_obj.resource_name = ad_group_ad_resource_name
update_obj.ad.app_ad.images = []  # we tried to remove all images from this 
ad

self.client.copy_from(
operation.update_mask,
protobuf_helpers.field_mask(None, update_obj._pb),
)

response = service.mutate_ad_group_ads(
customer_id=self.account_id, operations=[operation]
)


Please help with this, thanks!
Wenjun





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/44ed9b6f-6d3f-40cc-88d1-af73761200fen%40googlegroups.com.