Hi Altaf,

You also need to migrate from ClientLogin to OAuth2. Just follow the 
instructions on this video <https://www.youtube.com/watch?v=WifY2fFyaMw> to 
complete the migration. Note that the video shows the configuration keys 
being added to the App.config, but you can do the same in your code just 
like you are doing right now.

See https://github.com/googleads/googleads-dotnet-lib/wiki/Using-OAuth2 for 
the longer wiki version of the whole process.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Tuesday, July 15, 2014 10:57:00 AM UTC-4, Altaf Mulla wrote:
>
> Hi,
>
>  I am using the below code 
>  i am using the latest version of adwords google api Google 
> AdWordsService.v201406
>
> I am get error  for access token 
>
>                Dim user As New AdWordsUser()
>                 Dim config As AdWordsAppConfig = DirectCast(user.Config, 
> AdWordsAppConfig)
>                 config.Email = "[email protected]"
>                 config.Password = "12323"
>                 config.UserAgent = "testUser"
>                 config.DeveloperToken = "xxxxxxxxxx"
>                 config.AuthorizationMethod = 
> AdWordsAuthorizationMethod.OAuth2
>                 config.ClientCustomerId = "67323622323"
>
>                  Dim CampaignServiceObj As CampaignService
>                  Dim page As CampaignPage            
>                  Dim rtn As String
>
>           
>
>             Try
>                 CampaignServiceObj = 
> user.GetService(AdWordsService.v201406.CampaignService)
>             Catch ex As Exception            
>      
>             End 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 = 
> SearchEngineObj.UserName
>
>                 selector.paging = New Paging()
>                 selector.paging.startIndex = 0
>                 selector.paging.numberResults = 500
>
>                 page = CampaignServiceObj.get(selector)
>
>            *   Here i  am getting error for Refresh token *
>              
>             can u please explain with code changes in above i would be 
> gratefule
> On Friday, July 11, 2014 3:40:08 PM UTC+5:30, Altaf Mulla wrote:
>>
>> Hi 
>>
>> I am using Google AdWordsService.v201306
>>
>> in this i am using the campaign Service 
>> AdWordsService.v201306.CampaignService
>>
>>    page = CampaignServiceObj.get(selector)
>>
>> i am getting error for this line
>>
>> Please let me know what is the issue 
>>
>

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

Reply via email to