Re: TargetingIdeaService AuthenticationError.CUSTOMER_NOT_FOUND @; trigger: 'null'

2012-12-07 Thread Mihail
Sorry. I made a mistake when he took SOAP request from the log. Here is 
SOAP request for TargetingIdeaService.

?xml version=1.0 encoding=utf-8?
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  soap:Header
RequestHeader xmlns=https://adwords.google.com/api/adwords/o/v201209;
  authToken 
xmlns=https://adwords.google.com/api/adwords/cm/v201209;**/authToken
  developerToken 
xmlns=https://adwords.google.com/api/adwords/cm/v201209;**/developerToken
  clientCustomerId 
xmlns=https://adwords.google.com/api/adwords/cm/v201209;237-455-5687/clientCustomerId
  userAgent 
xmlns=https://adwords.google.com/api/adwords/cm/v201209;mycompany 
(AwApi-DotNet/15.1.0, Common-Dotnet/1.4.0, .NET CLR/4.0.30319.296, 
gzip)/userAgent
/RequestHeader
  /soap:Header
  soap:Body
get xmlns=https://adwords.google.com/api/adwords/o/v201209;
  selector
searchParameters xsi:type=RelatedToQuerySearchParameter
  queriesmy txt/queries
/searchParameters
ideaTypeKEYWORD/ideaType
requestTypeIDEAS/requestType
requestedAttributeTypesCRITERION/requestedAttributeTypes

requestedAttributeTypesTARGETED_MONTHLY_SEARCHES/requestedAttributeTypes
requestedAttributeTypesCOMPETITION/requestedAttributeTypes

requestedAttributeTypesEXTRACTED_FROM_WEBPAGE/requestedAttributeTypes
requestedAttributeTypesIDEA_TYPE/requestedAttributeTypes
requestedAttributeTypesNGRAM_GROUP/requestedAttributeTypes

requestedAttributeTypesTARGETED_MONTHLY_SEARCHES/requestedAttributeTypes
paging
  startIndex 
xmlns=https://adwords.google.com/api/adwords/cm/v201209;0/startIndex
  numberResults 
xmlns=https://adwords.google.com/api/adwords/cm/v201209;100/numberResults
/paging
  /selector
/get
  /soap:Body
/soap:Envelope

пятница, 7 декабря 2012 г., 12:11:36 UTC+5 пользователь Takeshi Hagikura 
написал:

 Hi Mihail,

 Is your soap request for TargetingIdeaService?
 Looks like it's for CampaignService.

 If you are still seeing the issue, can you please send the 
 clientCustomerId and the soap xml again to ONLY me?
 You can send it from the top right corner of each message.

 Best,
 - Takeshi

 On Thursday, December 6, 2012 6:36:37 PM UTC+9, Mihail wrote:

 My SOAP request

 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=
 http://www.w3.org/2001/XMLSchema;

   soap:Header
 RequestHeader xmlns=
 https://adwords.google.com/api/adwords/cm/v201209;
   authToken xmlns=https://adwords.google.com/api/adwords/cm/v201209
 **/authToken
   developerToken xmlns=
 https://adwords.google.com/api/adwords/cm/v201209
 **/developerToken
   clientCustomerId xmlns=
 https://adwords.google.com/api/adwords/cm/v201209
 XXX-XXX-/clientCustomerId
   userAgent 
 xmlns=https://adwords.google.com/api/adwords/cm/v201209;mycompany 
 (AwApi-DotNet/15.1.0, Common-Dotnet/1.4.0, .NET CLR/4.0.30319.296, 
 gzip)/userAgent
 /RequestHeader
   /soap:Header
   soap:Body
 get xmlns=https://adwords.google.com/api/adwords/cm/v201209;
   serviceSelector
 fieldsId/fields
 fieldsName/fields
 fieldsStatus/fields
 fieldsStartDate/fields
 fieldsEndDate/fields
 fieldsAmount/fields
 fieldsServingStatus/fields
 fieldsBiddingStrategy/fields
 fieldsImpressions/fields
 fieldsAverageCpc/fields
   /serviceSelector
 /get
   /soap:Body
 /soap:Envelope

 четверг, 6 декабря 2012 г., 14:26:53 UTC+5 пользователь Mihail написал:

 I checked the availability and value clientCustomerId first. With the 
 same request header values ​​CampaignService and others works right.

 четверг, 6 декабря 2012 г., 13:31:11 UTC+5 пользователь Takeshi Hagikura 
 написал:

 Hello Mihail,

 Please make sure your clientCustomerId you are specifying in your 
 request is correct.

 Best,
 - Takeshi, AdWords API Team

 2012年12月4日火曜日 5時44分35秒 UTC-8 Mihail:

 Hello!
 I have a problem with TargetingIdeaService. Working with the 
 Campaigns, AdGroups, AdGroupAds etc. succeeds, but when I try 
 TargetingIdeaService an error occurs: 
 AuthenticationError.CUSTOMER_NOT_FOUND @; trigger: 'null'.

 In what could be the problem?



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

Re: URGENT: What should I enter to clientId?

2012-12-07 Thread Coder
hi Hakin, How did you solve it?  I'm also getting same error?

On Tuesday, March 13, 2012 1:43:26 AM UTC+5, hakin wrote:

 Wow it worked now. Thanks

 On Monday, March 12, 2012 5:28:13 PM UTC+2, hakin wrote:

 Hi Eric. Thanks for the reply.

 Do you mean  https://adwords-sandbox.google.com ?
 I am using WAMP and I tried to access above url using Chrome. it 
 redirects me to www.google.com. 


 BTW I tried it again with my MCC account and here is the error I got.

  Fatal error: Uncaught SoapFault exception: [soap:Server] 
 InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
 com.google.ads.api.services.common.error.InternalApiError.(InternalApiErro 
 in C:\wamp\www\google\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php:201 
 Stack trace: #0 
 C:\wamp\www\google\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php(201): 
 SoapClient-__soapCall('get', Array, NULL, Array, Array) #1 
 C:\wamp\www\google\src\Google\Api\Ads\AdWords\v201109\ServicedAccountService.php(1874):
  
 AdsSoapClient-__soapCall('get', Array) #2 
 C:\wamp\www\google\examples\v201109\AccountManagement\test.php(29): 
 ServicedAccountService-get(Object(ServicedAccountSelector)) #3 {main} 
 thrown in 
 C:\wamp\www\google\src\Google\Api\Ads\Common\Lib\AdsSoapClient.php on line 
 *201* 


 I am testing Ewan Heming's code...

 On Monday, March 12, 2012 5:01:29 PM UTC+2, Eric Koleda wrote:

 Hi,

 Can you ensure that the URL is accessible from your server?  Perhaps 
 there is a firewall in your network preventing the traffic.

 Best,
 - Eric

 On Tuesday, March 6, 2012 3:44:09 PM UTC-5, hakin wrote:

 That's not the problem :( I am still getting the same error. Here is 
 the code.

 ?php
  
 error_reporting(E_STRICT | E_ALL);

 // Add the library to the include path. This is not neccessary if 
 you've already
 // done so in your php.ini file.
 $path = dirname(__FILE__) . '/../../../src';
 set_include_path(get_include_path() . PATH_SEPARATOR . $path);

 require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; 


 $username = ***@gmail.com;
 $password = ***;
 $currencyCode = TRY;
 $developerToken = $username++$currencyCode;
  
 $user = new AdWordsUser(null, $username, $password, $developerToken);
 $user-SetDefaultServer(https://adwords-sandbox.google.com;);
 $user-LogAll();
 $user-SetClientId(null);
  
 try {
 $campaignService = $user-GetService(CampaignService, 'v201109');
 $page = $campaignService-get(new Selector());
 } catch (Exception $e) {}
  
 $accountService = $user-GetService(ServicedAccountService, 
 'v201109');
 $selector = new ServicedAccountSelector();
 $page = $accountService-get($selector);
  
 foreach ($page-accounts as $account) {
 print Customer ID: {$account-customerId}\n;
 }
  
 $accountService = $user-GetService(ServicedAccountService, 
 'v201109');
 $selector = new ServicedAccountSelector();
 $page = $accountService-get($selector);
  
 $customerId = $page-accounts[0]-customerId;
 $user-SetClientId($customerId);
  
 $campaignService = $user-GetService(CampaignService, 'v201109');
  
 $campaign = new Campaign();
 $campaign-name = Test Sandbox Account;
 $campaign-status = ACTIVE;
 $campaign-biddingStrategy = new ManualCPC();
  
 $budget = new Budget();
 $budget-period = 'DAILY';
 $budget-amount = new Money((float) 1000);
 $budget-deliveryMethod = 'STANDARD';
 $campaign-budget = $budget;
  
 $networkSetting = new NetworkSetting();
 $networkSetting-targetGoogleSearch = TRUE;
 $campaign-networkSetting = $networkSetting;
  
 $operation = new CampaignOperation();
 $operation-operand = $campaign;
 $operation-operator = 'ADD';
  
 $operations = array($operation);
 $result = $campaignService-mutate($operations);
  
 print_r($result);
 ?

 On Tuesday, March 6, 2012 5:34:13 AM UTC+2, Ewan Heming wrote:

 You've got the AdWords API server set as 
 http://adwords-sandbox.google.com/http://adwords-sandbox.google.com//api/adwords/mcm/v201109/ServicedAccountService?wsdl,
  
 but it should use https; try changing it to 
 https://adwords-sandbox.google.com/http://adwords-sandbox.google.com//api/adwords/mcm/v201109/ServicedAccountService?wsdl
  and 
 see if that works



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





Identifying Accounts using MDS/MDO Budgets via AdWords API

2012-12-07 Thread Richard Hassall
Does anyone know a way to Identify Accounts using the AdWords API, that are 
using MDS/MDO Budgets.

We have an MDO set up which some of our accounts use but we also have 
accounts that use credit card and bank payments and we want to be able to 
distinguish them via the API?

Thanks i advance for any help.

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





How to Delete a campaign?

2012-12-07 Thread Kapil
Hey, 

I have already seen similar questions and as far as I know we cannot delete 
a campaign using adwords api. We can only set its status to DELETE.

1. I created a campaign using adwords api and now i want to delete it. So, 
I deleted the campaign manually from my adwords account. But, when I run 
GetAllCampaigns.java it is still showing those campaigns. 

I want to  know how can I completely remove its object so that I can 
recreate a campaign with the same name.


2. Also, I created a campaign manually using my adwords account and then I 
was able to delete it successfully(of course manually). So, I guess there 
is something we need to do in adwords api.

Can anyone please help me with this problem?

Thanks,

Kapil

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





SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201109/CampaignService?wsdl' : failed to load external entity https://adwords.google.com/api/adwords/cm/v20110

2012-12-07 Thread Coder
hello guys.. I'm able to login but when I try to create or get campaigns... 
following error occurs
SOAP-ERROR: Parsing WSDL: Couldn't load from 
'https://adwords.google.com/api/adwords/cm/v201109/CampaignService?wsdl' : 
failed to load external entity 
https://adwords.google.com/api/adwords/cm/v201109/CampaignService?wsdl; 
can someone help me with this. I've checked phpinfo() soap is enabled for 
server and client both.

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





urlFetchApp.Fetch only returns response code 200

2012-12-07 Thread Robert
Hello

If anyone can assist me with this I would be forever grateful!  I am using 
the Adwords scripts and they made the urlFetch Class available in Adwords 
scripts, but it is a very limited version of it.

I am using urlFetchApp.Fetch() and the urls that I am hunting for are 302 
redirects.  (Hence keyword destination urls that are active anymore.) Well 
the fetch only returns 200 response codes, even if there is a 302 redirect.

There is a parameter in the urlFetch class (DoNotFollowRedirects), but it 
dosen't seem like it is available in urlFetchAPP within Adwords Scripts.

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





urlFetchApp 302 Response Code Questions

2012-12-07 Thread Robert
Is there anyone that can help with urlFetchApp and response code?

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





Re: TargetingIdeaService AuthenticationError.CUSTOMER_NOT_FOUND @; trigger: 'null'

2012-12-07 Thread Takeshi Hagikura
Thanks Mihail for sending me the right xml.

Is 237-455-5687 your correct clientCustomerId, I checked in my side. 
But no customer was found for 237-455-5687. 

Can you please check again if it's correct and linked to the MCC that has 
your developer token?

Best,
- Takeshi

On Friday, December 7, 2012 6:13:11 PM UTC+9, Mihail wrote:

 Sorry. I made a mistake when he took SOAP request from the log. Here is 
 SOAP request for TargetingIdeaService.

 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=
 http://www.w3.org/2001/XMLSchema;
   soap:Header
 RequestHeader xmlns=https://adwords.google.com/api/adwords/o/v201209
 
   authToken xmlns=https://adwords.google.com/api/adwords/cm/v201209
 **/authToken
   developerToken xmlns=
 https://adwords.google.com/api/adwords/cm/v201209;**/developerToken
   clientCustomerId xmlns=
 https://adwords.google.com/api/adwords/cm/v201209
 237-455-5687/clientCustomerId
   userAgent 
 xmlns=https://adwords.google.com/api/adwords/cm/v201209;mycompany 
 (AwApi-DotNet/15.1.0, Common-Dotnet/1.4.0, .NET CLR/4.0.30319.296, 
 gzip)/userAgent
 /RequestHeader
   /soap:Header
   soap:Body
 get xmlns=https://adwords.google.com/api/adwords/o/v201209;
   selector
 searchParameters xsi:type=RelatedToQuerySearchParameter
   queriesmy txt/queries
 /searchParameters
 ideaTypeKEYWORD/ideaType
 requestTypeIDEAS/requestType
 requestedAttributeTypesCRITERION/requestedAttributeTypes
 
 requestedAttributeTypesTARGETED_MONTHLY_SEARCHES/requestedAttributeTypes
 requestedAttributeTypesCOMPETITION/requestedAttributeTypes
 
 requestedAttributeTypesEXTRACTED_FROM_WEBPAGE/requestedAttributeTypes
 requestedAttributeTypesIDEA_TYPE/requestedAttributeTypes
 requestedAttributeTypesNGRAM_GROUP/requestedAttributeTypes
 
 requestedAttributeTypesTARGETED_MONTHLY_SEARCHES/requestedAttributeTypes
 paging
   startIndex xmlns=
 https://adwords.google.com/api/adwords/cm/v201209;0/startIndex
   numberResults xmlns=
 https://adwords.google.com/api/adwords/cm/v201209;100/numberResults
 /paging
   /selector
 /get
   /soap:Body
 /soap:Envelope

 пятница, 7 декабря 2012 г., 12:11:36 UTC+5 пользователь Takeshi Hagikura 
 написал:

 Hi Mihail,

 Is your soap request for TargetingIdeaService?
 Looks like it's for CampaignService.

 If you are still seeing the issue, can you please send the 
 clientCustomerId and the soap xml again to ONLY me?
 You can send it from the top right corner of each message.

 Best,
 - Takeshi

 On Thursday, December 6, 2012 6:36:37 PM UTC+9, Mihail wrote:

 My SOAP request

 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=
 http://www.w3.org/2001/XMLSchema;

   soap:Header
 RequestHeader xmlns=
 https://adwords.google.com/api/adwords/cm/v201209;
   authToken xmlns=
 https://adwords.google.com/api/adwords/cm/v201209;**/authToken
   developerToken xmlns=
 https://adwords.google.com/api/adwords/cm/v201209
 **/developerToken
   clientCustomerId xmlns=
 https://adwords.google.com/api/adwords/cm/v201209
 XXX-XXX-/clientCustomerId
   userAgent xmlns=
 https://adwords.google.com/api/adwords/cm/v201209;mycompany 
 (AwApi-DotNet/15.1.0, Common-Dotnet/1.4.0, .NET CLR/4.0.30319.296, 
 gzip)/userAgent
 /RequestHeader
   /soap:Header
   soap:Body
 get xmlns=https://adwords.google.com/api/adwords/cm/v201209;
   serviceSelector
 fieldsId/fields
 fieldsName/fields
 fieldsStatus/fields
 fieldsStartDate/fields
 fieldsEndDate/fields
 fieldsAmount/fields
 fieldsServingStatus/fields
 fieldsBiddingStrategy/fields
 fieldsImpressions/fields
 fieldsAverageCpc/fields
   /serviceSelector
 /get
   /soap:Body
 /soap:Envelope

 четверг, 6 декабря 2012 г., 14:26:53 UTC+5 пользователь Mihail написал:

 I checked the availability and value clientCustomerId first. With the 
 same request header values ​​CampaignService and others works right.

 четверг, 6 декабря 2012 г., 13:31:11 UTC+5 пользователь Takeshi 
 Hagikura написал:

 Hello Mihail,

 Please make sure your clientCustomerId you are specifying in your 
 request is correct.

 Best,
 - Takeshi, AdWords API Team

 2012年12月4日火曜日 5時44分35秒 UTC-8 Mihail:

 Hello!
 I have a problem with TargetingIdeaService. Working with the 
 Campaigns, AdGroups, AdGroupAds etc. succeeds, but when I try 
 TargetingIdeaService an error occurs: 
 AuthenticationError.CUSTOMER_NOT_FOUND @; trigger: 'null'.

 In what could be the problem?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:

Re: How to Delete a campaign?

2012-12-07 Thread Oliver
When you delete a campaign though the adwords web interface, all you're 
doing is setting its status to DELETED behind the scenes.

There is no such a thing as deleting campaigns (or indeed any other adwords 
entity).

Deleting anything is done by setting its status to DELETED.

Oliver



On Friday, December 7, 2012 5:55:09 AM UTC, Kapil wrote:

 Hey, 

 I have already seen similar questions and as far as I know we cannot 
 delete a campaign using adwords api. We can only set its status to DELETE.

 1. I created a campaign using adwords api and now i want to delete it. So, 
 I deleted the campaign manually from my adwords account. But, when I run 
 GetAllCampaigns.java it is still showing those campaigns. 

 I want to  know how can I completely remove its object so that I can 
 recreate a campaign with the same name.


 2. Also, I created a campaign manually using my adwords account and then I 
 was able to delete it successfully(of course manually). So, I guess there 
 is something we need to do in adwords api.

 Can anyone please help me with this problem?

 Thanks,

 Kapil


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





Re: OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server session ticket A

2012-12-07 Thread Jeremy Aube
Hi Danial,

We checked the logs and it looks like no requests are being made during the 
time when the errors occur. We had a 2 hour gap this morning where no 
requests or responses were recorded, which happened at the time time as all 
the errors. The errors also seem to be coinciding with increased network 
activity on our side, so it seems very likely at this point that it's an 
issue on our side rather than with the AdWords API or the ruby client 
library.

Thanks for your help!

On Wednesday, December 5, 2012 4:16:23 AM UTC-5, AdWords API Advisor wrote:

 Hello Jeremy, 


 Can you please send me full debug output logs for such a request over 
 email (please make sure not to share it with the whole group as it may 
 contain sensitive information). 


 -Danial, AdWords API Team. 


 Original Message Follows: 
  
 From: Jeremy Aube ja...@roirevolution.com javascript: 
 Subject: Re: OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 
 errno=0 
 state=SSLv3 read server session ticket A 
 Date: Mon, 3 Dec 2012 05:05:36 -0800 (PST) 

  Hi Danial, 
  
  We installed the httpclient gem, but the SSL error still pops up now and 

  then. 
  
  
  On Monday, November 19, 2012 3:12:55 AM UTC-5, Danial Klimkin wrote: 
   
   Hello Jeremy, 
   
   
   It appears you are getting network timeouts. From the stack I can see 
 you 
   are using the Ruby library with net_http adapter. I recommend trying 
   httpclient instead. 
   
   All you need to do it to install httpclient gem like: 
 gem install httpclient 
   
   
   -Danial, AdWords API Team. 
   
   
   On Friday, November 9, 2012 5:02:22 PM UTC+4, Jeremy Aube wrote: 
   
   Last night at 4:27am ET, we had an ad-hoc campaign performance report 

   fail with the following error: 
   
   OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 
   state=SSLv3 read server session ticket A 
   from 
   
 /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799:in 


   `connect' 
   from 
   
 /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799:in 


   `block in connect' 
   from 
   
 /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:68:in 
   `timeout' 
   from 
   
 /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:in 
   `timeout' 
   from 
   
 /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799:in 


   `connect' 
   from 
   
 /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755:in 


   `do_start' 
   from 
   
 /Users/user/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744:in 


   `start' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/httpi-1.0.0/lib/httpi/adapter/net_http.rb:75:in
  


   `do_request' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/httpi-1.0.0/lib/httpi/adapter/net_http.rb:30:in
  


   `post' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/httpi-1.0.0/lib/httpi.rb:96:in
  


   `block in post' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/httpi-1.0.0/lib/httpi.rb:193:in
  


   `with_adapter' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/httpi-1.0.0/lib/httpi.rb:94:in
  


   `post' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-ads-common-0.8.0/lib/ads_common/http.rb:52:in
  


   `post_response' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-ads-common-0.8.0/lib/ads_common/auth/client_login_handler.rb:151:in
  


   `generate_token' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-ads-common-0.8.0/lib/ads_common/auth/client_login_handler.rb:119:in
  


   `create_token' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-ads-common-0.8.0/lib/ads_common/auth/base_handler.rb:50:in
  


   `get_token' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-ads-common-0.8.0/lib/ads_common/auth/client_login_handler.rb:67:in
  


   `auth_string' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-adwords-api-0.7.1/lib/adwords_api/report_header_handler.rb:53:in
  


   `headers' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-adwords-api-0.7.1/lib/adwords_api/report_utils.rb:177:in
  


   `get_report_request_headers' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-adwords-api-0.7.1/lib/adwords_api/report_utils.rb:153:in
  


   `make_adhoc_request' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-adwords-api-0.7.1/lib/adwords_api/report_utils.rb:139:in
  


   `get_report_response' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-adwords-api-0.7.1/lib/adwords_api/report_utils.rb:57:in
  


   `download_report' 
   from 
   
 /Users/user/dist/app/shared/bundle/ruby/1.9.1/gems/google-adwords-api-0.7.1/lib/adwords_api/report_utils.rb:76:in
  


   

How to... Set AdGroup bid by a percentage and with max limit?

2012-12-07 Thread Ed-
Hey,

I have been reading documentation and could not find the way to do the 
following:

To update all adgroups' bids within a campaign, by a given percentage, not 
more than a given maximum and provided those adgroups meet a set of 
conditions. The set of conditions is not the problem, but how can I update 
bids by a percentage, not going above a top limit, without 2 api requests? 
(one to retrieve current bid and another to set a new value).

If there is no way to achieve this currently, can we have this as a feature 
request?

Thank you,

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