Hello Dennis, The part that's confusing me is when you say "I was setting the site exclusions for the whole campaign just using one adgroup that belongs to that campaign". What do you mean by that? setCampaignNegativeCriteria() doesn't take an ad group as a parameter. It takes a campaignId as a parameter.
Cheers, -Jeff Posnick, AdWords API Team On Apr 28, 5:01 pm, "dpha...@nextag.com" <dpha...@nextag.com> wrote: > Hello Jeff, > > Thank you for your reply. Yes, I am using the > setCampaignNegativeCriteria(), and I was setting the site exclusions > for the whole campaign just using one adgroup that belongs to that > campaign, and although it seemed like this worked fine, I wasn't > totally sure if this would apply to all of the adgroups in that > campaign. But it seems like you're saying that it does. > > Thanks again, > Dennis > > On Apr 28, 12:30 pm, AdWords API Advisor > > <adwordsapiadvi...@google.com> wrote: > > Hello Dennis, > > > There are two ways to exclude specific sites using the AdWords API. > > You can use the setCampaignNegativeCriteria() call: > > > http://code.google.com/apis/adwords/docs/developer/CriterionService.h... > > > which will add a campaign-level negative criteria to a specific > > campaign. The negative criteria will apply to all ad groups in that > > campaign. > > > You can also exclude sites by adding negative criteria to a specific > > ad group using addCriteria() > > > http://code.google.com/apis/adwords/docs/developer/CriterionService.h... > > > and passing in as a parameter a Website criterion object that has its > > "negative" property set to true. > > > Does that clear anything up? If not, could you please pass along the > > requestId (found in the SOAP response header) for the API call that > > results in the error message you're reporting? > > > Cheers, > > -Jeff Posnick, AdWords API Team > > > On Apr 27, 7:05 pm, "dpha...@nextag.com" <dpha...@nextag.com> wrote: > > > > Hello, > > > > I have a question about the site exclusions feature: it seems that > > > this is a campaign level feature, yet you set it at the adgroup level. > > > If I set the site exclusions for just one adgroup (out of many) in a > > > single campaign, then this seems to work (using the Adwords GUI I can > > > see all of the site exclusions that I set for the campaign that > > > contains that adgroup). Is this a correct way of setting the site > > > exclusions for a campaign? If I try to set the site exclusions for all > > > of the adgroups in a campaign, then I get the following error: > > > This request is attempting to exceed the limiton campaign website > > > exclusions. > > > > Any help is appreciated. > > > > Thanks, > > > Dennis > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---