Use an xml library. example:
http://perl-xml.sourceforge.net/faq/

On Aug 16, 5:10 pm, Susan Ostroski <stcnoteb...@gmail.com> wrote:
> Hello (thanks for any help in advance),
>
> I have successfully gotten my keyword report but I can't seem to parse
> it with Perl LWP::Simple.  The format of the report isn't in a format
> I'm familiar with.
>
> .xml format:
> <?xml version="1.0" standalone="yes"?>
>
> -<report>
> -<table>
> -<columns>
> <column name="date"/>
> <column name="campaign"/>
> <column name="adgroup"/>
> <column name="kwSite"/>
> <column name="siteKwStatus"/>
> <column name="keywordMinCpc"/>
> <column name="kwDestUrl"/>
> <column name="imps"/>
> <column name="clicks"/>
> <column name="ctr"/>
> <column name="pos"/>
> </columns>
> -
> <rows>
> <row date="2010-07-01" campaign="AirSplat" adgroup="Ad Group #1"
> kwSite="air best gun" siteKwStatus="Active" keywordMinCpc="50000"
> kwDestUrl="http://www.airsplat.com/"; imps="35" clicks="2"
> ctr="0.05714285714285714" pos="2.1142857143"/> .....
> </rows>
> </table>
> -
> <totals>
> <subtotal imps="827611" clicks="10748" ctr="0.012986777604454266"
> cpc="179665" cost="1931050000" pos="1.7256609687"
> costPerConv="66565862" cpt="53622500" convValue="36.0"
> name="2010-08-14"/>
> <subtotal imps="922774" clicks="12621" ctr="0.013677238413739442"
> cpc="213376" cost="2693020000" pos="1.7202738699"
> costPerConv="76906285" cpt="69018461" convValue="39.0"
> name="2010-08-15"/>
> <grandtotal imps="1750385" clicks="23369" ctr="0.013350777114749041"
> cpc="197871" cost="4624070000" pos="1.7228209794"
> costPerConv="72220781" cpt="61628400" convValue="75.0"/>
> </totals>
> </report>
>
> I tried 'totals', 'report', 'rows', etc, and my array is empty.
> Anyone out there parsed the keyword file with perl?

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