Is there any relationship between Position preference (on UI) of Campaign and the ManualCPCAdGroupCriterionBids' PositionPreferenceBids?

2010-05-03 Thread PPL
Hello,
Is there any relationship between Position preference (on UI) of
Campaign and the ManualCPCAdGroupCriterionBids'
PositionPreferenceBids?
If so, could anyone explain me about the relationship between these
two?
And what is the field name of Position Preference (on UI) of Campaign
in API ?
And one last question, when shall we set the value of
ManualCPCAdGroupCriterionBids' PositionPreferenceBids and how to set
that value from UI so that I can get clear understanding about it?

Thanks and best regards,
PPL

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


TargetingIdeaService Keywordsvariations for several keywords

2010-05-03 Thread Phenix
Hello,

I'm new on Google Adwords API and i would like to get the targeted
monthly searches for keywords. I've managed to get this statistic with
this code (PHP with client library) :

 (...)
 $targetingIdeaService = $user-GetTargetingIdeaService('v200909');

  // Create seed keyword.
  $keyword = new Keyword();
  $keyword-text = 'sample phrase';
  $keyword-matchType = 'EXACT';

  $keyword_array = array($keyword);

  $relatedToKeywordSearchParameter = new
RelatedToKeywordSearchParameter($keyword_array);

  $countryTargetSearchParameter = new CountryTargetSearchParameter();
  $countryTargetSearchParameter-countryTargets = array(new
CountryTarget(FR));

  $languageTargetSearchParameter = new
LanguageTargetSearchParameter();
  $languageTargetSearchParameter-languageTargets = array(new
LanguageTarget(fr));

  $targetingIdeaSelector = new TargetingIdeaSelector();
  $targetingIdeaSelector-searchParameters = array(
$relatedToKeywordSearchParameter,
$countryTargetSearchParameter,
$languageTargetSearchParameter
);

  $targetingIdeaSelector-ideaType = 'KEYWORD';
  $targetingIdeaSelector-requestType = 'STATS';
  $targetingIdeaSelector-requestedAttributeTypes =
array('KEYWORD','AVERAGE_TARGETED_MONTHLY_SEARCHES','TARGETED_MONTHLY_SEARCHES');
  $targetingIdeaSelector-paging = new Paging(0,800);

  $keywordPage = $targetingIdeaService-get($targetingIdeaSelector);

I would like to get the same data for a group of keywords (keyword1,
keyword2, ...) in one api call. First of all, is it possible? I saw
some doc on bulks but i think this is to manage a lot of api calls, i
don't know if it can helps me.

Thanks a lot for your help,

Best regards,

Nicolas

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


Need advice on the right way to delete Campaigns.

2010-05-03 Thread bruce
After reading through the forum, I found there is no way to delete a
campaign.  It can only be set to DELETED status, but it's a real
deletion.  It doesn't allow us to create new campaigns with same name
as deleted campaigns.  To accommodate, there are two choices to
workaround:

1. append a timestamp at end of each campaign name.  But the problem
is we will end up putting millions of deleted campaigns in the system
after a month of usage of API.  This would finally drag down the
system performance.

2. Never delete campaigns.  However, there is big performance
penalty.  Before adding each new campaign, we have to query the API,
to find out if that name is already used or not.  i.e. to add 10 new
campaigns, we have to read all 5000 campaigns from API, make a
comparison, then decide to add 3 campaigns as new, revive the other 7
campaigns from DELETED pile.

You may argue that we should keep a good record of which campaign
names are used.  Yes, I can do that.  But that will create duplicate
information about campaigns, and make the system much less reliable.
Whenever those duplicate information becomes inconsistent (I believe
experienced software people all found this happening frequently), it
will create a mess / unnecessary bugs.

Also, It seems Campaigns do not support cascade delete (to propagate
the deletion to all elements within.)  Can this be added soon?  It
would help a lot to maintain system consistency, and make programming
easier.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: 502 Bad Gateway and SSL Connection Reset by Peer

2010-05-03 Thread OneTime
I've been seeing that too. Currently, we have a campaign we can't
complete processing on. We'd be in the middle of processing ad groups
and suddenly get a failed ad group creation after successfully
creating several ad groups.  We've only had this condition occur with
the v2009 code.  We upgraded to  v2.1 and still have the condition.


PHP Warning:  SoapClient::SoapClient(): SSL: Connection reset by peer
in /opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 126
PHP Warning:  SoapClient::SoapClient(): Failed to enable crypto in /
opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 126
PHP Warning:  SoapClient::SoapClient(https://adwords.google.com/api/
adwords/cm/v200909/AdGroupService?wsdl): failed to open stream:
operation failed in /opt/ot/app/OneTime2/console/src/php/ext/
aw_api_php_lib_1.2.2/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php
on line 126
PHP Warning:  SoapClient::SoapClient(): I/O warning : failed to load
external entity https://adwords.google.com/api/adwords/cm/v200909/
AdGroupService?wsdl in /opt/ot/app/OneTime2/console/src/php/ext/
aw_api_php_lib_1.2.2/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php
on line 126
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://adwords.google.com/api/adwords/cm/v200909/AdGroupService?
wsdl' : failed to load external entity https://adwords.google.com/api/
adwords/cm/v200909/AdGroupService?wsdl
 in /opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 126
PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR:
Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/
adwords/cm/v200909/AdGroupService?wsdl' : failed to load external
entity https://adwords.google.com/api/adwords/cm/v200909/
AdGroupService?wsdl
 in /opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
Google/Api/Ads/Common/Lib/AdsSoapClient.php:126
Stack trace:
#0 /opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
Google/Api/Ads/Common/Lib/AdsSoapClient.php(126): SoapClient-
SoapClient('https://adwords...', Array)
#1 /opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(47): AdsSoapClient-
__construct('https://adwords...', Array, Object(AdWordsUser),
'AdGroupService')
#2 /opt/ot/app/OneTime2/console/src/php/ext/aw_api_php_lib_1.2.2/src/
Google/Api/Ads/AdWords/v200909/cm/AdGroupService.php(3410):
AdWordsSoapClient-__construct('https://adwords...', Array,
Object(AdWordsUser), 'AdGroupService')
#3 /opt/ot/app/On in /opt/ot/app/OneTime2/console/src/php/ext/
aw_api_php_lib_1.2.2/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php
on line 126

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


fetch Traffic Estimator average CPC, monly click volumen, cost volumen

2010-05-03 Thread WoY
Hi guys,

hope somebody could help me, im new.

I want to fetching the Google Api, the values of average value, cost
per clicks show day.

But unfortunatley im not able
But, but unfortunatel

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


Unable to install aw_api_php_lib

2010-05-03 Thread oscprofessionals
Hello,

hope somebody could help me, im new.



I got flowing error when tried to install aw_api_php_lib on my own
server.
My php version is : 5.2.5
and soap is enabled on server.

SoapFault Object ( [message:protected] = Unmarshalling Error:
UndeclaredPrefix: Cannot resolve 'ns1:CampaignSelector' as a QName:
the prefix 'ns1' is not declared.


Thanks in advanced

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


I allways obtain an error executing the GetAllCampaigns.php example

2010-05-03 Thread Luis Siquot
I have done all tutorial steps
first I have decompresed PHP client library
then I have setup auth.ini with the correct e-mail and password.  They
are the same that I use to login to adwords site
also I have setup this with some variants
  userAgent = unSrtingCualquiera
  applicationToken = reemplazarLuego
  developerToken = mym...@gmail.com++ar; I'm not shure about my
currency symbol  is it  AR or AR$
  clientId = client_1+mym...@gmail.com; I don´t know where to
create  client_1

also I have set up settings.ini with
DEFAULT_SERVER = https://adwords-sandbox.google.com;



But I allways obtain the same response ...

InvalidArgumentException Object
(
[message:protected] = The login request used a username or
password that is not recognized.
[string:private] =
[code:protected] = 0
[file:protected] =
/home/mysite/public_html/mydir/src/Google/Api/Ads/Common/Util/AuthToken.php
[line:protected] = 80
[trace:private] = Array
...continued...




then I have try with wrong data like
email = caca cacac caca cacc
password = caca caca caca

and the result is the same.

what is wrong in my auth.ini  ??

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


Google Grants account: getting API access

2010-05-03 Thread Anna PS
Hi all

How can I sign up for an API token from my Google Grants Adwords
account? I'm trying to follow the instructions here:

http://adwords.google.com/support/aw/bin/answer.py?hl=enanswer=15104

but there is no 'API Center' option under the 'My Account' tab. So I
figured that I need to create an MCC account, but if I go to the MCC
login page:

http://www.google.com/intl/en/adwords/myclientcenter/

and use our Adwords login to sign up, I'm told that 'The login is
already an AdWords account linked to an MCC'.

So I figured that we must already have an MCC account for that login -
but if I click 'Sign in' on the MCC homepage, then I get redirected to
our existing Adwords dashboard - and as before, there is no 'API
Center' option.

I'm really baffled. What should I do? Why is there no 'API Center'
option, if the login is already linked to an MCC?

Thanks
Anna

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


follow-up question on retrieving maxCPC data

2010-05-03 Thread Deeter
I would like to see if there's a follow-up on this comment from
January:

The v200909 TargetingIdeaService encapsulates the functionalty of
the
v13 KeywordToolService and SiteSuggestionService.  However, this
service doesn't provide estimated data, including CPC, position, etc.
A separate service will exist for that information, similar to the
v13
TrafficEstimatorService, but it isn't yet available.
Best,
- Eric Koleda, AdWords API Team

I hired a programmer to create a tool that retrieves the maxCPC from
the AdWords API for any keyword input but the numbers being returned
do not match (at all) what the keyword tool says.

I want to be sure I have told my programmer correctly. I am guessing
my way through the API thing and want to be sure this is possible. Is
maxCPC still available with the new v2009? Is there a better API call
for getting CPC estimates (or max CPC) per keyword?

thx!
Tom

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: = Could not connect to host

2010-05-03 Thread gonmede
Thanks Joshua for your help. I think you are headed on the right
direction.

The application is hosted on a dedicated server, and that's why I
supposed anything had changed, but a couple of minutes ago I found out
that if I run the script from my local computer (connecting to my
servers mysql server in order to have the information updated on
production) everything works fine, so I think the problem has to be on
my server (or its network).

I'll contact the administrators and post if I find the solution to
this problem in case it is useful for someone in the future.

GM

On 3 mayo, 14:53, Joshua J. Kugler jos...@eeinternet.com wrote:
 On Monday 03 May 2010, gonmede elucidated thus:



  Dear all,
  I have a script running on my server enveryday (a cronjob). This
  script updates the information from adwords to my server and my
  clientes have access to some statistics.

  Until April 30th the script worked fine, but since May 1st I haven't
  been able to execute the script. I usually takes about 6 or 7 minutes
  to complete the execution, but now I keep getting this error:

  SoapFault Object
  (
      [message:protected] = Could not connect to host
      [string:private] =
      [code:protected] = 0
      [file:protected] = (path to apility v200')/src/Google/Api/Ads/
  Common/Lib/AdsSoapClient.php
      [line:protected] = 159
      [trace:private] = Array (.)
      [faultstring] = Could not connect to host
      [faultcode] = HTTP
  )

 Did anything change in your local network settings?  Did you network
 admins change any of the firewall settings?  Any new outoing
 restrictions?  If it connects sometimes, and not others, it sounds like
 a local network problem.  Of course, if other people start complaining
 about the same thing, then I suppose I'm way off base. :)

 j

 --
 Joshua Kugler
 Part-Time System Admin/Programmerhttp://www.eeinternet.com
 PGP Key:http://pgp.mit.edu/ ID 0x73B13B6A

 --
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 Also find us on our blog and discussion 
 group:http://adwordsapi.blogspot.comhttp://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 
 athttp://groups.google.com/group/adwords-api?hl=en

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


Resurrect Deleted Campaign

2010-05-03 Thread Pete Lavetsky (AdWords API Guru)
Is it possible to operate on a Campaign once a Operator.SET mutation
involving setStatus of CampaignStatus.DELETED has occurred?

Specifically, is there any way to update that campaign to
CampaignStatus.ACTIVE ?

If not, if we wanted to recreate the campaign with the same name, is
it advised that we rename the old campaign and then create the new
campaign with the same name?  Or is there a better way to do all this?

Thanks
Pete

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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: getallcampaigns error

2010-05-03 Thread AdWords API Advisor
Hi,

Error code 213 is returned when a call is made to one of the v13
services that was sunset on April 22, 2010.  To continue to use this
functionality you must migrate your application to the equivalent
services in the v200909 version of the API.  More information about
the sunset and migration is available here:

  http://adwordsapi.blogspot.com/2010/04/most-v13-services-turned-off-today.html

Best,
- Eric Koleda, AdWords API Team

On Apr 30, 7:14 am, ramonpoli ramon.polid...@googlemail.com wrote:
 Hello, I'm getting a new error when calling the function
 getAllCampaigns in APIlity library, this is the error

 Ouch! I am not proud to announce the following AdWords API Exception:
   Message: You are accessing an AdWords API service that has been
 discontinued. Calls to this service may fail. Please visit the AdWords
 API blog for information on migration to new v2009 AdWords API.
   Trigger: N/A
   Code: 213
   Fault Origin: /tool/getdata.php:getAllCampaigns()
   SOAP Parameters:
       getAllAdWordsCampaignsdummy0/dummy
       /getAllAdWordsCampaigns

 I'm new using the APIlity library and a bit lost, could someone help
 me please?

 --
 =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 Also find us on our blog and discussion 
 group:http://adwordsapi.blogspot.comhttp://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 
 athttp://groups.google.com/group/adwords-api?hl=en

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