Forum Moderators: coopster
Report: Daily_Emailed_Ad_group_performance
Report View: 10/2/2007
Include rows where: Account: test.net;
Rows: 3
Account Name,Campaign,Order name,Medium,Imp,Clicks,CTR,Avg CPC,Total Cost,Avg Pos
test.net,Core Keywords,$10 CPA Target,Search,21,0,0.0000,.00,.00,5.48
test.net,Core Keywords,$10 CPA Target,Content,153,0,0.0000,.00,.00,2.95
test.net,Core Keywords,$15 CPA Target,Search,4783,20,0.4181,2.82,56.35,5.78
©2007 Microsoft Corporation. All rights reserved.
The data somehow need to be rearranged.
You may perhaps write a small PHP script which can grab the 4 lines on the top as a table columns on the right side of the rest of the list.
If you try doing it this way, post any problems you face on the way.
Habtom
It has been awhile since I have done it, but I believe you have to single quote (') the text fields (varchar, char, etc.) before you can import. I have imported megs of data in just a few minutes. See documentation on mysqlimport (command line utility) on the MySQL site.
you could also try this thread
[webmasterworld.com...]
though instead of writing to another file you would be building an insert query
Report: Daily_Emailed_Ad_group_performance
Report View: 10/2/2007
Include rows where: Account: test.net;
Rows: 3
Account Name,Campaign,Order name,Medium,Imp,Clicks,CTR,Avg CPC,Total Cost,Avg Pos
test.net,Core Keywords,$10 CPA Target,Search,21,0,0.0000,.00,.00,5.48
test.net,Core Keywords,$10 CPA Target,Content,153,0,0.0000,.00,.00,2.95
I can find PHP Code Examples to do an import using an Array, however, I can't figure out how to get past the header information. It always seems to try to get imported.
I will post any progress I make.
Thanks.
if you're using something like this to get the lines
while ($row = fgetcsv($sfp,10000,",","")) {
then use an if at the beginning of the loop. fgetcsv [php.net] returns an array. It splits the lines on , where your first few lines have no comma, therefore you should be able to test for the number of elements in the array
if only one element in the array then do nothing and go to next iteration