I have list Campaign and list IP

I want add list IP for each campaign ?

 Selector selector = new Selector() {
        fields = new string[] { Campaign.Fields.Id, Campaign.Fields.Name, 
Campaign.Fields.Status },
        ordering = new OrderBy[] { OrderBy.Asc(Campaign.Fields.Name) }
      };


      (user.Config as AdWordsAppConfig).ClientCustomerId = txtCustomerId.
Text;


      try {
        CampaignService service =
            (CampaignService) user.GetService(AdWordsService.v201601.
CampaignService);


        CampaignPage page = service.get(selector);


        // Display campaigns.
        if (page != null && page.entries != null && page.entries.Length > 0) 
{
          DataTable dataTable = new DataTable();
          dataTable.Columns.AddRange(new DataColumn[] {
              new DataColumn("Serial No.", typeof(int)),
              new DataColumn("Campaign Id", typeof(long)),
              new DataColumn("Campaign Name", typeof(string)),
              new DataColumn("Status", typeof(string))
          });
          for (int i = 0; i < page.entries.Length; i++) {
            Campaign campaign = page.entries[i];
            DataRow dataRow = dataTable.NewRow();
            dataRow.ItemArray = new object[] {i + 1, campaign.id, campaign.
name,
                campaign.status.ToString()
            };
            dataTable.Rows.Add(dataRow);

             //* add list **ipAddress Exclusions  to campaign ?*


          }

          CampaignGrid.DataSource = dataTable;
          CampaignGrid.DataBind();
        } else {
          Response.Write("No campaigns were found.");
        }
      } catch (Exception e) {
        Response.Write(string.Format("Failed to get campaigns. Exception 
says \"{0}\"",
            e.Message));
      }
    }




Please!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a59d392f-e546-4dd4-8954-0d1c9ae30eaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to