Re: How to get Campaign using CampaignService with version Google.Api.Ads.AdWords.v201109?

2013-01-29 Thread Paul Matthews (AdWords API Team)
Hi Pramod,

It seems you're trying to use a sunset version of the AdWords API, please 
see this blog 
postfor
 more information.

Also, seing as we've announced that the sunset of v201206 is 
imminent,
 
we'd recommend you migrate to v201209.

Cheers,

- Paul, AdWords API Team.

On Monday, 28 January 2013 06:35:32 UTC, Pramod Patil wrote:
>
> Hi
>
> I am using *Google.Api.Ads.AdWords.v201109* with dot.net code and getting 
> campaign using CampaignService. 
> But I am getting error.  *"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 
>
>
>   Public Function updateCampaigns() As Integer
>
> Dim user As AdWordsUser
>
> user = getUser()
>
>  user.Config.RetryCount = 3
>
>  If user Is Nothing Then
>
> Return 0
>
> End If
>
>  Dim CampaignServiceObj As CampaignService
>
> Dim page As CampaignPage
>
> Dim SearchEngineeCampaignDBObj As New SearchEngineCampaignDB
> (SQLConn)
>
> Dim secObj As SearchEngineCampaign
>
> Dim rtn As String
>
>  CampaignServiceObj = user.GetService(AdWordsService.v201109
> .CampaignService)
>
>  Try
>
> Dim selector As New Selector()
>
> selector.fields = New String() {"Id", "Name", "Status", 
> "Impressions", "Cost", "Ctr", "AveragePosition", "Conversions", "Clicks", 
> "ConversionRate"}
>
>  Dim orderByName As New OrderBy()
>
> orderByName.field = "Name"
>
> orderByName.sortOrder = SortOrder.ASCENDING
>
> selector.ordering = New OrderBy() {orderByName}
>
> TryCast(user.Config, AdWordsAppConfig).ClientCustomerId = 
> "XX"
>
> selector.paging = New Paging()
>
> selector.paging.startIndex = 0
>
> selector.paging.numberResults = 500
>
> * page = CampaignServiceObj.get(selector)*
>
>  Catch ex As Exception
>
> Return 0
>
> End Try
>
>  If page Is Nothing Then
>
> Return 0
>
> End If
>
>  Try
>
> If page.entries.Length = 0 Then
>
> Return 0
>
> End If
>
> Catch ex As Exception
>
> Return 0
>
> End Try
>
>  For Each CampaignObj As Google.Api.Ads.AdWords.v201109.
> Campaign In page.entries
>
> secObj = New SearchEngineCampaign
>
> secObj.SearchID = SearchID
>
> secObj.CampaignName = CampaignObj.name
>
>  Try
>
> secObj.BudgetAmount = 
> CampaignObj.budget.amount.microAmount / 100
>
> Catch ex As Exception
>
> secObj.BudgetAmount = 0
>
> End Try
>
>  secObj.Status = CampaignObj.status.ToString
>
> secObj.ID = CampaignObj.id
>
> rtn = SearchEngineeCampaignDBObj.findAdd(secObj)
>
> Next
>
>  Return page.entries.Length - 1
>
> End Function
>
>  Public Function getUser() As AdWordsUser
>
> Dim headers As New Dictionary(Of String, String)
>
> headers.Add("email", "X")
>
> headers.Add("password", "X")
>
> headers.Add("useragent", "X")
>
> headers.Add("developerToken", "")
>
> headers.Add("applicationToken", "")
>
>  headers.Add("clientCustomerId", 
> SearchEngineObj.AccountID.Replace("-", ""))
>
>  Try
>
> Dim AdWordsUserObj As New AdWordsUser(headers)
>
> Return AdWordsUserObj
>
> Catch ex As Exception
>
>Return Nothing
>
> End Try
>
> End Function
>

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

Keyword avg position for last X hours

2013-01-29 Thread Nira Amit
I would like to see how changing the bid affects my keyword's avg position. 
If i understand correctly, i cannot get a keyword performance report 
segmented hourly. However, if i download a keyword performance report at 
8:00AM and than again at 2:00PM, would the avg position field change to 
reflect the avg position of my keyword during the day, up until the moment 
i downloaded the report (give or take a few hours of delay in calculation)? 
That would be enough for what i'm trying to achieve.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
For more options, visit https://groups.google.com/groups/opt_out.




Impression share columns sunset - Adgroup Performance Report

2013-01-29 Thread MarcF
Hello,

As I understand "BudgetLostImpressionShare" column will no longer be 
available starting February 2,2013

For the "Adgroup Performance Report", I don't see the new column 
"SearchBudgetLostImpressionShare" aimed to replace the old one .
I have use the getReportFields() method to check.

The old column "BudgetLostImpressionShare" will be available or completly 
removed?

Thanks in advance,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
For more options, visit https://groups.google.com/groups/opt_out.