Emailing PDF reports to clients. Is this allowed according to the AdWords API terms of service?

2013-08-16 Thread paul . deraval
We are looking to create scheduled weekly reports that will be delivered as 
PDF email attachments to clients. I just want to verify that is not against 
the AdWords API terms of service to use the API to download client 
reporting data, then send that data as a PDF to client automatically. I 
don't think it is, but just would like an official response form Google 
before we proceed.

Thanks so much! Your API is a pleasure to work with.

Paul


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


Re: Am encountering a scenario where AdgroupService.Mutate crashes within the adspygoogle package

2013-08-16 Thread Danial Klimkin
Hello Yogeetha,


This is being discussed in:

  https://code.google.com/p/google-api-ads-python/issues/detail?id=71

If anyone else has the same issue, please let us know.


-Danial, AdWords API Team.


On Thursday, August 8, 2013 10:12:19 AM UTC+4, Yogeetha Sundaram wrote:
>
> Steps to replicate this issue:
>
> 1. Try creating an adgroup with some special characters in it, "
> ABC\xc2\xae"
> 2. Try adding the same adgroup again
>
> AFAIK, when there is a SOAPFault with such special characters in it, the 
> parse response in the adspygoogle package crashes 
>
> I have been using adspygooglev15.8 and python 2.6
>
> Where exactly it crashes,
>
>
> /usr/local/lib/python2.6/dist-packages/adspygoogle/common/GenericApiService.py(305):
>
> response = MessageHandler.UnpackResponseAsDict(
>   soap_service_method(**ksoap_args))
>
> While executing UnpackResponseAsDict(),
>
> It crashes at 
> /usr/local/lib/python2.6/dist-packages/adspygoogle/SOAPpy/Client.py(436)__call():
>   raise p
>
> With the following traceback,
>
> Traceback (most recent call last):
>   File 
> "/palaran/deploy/sophie/releases/20130806042233/sophie/lib/connectors/media/google_adwords/adwords_api_access.py",
>  line 1539, in modify_adgroup
> response = self.adgroup_service.Mutate(adgroup_operations)
>   File 
> "/usr/local/lib/python2.6/dist-packages/adspygoogle/common/GenericApiService.py",
>  line 319, in CallMethod
> self._HandleLogsAndErrors(buf, start_time, stop_time, error)
>   File 
> "/usr/local/lib/python2.6/dist-packages/adspygoogle/adwords/GenericAdWordsService.py",
>  line 240, in _HandleLogsAndErrors
> raise e
> AdWordsRequestError: 
>
>
> Please assist
>

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


Getting AdError.AD_FORMAT_NOT_SPECIFIED trying to add a TemplateAd

2013-08-16 Thread Yassir Aguila
Hi all,

I'm getting ad error response AD_FORMAT_NOT_SPECIFIED trying to add a 
TemplateAd. The currrent implementation was working before but suddenly 
stopped working.

Request:

ADD

7795861716
https://adwords.google.com/api/adwords/cm/v201306"; 
xsi:type="ns2:TemplateAd">

http://www.ivntest.com?v=1&source=3D7097CC&akw={keyword}
www.ivntest.com
TemplateAd
277

68449356


adData

creationContext
TEXT

WORKFLOW:DEFAULT,TEMPLATE_SOURCE:BROWSING_CONTENT_PAGE


backgroundColor
ENUM
#ff


CUSTOM_IMAGE_0_Z
NUMBER
1


CUSTOM_TEXT_0_Height
NUMBER
25


CUSTOM_TEXT_0_Width
NUMBER
120


CUSTOM_TEXT_0_Z
NUMBER
2


CUSTOM_TEXT_0_TextSize
NUMBER
20


CUSTOM_TEXT_0_TextColor
ENUM
#00


CUSTOM_TEXT_0_TextFont
ENUM
arialuni


CUSTOM_TEXT_0_Text
TEXT
My Template Ad2


CUSTOM_BUTTON_0_Height
NUMBER
30


CUSTOM_BUTTON_0_Width
NUMBER
100


CUSTOM_BUTTON_0_Z
NUMBER
3


CUSTOM_BUTTON_0_TextSize
NUMBER
18


CUSTOM_BUTTON_0_ButtonColor
ENUM
#00


CUSTOM_BUTTON_0_TextColor
ENUM
#ff


CUSTOM_BUTTON_0_TextFont
ENUM
arialuni


CUSTOM_BUTTON_0_Text
TEXT
My link



468
60

First Template Ad

ENABLED
DISAPPROVED
true

SEARCH
AdStats
0.0




Response:


soap:Server
[AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[0].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[2].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[3].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[4].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[5].operand.ad.adFormat]

https://adwords.google.com/api/adwords/cm/v201306";>
[AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[0].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[2].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[3].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[4].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ 
operations[5].operand.ad.adFormat]

ApiException
http://www.w3.org/2001/XMLSchema-instance"; xsi:type="AdError">

operations[0].operand.ad.adFormat


AdError.AD_FORMAT_NOT_SPECIFIED
AdError

...

I updated to 201306 but no results.

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 opti

Re: TargetingIdeaService return keywords stats not matched with Web UI.

2013-08-16 Thread Danial Klimkin
Hello Chirag,


Please check the UI numbers with "Google and search partners" instead of 
"Google" option on the left. Do they match in this case?


-Danial, AdWords API Team.


On Thursday, August 15, 2013 10:11:39 PM UTC+4, Chirag wrote:
>
> Hello Danial,
>
> I am using same parameter,but i am not getting same result as UI. You can 
> see the diffrence.
> * API value *  
>* UI value  *
> Keyword   Search volume AVG CPC (Micro 
> Amount)  Search volume AVG CPC  
>
> in home senior care 1000   216846693  
>880 $3.80
>
> senior care services 880   214674314  
>590$3.68
>
> senior home care5400   251675313  
>   3600$4.25
>
> elder home care  390   
> 195457037  210$3.79
>
>
> Please see my code. Also see the UI Image attached here with.
> $targetingIdeaService =
>   $user->GetService('TargetingIdeaService', ADWORDS_VERSION);
>
>   // Create seed keyword.
>   $keyword = array('in home senior care','senior care services','senior 
> home care','elder home care');
>
>   // Create selector.
>   $selector = new TargetingIdeaSelector();
>   $selector->requestType = 'STATS';
>   $selector->ideaType = 'KEYWORD';
>   $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 
> 'SEARCH_VOLUME',
>   'CATEGORY_PRODUCTS_AND_SERVICES', 'COMPETITION', 'AVERAGE_CPC', 
> 'TARGETED_MONTHLY_SEARCHES');
>
>   // Create language search parameter (optional).
>   // The ID can be found in the documentation:
>   //   
> https://developers.google.com/adwords/api/docs/appendix/languagecodes
>   // Note: As of v201302, only a single language parameter is allowed.
>   $languageParameter = new LanguageSearchParameter();
>   $english = new Language();
>   $english->id = 1000;
>   $languageParameter->languages = array($english);
>   
>   $locationTargetParameter = new LocationSearchParameter();
>   $location = new location();
>   $location->id = 2840;
>   $locationTargetParameter->locations = $location;
>   
>   $networkTargetParameter = new NetworkSearchParameter();
>   $networksetting = new NetworkSetting();
>   $networksetting->SearchParameterType = 'targetGoogleSearch';
>   $networkTargetParameter->networkSetting = $networksetting;
>
>   // Create related to query search parameter.
>   $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
>   $relatedToQuerySearchParameter->queries = $keyword;
>   $selector->searchParameters[] = $relatedToQuerySearchParameter;
>   $selector->searchParameters[] = $languageParameter;
>   $selector->searchParameters[] = $locationTargetParameter;
>   $selector->searchParameters[] = $networkTargetParameter;
>
>   // Set selector paging (required by this service).
>   $selector->paging = new Paging(0, 
> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>
>   do {
> // Make the get request.
> $page = $targetingIdeaService->get($selector);
> // Display results.
> if (isset($page->entries)) {
>   foreach ($page->entries as $targetingIdea) {
> $data = MapUtils::GetMap($targetingIdea->data);
> $keyword = $data['KEYWORD_TEXT']->value;
> $search_volume = isset($data['SEARCH_VOLUME']->value)
> ? $data['SEARCH_VOLUME']->value : 0;
>   }
> } else {
>   print "No keywords ideas were found.\n";
> }
>
> // Advance the paging index.
> $selector->paging->startIndex += 
> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>   } while ($page->totalNumEntries > $selector->paging->startIndex);
> }
>
>
>
> On Thursday, 15 August 2013 14:44:13 UTC+5:30, Danial Klimkin wrote:
>>
>> Hello Chirag,
>>
>>
>> I am sorry I initially got confused by a different parameter.
>>
>> I ran a few queries for the keywords you specified in both UI and API and 
>> results are matching exactly for me. Are you using the new Keyword Planner?
>>
>> If so, please make sure you use the same network for the UI ("Google" vs 
>> "Google and search partners" on the left).
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Wednesday, August 14, 2013 2:01:55 PM UTC+4, Chirag wrote:
>>
>>> Hello,
>>>
>>> I had tried to find avg cpc for previous months to get avg cpc, but 
>>> there is no way to find previous month CPC.
>>> Can you guide me which service metrics i need to use?
>>>
>>> Thanks,
>>> chirag
>>>
>>> On Wednesday, 14 August 2013 13:59:39 UTC+5:30, Danial Klimkin wrote:

 Hello Chirag,


 Avg number is not reported by the API but you can calculate it on the 
 client side based on the monthly numbers.


 -Danial, AdWords API Team.



Re: TargetingIdeaService return keywords stats not matched with Web UI.

2013-08-16 Thread Chirag
Hello Danial,

Yes after selecting google and search partner i am getting Search volume 
properly.
But avg CPC data is still not matched. and to find UI data i need option to 
get data on previous dates.
How i can find avg cpc on previous dates data.

Also one more question.

Using API i am only passing google as targetting than why API is giving me 
data for Google and search partners?

Thanks,



On Friday, 16 August 2013 14:12:50 UTC+5:30, Danial Klimkin wrote:
>
> Hello Chirag,
>
>
> Please check the UI numbers with "Google and search partners" instead of 
> "Google" option on the left. Do they match in this case?
>
>
> -Danial, AdWords API Team.
>
>
> On Thursday, August 15, 2013 10:11:39 PM UTC+4, Chirag wrote:
>>
>> Hello Danial,
>>
>> I am using same parameter,but i am not getting same result as UI. You can 
>> see the diffrence.
>> * API value *  
>>* UI value  *
>> Keyword   Search volume AVG CPC 
>> (Micro Amount)  Search volume AVG CPC  
>>
>> in home senior care 1000   216846693 
>> 880 $3.80
>>
>> senior care services 880   214674314 
>> 590$3.68
>>
>> senior home care5400   251675313 
>>3600$4.25
>>
>> elder home care  390   
>> 195457037  210$3.79
>>
>>
>> Please see my code. Also see the UI Image attached here with.
>> $targetingIdeaService =
>>   $user->GetService('TargetingIdeaService', ADWORDS_VERSION);
>>
>>   // Create seed keyword.
>>   $keyword = array('in home senior care','senior care services','senior 
>> home care','elder home care');
>>
>>   // Create selector.
>>   $selector = new TargetingIdeaSelector();
>>   $selector->requestType = 'STATS';
>>   $selector->ideaType = 'KEYWORD';
>>   $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 
>> 'SEARCH_VOLUME',
>>   'CATEGORY_PRODUCTS_AND_SERVICES', 'COMPETITION', 'AVERAGE_CPC', 
>> 'TARGETED_MONTHLY_SEARCHES');
>>
>>   // Create language search parameter (optional).
>>   // The ID can be found in the documentation:
>>   //   
>> https://developers.google.com/adwords/api/docs/appendix/languagecodes
>>   // Note: As of v201302, only a single language parameter is allowed.
>>   $languageParameter = new LanguageSearchParameter();
>>   $english = new Language();
>>   $english->id = 1000;
>>   $languageParameter->languages = array($english);
>>   
>>   $locationTargetParameter = new LocationSearchParameter();
>>   $location = new location();
>>   $location->id = 2840;
>>   $locationTargetParameter->locations = $location;
>>   
>>   $networkTargetParameter = new NetworkSearchParameter();
>>   $networksetting = new NetworkSetting();
>>   $networksetting->SearchParameterType = 'targetGoogleSearch';
>>   $networkTargetParameter->networkSetting = $networksetting;
>>
>>   // Create related to query search parameter.
>>   $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter();
>>   $relatedToQuerySearchParameter->queries = $keyword;
>>   $selector->searchParameters[] = $relatedToQuerySearchParameter;
>>   $selector->searchParameters[] = $languageParameter;
>>   $selector->searchParameters[] = $locationTargetParameter;
>>   $selector->searchParameters[] = $networkTargetParameter;
>>
>>   // Set selector paging (required by this service).
>>   $selector->paging = new Paging(0, 
>> AdWordsConstants::RECOMMENDED_PAGE_SIZE);
>>
>>   do {
>> // Make the get request.
>> $page = $targetingIdeaService->get($selector);
>> // Display results.
>> if (isset($page->entries)) {
>>   foreach ($page->entries as $targetingIdea) {
>> $data = MapUtils::GetMap($targetingIdea->data);
>> $keyword = $data['KEYWORD_TEXT']->value;
>> $search_volume = isset($data['SEARCH_VOLUME']->value)
>> ? $data['SEARCH_VOLUME']->value : 0;
>>   }
>> } else {
>>   print "No keywords ideas were found.\n";
>> }
>>
>> // Advance the paging index.
>> $selector->paging->startIndex += 
>> AdWordsConstants::RECOMMENDED_PAGE_SIZE;
>>   } while ($page->totalNumEntries > $selector->paging->startIndex);
>> }
>>
>>
>>
>> On Thursday, 15 August 2013 14:44:13 UTC+5:30, Danial Klimkin wrote:
>>>
>>> Hello Chirag,
>>>
>>>
>>> I am sorry I initially got confused by a different parameter.
>>>
>>> I ran a few queries for the keywords you specified in both UI and API 
>>> and results are matching exactly for me. Are you using the new Keyword 
>>> Planner?
>>>
>>> If so, please make sure you use the same network for the UI ("Google" vs 
>>> "Google and search partners" on the left).
>>>
>>>
>>> -Danial

MutateJobService returns CampaignError.DUPLICATE_CAMPAIGN_NAME errors when Campaigns were actually created successfully

2013-08-16 Thread Akil Burgess
Hi All,

We are seeing an issue where we are creating a set of Campaigns using the 
MutateJobService and some of the CampaignOperations report 
CampaignError.DUPLICATE_CAMPAIGN_NAME errors even though they are 
definitely unique names. The campaigns are still created even though an 
error is reported.

I have attached a file with the request logs that show the result of 
JobId -8089192796637669145 which contains 10 duplicate name errors. The log 
also shows that a CampaignService.get request for campaigns with those 
specific names still returns campaigns that have been created.

Any ideas what is going on here?

Thanks,
Akil

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


soap_xml.log
Description: Binary data


Re: Authentication error with Google Adwords V201306

2013-08-16 Thread Pramod Patil
Hi Paul,
 
I am using Google.Ads.Common.dll , Google.AdWords.dll with Version 1.8.0.0. 
Would you please help How to work with version v201306 and existing code.
 
Please have a look on below code and see red code for which I am gettign 
error.
 

Imports Google.Api.Ads.AdWords.Lib
Imports Google.Api.Ads.AdWords.v201306
Public Function getUser() As AdWordsUser
Dim headers As New Dictionary(Of String, String)
headers.Add("email", "XX@.X")
headers.Add("password", "XX")
headers.Add("useragent", X")
headers.Add("developerToken", "X")
headers.Add("applicationToken", "")   
headers.Add("clientCustomerId", "XXX")
Dim AdWordsUserObj As New AdWordsUser(headers)
  
End Function
 
 
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   
   CampaignServiceObj = 
user.GetService(AdWordsService.v201306.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

   Dim SearchEngineDBObj As New SearchEngineDB(SQLConn)
Dim SearchEngineObj As SearchEngine

selector.ordering = New OrderBy() {orderByName}
TryCast(user.Config, AdWordsAppConfig).ClientCustomerId = 
""

selector.paging = New Paging()
selector.paging.startIndex = 0
selector.paging.numberResults = 500

page = CampaignServiceObj.get(selector) 'getting error for 
Authentication.
  

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.v201306.Campaign 
In page.entries

Next

Return page.entries.Length - 1
End Function
 

On Thursday, August 15, 2013 9:48:11 PM UTC+5:30, Paul Matthews (AdWords 
API Team) wrote:

> Hi Pramod, 
>
> Firstly v201209 has now been sunset, please see the sunset 
> schedulefor more 
> information on this.
>
> Secondly, which library are you using? Many of the libraries inform their 
> users that they should switch to OAuth2, but will still work with 
> ClientLogin.
>
>  Regards,
>
> - Paul, AdWords API Team.
>
> On Friday, 9 August 2013 06:22:12 UTC-4, Pramod Patil wrote: 
>>
>>  Hi
>>
>>  I am using Google Adwords  API Version  v201209 with given parameters 
>> email, password, useragent, developerToken, applicationToken and 
>> clientCustomerId to *AdWordsUser*()
>>  
>>  It was working fine till date 22- July 2013. But onward it’s throwing 
>> error.
>>  
>>  I have checked with New version *v201306*, I have password above 
>> parameters to *AdWordsUser()*, but it is throwing error for 
>> Authentication.
>>
>> Please let me know Google Adwords changed Authentication process or using 
>> old process.
>>
>> if any change. Please give me sample code for .Net 
>>
>>   
>>
>> Thanks & Regards,
>>  
>> Pramod Patil
>>
>

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


Authentication error with New Google.Ads.Common.dll , Google.AdWords.dll version V201306

2013-08-16 Thread Pramod Patil
 Hi,
 
I am using Google.Ads.Common.dll , Google.AdWords.dll with File Version 
1.8.0.0. Would you please help How to work with version v201306 and 
existing code.
 
Please have a look on below code and see red code for which I am gettign 
error.
 
App.config has below seetings
 


  

  

  
 
 
Imports Google.Api.Ads.AdWords.Lib
Imports Google.Api.Ads.AdWords.v201306
Public Function getUser() As AdWordsUser
Dim headers As New Dictionary(Of String, String)
headers.Add("email", "XX@.X")
headers.Add("password", "XX")
headers.Add("useragent", X")
headers.Add("developerToken", "X")
headers.Add("applicationToken", "")   
headers.Add("clientCustomerId", "XXX")
Dim AdWordsUserObj As New AdWordsUser(headers)
  
End Function
 
 
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   
   CampaignServiceObj = 
user.GetService(AdWordsService.v201306.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

   Dim SearchEngineDBObj As New SearchEngineDB(SQLConn)
Dim SearchEngineObj As SearchEngine

selector.ordering = New OrderBy() {orderByName}
TryCast(user.Config, AdWordsAppConfig).ClientCustomerId = 
""

selector.paging = New Paging()
selector.paging.startIndex = 0
selector.paging.numberResults = 500

page = CampaignServiceObj.get(selector) 'getting error for 
Authentication.
  

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.v201306.Campaign 
In page.entries

Next

Return page.entries.Length - 1
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 from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Get Display networks in KEYWORDS_PERFORMANCE_REPORT

2013-08-16 Thread Paul Matthews (AdWords API Team)
Hi Silvester,

As Oliver mentioned, the DISPLAY_KEYWORD_PERFORMANCE_REPORT is for 
retrieving display network statistics aggregated at the keyword level.

For more information, please see the report types 
documentation
.

Regards,

- Paul, AdWords API Team.

On Tuesday, 13 August 2013 07:54:45 UTC-4, silvester correya wrote:
>
> Hi ,
> Iam trying to get the display network in the KEYWORDS_PERFORMANCE_REPORT 
> but not getting in the API  CSV result. But when I use 
> CRITERIA_PERFORMANCE_REPORT Iam getting the Display network  details as 
> well.
>
> My requirement is to get the display network and the search impression 
> share along with 
> 'Criteria','Impressions','Clicks','Ctr','AverageCpc','Cost','ConversionsManyPerClick','CostPerConversionManyPerClick','AveragePosition'.
> Hope some one can help me to fix sort this issue.
>
> Thanks,
> Silvester
>
>
>

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


Re: Location Extension Company Name - is it required?

2013-08-16 Thread Paul Matthews (AdWords API Team)
Hi Dlo,

Sometimes the AdWords API and AdWords Frontend differ slightly. This is a 
normal practice for the AdWords API.

At present this field appears optional, however we'd recommend including 
one.

Regards,

- Paul, AdWords API Team.

On Tuesday, 13 August 2013 12:23:28 UTC-4, Dlo wrote:
>
> When trying to create a location extension I see that it's not a required 
> field in the API. I can successfully create one without any errors.
>  
>
> https://developers.google.com/adwords/api/docs/reference/v201306/CampaignAdExtensionService.LocationExtension
>  
>  
> However, when I go to the AdWords UI - I cannot create a location 
> extension unless I specify a Company Name.
>  
> Is this a required field? It seems there's a discrepancy between the API 
> and UI.
>  
> 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 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.


Re: Empty Performance Reports

2013-08-16 Thread Paul Matthews (AdWords API Team)
Hi Ewan,

Cheers for forwarding this to us Ewan. I completely agree that we should 
get some documentation out on this.

I'll update this post and the other one as soon as we have more information 
to share.

Regards,

- Paul, AdWords API Team.

On Thursday, 15 August 2013 09:44:35 UTC-4, Ewan Heming wrote:
>
> Hi All, 
>
>  
> I answered a 
> questionon
>  the AdWords Scripts forum where I mentioned that reports without any 
> metric fields are often empty. I've always just added the impressions 
> column when I just want the structural data, but Anash noted that this 
> isn't documented so I should ask someone here to look into it. 
>
>
>  Thanks,
>
>
>  Ewan
>

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


Re: Is there a way to update ad extensions through the API?

2013-08-16 Thread Paul Matthews (AdWords API Team)
Hi Herb,

Yes, you can update ad extensions through the API. If you're interested in 
updating upgraded ad extensions, then you'll need the Feed 
Services. 
If you're looking to update legacy ad extensions, then you'll need the 
CampaignAdExtensionService
.

Regards,

- Paul, AdWords API Team.

On Thursday, 15 August 2013 09:53:58 UTC-4, Herb Brittner wrote:
>
> Is there a way to update ad extensions through the API or can you only do 
> it through the AdWords interface?  Or if I create an upgraded sitelink 
> through the API will AdWords consider that an upgrade and only use the 
> newly created extension?
>

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


Re: How to migrate from ConversionOptimizerAdGroupBids with v201306

2013-08-16 Thread Paul Matthews (AdWords API Team)
Hi there,

The ConversionOptimizer configuration is now part of the 
BiddingStrategyConfiguration.BiddingScheme.
 
Which can be found at:
AdGroup
*.*biddingStrategyConfiguration
*.*biddingScheme

You would need to select the 
ConversionOptimizerBiddingScheme,
 
with a 
bidTypeof
 
TARGET_CPA.

Regards,

- Paul, AdWords API Team.

On Monday, 12 August 2013 15:07:22 UTC-4, adwor...@johnwest.com wrote:
>
> I've been searching everywhere, but I can't find out how to migrate from 
> using ConversionOptimizerAdGroupBids to whatever a replacement is for 
> v201306.  
>  
> var bids = new ConversionOptimizerAdGroupBids();
> bids.targetCpa = new Bid();
> bids.targetCpa.amount = new Money() { microAmount = 
> GetCPA(Price), microAmountSpecified = true };
> adGroup.bids = bids;
>  
> This is the code I was using (GetCPA was a method I used to determine what 
> I wanted the cpa to be for each product).  I have no idea how to replace 
> this, and can't find anything about this in the migration docs or in the 
> example code.
>  
> Any ideas?  Thx.
>

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