AdWords API Change Log

2010-02-24 Thread RockyRaccoon
When I was in SF in early January I heard word of a "Change log"
feature which we could request and would give us a list of campaigns,
adgroups, keywords, ad creatives, etc. etc. that had been mutated/
inserted/deleted. Is this still on deck and for when?

-Taylor

-- 
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-...@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.



AdWords API Re: local campain

2010-02-24 Thread Tang
Thanks for your answer.

How can i define the GeoPoint ?

can you tell me why this code is not working ?

$geoTargetProx = new ProximityTarget();
$geoTargetProx->geoPoint = array(45.5987,4.5123);
$geoTargetProx->radiusDistanceUnits = 'KILOMETERS';
$geoTargetProx->radiusInUnits = '150';

thanks a lot

On 29 jan, 15:53, AdWords API Advisor 
wrote:
> Hi Tang,
>
> You'll want to use the CampaignTargetService to add a ProximityTarget:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg...
>  http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg...
>
> To get theGeoPoint(latitude and longitude) you can use the
> GeoLocationService:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/GeoLocationS...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Jan 28, 11:52 am, Tang  wrote:
>
> > Hi,
>
> > i succeed in creating a local campain, but i don't know how i can
> > define the target zone of the campain.
>
> > For example if i wan my campain to be displayed only at 20 km around
> > Paris town ?
>
> > thanks for your help
>
> > Tang

-- 
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-...@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: AdWords API Re: passing an array of keywords

2010-02-24 Thread Julian Harris
Hi Ajit, I think its a Ruby thing rather than an API thing. You're

   1. making base_kwd an empty array, then you're
   2. reassigning it to a new instance of Keyword. Then you
   3. assign a new array containing only the last base_kwd (of type Keyword)
   to related_search.keywords.

I think you need an array and the Keyword var. I'm no Ruby expert but try
something like this:

keyword_list = []
related_search = @ti_srv.module::RelatedToKeywordSearchParameter.new

options[:keywords].each do |k|
  base_kwd = @ti_srv.module::Keyword.new
  base_kwd.text = k
  base_kwd.matchType = 'BROAD'
  keyword_list << base_kwd
end

related_search.keywords = keyword_list

best of luck,
Julian

On Tue, Feb 23, 2010 at 7:47 PM, Ajit  wrote:

> Hi Eric
>
>related_search =
> @ti_srv.module::RelatedToKeywordSearchParameter.new
>
> base_kwd = []
>options[:keywords].each do |k|
> base_kwd = @ti_srv.module::Keyword.new
> base_kwd.text = k
>base_kwd.matchType = 'BROAD'
>end
>
>
>related_search.keywords = [base_kwd]
>
> as you suggested.. I am trying to create an arrary of keywords and
> pass to relatedToKeywordSearchParameter.. but seems like its not
> working
>
> whats wrong with above code?
>
> THanks
> Ajit
>
>
>
> On Feb 4, 10:26 am, AdWords API Advisor 
> wrote:
> > HiAjit,
> >
> > The Keyword.text field can only accept one value.  Instead what you
> > should do is create multiple Keyword objects and pass them into the
> > field RelatedToKeywordSearchParameter.keywords as an array.
> >
> > Best,
> > - Eric Koleda, AdWords API Team
> >
> > On Feb 3, 12:59 pm,Ajit wrote:
> >
> > > Hello All
> >
> > > related_search =
> > > ti_srv.module::RelatedToKeywordSearchParameter.new
> > > base_kwd = ti_srv.module::Keyword.new
> > > base_kwd.text = ['google', 'yahoo']
> > > base_kwd.matchType = 'EXACT'
> > > related_search.keywords = [base_kwd]
> >
> > > is it possible to pass an array of keywords in base_kwd.text?
> >
> > > thanks in advance
> >
> > >Ajit
>
> --
> 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-...@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 post to this group, send email to adwords-...@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.



AdWords API Re: local campain

2010-02-24 Thread Tang
I also tried this :

$geoTargetProx = new ProximityTarget();

$legeopoint= new GeoPoint();
$legeopoint->latitudeInMicroDegrees=100;
$legeopoint->longitudeInMicroDegrees=100;

$geoTargetProx->geoPoint = $legeopoint;
$geoTargetProx->radiusDistanceUnits = 'KILOMETERS';
$geoTargetProx->radiusInUnits = '150';

but it's not working :(

i really need help

thanks

On 29 jan, 15:53, AdWords API Advisor 
wrote:
> HiTang,
>
> You'll want to use the CampaignTargetService to add a ProximityTarget:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg...
>  http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg...
>
> To get the GeoPoint (latitude and longitude) you can use the
> GeoLocationService:
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/GeoLocationS...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Jan 28, 11:52 am,Tang wrote:
>
> > Hi,
>
> > i succeed in creating a local campain, but i don't know how i can
> > define the target zone of the campain.
>
> > For example if i wan my campain to be displayed only at 20 km around
> > Paris town ?
>
> > thanks for your help
>
> >Tang

-- 
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-...@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.



AdWords API Re: Duplicate Keywords/MatchTypes?

2010-02-24 Thread AdWords API Advisor
Hi Dian,

I understand that this functionality is confusing, and I'll do my best
to clear it up.

1) The TargetingIdeaService uses a complicated backend to determine
relevant keywords, and I don't have the full information about how it
works.  I'm not sure how much weight, if any, is put into the match
type of the source keyword.  To be clear though, this match type may
influence the results generated by the TIS, but it doesn't guarantee
that all the results are of that match type.

2) Keywords can come in any of the three match types, and they all may
be related to the source keyword.  This is why you can get an EXACT
keyword idea as a results for a BROAD source keyword.

Best,
- Eric

On Feb 22, 9:00 am, "web.dev"  wrote:
> Hi Eric,
>
> I have two main questions based on your post:
>
> > The match type specified in the RelatedToKeywordsSearchParameter only
> > influences the way thatkeywordsideas are generated,
>
> 1) What do you mean? Say I have the type set to BROAD - only keywords
> with BROAD relation to the searched keyword are returned?
>
> >but it doesn't
> > restrict the match type of the returned ideas.  If you only want to
> > have certain match types returned you must use the
> > KeywordMatchTypeSearchParameter as well:
>
> 2) Why infact - how are the results to be returned determined? As
> described in 1) I have only searched for BROAD related keywords. What
> does it mean now if a generated keyword has the type EXACT? Is the
> relation BROAD or EXACT?
>
> Example:
> Selector: cat RelatedToKeywordsSearchParameter type = BROAD
> Result: cat something KeywordMatchType = EXACT or BROAD or PHRASE
>
> So what is the difference in the realtion when asking:
> Selector: cat RelatedToKeywordsSearchParameter type = BROAD
>               cat KeywordMatchTypeSearchParameter type = EXACT
> Result: cat something KeywordMatchType = EXACT
>
> I would be happy to get some infos on this topic.
>
> Thanks in advance,
> Dian
>
> P.S. I got in this issue by checking why do I get duplicate results on
> keyword generation [http://groups.google.de/group/adwords-api/
> browse_thread/thread/
> dfb3c8928390c553/3af5711a0efe93a9#3af5711a0efe93a9]

-- 
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-...@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.



AdWords API Re: authToken missing when using perl client library

2010-02-24 Thread AdWords API Advisor
Hi Scott,

It's always best to turn on SOAP XML logging in these situations,
since it lets you see how the request is actually being sent to the
API servers.  This can be done using:

  $client->set_debug(*STDERR);

In your case it seems like the  and  elements aren't
being serialized correctly.  The selector object needs to passed in to
the method as the value of the array key "selector":

  
http://code.google.com/p/google-api-adwords-perl/source/browse/trunk/example/display_stats.pl#53

Best,
- Eric Koleda, AdWords API Team

On Feb 23, 3:40 pm, Scott Sexton  wrote:
> Ok, I'm able to get a different error now:
>
> 'faultcode' => 'soap:Client',
> 'faultstring' => 'Message part apiUsageType was not recognized.'
>
> Using this code:
>
> use Data::Dumper;
> use Google::AdWords::Client;
> use Google::AdWords::v200909::InfoService;
> use Google::AdWords::v200909::Types::InfoSelector;
> use Google::AdWords::v200909::InfoService::RequestHeader;
> use Google::AdWords::v200909::Types::ApiUsageType;
> my $client = Google::AdWords::Client->new({'path' => '/var/www/
> testing'});
> my $info_service = $client->InfoService;
> my $header = $info_service->get_client->_get_header();
> my $selector = Google::AdWords::v200909::Types::InfoSelector->new();
> $selector->set_apiUsageType('FREE_USAGE_API_UNITS_PER_MONTH');
> my $ret = $info_service->get($selector, $header);
> print STDOUT Dumper($ret);
>
> Does anybody know what syntax these perl modules are expecting? I'm
> having trouble finding any documentation or examples.

-- 
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-...@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.



AdWords API Re: v13 CriterionService -> v200909 AdGroupCriterionService.mutate

2010-02-24 Thread AdWords API Advisor
Hi John,

We don't have a central repository of sample XML requests, but our
goal is that through using the client libraries and/or referencing the
developer documentation the structure of requests should be apparent.
I'd also recommend taking a look at soapUI, a great program I use to
send raw SOAP XML requests to the API server, which is great for
debugging:

  http://www.soapui.org/

Here is a quick sample of an AGC.mutate(SET) request:

http://schemas.xmlsoap.org/soap/
envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/
v200909" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   
  
 ...
 ...
 ...
 ...
 ...
  
   
   
  
 
SET

   ...
   
  ...
   
   ...

 
 
SET

   ...
   
  ...
   
   ...

 
  
   


Best,
- Eric Koleda, AdWords API Team

On Feb 23, 11:28 am, John M Bliss  wrote:
> Similar to below, may I please have a sample request for
> AdGroupCriterionService.mutate operator=SET for multiple criterion in one
> AdGroup?
>
> (I'm expecting to see sample requests like this somewhere 
> underhttp://code.google.com/apis/adwords/v2009/docs/reference/but have been
> unable to do so.  Please let me know if they're there and I'm just missing
> them.)
>
> On Mon, Feb 22, 2010 at 9:38 AM, AdWords API Advisor <
>
> adwordsapiadvi...@google.com> wrote:
> > ...Here is a sample request:
>
> >  > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:v20="https://adwords.google.com/api/adwords/cm/v200909
> > ">
> >   
> >      
>
> --
> John Bliss
> IT Professional
> @jbliss (t) /http://www.brandiandjohn.com

-- 
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-...@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.



AdWords API Re: How to use ProximityTargets ?

2010-02-24 Thread Tang
nobody can help me ? Please ...

On Feb 23, 7:24 pm, Guillaume  wrote:
> Hi,
>
> i actually use the Adwords API in PHP, all is working good except for
> Geotargeting.
>
> if i want to target a country i do :
>
> // Create geo targets.
> $geoTargetList = new GeoTargetList();
> $geoTargetList->campaignId = $campaignId;
> $geoTargetList->targets = array(new CountryTarget('FR'));
>
> But i don't know how to use ProximityTargets with the api ? I found
> nothing on the forum :(
>
> I just would like to target circular geographical regions using exact
> coordinates.
>
> I have to use "circle" 
> (http://code.google.com/intl/fr/apis/adwords/docs/developer/Circle.html
> ) but i don't know how.
>
> Can someone help me ?
>
> Thanks

-- 
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-...@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.



AdWords API Re: Ad Stats

2010-02-24 Thread AdWords API Advisor
Hi Mike,

In order to retrieve stats you need to add an AdStatsSelector object
in your selector, with the date range specified.  This will cause the
API server to return the Stats object with your results automatically.

  
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupAdService.AdStatsSelector.html

Best,
- Eric Koleda, AdWords API Team

On Feb 23, 12:28 pm, Mike-Indiana  wrote:
> Hi Eric,
>
> Is it possible to generate stats while looping through adGroupAd?
>
> My goal is to retrieve the title, description, landing url and display
> url while showing the CTR.
>
> My code in PHP is the following, however I'm not getting the CTR data:
>
> if (isset($result->entries)) {
>         foreach ($result->entries as $adinfo) {
>         // Get ad info
>         $headline = $adinfo->ad->headline;
>         $description1 = $adinfo->ad->description1;
>         $description2 = $adinfo->ad->description2;
>         $displayUrl = $adinfo->ad->displayUrl;
>         $destinationUrl = $adinfo->ad->url;
>         // Get stats
>         $Stats = new Stats();
>         $Stats->startDate = '20100101';
>         $Stats->endDate = '20110201';
>         $Stats->network = 'ALL';
>         $adCTR = $Stats->ctr

-- 
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-...@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.



AdWords API Re: Failed to do client auth with Gaia server exception

2010-02-24 Thread AdWords API Advisor
Hi Manish,

This could be caused by making too many requests to the ClientLogin
API, which is done every time you create a new AdWordsUser or
service.  Please ensure that you are re-using your users and services
between requests.

Best,
- Eric Koleda, AdWords API Team

On Feb 23, 1:11 pm, Manish Khettry  wrote:
> We are trying to upload a campaign to one of our existing accounts and part
> way through, an attempt to upload keywords is failing out repeatedly with
> this exception.
>
> java.io.IOException: Failed to do client auth with Gaia server.
>         at
> com.google.api.adwords.lib.AuthToken.getAuthToken(lib:AuthToken.java):63)
>         at
> com.adchemy.sem.google.gateway.GoogleCredentials.getAuthToken(GoogleCredent 
> ials.java:102)
>         at
> com.adchemy.sem.google.gateway.GoogleServices.setSoapHeaders(GoogleServices 
> .java:102)
>         at
> com.adchemy.sem.google.gateway.GoogleServices.createAdGroupCriterionService 
> (GoogleServices.java:85)
>         at
> com.adchemy.sem.google.gateway.GoogleItemGateway.getKeywordService(GoogleIt 
> emGateway.java:44)
>         at
> com.adchemy.sem.google.gateway.GoogleKeywordGateway.createCriteria(GoogleKe 
> ywordGateway.java:131)
>         at
> com.adchemy.sem.google.gateway.GoogleGateway.createCriteria(GoogleGateway.j 
> ava:142)
>
> Any ideas what this means?

-- 
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-...@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.



AdWords API Re: How to use ProximityTargets ?

2010-02-24 Thread AdWords API Advisor
Hi,

The documentation for the ProximityTarget is here:

  
http://code.google.com/intl/fr/apis/adwords/v2009/docs/reference/CampaignTargetService.ProximityTarget.html

All you need to do is create a new ProximityTarget, set the fields,
and add it to the list of targets in your GeoTargetList.  Are there
specific fields you have questions about?

Best,
- Eric Koleda, AdWords API Team


On Feb 24, 9:39 am, Tang  wrote:
> nobody can help me ? Please ...
>
> On Feb 23, 7:24 pm, Guillaume  wrote:
>
>
>
> > Hi,
>
> > i actually use the Adwords API in PHP, all is working good except for
> > Geotargeting.
>
> > if i want to target a country i do :
>
> > // Create geo targets.
> > $geoTargetList = new GeoTargetList();
> > $geoTargetList->campaignId = $campaignId;
> > $geoTargetList->targets = array(new CountryTarget('FR'));
>
> > But i don't know how to use ProximityTargets with the api ? I found
> > nothing on the forum :(
>
> > I just would like to target circular geographical regions using exact
> > coordinates.
>
> > I have to use "circle" 
> > (http://code.google.com/intl/fr/apis/adwords/docs/developer/Circle.html
> > ) but i don't know how.
>
> > Can someone help me ?
>
> > Thanks

-- 
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-...@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.



AdWords API Re: AdWordsUser Missing Constructor

2010-02-24 Thread Zweitze
In the 6.2.0 and 6.1.0 version for .NET, it is included. However, it
is not documented.

Its implementation is located in a different source file, not
adwordsuser.cs but adwordsservice.cs. You've got to love partial
classes.
The sample project also uses this constructor.

-- 
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-...@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.



AdWords API Re: How to use ProximityTargets ?

2010-02-24 Thread Tang
Thanks for your answer,

i don't see which field is wrong.

my code :

// Create proximity targets.
$geoTargetProx = new ProximityTarget();

$legeopoint= new GeoPoint();
$legeopoint->latitudeInMicroDegrees='45746250';
$legeopoint->longitudeInMicroDegrees='4866748';

$geoTargetProx->geoPoint = $legeopoint;
$geoTargetProx->radiusDistanceUnits = 'KILOMETERS';
$geoTargetProx->radiusInUnits = '150';

 // Create addresses.
$address1 = new Address();
$address1->streetAddress = '4 rue Villon';
$address1->cityName = 'Lyon';
$address1->provinceName = 'Rhones';
$address1->postalCode = '69003';
$address1->countryCode = 'FR';

$geoTargetProx->address = $address1;
$geoTargetProx->allowServiceOfAddress = true;

$proxTargetOperation = new CampaignTargetOperation();
$proxTargetOperation->operand = $geoTargetProx;
$proxTargetOperation->operator = 'SET';

$operations = array($proxTargetOperation);

// Set campaign targets.
$result = $campaignTargetService->mutate($operations);

I really don't see what is wrong.

I get this error :

Unmarshalling Error:
com.google.ads.api.services.campaignmgmt.campaigntarget.v200909.jaxbgen.ProximityTarget
cannot be cast to
com.google.ads.api.services.campaignmgmt.campaigntarget.v200909.jaxbgen.TargetList

Can you help me ?

Thanks a lot !



On Feb 24, 3:55 pm, AdWords API Advisor 
wrote:
> Hi,
>
> The documentation for the ProximityTarget is here:
>
>  http://code.google.com/intl/fr/apis/adwords/v2009/docs/reference/Camp...
>
> All you need to do is create a new ProximityTarget, set the fields,
> and add it to the list of targets in your GeoTargetList.  Are there
> specific fields you have questions about?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 24, 9:39 am, Tang  wrote:
>
> > nobody can help me ? Please ...
>
> > On Feb 23, 7:24 pm, Guillaume  wrote:
>
> > > Hi,
>
> > > i actually use the Adwords API in PHP, all is working good except for
> > > Geotargeting.
>
> > > if i want to target a country i do :
>
> > > // Create geo targets.
> > > $geoTargetList = new GeoTargetList();
> > > $geoTargetList->campaignId = $campaignId;
> > > $geoTargetList->targets = array(new CountryTarget('FR'));
>
> > > But i don't know how to use ProximityTargets with the api ? I found
> > > nothing on the forum :(
>
> > > I just would like to target circular geographical regions using exact
> > > coordinates.
>
> > > I have to use "circle" 
> > > (http://code.google.com/intl/fr/apis/adwords/docs/developer/Circle.html
> > > ) but i don't know how.
>
> > > Can someone help me ?
>
> > > Thanks
>
>

-- 
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-...@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.



AdWords API URGENT: v13/CriterionService getText() problem

2010-02-24 Thread John Bliss
This morning, code that has been working for a long time is failing:

I have a call to v13/CriterionService.getAllCriteria(AdGroupRemoteID)
but then when I call getText() on any one of the resulting criteria,
my app server is throwing this error:

"The getText method was not found.  Either there are no methods with
the specified method name and argument types, or the getText method is
overloaded with argument types that cannot be deciphered reliably.
Found 0 methods that matched the provided arguments. If this is a Java
object and you verified that the method exists, you may need to use
the javacast function to reduce ambiguity."

Note that I'm not passing any arguments into getText().

Did something change on AdWords' end?  Ideas?

-- 
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-...@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.



AdWords API Re: authToken missing when using perl client library

2010-02-24 Thread Scott Sexton
That's what I first tried, but it causes the header to not be included
in the SOAP call. Check it out:

my $client = Google::AdWords::Client->new({'path' => '/var/www/
testing'});
$client->set_debug(*STDERR);
my $info_selector = {
selector => {
apiUsageType => 'FREE_USAGE_API_UNITS_PER_MONTH',
},
};
my $ret = $client->InfoService()->get($info_selector);
print STDOUT Dumper($ret);


This looks right, looks like the example, but you get this:


Outgoing Request:
http://www.w3.org/2001/XMLSchema-
instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>https://adwords.google.com/api/
adwords/info/v200909">Perl Google::AdWords::Client 1.3.0: ./
info_test.plfalseFREE_USAGE_API_UNITS_PER_MONTH

Incoming Response:
http://schemas.xmlsoap.org/soap/
envelope/">soap:ServerauthToken is missing in SoapHeader. while
invoking public abstract
com.google.ads.api.services.info.v200909.jaxbgen.ApiUsageInfo
com.google.ads.api.services.info.v200909.jaxbgen.InfoServiceInterface.get(com.google.ads.api.services.info.v200909.jaxbgen.InfoSelector)
throws
com.google.ads.api.services.info.v200909.jaxbgen.ApiException_Exception
with params
[com.google.ads.api.services.info.v200909.jaxbgen.infoselec...@196b8].


Something is not kosher here. What's going on?



On Feb 24, 8:25 am, AdWords API Advisor 
wrote:
> Hi Scott,
>
> It's always best to turn on SOAP XML logging in these situations,
> since it lets you see how the request is actually being sent to the
> API servers.  This can be done using:
>
>   $client->set_debug(*STDERR);
>
> In your case it seems like the  and  elements aren't
> being serialized correctly.  The selector object needs to passed in to
> the method as the value of the array key "selector":
>
>  http://code.google.com/p/google-api-adwords-perl/source/browse/trunk/...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 23, 3:40 pm, Scott Sexton  wrote:
>
>
>
> > Ok, I'm able to get a different error now:
>
> > 'faultcode' => 'soap:Client',
> > 'faultstring' => 'Message part apiUsageType was not recognized.'
>
> > Using this code:
>
> > use Data::Dumper;
> > use Google::AdWords::Client;
> > use Google::AdWords::v200909::InfoService;
> > use Google::AdWords::v200909::Types::InfoSelector;
> > use Google::AdWords::v200909::InfoService::RequestHeader;
> > use Google::AdWords::v200909::Types::ApiUsageType;
> > my $client = Google::AdWords::Client->new({'path' => '/var/www/
> > testing'});
> > my $info_service = $client->InfoService;
> > my $header = $info_service->get_client->_get_header();
> > my $selector = Google::AdWords::v200909::Types::InfoSelector->new();
> > $selector->set_apiUsageType('FREE_USAGE_API_UNITS_PER_MONTH');
> > my $ret = $info_service->get($selector, $header);
> > print STDOUT Dumper($ret);
>
> > Does anybody know what syntax these perl modules are expecting? I'm
> > having trouble finding any documentation or examples.

-- 
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-...@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.



AdWords API change history

2010-02-24 Thread g...@atara.co.jp
I'd like to request to consider having API for change history. It's
useful from auditing and also to evaluate work efficiency. Thanks.

-- 
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-...@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.



AdWords API AdGroupAdService.get returns only "enabled" ads

2010-02-24 Thread Alexander Furman
I'm migrating my v13 code to v200909. For retrieving all ads from all
adGroups and all campaigns I use following code:

AdWordsUser user = new AdWordsUser();
AdGroupAdService service =
(AdGroupAdService)user.GetService(AdWordsService.v200909.AdGroupAdService);
AdGroupAdPage page = service.get(new AdGroupAdSelector());

Unfortunately it looks like I retrieve only "enabled" ads. Is there
any way to get also "paused" and "deleted" ads?

Thanks
Alexander

-- 
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-...@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.



AdWords API Re: AdWordsUser Missing Constructor

2010-02-24 Thread ralphstevens
Found it. Thanks a lot for your help!

On Feb 24, 7:16 am, Zweitze  wrote:
> In the 6.2.0 and 6.1.0 version for .NET, it is included. However, it
> is not documented.
>
> Its implementation is located in a different source file, not
> adwordsuser.cs but adwordsservice.cs. You've got to love partial
> classes.
> The sample project also uses this constructor.

-- 
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-...@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.



AdWords API Re: AdWordsUser Missing Constructor

2010-02-24 Thread Peer Jakobsen (AdWords API Guru)
In Bisual Studio you can right click the class name, and chose "Go to
definition". This will list all the files where your partial class is
defined.

-- 
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-...@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.



AdWords API Re: EntityNotFound.INVALID_ID

2010-02-24 Thread AdWords API Advisor
Hi,

It looks like the ids are somehow getting corrupted before or while
you are making the request.  Is it possible to check the ids in the
operations before you make the request and compare them to the ids in
the returned errors.

Best,
- Eric

On Feb 23, 7:05 pm, Aihua  wrote:
> We are using Python, and using the python client library for the low
> level calls. Here is some sample logic:
> ...
> server = self._connect('AdGroupCriterion')
>         operations = []
>         for criterion in criteria:
>             operations.append({
>                 'operator': 'SET',
>                 'operand':criterion.as_dict()
>             })
>
> self._adwords_call(server, 'Mutate', operations)
> which will call something similar to:
> ...
> eval('server.%s(operations)' % method)
>
> On Feb 23, 7:47 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi,
>
> > Which language are you using?  Are you using one of the client
> > libraries?  Can you post some of the code that is used to make this
> > request?
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 22, 9:04 pm, Aihua  wrote:
>
> > > Noticed that when try to pause trials or update trials through API
> > > calls in production, we got some EntityNotFound.INVALID_ID errors. But
> > > later after we re-try it again, it seems working fine. Since it's on
> > > production, we didn't store the soap xml. And it's hard to reproduce
> > > it. We are using the python client lib, any idea?
>
> > > Here is a sample trial, when we tried to pause 502404022, got Invalid
> > > id; but later when try it again, it's ok. The trial and the adgroup
> > > are on the network.
> > > 502404022: [EntityNotFound.INVALID_ID @
> > > operations[0].operand.adGroupId; trigger:'467577187']

-- 
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-...@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.



AdWords API Re: Occasional NoRouteToHostException with v200909 API.

2010-02-24 Thread AdWords API Advisor
Hi,

This error appears to be generated client side, and I don't have any
other reports of this happening with other clients yet.  Could you
follow up with your network admins perhaps to pinpoint this error?

Best,
- Eric Koleda, AdWords API Team

On Feb 23, 7:31 pm, "trafficdirec...@localmatters.com"
 wrote:
> I have been getting the exception below about 25% of the times calling
> Google v200909 AdWords API.
> There is no HTTP proxy used and network on my side seems to operate
> normally.
>
> nested exception is:
>         java.net.NoRouteToHostException: No route to host
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> Server.userException
>  faultSubcode:
>  faultString: java.net.NoRouteToHostException: No route to host
>  faultActor:
>  faultNode:
>  faultDetail:
>         {http://xml.apache.org/axis/}
> stackTrace:java.net.NoRouteToHostException: No route to host
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
> 195)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>         at java.net.Socket.connect(Socket.java:519)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:
> 550)
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.
> (SSLSocketImpl.java:353)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFac 
> toryImpl.java:
> 71)
>         at
> org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.j 
> ava:
> 92)
>         at
> org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:
> 191)
>         at
> org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:
> 404)
>         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:
> 138)
>         at
> com.google.api.adwords.lib.AdWordsHttpSender.invoke(AdWordsHttpSender.java:
> 47)
>         at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java :
> 32)
>         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>         at org.apache.axis.client.Call.invoke(Call.java:2767)
>         at org.apache.axis.client.Call.invoke(Call.java:2443)
>         at org.apache.axis.client.Call.invoke(Call.java:2366)
>         at org.apache.axis.client.Call.invoke(Call.java:1812)
>         at
> com.google.api.adwords.v200909.cm.AdGroupServiceSoapBindingStub.get(AdGroup 
> ServiceSoapBindingStub.java:
> 714)

-- 
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-...@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.



AdWords API Re: Getting SOAP error while using TargetingIdeaService (Perl) : "searchParameters" not recognized

2010-02-24 Thread AdWords API Advisor
Hi Suraiya,

It looks like you are making a successful request to the AdWords API
sandbox environment.  The alternativeUrl won't show up in the XML (the
namespaces don't change for calls to the sandbox).

Best,
- Eric

On Feb 23, 11:38 pm, Suraiya  wrote:
> Hi Eric,
> Please have a look at my previous post in addition to this one.
> Should the parameter name for the sandbox url be "alternativeUrl" in
> the adwords.properties file?
> I noticed a post on the issue 
> athttp://code.google.com/p/google-api-adwords-perl/issues/detail?id=7#c0
>
> After executing display_stats.pl, I saw the following: (as this test
> is accessing different service and the issue is with the sandbox url,
> do you want me to create a separate post?)
>
> Use of uninitialized value in hash element at /usr/local/share/perl/
> 5.8.8/Google/AdWords/Client.pm line 190,  line 5.
> Use of uninitialized value in hash element at /usr/local/share/perl/
> 5.8.8/Google/AdWords/Client.pm line 190,  line 12.
> Use of uninitialized value in hash element at /usr/local/share/perl/
> 5.8.8/Google/AdWords/Client.pm line 190,  line 15.
> Use of uninitialized value in hash element at /usr/local/share/perl/
> 5.8.8/Google/AdWords/Client.pm line 190,  line 21.
> Use of uninitialized value in hash element at /usr/local/share/perl/
> 5.8.8/Google/AdWords/Client.pm line 190,  line 24.
> Use of uninitialized value in hash element at /usr/local/share/perl/
> 5.8.8/Google/AdWords/Client.pm line 190,  line 33.
> [Tue Feb 23 19:44:29 2010] Outgoing Request:
> http://www.w3.org/2001/XMLSchema-
> instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; >
> https://adwords.google.com/api/
> adwords/cm/v200909">REDACTED
> client_1+x...@xxx....@xxx.xxx++cad developerToken>
> Perl Google::AdWords::Client 1.3.0: suraiyatest userAgent>false ENV:Header>
> https://adwords.google.com/api/adwords/cm/
> v200909">
> 2009022320100223 selector>
>
> [Tue Feb 23 19:44:30 2010] Incoming Response:
> http://schemas.xmlsoap.org/soap/
> envelope/">
> x1 operations>1911 ResponseHeader>
> https://adwords.google.com/api/adwords/
> cm/v200909">0 totalNumEntries>CampaignPage
> DAILY period>Money ComparableValue.Type>0 amount>STANDARD
> 
>
> Please note that I have alternativeUrl set 
> tohttps://adwords-sandbox.google.com
> in the adwords.properties file but it looks like this value is not
> used in the request. Did I miss something?
>
> Thank you very much.
> Suraiya

-- 
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-...@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.



AdWords API Re: Getting SOAP error while using TargetingIdeaService (Perl) : "searchParameters" not recognized

2010-02-24 Thread Suraiya
Hi Eric,
I figured out the issue with the sandbox. In your adwords.properties
or equivalent file, the field name for the sandbox should be
alternateUrl instead of alternativeUrl. It looks like the
documentation provided in the template for the adwords.properties file
is wrong.

I do not get any warning if I specify all the variables there even if
one of them is optional.
For the optional one I just had to specify blank as the value. Below
is a sample (other combinations might work as well) of what I had to
specify in the adwords.properties file to get rid of the problems and
warnings. Now my request is going to the sandbox.

email=...@gmail.com
password=
clientid=client_1+...@gmail.com
userAgent=sandboxTest
developertoken=...@gmail.com++cad
applicationToken=
alternateUrl=https://adwords-sandbox.google.com


I am going to try "TargetingIdeaService" now and I shall get back to
you if I have problem(s). :)

Thanks.
Suraiya

-- 
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-...@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.



AdWords API Re: Getting SOAP error while using TargetingIdeaService (Perl) : "searchParameters" not recognized

2010-02-24 Thread Suraiya
Hi Eric,
Thanks for your response.
Yes - location field (sandbox url appears there) is not in the soap
trace.
My supervisor helped me to be confident that the request in fact went
to sandbox after my changes in the adwords.properties file.
Once again thanks for time.
Suraiya

-- 
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-...@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.



AdWords API StatsSelector Not Filtering Results

2010-02-24 Thread VI
I am trying to get adGroup stats within a date range for a single
campaign ID. When I send the following header using the v200909 perl
api client library, I get a response with all the ad groups for all
dates and all campaigns within that client account. Any suggestions?

http://www.w3.org/2001/XMLSchema-
instance\" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/
\" >

https://adwords.google.com/api/adwords/cm/
v200909\">
XXX
XXX
XXX
XXX
Perl Google::AdWords::Client 1.3.0: 
XXX
false



https://adwords.google.com/api/adwords/cm/v200909\";>

XXX


20100223
    20100224







-- 
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-...@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.



AdWords API response from bulk mutate request

2010-02-24 Thread mike-adwo...@pubget.com
I'm looking at the response from a bulk mutate request, basically at
this point:

http://code.google.com/apis/adwords/v2009/docs/reference/BulkMutateJobService.ReturnValueResult.html

and I'm not sure how I can figure out which kind of operand is being
returned, since it can be any one of Ad, AdGroupCriterion, etc...

It seems like in most similar scenarios there is an accompanying field
"opperand_type", but it is absent in the ReturnValueResult.

Any advice? Thanks.

-- 
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-...@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.



AdWords API Re: authToken missing when using perl client library

2010-02-24 Thread AdWords API Advisor
Hi Scott,

It looks like the SOAP header is only being partially populated, and
that the credentials aren't being set.  Have you changed how you load
your credentials?  Are you using a properties files?  What is the
'path' variable you are passing in to the constructor?

Best,
- Eric

On Feb 24, 11:16 am, Scott Sexton  wrote:
> That's what I first tried, but it causes the header to not be included
> in the SOAP call. Check it out:
>
> my $client = Google::AdWords::Client->new({'path' => '/var/www/
> testing'});
> $client->set_debug(*STDERR);
> my $info_selector = {
>         selector => {
>                 apiUsageType => 'FREE_USAGE_API_UNITS_PER_MONTH',
>         },};
>
> my $ret = $client->InfoService()->get($info_selector);
> print STDOUT Dumper($ret);
>
> This looks right, looks like the example, but you get this:
>
> Outgoing Request:
> http://www.w3.org/2001/XMLSchema-
> instance" 
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>  xmlns="https://adwords.google.com/api/
>
> adwords/info/v200909">Perl Google::AdWords::Client 1.3.0: ./
> info_test.plfalse RequestHeader>FREE_USAGE_API_UNITS_PER_MONTH apiUsageType>
>
> Incoming Response:
> http://schemas.xmlsoap.org/soap/
> envelope/">soap:Server faultcode>authToken is missing in SoapHeader. while
> invoking public abstract
> com.google.ads.api.services.info.v200909.jaxbgen.ApiUsageInfo
> com.google.ads.api.services.info.v200909.jaxbgen.InfoServiceInterface.get(c 
> om.google.ads.api.services.info.v200909.jaxbgen.InfoSelector)
> throws
> com.google.ads.api.services.info.v200909.jaxbgen.ApiException_Exception
> with params
> [com.google.ads.api.services.info.v200909.jaxbgen.infoselec...@196b8]. faultstring>
>
> Something is not kosher here. What's going on?
>
> On Feb 24, 8:25 am, AdWords API Advisor 
> wrote:
>
>
>
> > Hi Scott,
>
> > It's always best to turn on SOAP XML logging in these situations,
> > since it lets you see how the request is actually being sent to the
> > API servers.  This can be done using:
>
> >   $client->set_debug(*STDERR);
>
> > In your case it seems like the  and  elements aren't
> > being serialized correctly.  The selector object needs to passed in to
> > the method as the value of the array key "selector":
>
> >  http://code.google.com/p/google-api-adwords-perl/source/browse/trunk/...
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 23, 3:40 pm, Scott Sexton  wrote:
>
> > > Ok, I'm able to get a different error now:
>
> > > 'faultcode' => 'soap:Client',
> > > 'faultstring' => 'Message part apiUsageType was not recognized.'
>
> > > Using this code:
>
> > > use Data::Dumper;
> > > use Google::AdWords::Client;
> > > use Google::AdWords::v200909::InfoService;
> > > use Google::AdWords::v200909::Types::InfoSelector;
> > > use Google::AdWords::v200909::InfoService::RequestHeader;
> > > use Google::AdWords::v200909::Types::ApiUsageType;
> > > my $client = Google::AdWords::Client->new({'path' => '/var/www/
> > > testing'});
> > > my $info_service = $client->InfoService;
> > > my $header = $info_service->get_client->_get_header();
> > > my $selector = Google::AdWords::v200909::Types::InfoSelector->new();
> > > $selector->set_apiUsageType('FREE_USAGE_API_UNITS_PER_MONTH');
> > > my $ret = $info_service->get($selector, $header);
> > > print STDOUT Dumper($ret);
>
> > > Does anybody know what syntax these perl modules are expecting? I'm
> > > having trouble finding any documentation or examples.

-- 
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-...@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.



AdWords API Re: Change Log

2010-02-24 Thread AdWords API Advisor
Hi Taylor,

This is still a service that is being thought through, but at this
point there is no definite decision or timeline for when it would be
available.

Best,
- Eric Koleda, AdWords API Team

On Feb 24, 4:04 am, RockyRaccoon  wrote:
> When I was in SF in early January I heard word of a "Change log"
> feature which we could request and would give us a list of campaigns,
> adgroups, keywords, ad creatives, etc. etc. that had been mutated/
> inserted/deleted. Is this still on deck and for when?
>
> -Taylor

-- 
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-...@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.



AdWords API Re: local campain

2010-02-24 Thread AdWords API Advisor
Hi Tang,

Your last example looks correct.  Can you post the SOAP XML request
and response this is generating?

Best,
- Eric

On Feb 24, 5:40 am, Tang  wrote:
> I also tried this :
>
> $geoTargetProx = new ProximityTarget();
>
>                 $legeopoint= new GeoPoint();
>                 $legeopoint->latitudeInMicroDegrees=100;
>                 $legeopoint->longitudeInMicroDegrees=100;
>
>                 $geoTargetProx->geoPoint = $legeopoint;
>                 $geoTargetProx->radiusDistanceUnits = 'KILOMETERS';
>                 $geoTargetProx->radiusInUnits = '150';
>
> but it's not working :(
>
> i really need help
>
> thanks
>
> On 29 jan, 15:53, AdWords API Advisor 
> wrote:
>
>
>
> > HiTang,
>
> > You'll want to use the CampaignTargetService to add a ProximityTarget:
>
> >  http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg...
> >  http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTarg...
>
> > To get the GeoPoint (latitude and longitude) you can use the
> > GeoLocationService:
>
> >  http://code.google.com/apis/adwords/v2009/docs/reference/GeoLocationS...
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Jan 28, 11:52 am,Tang wrote:
>
> > > Hi,
>
> > > i succeed in creating a local campain, but i don't know how i can
> > > define the target zone of the campain.
>
> > > For example if i wan my campain to be displayed only at 20 km around
> > > Paris town ?
>
> > > thanks for your help
>
> > >Tang

-- 
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-...@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.



AdWords API Re: How to use ProximityTargets ?

2010-02-24 Thread AdWords API Advisor
Hi Tang,

Thank you for posting the complete code, I can see the problem now.
The operand of a CampaignTargetOperation is a TargetList, not an
individual target.  In this case the operand should be a
GeoTargetList:

  
http://code.google.com/apis/adwords/v2009/docs/reference/CampaignTargetService.GeoTargetList.html

When you set a target list you are overwriting all of the existing
targets in that list.  So if you are attempting to add a target you
should

1) Get the existing GeoTargetList
2) Add the new target to it
3) Set the GeoTargetList

Best,
- Eric

On Feb 24, 10:23 am, Tang  wrote:
> Thanks for your answer,
>
> i don't see which field is wrong.
>
> my code :
>
> // Create proximity targets.
>                 $geoTargetProx = new ProximityTarget();
>
>                 $legeopoint= new GeoPoint();
>                 $legeopoint->latitudeInMicroDegrees='45746250';
>                 $legeopoint->longitudeInMicroDegrees='4866748';
>
>                 $geoTargetProx->geoPoint = $legeopoint;
>                 $geoTargetProx->radiusDistanceUnits = 'KILOMETERS';
>                 $geoTargetProx->radiusInUnits = '150';
>
>                  // Create addresses.
>                 $address1 = new Address();
>                 $address1->streetAddress = '4 rue Villon';
>                 $address1->cityName = 'Lyon';
>                 $address1->provinceName = 'Rhones';
>                 $address1->postalCode = '69003';
>                 $address1->countryCode = 'FR';
>
>                 $geoTargetProx->address = $address1;
>                 $geoTargetProx->allowServiceOfAddress = true;
>
>                 $proxTargetOperation = new CampaignTargetOperation();
>                 $proxTargetOperation->operand = $geoTargetProx;
>                 $proxTargetOperation->operator = 'SET';
>
>                 $operations = array($proxTargetOperation);
>
>                 // Set campaign targets.
>                 $result = $campaignTargetService->mutate($operations);
>
> I really don't see what is wrong.
>
> I get this error :
>
> Unmarshalling Error:
> com.google.ads.api.services.campaignmgmt.campaigntarget.v200909.jaxbgen.Pro 
> ximityTarget
> cannot be cast to
> com.google.ads.api.services.campaignmgmt.campaigntarget.v200909.jaxbgen.Tar 
> getList
>
> Can you help me ?
>
> Thanks a lot !
>
> On Feb 24, 3:55 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi,
>
> > The documentation for the ProximityTarget is here:
>
> >  http://code.google.com/intl/fr/apis/adwords/v2009/docs/reference/Camp...
>
> > All you need to do is create a new ProximityTarget, set the fields,
> > and add it to the list of targets in your GeoTargetList.  Are there
> > specific fields you have questions about?
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Feb 24, 9:39 am, Tang  wrote:
>
> > > nobody can help me ? Please ...
>
> > > On Feb 23, 7:24 pm, Guillaume  wrote:
>
> > > > Hi,
>
> > > > i actually use the Adwords API in PHP, all is working good except for
> > > > Geotargeting.
>
> > > > if i want to target a country i do :
>
> > > > // Create geo targets.
> > > > $geoTargetList = new GeoTargetList();
> > > > $geoTargetList->campaignId = $campaignId;
> > > > $geoTargetList->targets = array(new CountryTarget('FR'));
>
> > > > But i don't know how to use ProximityTargets with the api ? I found
> > > > nothing on the forum :(
>
> > > > I just would like to target circular geographical regions using exact
> > > > coordinates.
>
> > > > I have to use "circle" 
> > > > (http://code.google.com/intl/fr/apis/adwords/docs/developer/Circle.html
> > > > ) but i don't know how.
>
> > > > Can someone help me ?
>
> > > > Thanks

-- 
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-...@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.



AdWords API Re: URGENT: v13/CriterionService getText() problem

2010-02-24 Thread AdWords API Advisor
Hi John,

In another thread you mentioned you solved this problem.  The cause
was that the criterion was a Website, not a Keyword, and therefore
didn't have a text field.

Best,
- Eric Koleda, AdWords API Team

On Feb 24, 10:58 am, John Bliss  wrote:
> This morning, code that has been working for a long time is failing:
>
> I have a call to v13/CriterionService.getAllCriteria(AdGroupRemoteID)
> but then when I call getText() on any one of the resulting criteria,
> my app server is throwing this error:
>
> "The getText method was not found.  Either there are no methods with
> the specified method name and argument types, or the getText method is
> overloaded with argument types that cannot be deciphered reliably.
> Found 0 methods that matched the provided arguments. If this is a Java
> object and you verified that the method exists, you may need to use
> the javacast function to reduce ambiguity."
>
> Note that I'm not passing any arguments into getText().
>
> Did something change on AdWords' end?  Ideas?

-- 
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-...@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.



AdWords API Re: change history

2010-02-24 Thread AdWords API Advisor
Hi,

Thanks for the suggestion, it is a feature request we are currently
evaluating but at this point I don't have any more information.

Best,
- Eric Koleda, AdWords API Team

On Feb 24, 10:16 am, "g...@atara.co.jp"  wrote:
> I'd like to request to consider having API for change history. It's
> useful from auditing and also to evaluate work efficiency. Thanks.

-- 
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-...@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.



AdWords API Re: Occasional NoRouteToHostException with v200909 API.

2010-02-24 Thread trafficdirec...@localmatters.com
Network admins did setup network monitor which have not shown any
errors.
Here is comment from our IT:

"We saw no drops on our system monitor. If you have other suggestions
for things for IT to check, we're glad to check them, but as of right
now we have checked the network and it appears to be working
correctly, even when we're seeing these Google errors."

On Feb 24, 12:54 pm, AdWords API Advisor
 wrote:
> Hi,
>
> This error appears to be generated client side, and I don't have any
> other reports of this happening with other clients yet.  Could you
> follow up with your network admins perhaps to pinpoint this error?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 23, 7:31 pm, "trafficdirec...@localmatters.com"
>
>  wrote:
> > I have been getting the exception below about 25% of the times calling
> > Google v200909 AdWords API.
> > There is no HTTP proxy used and network on my side seems to operate
> > normally.
>
> > nested exception is:
> >         java.net.NoRouteToHostException: No route to host
> > AxisFault
> >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> > Server.userException
> >  faultSubcode:
> >  faultString: java.net.NoRouteToHostException: No route to host
> >  faultActor:
> >  faultNode:
> >  faultDetail:
> >         {http://xml.apache.org/axis/}
> > stackTrace:java.net.NoRouteToHostException: No route to host
> >         at java.net.PlainSocketImpl.socketConnect(Native Method)
> >         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
> > 195)
> >         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> >         at java.net.Socket.connect(Socket.java:519)
> >         at
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:
> > 550)
> >         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.
> > (SSLSocketImpl.java:353)
> >         at
> > com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFac 
> > toryImpl.java:
> > 71)
> >         at
> > org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.j 
> > ava:
> > 92)
> >         at
> > org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:
> > 191)
> >         at
> > org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:
> > 404)
> >         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:
> > 138)
> >         at
> > com.google.api.adwords.lib.AdWordsHttpSender.invoke(AdWordsHttpSender.java:
> > 47)
> >         at
> > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java 
> > :
> > 32)
> >         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> >         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> >         at org.apache.axis.client.Call.invoke(Call.java:2767)
> >         at org.apache.axis.client.Call.invoke(Call.java:2443)
> >         at org.apache.axis.client.Call.invoke(Call.java:2366)
> >         at org.apache.axis.client.Call.invoke(Call.java:1812)
> >         at
> > com.google.api.adwords.v200909.cm.AdGroupServiceSoapBindingStub.get(AdGroup 
> > ServiceSoapBindingStub.java:
> > 714)

-- 
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-...@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.



AdWords API Re: Occasional NoRouteToHostException with v200909 API.

2010-02-24 Thread trafficdirec...@localmatters.com
Network admins did setup network monitor which have not shown any
errors.
Here is comment from our IT:

"We saw no drops on our system monitor. If you have other suggestions
for things for IT to check, we're glad to check them, but as of right
now we have checked the network and it appears to be working
correctly, even when we're seeing these Google errors."

On Feb 24, 12:54 pm, AdWords API Advisor
 wrote:
> Hi,
>
> This error appears to be generated client side, and I don't have any
> other reports of this happening with other clients yet.  Could you
> follow up with your network admins perhaps to pinpoint this error?
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 23, 7:31 pm, "trafficdirec...@localmatters.com"
>
>  wrote:
> > I have been getting the exception below about 25% of the times calling
> > Google v200909 AdWords API.
> > There is no HTTP proxy used and network on my side seems to operate
> > normally.
>
> > nested exception is:
> >         java.net.NoRouteToHostException: No route to host
> > AxisFault
> >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> > Server.userException
> >  faultSubcode:
> >  faultString: java.net.NoRouteToHostException: No route to host
> >  faultActor:
> >  faultNode:
> >  faultDetail:
> >         {http://xml.apache.org/axis/}
> > stackTrace:java.net.NoRouteToHostException: No route to host
> >         at java.net.PlainSocketImpl.socketConnect(Native Method)
> >         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
> > 195)
> >         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> >         at java.net.Socket.connect(Socket.java:519)
> >         at
> > com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:
> > 550)
> >         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.
> > (SSLSocketImpl.java:353)
> >         at
> > com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFac 
> > toryImpl.java:
> > 71)
> >         at
> > org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.j 
> > ava:
> > 92)
> >         at
> > org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:
> > 191)
> >         at
> > org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:
> > 404)
> >         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:
> > 138)
> >         at
> > com.google.api.adwords.lib.AdWordsHttpSender.invoke(AdWordsHttpSender.java:
> > 47)
> >         at
> > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java 
> > :
> > 32)
> >         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> >         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> >         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> >         at org.apache.axis.client.Call.invoke(Call.java:2767)
> >         at org.apache.axis.client.Call.invoke(Call.java:2443)
> >         at org.apache.axis.client.Call.invoke(Call.java:2366)
> >         at org.apache.axis.client.Call.invoke(Call.java:1812)
> >         at
> > com.google.api.adwords.v200909.cm.AdGroupServiceSoapBindingStub.get(AdGroup 
> > ServiceSoapBindingStub.java:
> > 714)

-- 
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-...@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.



AdWords API Re: Ad Stats

2010-02-24 Thread Mike-Indiana
Hi Eric, thanks for the info.

How can you call 2 objects under selector? I am unable to get a
corresponding AdStatsSelector to AdGroupAdSelector. When I create a
new AdStatsSelector, it pulls all ads from my account, not the ones
from my adgroup.

Sorry, but I couldn't find any examples for stats in PHP.

This is what I am using currently, and it makes a mess by downloading
all adgroups as I stated above:

// Create selector.

$selector = new AdGroupAdSelector();
$selector->adGroupIds = array($adGroupId);

$selector = new AdStatsSelector();
$selector->startDate = '20090101';
$selector->endDate = '20100201';

$result = $adGroupAdService->get($selector);



On Feb 24, 8:41 am, AdWords API Advisor 
wrote:
> Hi Mike,
>
> In order to retrieve stats you need to add an AdStatsSelector object
> in your selector, with the date range specified.  This will cause the
> API server to return the Stats object with your results automatically.
>
>  http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupAdSer...
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Feb 23, 12:28 pm, Mike-Indiana  wrote:
>
> > Hi Eric,
>
> > Is it possible to generate stats while looping through adGroupAd?
>
> > My goal is to retrieve the title, description, landing url and display
> > url while showing the CTR.
>
> > My code in PHP is the following, however I'm not getting the CTR data:
>
> > if (isset($result->entries)) {
> >         foreach ($result->entries as $adinfo) {
> >         // Get ad info
> >         $headline = $adinfo->ad->headline;
> >         $description1 = $adinfo->ad->description1;
> >         $description2 = $adinfo->ad->description2;
> >         $displayUrl = $adinfo->ad->displayUrl;
> >         $destinationUrl = $adinfo->ad->url;
> >         // Get stats
> >         $Stats = new Stats();
> >         $Stats->startDate = '20100101';
> >         $Stats->endDate = '20110201';
> >         $Stats->network = 'ALL';
> >         $adCTR = $Stats->ctr

-- 
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-...@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.



AdWords API BulkMutateJobService - Soap message

2010-02-24 Thread shriny
Here is the soap request and the error we are getting,


http://schemas.xmlsoap.org/soap/
envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance">
https://adwords.google.com/api/
adwords/job/v200909">
https://adwords.google.com/api/adwords/cm/
v200909">
ADD


0

CUSTOMER_IDxx
SET

xxx
xx
ACTIVE




1





= Out message: http://schemas.xmlsoap.org/
soap/envelope/">
soap:Server
Fault occurred while processing.



The errorr is not detail enough to figure out the issue, I have
removed the soapheader .

Is the soap request correct for bulkmutatejob with
adgroupcriterionoperation

Thanks
Shriny

-- 
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-...@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.



AdWords API Re: Getting SOAP error while using TargetingIdeaService (Perl) : "searchParameters" not recognized

2010-02-24 Thread Suraiya
Hi Eric,
I tried TargetingIdeaService on the sandbox. I am getting a soap error
and I noticed that another person reported something similar at
http://groups.google.com/group/adwords-api/browse_thread/thread/35994a667c80ea0b/3478cbed16b9a9d1?lnk=raot


My code:
---
my $client = Google::AdWords::Client->new({properties_file=>
$properties_file});
my $paging = Google::AdWords::v200909::Types::Paging->new(
{
startIndex=> 0,numberResults=> 6
}

);
my $relatedToKeywordSearchParameter =
Google::AdWords::v200909::Types::RelatedToKeywordSearchParameter-
>new();
$relatedToKeywordSearchParameter->set_keywords(
[{text => "Monkey",matchType =>  "BROAD" }]);


my $selector = Google::AdWords::v200909::Types::TargetingIdeaSelector-
>new({requestType => 'IDEAS',paging =>$paging, ideaType =>
'KEYWORD'});
$selector->set_searchParameters($relatedToKeywordSearchParameter);

my $selVar = {selector=>$selector};
my $response = $client->TargetingIdeaService()->get($selVar);




This is the part of the soap trace that I got using the soap lite
debug all option
http://www.w3.org/2001/XMLSchema-
instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
>https://adwords.google.com/api/
adwords/o/v200909">x…...xx...@gmail.comx...@gmail.com++cadPerl Google::AdWords::Client 1.3.0:
SuraiyatestfalseMonkeyBROADKEYWORDIDEAS06


>From the above trace it seems that I have the authToken.

If I use $client->set_debug(*STDERR) then I see something like this:
REDACTED


In the response, I noticed the following error message that says that
the "authToken is missing in SoapHeader".

http://schemas.xmlsoap.org/soap/
envelope/">soap:ServerauthToken is missing in SoapHeader. while
invoking public abstract
com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaPage
com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaServiceInterface.get(com.google.ads.api.services.targetingideas.v200909.jaxbgen.TargetingIdeaSelector)
throws
com.google.ads.api.services.targetingideas.v200909.jaxbgen.ApiException_Exception
with params
[com.google.ads.api.services.targetingideas.v200909.jaxbgen.targetingideaselec...@d295a8].


Thanks in advance for your time and help.

Suraiya

-- 
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-...@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.



AdWords API Re: Getting SOAP error while using TargetingIdeaService (Perl) : "searchParameters" not recognized

2010-02-24 Thread Suraiya
Hi Eric,
Please have a look at my previous post as well. At
http://groups.google.com/group/adwords-api/browse_thread/thread/82bd7fcdff3afce1/,
you mentioned a valid soap structure.
How can I form that structure using different methods of objects of
type RelatedToKeywordSearchParameter, LanguageTargetSearchParameter,
CountryTargetSearchParameter etc instead of handcrafting the structure
myself.

If I do something like this
my $selector = Google::AdWords::v200909::Types::TargetingIdeaSelector-
>new({requestType => 'IDEAS',paging =>$paging,ideaType => 'KEYWORD'});
my $relatedToKeywordSearchParameter =
Google::AdWords::v200909::Types::RelatedToKeywordSearchParameter-
>new();
$relatedToKeywordSearchParameter->set_keywords(
[{text => "Monkey",matchType =>  "BROAD" }]);
my $languageTargetSearchParameter =
Google::AdWords::v200909::Types::LanguageTargetSearchParameter->new();
$languageTargetSearchParameter->set_languageTargets([{languageCode=>
"en"}]);

my $countryTargetSearchParameter =
Google::AdWords::v200909::Types::CountryTargetSearchParameter->new();
$countryTargetSearchParameter->set_countryTargets([{'countryCode' =>
"US"}]);

Then how am I supposed to call $selector->set_searchParameters or
something else so that I shall be able to create the desired structure
that you specified?

Thanks a lot in advance.
Suraiya

-- 
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-...@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.