4. Data Preparation
A MCC’s data of customers by AdWords API
https://developers.google.com/adwords/api/docs/reference/v20
1406/ManagedCustomerService
5. Data Preparation
MCC’s daily data of all ad campaigns last
month(2014/10) by AdWords API
https://developers.google.com/adwords/api/docs/appendix/repo
rts#campaign
MCC’s daily data separated by countries last
month(2014/10) by AdWords API
https://developers.google.com/adwords/api/d
ocs/appendix/reports#geo
6. Data Preparation
Defined three MySQL
tables to save the data
above.
create table CUSTOMER(
id bigint not null auto_increment,
name varchar(255),
primary key (id)
) ENGINE=InnoDB;
7. Data Preparation
create table DAILY_DATA(
idbigint not null auto_increment,
customer bigint not null,
campaign_name varchar(255),
data_date datetime not null,
impressionsbigint,
clicksbigint,
ctr double precision,
conversionsbigint,
conv_rate double precision,
cost double precision,
primarykey(id)
) ENGINE=InnoDB;
create table DAILY_GEO_DATA(
id bigint not null auto_increment,
customer bigint not null,
campaign_name varchar(255),
country varchar(255),
data_date datetime not null,
impressionsbigint,
clicksbigint,
ctr double precision,
conversionsbigint,
conv_rate double precision,
cost double precision,
primary key (id)
) ENGINE=InnoDB;
8. Scenario 1
I want to know the daily clicks of an ad
campaign last month(2014/10).
9. Scenario 2
I want to know conversions of every day
of Weeks.