CampaignOperation operation = new CampaignOperation();
operation.setOperand(campaign);
operation.setOperator(Operator.SET);
CampaignOperation[] operations = new CampaignOperation[] {operation};
As I'm sure you can see, CampaignOperation[] is an array that may take
multiple operations ... therefore you can iterate over your campaigns,
creating an operation for each one, and then making one call to the
campaign service.
Pete
On Mar 23, 12:07 pm, BeeGeez <[email protected]> wrote:
> This example only updates a single campaign. I need to update a list
> of campaigns. Is there a different example? I don't want to have to
> resort to updating one campaign at a time as shown in the example you
> have provided...this will really slow things down since I used to be
> able to pause/unpause a large group of campaigns with a single API
> call.
>
> On Mar 23, 5:36 am, "Pete Lavetsky (AdWords API Guru)"
>
> <[email protected]> wrote:
> >http://code.google.com/p/google-api-adwords-java/source/browse/trunk/...
>
> > Pete
>
> > On Mar 22, 9:29 pm, BeeGeez <[email protected]> wrote:
>
> > > I have array of campaign IDs to pause/activate.
>
> > > Is there a method to get and update a list of Campaigns like in v13:
> > > getCampaignList
> > > updateCampaignList
>
> > > If not, what's the best way to achieve this (I don't see an example in
> > > the client library). For example, is their a way to filter the
> > > CampaignSelecter by list of campaignId?- Hide quoted text -
>
> > - Show quoted text -
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
To unsubscribe from this group, send email to
adwords-api+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.