RE: 自动回复: Once Demographic Criterion is set it cannot be changed

2021-11-04 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi,

Thanks for reaching out to the Google Ads API Support.

Could you please let us know if you have any queries related to AdWords API / 
Google Ads API?

Regards,
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2R6DZk: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/uhOMi0R21WLO00YYeoSUi4TBGuicBzFkVYbQ%40sfdc.net.


Re: Once Demographic Criterion is set it cannot be changed

2021-11-04 Thread Filip Pećanac
Hi Peter,

Thank you very much!

I have followed your suggestions and now everything works great.

Thanks for your time!

Regards,
Filip

On Thursday, November 4, 2021 at 3:39:43 AM UTC+1 adsapi wrote:

> Hi Filip,
>
> Thank you for your follow up, our team would be happy to help. You may 
> refer to my responses below :
>
>
> *1. Exclude certain Criterion via API?*
>
> You can CREATE 
> 
>  
> the AdGroupCriterion with the negative=true, if you wish to initially 
> exclude a specific criterion.
>
>
> *2. Re-include that Criterion via API?*
>
> If by re-include what you meant is to target the initially excluded the 
> criterion, you will first need to perform a REMOVE 
> 
>  
> operation for the excluded criterion. You can then CREATE that criterion 
> again, with the same details, but now with negative=false.
>
> Best regards,
>
>
> Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 
> 2021 
> Google Ads API and AdWords API Annual Survey 
> 
>   
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QHCsx: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/58017a6c-1e49-468d-82f0-9f7715d1beb2n%40googlegroups.com.


Re: Once Demographic Criterion is set it cannot be changed

2021-11-03 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Filip,

Thank you for your follow up, our team would be happy to help. You may refer to 
my responses below :

1. Exclude certain Criterion via API?

You can CREATE the AdGroupCriterion with the negative=true, if you wish to 
initially exclude a specific criterion.

2. Re-include that Criterion via API?

If by re-include what you meant is to target the initially excluded the 
criterion, you will first need to perform a REMOVE operation for the excluded 
criterion. You can then CREATE that criterion again, with the same details, but 
now with negative=false.

Best regards,


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 
Google Ads API and AdWords API Annual Survey

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2QHCsx: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/2vI570R210PQ00I0yBOljRRsWgNjKakqrhQg%40sfdc.net.


Re: Once Demographic Criterion is set it cannot be changed

2021-11-03 Thread Filip Pećanac
Hi Yasar,

Thanks for the assistance.

So once I create an AdGroup via API all Demographic criterions are selected 
by default.

What would be your suggestions (or an example if you could provide) in 
order to:

1. Exclude certain Criterion via API?
2. Re-include that Criterion via API?

Whenever I try to accomplish the second step, I get the "immutable filed" 
message.

Sorry to bother you, but I am new in this, so it might take me a while to 
get it done properly :)

Regards,
Filip


On Wednesday, November 3, 2021 at 9:30:12 AM UTC+1 adsapi wrote:

> Hi Filip,
>
> This is Yasar and I work with Aryeh. Let me assist you with this.
>
> Kindly note that the *negative* 
> 
>  field 
> in *AdGroupCriterion* 
> 
>  is 
> immutable. That said, re-including said age range by simply removing line 
> 'negative' => true from your code won’t work and you will get the 
> "Immutable field" message since the 'negative' field is immutable.
>
> To avoid this error, I recommend you to remove the existing 
> *AdGroupCriterion* first, then re-add it by setting *'negative' => false* in 
> your code. 
>
> Hope this helps. Let us know if you have any further questions.
>
> Regards, 
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QHCsx: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/68bd71bf-d0ac-4ebe-b959-f4dc94b6467cn%40googlegroups.com.


Re: Once Demographic Criterion is set it cannot be changed

2021-11-03 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Filip,

This is Yasar and I work with Aryeh. Let me assist you with this.

Kindly note that the negative field in AdGroupCriterion is immutable. That 
said, re-including said age range by simply removing line 'negative' => true 
from your code won’t work and you will get the "Immutable field" message since 
the 'negative' field is immutable.

To avoid this error, I recommend you to remove the existing AdGroupCriterion 
first, then re-add it by setting 'negative' => false in your code.

Hope this helps. Let us know if you have any further questions.

Regards,

Yasar
Google Ads API Team
ref:_00D1U1174p._5004Q2QHCsx: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/wpla70R1ZM9R00k8HTNGgJSqSO4KLpaNn5QQ%40sfdc.net.


Re: Once Demographic Criterion is set it cannot be changed

2021-11-02 Thread Filip Pećanac
Hi Aryeh,

Thanks for the response.

Let me just clarify the situation step by step, so that you can understand 
it better and let me know if I haven't done something properly:

1. I create an adGroup via API (automatically all age ranges are selected)
2. I use negative criterion to exclude one of the ranges, lets say 35 to 44 
- I check it on Google Ads interface and it works fine
3. I try to re-include this age range by simply removing this line *'negative' 
=> true* and then i get the "Immutable field" message
4. I can continue unselecting age ranges with step no2, but when I try to 
include them again i get the same message

So, instead of step 3 what should I do to be able to accomplish this?

Ps. From your previous response I wasn't sure what I was supposed to do, so 
that's why I am back here :)

Regards,
Filip
On Tuesday, November 2, 2021 at 2:12:38 PM UTC+1 adsapi wrote:

> Hi Filip,
>
> Negative 
> 
>  
> is immutable. To switch a criterion from positive to negative, remove then 
> re-add it.
>
> Regards,
>
> [image: Google Logo] 
> Aryeh Baker 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2QHCsx: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/0ecc277b-253f-4ec7-aceb-f60bfa7f0ad7n%40googlegroups.com.


RE: Once Demographic Criterion is set it cannot be changed

2021-11-02 Thread 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
Hi Filip,

Negative is immutable. To switch a criterion from positive to negative, remove 
then re-add it.

Regards,

Aryeh Baker
Google Ads API Team
ref:_00D1U1174p._5004Q2QHCsx: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/xz-E00R1Y4OJ00-DFQQUozSAarUezOk-adCw%40sfdc.net.


Once Demographic Criterion is set it cannot be changed

2021-11-02 Thread Filip Pećanac
Hi,

When I add Demographic AdGroupCriterion via API, lets say exclude all male 
users from targeting, it works fine. For this, i use this code 

.

But later on, once I try to *include* the male population for that Ad Group 
(by removing 'negative'=>true line of code), I receive the following 
message:

*Fatal error*: Uncaught Google\ApiCore\ApiException: { "message": "Request 
contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT", 
"details": [ { "@type": 0, "data": 
"type.googleapis.com\/google.ads.googleads.v8.errors.GoogleAdsFailure" }, { 
"@type": 0, "data": [ { "errorCode": { "fieldError": "IMMUTABLE_FIELD" }, 
"message": "The field attempted to be mutated is immutable.", "location": { 
"fieldPathElements": [ { "fieldName": "operations", "index": 0 }, { 
"fieldName": "create" }, { "fieldName": "negative" in 
*/XYZ/google-ads-php/vendor/google/gax/src/ApiException.php* on line *139*

Is there a way to update AdGroupCriterions once they are previously added?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d2912348-fc21-4f71-b391-7a305bcfda8an%40googlegroups.com.