AdWords API More PHP Samples

2009-11-05 Thread Priyantha Gunawardena
Hi All,

Replace this with the google client library you will find more samples. Some
of the cords may not clear. I wrote this for some testing purposes.

-- 
...
Priyantha Gunawardena
__
{Web Designer / Developer}
Tel: +94 038-228-4323
Mobi: +94 077-393-8516
Blog: http://www.pgdesigning.com
IM : pgdesigning
...

--

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.




aw_api_php_lib_1.1.0_src.rar
Description: Binary data


AdWords API BiddingError.MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS

2009-11-05 Thread Greg
Hi All,

I am getting the above error when using the CampainTargetService.

I'm looking for further information on the above error and how to
solve it.  Java API.

I am calling mutate on a CampainTargetService object passing in a
number of CampaignTargetOperation objects, one of which has an array
(with a single AgeTarget object) as its operand.  As such:

...

DemographicTargetList ageTargetList = new 
DemographicTargetList();
ageTargetList.setCampaignId(myCampaignId);
ageTargetList.setTargets(new DemographicTarget[] { new 
AgeTarget
(null, 0, AgeTargetAge.AGE_0_17) } );

CampaignTargetOperation ageTargetOperation = new
CampaignTargetOperation();
ageTargetOperation.setOperand(ageTargetList);
ageTargetOperation.setOperator(Operator.SET);

myCampaignTargetService.mutate(new 
CampaignTargetOperation[]
{ genderTargetOperation,
ageTargetOperation});

(genderTargetOperation specifies MALE).

What am I missing?

All help appreciated.  Many thanks.

Greg.

--

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: Money -> microAmount

2009-11-05 Thread AdWords API Advisor
Hi Marko,

In response to your questions:

1) Yes.  A micro is a millionth of the fundamental currency.  In the
US the fundamental currency is the dollar.

2) Yes, the fundamental currency is different in different countries.
So for an account with UK currency the micro will be one millionth of
the British pound.

3) The AdWords API does not provide currency conversion functionality.

Best,
- Eric Koleda, AdWords API Team

On Nov 3, 4:56 am, MarkoZ  wrote:
> Hi,
>
> API reference says that type Money (http://code.google.com/apis/
> adwords/v2009/docs/reference/CampaignService.Money.html) has field
> microAmount, and its description is: “Amount in micros. One million is
> equivalent to one unit”.
>
> My questions are:
> 1.      How much one unit cost? Is it 1$?
> 2.      What if I have account in some other currency (for example in
> British Pound)? Is than 1 unit 1 pound or 1$?
> 3.      I need to convert all to dollars, so can you tell me where I can
> read exchange rates that Google use to convert one currency to other
> (you sure need to do that when you compare two keywords. You need to
> know which is the first and which is the second)?
>
> Marko

--

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: Which currency does user use?

2009-11-05 Thread AdWords API Advisor
Hi Marko,

The AccountService method getAccountInfo can be used to get this
information:

  
http://code.google.com/apis/adwords/docs/developer/AccountService.html#getAccountInfo.

The returned AccountInfo object has a field which contains the
currencyCode of the account:

  
http://code.google.com/apis/adwords/docs/developer/AccountInfo.html#currencyCode.

Best,
- Eric

On Nov 3, 8:53 am, MarkoZ  wrote:
> Is there some way to get (through AdWords API) currency that user's
> account use?
>
> Marko

--

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: Need One Keywords Avg Search Volume

2009-11-05 Thread AdWords API Advisor
Hi,

The v13 KeywordToolService.getKeywordVariations has a fixed cost of 20
units per request, so the number of results returned will not affect
the cost: 
http://code.google.com/apis/adwords/docs/developer/adwords_api_ratesheet.html

However, the new v2009 TargetingIdeaService does allow for the
limiting of results, and the cost if 1 unit per result.  An
introduction to this service can be found on the AdWords API blog:
http://adwordsapi.blogspot.com/2009/11/discover-v2009-getting-ideas-with.html

Best,
- Eric Koleda, AdWords API Team

On Nov 5, 4:30 pm, Joel  wrote:
> Which service would I use to pull the average search volume for 1
> keyword? I'm using the Variations service and it's returning too many
> values. It's just a waste of units for me. And examples would help
> greatly.

--

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: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @

2009-11-05 Thread AdWords API Advisor
Hi Emanuele,

This error is triggered when trying to add a campaign to an MCC
account.  When using the sandbox environment you must make sure to use
the correct values in the clientEmail header.  More information about
the headers is available here:

  
http://code.google.com/apis/adwords/docs/developer/adwords_api_sandbox.html#requestheaders

A general introduction to the sandbox, including the header
information, is also available as a video:

  http://www.youtube.com/watch?v=cqVtUdB975M

Best,
- Eric Koleda, AdWords API Team

On Nov 5, 10:40 am, Emanuele Cellini  wrote:
> Hello,
> I try to ADD a campain with the following SOAP code but return this
> error can you help me to resolve this issue?
>
> The Request is:
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";>
>         
>                  xmlns="https://adwords.google.com/api/adwords/cm/
> v200909">
>                         X
>                         XX
>                         XX
>                         ColdFusion 8
>                         XX
>                 
>         
>         
>                  xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
>                         
>                                 ADD
>                                 
>                                         IB - test 200912
>                                         ACTIVE
>                                         20091215
>                                          />
>                                         
>                                                 DAILY
>                                                 
>                                                         
> 500
>                                                 
>                                                 
> STANDARD
>                                         
>                                 
>                         
>                 
>         
> 
>
> The Response is:
> http://schemas.xmlsoap.org/soap/
> envelope/">2b4ed0b16cc704815d14456827daad25 requestId>1219 responseTime>1 soap:Header>soap:Server faultcode>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> @ InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @  message>ApiException ApplicationException.Type>http://www.w3.org/2001/
> XMLSchema-instance" xsi:type="InternalApiError"> fieldPath>InternalApiError ApiError.Type>UNEXPECTED_INTERNAL_API_ERROR ApiExceptionFault>
>
> Best Regards,
> Emanuele

--

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: Adwords4r and mutate an AdGroupAd

2009-11-05 Thread AdWords API Advisor
Hi Dan,

I believe the problem is that your adservice_data object is not
structured correctly.  This object represents an AdGroupAd, which
doesn't have an "id" field ( see
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupAdService.AdGroupAd.html
).  Instead, there is an "ad" field holds an Ad, which in turn has the
"id" field.  Your object should probably look like:

adservice_data = {
:ad => {
:id => self.adwords_id
}
:adGroupId => self.adwords_adgroup_id,
:status => "#{self.status.upcase}"
}

Best,
- Eric Koleda, AdWords API Team

On Nov 5, 11:37 am, Dan Hill  wrote:
> Hi all,
>
> I'm developing a tool using Ruby Rails and Adwords4r. All is going
> great, apart from I keep getting an
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR every time I try and
> SET mutate an AdGroupAd (a text ad). I can create the ad fine, but
> whenever I try and update its status it gives me this error. I know I
> can't change the ad itself, but I only want to pause/enable the add,
> not change anything else. The code I'm using is:
>
> load_credentials
>
> adservice_data = {
>         :id => self.adwords_id,
>         :adGroupId => self.adwords_adgroup_id,
>         :status => "#{self.status.upcase}"
>
> }
>
> operation = {
>         :operand => adservice_data,
>          :operator => 'SET'
>          }
> response = @adwords_adservice_srv.mutate([operation])
>
> Anyone have any tips?
>
> Many thanks,
>
> Dan

--

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: TARGETED_MONTHLY_SEARCHES

2009-11-05 Thread AdWords API Advisor
Hi Madhava,

Thank you for reporting this issue.  I have been able to replicate the
problem and will alert the core engineering department.  I will update
this thread when I have more information.

Best,
- Eric Koleda, AdWords API Team

On Nov 5, 2:23 am, Madhava Savitr  wrote:
> I am now in the process of upgrading my appliction to v200909 that was
> written for v13.  I am having some problem in doing so.  I am trying
> to fetch TARGETED_MONTHLY_SEARCHES, KEYWORD,
> COMPETITION, .AVERAGE_TARGETED_MONTHLY_SEARCHES,  The service returns
> only three values except "AVERAGE_TARGETED_MONTHLY_SEARCHES".
>
> I am using C#.NET 3.5 and using Sandbox environment of v2009.
>
> Thanks in advance,
> Madhava

--

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: Estimating traffic / cost for managed site placement?

2009-11-05 Thread AdWords API Advisor
Hi Mike,

The recently launch TargetingIdeaService has many of the capabilities
you are looking for.  Given some seed information it can return
related placements (URLs) and some basic information about that
placement.  A good introduction to the service can be found on the
AdWords API blog: 
http://adwordsapi.blogspot.com/2009/11/discover-v2009-getting-ideas-with.html.

Best,
- Eric Koleda, AdWords API Team

On Nov 5, 1:23 am, Mike  wrote:
> I am trying to create a tool that helps people find websites to place
> site-targeted ads on via managed placement.  Say, for example, that I
> have a URL "http://site.com"; that I know for a fact has AdSense on
> it.  How can I, using the API, get any kind of information about what
> would happen if they advertised there?
>
> Can I get estimated cost, estimated traffic, estimated impressions, or
> any kind of information for that matter, about what would happen if
> people placed a managed placement ad on site.com?
>
> I spent a while browsing through the API docs and this forum and
> couldn't find anything about this.
>
> Thanks so much,
> Mike

--

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: Building a Bulk Mutate Job (sandbox)

2009-11-05 Thread AdWords API Advisor
Hi Marcin,

Your code appears to be correct, perhaps there is an issue with the
generated XML.  Do you have the SOAP XML logs from this type of
request?  I'm not sure if you've been using it already, but the PHP
library contains a test case for the BulkMutateJobService that you can
use as a reference (tests/Google/Api/Ads/AdWords/v200909/
BulkMutateJobServiceTest.php).

Best,
- Eric Koleda, AdWords API Team

On Nov 4, 11:42 am, marcinc  wrote:
> I am using v2009 of adwords API with PHP5. I would like to use
> BulkMutateJobService to package my operations into a single job.
> According to google docs to achieve that I need to follow the steps:
> 1. Construct the operations I want to perform (as the standard mutate
> operations).
>         $adgroupad1 = new AdGroupAd();
>         $adgroupad2 = new AdGroupAd();
> 2. Construct an OperationStream object and set its fields:
>         $operations = array(
>         new AdGroupAdOperation( $adgroupad1, NULL, 'ADD' ),
>         new AdGroupAdOperation( $adgroupad2, NULL, 'ADD' )
>         );
>         $scopingEntityId = new EntityId( 'ADGROUP_ID', 425513 );
>         $adStream = array (new OperationStream( $scopingEntityId,
> $operations ));
> 3. Construct a BulkMutateRequest object and set its fields:
>         $part1 = new BulkMutateRequest( 0, $adStream );
>         $job = new BulkMutateJob();
>         $job->numRequestParts = 1;
>         $job->request = $part1;
> 4. Finally, construct the BulkMutateJob object and set its fields:
>         $jobOperation = array ( new JobOperation( $job, 'ADD' ) );
>         $job = $bulkMutateJobService->mutate( $jobOperation );
>         ...
>
> When testing the script on sandbox I got this error message:
> SoapFault Object ( [message:protected] =>
> [JobError.JOB_TYPE_NOT_SUPPORTED @ operation] ...
>
> Did I forget about anything? Is it the problem with JobOperation
> ( $job, 'ADD' ) object type or BulkMutateJob() is not being accepted
> by JobOperation() ?
>
> Many thanks, Marcin

--

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 Money -> microAmount

2009-11-05 Thread MarkoZ
Hi,

API reference says that type Money (http://code.google.com/apis/
adwords/v2009/docs/reference/CampaignService.Money.html) has field
microAmount, and its description is: “Amount in micros. One million is
equivalent to one unit”.

My questions are:
1.  How much one unit cost? Is it 1$?
2.  What if I have account in some other currency (for example in
British Pound)? Is than 1 unit 1 pound or 1$?
3.  I need to convert all to dollars, so can you tell me where I can
read exchange rates that Google use to convert one currency to other
(you sure need to do that when you compare two keywords. You need to
know which is the first and which is the second)?

Marko

--

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 Which currency does user use?

2009-11-05 Thread MarkoZ
Is there some way to get (through AdWords API) currency that user's
account use?

Marko

--

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 Need One Keywords Avg Search Volume

2009-11-05 Thread Joel
Which service would I use to pull the average search volume for 1
keyword? I'm using the Variations service and it's returning too many
values. It's just a waste of units for me. And examples would help
greatly.

--

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: Too many targeted locations In Campaign Update

2009-11-05 Thread ga...@structuredweb.com
I overlooked the region targets.  This will help us a big time.

Thank you Eric.

On Nov 5, 1:34 pm, AdWords API Advisor 
wrote:
> Hi Mahesh,
>
> The v13 version of the API also supports the addition of states
> through RegionTargets:
>
>  http://code.google.com/apis/adwords/docs/developer/RegionTargets.html
>
> To reiterate, the limit is 300 geo targets across all types.  That
> means the total number of geo targets (CityTargets, CountryTargets,
> MetroTargets, ProximityTargets, RegionTargets) must be 300 or less.
> Also, you don't need to (and can't) specify overlapping areas.  That
> means if you specify a state (using RegionTargets) you automatically
> target the cities in that state.  If you specify a country you
> automatically specify all the states in that country.
>
> More information about account limits can be found 
> here:http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=40907.
>
> Best,
> - Eric
>
> On Nov 5, 12:06 pm, bemahesh  wrote:
>
>
>
> > I just realized that having a limit of 300 cities and not being able
> > to specify states in the GeoTarget will be counter productive for us.
> > We will have to specifically recreate the campaigns in the scenarios
> > where we need to target more than 300 cities.
>
> > I looked at the newer version of adwords api (v200909).  I saw there
> > is a new field province which will allow me to specify states.  I
> > think this will allow me to circumvant the problem. But there is still
> > limits on number of cities, states etc.  I did not see the
> > documentation stating that limit.  Would you be able to tell me what
> > is the max limits on these targets along with max limits on campaign,
> > adgroup, keywords, ads, criterion?
>
> > Thank you very much for the co-operation.
> > Mahesh
>
> > On Nov 5, 10:15 am, AdWords API Advisor 
> > wrote:
>
> > > Hi,
>
> > > Yes, country targets are also included in that number.  The different
> > > types of geo targets can be found 
> > > here:http://code.google.com/apis/adwords/docs/developer/GeoTarget.html.
>
> > > Best,
> > > - Eric
>
> > > On Nov 4, 6:25 pm, bemahesh  wrote:
>
> > > > I have specified two countries US and Canada.  Are those included as
> > > > well?  If yes, what other things should I keep in mind other than
> > > > cities and countries.
>
> > > > Thanks for the quick response.
>
> > > > On Nov 4, 5:13 pm, AdWords API Advisor 
> > > > wrote:
>
> > > > > Hi,
>
> > > > > Please be advised that there is a limit of 300 total targets, not just
> > > > > city targets.  Can you confirm that there are no other geo targets on
> > > > > that campaign?
>
> > > > > Best,
> > > > > - Eric Koleda, AdWords API Team
>
> > > > > On Nov 4, 3:28 pm, bemahesh  wrote:
>
> > > > > > On Nov 4, 3:26 pm, bemahesh  wrote:
>
> > > > > > > 
> > > > > > > Hi,
>
> > > > > > > I have an exiting campaign which I am trying to update using 
> > > > > > > campaign
> > > > > > > adwords api.  I am trying to set the campaign geotargeting cities 
> > > > > > > to
> > > > > > > 300 cities and update the campaign.  I am getting this on update
> > > > > > > setting too many targeted locations (i.e 300 cities).  I had read 
> > > > > > > on
> > > > > > > the documentation that one can set max of 300 targeted locations.
>
> > > > > > > I would appreciate if someone can shed some light.  Here is the 
> > > > > > > fault
> > > > > > > message returned by the api.
>
> > > > > > >   > > > > > > xmlns:ns1="https://adwords.google.com/api/adwords/v13";>
> > > > > > >        122
>
> > > > > > >        One or more input elements failed 
> > > > > > > validation. > > > > > > ns1:message>
>
> > > > > > >        
> > > > > > >         0
>
> > > > > > >         geoTargeting
>
> > > > > > >         29
>
> > > > > > >         false
>
> > > > > > >         Too many targeted locations.
>
> > > > > > >      
>
> > > > > > >     
>
> > > > > > >    - Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--

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 Adwords4r and mutate an AdGroupAd

2009-11-05 Thread Dan Hill
Hi all,

I'm developing a tool using Ruby Rails and Adwords4r. All is going
great, apart from I keep getting an
InternalApiError.UNEXPECTED_INTERNAL_API_ERROR every time I try and
SET mutate an AdGroupAd (a text ad). I can create the ad fine, but
whenever I try and update its status it gives me this error. I know I
can't change the ad itself, but I only want to pause/enable the add,
not change anything else. The code I'm using is:

load_credentials

adservice_data = {
:id => self.adwords_id,
:adGroupId => self.adwords_adgroup_id,
:status => "#{self.status.upcase}"

}
operation = {
:operand => adservice_data,
 :operator => 'SET'
 }
response = @adwords_adservice_srv.mutate([operation])

Anyone have any tips?

Many thanks,

Dan

--

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

2009-11-05 Thread Emanuele Cellini
Hello,
I try to ADD a campain with the following SOAP code but return this
error can you help me to resolve this issue?

The Request is:

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";>

https://adwords.google.com/api/adwords/cm/
v200909">
X
XX
XX
ColdFusion 8
XX



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

ADD

IB - test 200912
ACTIVE
20091215


DAILY


500


STANDARD







The Response is:
http://schemas.xmlsoap.org/soap/
envelope/">2b4ed0b16cc704815d14456827daad2512191soap:ServerInternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@ InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ ApiExceptionhttp://www.w3.org/2001/
XMLSchema-instance" xsi:type="InternalApiError">InternalApiErrorUNEXPECTED_INTERNAL_API_ERROR

Best Regards,
Emanuele

--

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 TARGETED_MONTHLY_SEARCHES

2009-11-05 Thread Madhava Savitr
I am now in the process of upgrading my appliction to v200909 that was
written for v13.  I am having some problem in doing so.  I am trying
to fetch TARGETED_MONTHLY_SEARCHES, KEYWORD,
COMPETITION, .AVERAGE_TARGETED_MONTHLY_SEARCHES,  The service returns
only three values except "AVERAGE_TARGETED_MONTHLY_SEARCHES".

I am using C#.NET 3.5 and using Sandbox environment of v2009.

Thanks in advance,
Madhava

--

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 Estimating traffic / cost for managed site placement?

2009-11-05 Thread Mike
I am trying to create a tool that helps people find websites to place
site-targeted ads on via managed placement.  Say, for example, that I
have a URL "http://site.com"; that I know for a fact has AdSense on
it.  How can I, using the API, get any kind of information about what
would happen if they advertised there?

Can I get estimated cost, estimated traffic, estimated impressions, or
any kind of information for that matter, about what would happen if
people placed a managed placement ad on site.com?

I spent a while browsing through the API docs and this forum and
couldn't find anything about this.

Thanks so much,
Mike

--

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 Building a Bulk Mutate Job (sandbox)

2009-11-05 Thread marcinc
I am using v2009 of adwords API with PHP5. I would like to use
BulkMutateJobService to package my operations into a single job.
According to google docs to achieve that I need to follow the steps:
1. Construct the operations I want to perform (as the standard mutate
operations).
$adgroupad1 = new AdGroupAd();
$adgroupad2 = new AdGroupAd();
2. Construct an OperationStream object and set its fields:
$operations = array(
new AdGroupAdOperation( $adgroupad1, NULL, 'ADD' ),
new AdGroupAdOperation( $adgroupad2, NULL, 'ADD' )
);
$scopingEntityId = new EntityId( 'ADGROUP_ID', 425513 );
$adStream = array (new OperationStream( $scopingEntityId,
$operations ));
3. Construct a BulkMutateRequest object and set its fields:
$part1 = new BulkMutateRequest( 0, $adStream );
$job = new BulkMutateJob();
$job->numRequestParts = 1;
$job->request = $part1;
4. Finally, construct the BulkMutateJob object and set its fields:
$jobOperation = array ( new JobOperation( $job, 'ADD' ) );
$job = $bulkMutateJobService->mutate( $jobOperation );
...

When testing the script on sandbox I got this error message:
SoapFault Object ( [message:protected] =>
[JobError.JOB_TYPE_NOT_SUPPORTED @ operation] ...

Did I forget about anything? Is it the problem with JobOperation
( $job, 'ADD' ) object type or BulkMutateJob() is not being accepted
by JobOperation() ?

Many thanks, Marcin

--

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: exact match search volume for keyword tool service - java

2009-11-05 Thread AdWords API Advisor
Hi,

While I don't have an exact match for your code here are some
resources you may find helpful:

  AdWords API Blog Post on TargetingIdeaService:
http://adwordsapi.blogspot.com/2009/11/discover-v2009-getting-ideas-with.html

  Example submitted by forum member:
http://www.pgdesigning.com/php/2009/11/03/get-all-keywords-in-adword-v200909-in-php/

Best,
- Eric

On Nov 5, 12:57 pm, "i...@larseggert.de"  wrote:
> Hello eric,
> ok i see :-[
>
> I already read the current post in the api-blog but it is not clear to
> me how to use the new api..
> Maybe this will help the other and me:
>
> Can you provide an equivalent TargetingIdea v2009 example for the
> following call:
>
>             // Get KeywordToolService.
>             KeywordToolInterface keywordToolService =
>                 user.getService(AdWordsService.V13.KEYWORD_TOOL_SERVICE);
>
>             // Get list of keywords for URL.
>             SeedKeyword seedKeyword1 = new SeedKeyword();
>             seedKeyword1.setType(KeywordType.Exact);
>             seedKeyword1.setText("krankenversicherung");
>             SeedKeyword seedKeyword2 = new SeedKeyword();
>             seedKeyword2.setType(KeywordType.Exact);
>             seedKeyword2.setText("versicherung");
>             SeedKeyword seedKeyword3 = new SeedKeyword();
>             seedKeyword3.setType(KeywordType.Exact);
>             seedKeyword3.setText("pflegeversicherung");
>
>             SeedKeyword[] seedkeywords = new SeedKeyword[]
> {seedKeyword1,seedKeyword2,seedKeyword3};
>             KeywordVariations keywords =
> keywordToolService.getKeywordVariations(seedkeywords , false, new
> String[]{"de"}, new String[]{"DE"});
>
> That would be great!
>
> greetings
>
> On Nov 5, 4:40 pm, AdWords API Advisor 
> wrote:
>
>
>
> > Hi,
>
> > Unfortunately this isn't possible using the KeywordToolService:
>
> >   "The search volumes in the results returned from the API should
> > roughly correspond to what you'd see with the Broad setting for match
> > type in the web tool, but retrieving search volumes for Phrase or
> > Exact match types is not possible."
>
> > More information about match type and the KeywordToolService is
> > available in this blog 
> > post:http://adwordsapi.blogspot.com/2009/01/keyword-match-type-and.html.
>
> > This data is available however in the new v2009 TargetingIdeaService
> > by using the 
> > KeywordMatchTypeSearchParameter:http://code.google.com/apis/adwords/v2009/docs/reference/TargetingIde
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Nov 5, 9:10 am, "i...@larseggert.de"  wrote:
>
> > > hi all,
> > > does anybody know how tell the keyword tool service to determine the
> > > exact search volume?
> > > i tried:
> > >     SeedKeyword seedKeyword1 = new SeedKeyword();
> > >     seedKeyword1.setType(KeywordType.Exact);
> > > 
>
> > > but the values getLastMonthSearchVolume, getAvgSearchVolume are still
> > > the broad-values (compared with the external keyword-tool)
>
> > > thanks alot

--

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.