Hi everybody,
I have found many post discussing about what I have been looking for about
2 days.
I hope I will find some answers here and I want to thank all the potential
reader and answer people.
To begin with, I use PHP Google Adwords v201705 library.
The goal is : to pick all daily cost group by countrycode from my Google
Adwords.
First thing I want to do is to show up that cost on the command prompt (for
example : US : 33333000) (I know I have to divide the result) and after
insert it in my database.
I have seen that we cannot do that with that way, we have to create a .csv
report and grap these datas, so i would need to create that special CSV and
read datas in it (for example with a SQL query).
I finally get focuse on the Geo Performance Report, so i finally manage to
get the cost order by the CountryCriteriaId.
$selector = new Selector();
$selector->setFields(['CountryCriteriaId', 'Cost']);
$selector->setPredicates([
new Predicate('CampaignStatus', PredicateOperator::NOT_IN,
['PAUSED'])]);
$arg = new LocationCriterionServiceGet($selector);
var_dump($arg);
// Create report definition.
$reportDefinition = new ReportDefinition();
$reportDefinition->setSelector($selector);
$reportDefinition->setReportName(
'Criteria performance report #' . uniqid());
$reportDefinition->setDateRangeType(
ReportDefinitionDateRangeType::YESTERDAY);
$reportDefinition->setReportType(
ReportDefinitionReportType::GEO_PERFORMANCE_REPORT);
$reportDefinition->setDownloadFormat(DownloadFormat::CSV);
I grap a special code in the column : "Country/Territory", I have seen
google make a .csv correspondance with that number.
But I want to involve to make that comparaison file and get directly the
countrycode (ES, FR, GB..)
I have seen that it exists a tool : LocationCriteronService but i still
don't understand the way it works.
If someone could help me, i would be grateful.
Thank you for your time
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/1274c560-edf4-4d18-a3be-32dc0d39606f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.