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.

Reply via email to