Re: How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error

2016-10-13 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi Cindy,

In that case, I would recommend keeping the Campaign ID / Ad Group ID - 
Keyword mapping saved in your local database. You can first perform a basic 
check on whether an ad group / campaign exists before performing updates on 
the keyword. Multiple sanity check actions can be grouped into a single 
operation with a batch job, to optimize the performance. Also, you can set 
the partialFailure 
 SOAP 
header to true so that the operations that fail would be ignored.

Regards,
Vishal, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/974ced30-d47e-46de-922f-4ca16123f266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error

2016-10-13 Thread Cindy J
Thanks Vishal!

I also found there's such limit:

   - When using IN and NOT_IN operators in your WHERE clause, you are 
   limited to 10,000 items.

So the best solution would require multiple get to fetch all keywords then?

On Thursday, October 13, 2016 at 1:57:36 PM UTC-5, Vishal Vinayak (Adwords 
API Team) wrote:
>
> Hi Cindy,
>
> That is correct. You may see the 
> OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY 
> 
>  error 
> if you try to update an entity that is already been removed. 
>
> Unfortunately, there aren't too may ways to bypass this mechanism since 
> this is in place to check system's integrity. The correct way to perform 
> this routine, indeed, would be to select only the active campaigns/ad 
> groups and update keywords for those campaigns/ ad groups. More details are 
> available on this forum post 
> 
> .
>
> To group multiple actions in one operation, I would also suggest having a 
> look at the batch job service 
> .
>
> Regards,
> Vishal, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/254bbed0-2627-42f9-b738-5e2e697074d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error

2016-10-13 Thread 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
Hi Cindy,

That is correct. You may see the OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY 

 error 
if you try to update an entity that is already been removed. 

Unfortunately, there aren't too may ways to bypass this mechanism since 
this is in place to check system's integrity. The correct way to perform 
this routine, indeed, would be to select only the active campaigns/ad 
groups and update keywords for those campaigns/ ad groups. More details are 
available on this forum post 

.

To group multiple actions in one operation, I would also suggest having a 
look at the batch job service 
.

Regards,
Vishal, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/85b0af38-ef47-4692-b4bc-dd8be8172064%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error

2016-10-13 Thread Cindy J
Hi there,

I have an account with about 100,000 ad groups, millions of keywords and 
many campaigns. While I was trying to update keywords, it's quite often to 
have OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error.

I know I could use campaignService and adGroupService to retrieve active 
campaigns/ad groups only, and then filter out keywords within these 
campaigns/ad groups - but because of the volume of ad groups/keywords, it 
would be really inefficient to perform such check before updating. 

Is there a better way to handle such error or can I set to specifically 
ignore this error? (I was bulk updating keywords, so one operation failure 
would lead to failure of the batch)

Thanks,
Cindy

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5421a754-b840-4945-9c43-eba30217a46f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY

2015-11-18 Thread Josh Radcliff (AdWords API Team)
Hi,

*CampaignService.get *refers to the get method of CampaignService 
,
 
which you can use to retrieve your campaigns. Check out the GetCampaigns 
Java example 

 and 
the other client library examples 

 for 
more details.

Cheers,
Josh, AdWords API Team

On Wednesday, November 18, 2015 at 8:40:57 AM UTC-5, Charlie Muir wrote:
>
> What is *CampaignService.get?*
>
>
> On Thursday, October 23, 2014 at 6:37:09 AM UTC-7, Josh Radcliff (AdWords 
> API Team) wrote:
>>
>> Hi Pino,
>>
>> You're probably getting that error because the *Campaign* that contains 
>> the *AdGroup* of the *AdGroupAd* has been removed. Once a *Campaign *has 
>> been removed you can no longer mutate any attributes of its *AdGroups*.
>>
>> To limit to *AdGroups* that are neither removed nor are in removed 
>> *Campaigns*, you can do the following:
>>
>> 1. Use *CampaignService.get* to select all *Campaigns* with *Status = 
>> 'REMOVED'*, and store those *Campaign* IDs.
>>
>> 2. When selecting *AdGroups* via *AdGroupService.get*, include two 
>> predicates:
>>
>>   a. *Status IN ['ENABLED', 'PAUSED']*
>>
>>   b. *CampaignId NOT_IN [* *list of removed campaign IDs from step 1 ]*
>>
>> Cheers,
>> Josh, AdWords API Team
>>
>> On Wednesday, October 22, 2014 7:03:08 AM UTC-4, Jose Luis Lopez Pino 
>> wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to update (remove and add) the ads of several adgroups, but 
>>> frequently I get an 
>>> OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error when 
>>> I try to remove the old ads.
>>> To try to avoid this, I'm including the following condition in all the 
>>> selectors to ensure that I'm not retrieving removed adgroups or ads:
>>> {
>>>   'field': 'Status',
>>>   'operator': 'IN',
>>>   'values': ['ENABLED', 'PAUSED']
>>> }
>>>
>>> However, the problem persists. Is there any other condition that I 
>>> should add to the selector to avoid this error?
>>>
>>> Thanks in advance,
>>> Pino
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0ee38a37-1675-4eec-8a14-530d85ef408b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY

2015-11-18 Thread Charlie Muir
What is *CampaignService.get?*


On Thursday, October 23, 2014 at 6:37:09 AM UTC-7, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi Pino,
>
> You're probably getting that error because the *Campaign* that contains 
> the *AdGroup* of the *AdGroupAd* has been removed. Once a *Campaign *has 
> been removed you can no longer mutate any attributes of its *AdGroups*.
>
> To limit to *AdGroups* that are neither removed nor are in removed 
> *Campaigns*, you can do the following:
>
> 1. Use *CampaignService.get* to select all *Campaigns* with *Status = 
> 'REMOVED'*, and store those *Campaign* IDs.
>
> 2. When selecting *AdGroups* via *AdGroupService.get*, include two 
> predicates:
>
>   a. *Status IN ['ENABLED', 'PAUSED']*
>
>   b. *CampaignId NOT_IN [* *list of removed campaign IDs from step 1 ]*
>
> Cheers,
> Josh, AdWords API Team
>
> On Wednesday, October 22, 2014 7:03:08 AM UTC-4, Jose Luis Lopez Pino 
> wrote:
>>
>> Hi,
>>
>> I'm trying to update (remove and add) the ads of several adgroups, but 
>> frequently I get an 
>> OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error when 
>> I try to remove the old ads.
>> To try to avoid this, I'm including the following condition in all the 
>> selectors to ensure that I'm not retrieving removed adgroups or ads:
>> {
>>   'field': 'Status',
>>   'operator': 'IN',
>>   'values': ['ENABLED', 'PAUSED']
>> }
>>
>> However, the problem persists. Is there any other condition that I should 
>> add to the selector to avoid this error?
>>
>> Thanks in advance,
>> Pino
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/67d24bb7-f77e-4732-a02d-767ce07780b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY

2014-10-23 Thread Josh Radcliff (AdWords API Team)
Hi Pino,

You're probably getting that error because the *Campaign* that contains the 
*AdGroup* of the *AdGroupAd* has been removed. Once a *Campaign *has been 
removed you can no longer mutate any attributes of its *AdGroups*.

To limit to *AdGroups* that are neither removed nor are in removed 
*Campaigns*, you can do the following:

1. Use *CampaignService.get* to select all *Campaigns* with *Status = 
'REMOVED'*, and store those *Campaign* IDs.

2. When selecting *AdGroups* via *AdGroupService.get*, include two 
predicates:

  a. *Status IN ['ENABLED', 'PAUSED']*

  b. *CampaignId NOT_IN [* *list of removed campaign IDs from step 1 ]*

Cheers,
Josh, AdWords API Team

On Wednesday, October 22, 2014 7:03:08 AM UTC-4, Jose Luis Lopez Pino wrote:

 Hi,

 I'm trying to update (remove and add) the ads of several adgroups, but 
 frequently I get an 
 OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error when 
 I try to remove the old ads.
 To try to avoid this, I'm including the following condition in all the 
 selectors to ensure that I'm not retrieving removed adgroups or ads:
 {
   'field': 'Status',
   'operator': 'IN',
   'values': ['ENABLED', 'PAUSED']
 }

 However, the problem persists. Is there any other condition that I should 
 add to the selector to avoid this error?

 Thanks in advance,
 Pino


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords 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 Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/eaac33af-a187-4822-8c83-e9b5943b4355%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to avoid OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY

2014-10-22 Thread Jose Luis Lopez Pino
Hi,

I'm trying to update (remove and add) the ads of several adgroups, but 
frequently I get an 
OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY error when 
I try to remove the old ads.
To try to avoid this, I'm including the following condition in all the 
selectors to ensure that I'm not retrieving removed adgroups or ads:
{
  'field': 'Status',
  'operator': 'IN',
  'values': ['ENABLED', 'PAUSED']
}

However, the problem persists. Is there any other condition that I should 
add to the selector to avoid this error?

Thanks in advance,
Pino

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords 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 Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cc620347-5ef1-4c84-83c5-d4362ff0d66a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.