RE: How to loop through and remove url_custom_parameters

2020-05-18 Thread Google Ads API Forum Advisor Prod
Hi Sam,

Thanks for reaching out to us. With regards to your concern about remove a 
url_custom_parameter, you can use AdGroupService with Mutate operation.

As for the REMOVE operation concern, you can call REMOVE on the custom 
parameters. If you perform remove() operations, it will remove the whole ad 
group. You can only remove settings by updating the ad group please refer to 
this code example.

If you can use update_mask on custom_parameters and set the custom_parameters 
to empty, that would work too. You can find more information on Field Masks 
here and and code sample to update adgroup.

Let me know if you have any  questions.

Thanks,
Nirmita Patel Google Ads Team
ref:_00D1U1174p._5004Q1zpoz8: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/ERaZt0QAJKZY00syBXvSoqSe2J4dE2ewg_ow%40sfdc.net.


Re: How to loop through and remove url_custom_parameters

2020-05-18 Thread Sam

One more update in case anyone looking for this info - I managed to get 
this working using the reference here: 
https://developers.google.com/protocol-buffers/docs/reference/python-generated#fields

Understanding .remove() would be useful though!

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b08a6b77-ec01-45b0-ac0a-71e3a7a06996%40googlegroups.com.


Re: How to loop through and remove url_custom_parameters

2020-05-17 Thread Sam
Just to clarify this question - could someone please provide a brief 
example of how to remove a url_custom_parameter for an ad_group_criterion 
in python please?

Thank you


On Sunday, 17 May 2020 06:56:34 UTC+1, Sam wrote:
>
> Hi,
>
> Is there any python documentation on how to remove an existing 
> url_custom_parameter for a keyword ad_group_criterion in the google ads api?
>
> I'd like to loop through the url_custom_parameters for each keyword, and 
> remove those that have a certain string in the key. However I don't appear 
> to be able to loop through the url_custom_parameters returned in the 
> message (without converting them to json first) and 
> the url_custom_parameters.remove() seems not to be documented, saying it 
> needs an argument (which is unknown to me).
>
> Thanks for your help
>
> Sam
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e6cb4167-c9c6-4f81-bc9d-d425ea3034c1%40googlegroups.com.


How to loop through and remove url_custom_parameters

2020-05-16 Thread Sam
Hi,

Is there any python documentation on how to remove an existing 
url_custom_parameter for a keyword ad_group_criterion in the google ads api?

I'd like to loop through the url_custom_parameters for each keyword, and 
remove those that have a certain string in the key. However I don't appear 
to be able to loop through the url_custom_parameters returned in the 
message (without converting them to json first) and 
the url_custom_parameters.remove() seems not to be documented, saying it 
needs an argument (which is unknown to me).

Thanks for your help

Sam

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6426d648-5a7e-4ee1-90df-1c91b417c9ee%40googlegroups.com.