Hi Thomas,

The report service is a RESTful kind of service, if you are working in a 
unix like environment using an HTTP command line tool like curl will make 
it simple to make calls to the service and test your definitions.

Attached is an example of a script I use to tests my reports, I hope you 
find it useful.

Best,

- David Torres - AdWords API Team

On Wednesday, July 17, 2013 8:03:14 AM UTC-4, Jason Stedman wrote:
>
> Try SoapUI, I haven't used it with AdWords before, but it should work for 
> any web service.
>
> On Wednesday, July 17, 2013 4:29:33 AM UTC-4, tho...@drumm.dk wrote:
>>
>> Hi,
>>  
>> Is there a simple way to test the report definition XML, for example 
>> copy/paste to Google Adwords?
>>  
>> I'm waiting for my developer token to develop server side code for 
>> interacting with the API, so I'm stuck writing report definitions.
>>  
>> It would be great if there were some UI to test them.
>>  
>> Regards,
>>  
>> Thomas
>>
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


#!/bin/sh
#
# Copyright 2013, Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

CLIENT_CUSTOMER_ID="YOUR ACCOUNT ID"
MONEY_IN_MICROS="true"
AUTHKEY="YOUR AUTHORIZATION KEY E.G. Bearer: <access-token>"
FMT="CSV"

REP_DEF='
<reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201306";>
  <selector>
    <fields>Id</fields>
    <fields>KeywordText</fields>
    <fields>CpcBidSource</fields>
    <fields>MaxCpc</fields>
  </selector>
  <reportName>Custom KEYWORDS_PERFORMANCE_REPORT</reportName>  
  <reportType>KEYWORDS_PERFORMANCE_REPORT</reportType>
  <dateRangeType>YESTERDAY</dateRangeType>
  <downloadFormat>CSV</downloadFormat>
</reportDefinition>
'
echo ${REP_DEF}

curl --header "Authorization: $AUTHKEY" --header "clientCustomerId: ${CLIENT_CUSTOMER_ID}" --header "returnMoneyInMicros: ${MONEY_IN_MICROS}" --header "developerToken: ${DEV_TOKEN}" "https://adwords.google.com/api/adwords/reportdownload/v201306"; --data-urlencode "__rdxml=${REP_DEF}" --data-urlencode "__fmt=${FMT}"

Reply via email to