Hi Farid,

I apologize for the difficulty you've had with the API so far.  The
AdWords product and AdWords API are quite large and complicated, and
it can be difficult to get started.  There is no existing PHP example
that does exactly what you want, so you'll need to piece together
existing examples and documentation to accomplish what you want.

To answer some of your questions:

1) Every ad group has an ID associated with it.  To get the ID of an
ad group using the AdGroupService.

2) A developer token is required when making a request to the API, and
a company is only allowed to have one.  To register for a developer
token follow these instructions:

  https://adwords.google.com/support/aw/adwordsapi/bin/answer.py?answer=15104

A developer token isn't needed for requests to the sandbox environment
however.  More information for connecting to the sandbox is here:

  http://code.google.com/apis/adwords/docs/sandbox.html

3) A criterion is the general name for something used to target your
ads.  Keywords are a type of criterion, as are placements, verticals,
etc.  Each criterion has a unique ID associated with it.  To refer to
a specific keyword in your account, you need to specify the ad group
ID and the criterion ID.

4) When you create a ReportDefinition for a
KEYWORDS_PERFORMANCE_REPORT you can specify which fields to include in
the report, and AveragePosition is one of them.  Once you've created
the report definition you can download the report and parse the
resulting CSV or XML file to get the values you want.

5) The AdGroupCriterionService can be used to fetch information about
your criteria, including keywords.  If you include a StatsSelector in
your Selector, and set a date range, then the resulting
AdGroupCriteria objects will have a Stats object that contains an
averagePosition field.

I hope this has helped, and let us know if you have any other
questions.

Best,
- Eric Koleda, AdWords API Team

On Nov 12, 11:27 am, Farid Parvini <fparv...@gmail.com> wrote:
> To whom it may concern
>
> Google adword API documentation and support is the worst I have ever seen.
> Our company paid over $60,000 to google last month for adwords for over 100
> customers that we have and this is the service/support that we are getting
> !!!!!
>
> I have been working as senior software engineer with many many systems,
> still using this API is ridiculously and unnecessarily challenging ,
>
> what is my adgroup id , where should I get my developerToken , what is the
> definition of 'criterion id', what does it have to do with my keywords ????
>
> This is the only document I could 
> findhttp://code.google.com/p/google-api-adwords-php/source/browse/trunk/R...
>
> Thanks support team for your generosity  publishing this!
>
> I just need a simple php code to get my keywords and their average position
> , is it that hard?
>
> I kept asking this and I was referred 
> tohttp://code.google.com/apis/adwords/docs/appendix/reports.html#keywords
> andhttp://code.google.com/apis/adwords/docs/reference/latest/AdGroupCrit...
>
> I could find those myself, but how should I use the report, where is the
> document!?! where is a simple clear example with documentations!
> Please don't refer me to existing examples,  there is no well documented to
> show how to use it.
>
> Got sick and tired of this

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to