Hi,

if you are using latest AdWords API v201101 then you can use
predicates<http://code.google.com/apis/adwords/docs/reference/latest/CampaignService.Predicate.html>in
your selector so that only campaign with specific name is returned,
like
this:

var selector = new Selector()
{
  fields = new string[] { "Id", "Name" },
  predicates = new Predicate[]
  {
    new Predicate()
    {
      field = "Name",
      operator = Predicate.Operator.EQUALS,
      values = new string[] { "My campaign name" }
    }
  }
}

On Tue, May 24, 2011 at 8:10 PM, thisisvlad <[email protected]> wrote:

> If i wanted to edit a specific campaign, how would i go about doing
> that?
>
> from what i can tell, the selector can only pull campaigns by id.
> unfortunately, the adwords UI doesnt show the campaign id anywhere,
> only the name, right?
>
> so, as far as i can tell, the only way to edit the campaign would be
> to get the campaign name from the UI, then using the API use the
> selector to grab every single campaign, loop through all of them
> checking each one until you find the one with the campaign name you
> are looking for.  is that the case?  there must be an easier way, no?
>
> thanks!
>
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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
>



-- 
AdWords API in C# / VB.NET
<http://www.gemboxsoftware.com/Ppc/Overview.htm> adCenter
API in C# / VB.NET <http://www.gemboxsoftware.com/Ppc/Overview.htm> -
GemBox.Ppc component

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to