Hi,

Is it just calls against *CampaignService* that are failing, or do calls 
against *all* services fail?

One thing to check would be to try to hit the WSDL endpoint from the host 
where you are running the example, e.g., confirm that you can download the 
WSDL at 
https://adwords.google.com/api/adwords/cm/v201406/CampaignService?wsdl 
using curl or wget.

Thanks,
Josh, AdWords API Team

On Wednesday, April 1, 2015 at 2:08:27 AM UTC-4, Pravin Yadav wrote:
>
> Hi
>
> I am using *Google.Api.Ads.AdWords.v201406* with dot.net code and getting 
> campaign using CampaignService. 
> But I am getting error.  *"**Failed to get campaigns. Exception says "The 
> request failed with HTTP status 404: Not Found."**"*. Please see in line 
> of  code for error with Red mark.
>
> Is there any changes to AdWords API? Please let me know and give me DLL 
> for updated version or link to download it.
>
> *Here is code :*
>
>  Selector selector = new Selector();
>             selector.fields = new string[] { "Id", "Name", "Status" };
>
>             OrderBy orderByName = new OrderBy();
>             orderByName.field = "Name";
>             orderByName.sortOrder = SortOrder.ASCENDING;
>
>             selector.ordering = new OrderBy[] { orderByName };
>             (user.Config as AdWordsAppConfig).ClientCustomerId = 
> txtCustomerId.Text;
>
>             try
>             {
>                 CampaignService service = 
> (CampaignService)user.GetService(AdWordsService.v201406.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);
>                     }
>                     CampaignGrid.DataSource = dataTable;
>                     CampaignGrid.DataBind();
>                 }
>                 else
>                 {
>                     Response.Write("No campaigns were found.");
>                 } 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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
--- 
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 [email protected].
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/74b05d94-2a14-4d7c-82b3-1c512b8af62a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to