Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
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/30349bb9-f34e-42d2-a65f-9b9792e4ccea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3412e607-8699-4873-8d97-3a810f04c71a%40googlegroups.com.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/16a2e3b1-614d-4fdf-b364-22cd126a1f62%40googlegroups.com.
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
class GetReportFields
{
const PAGE_LIMIT = 500;
public static function runExample(
AdWordsServices $adWordsServices,
AdWordsSession $session
) {
$reportDefinitionService = $adWordsServices->get($session, ReportDefinitionService::class);
// The type of the report to get fields for.
$reportType = ReportDefinitionReportType::PAID_ORGANIC_QUERY_REPORT;
// Get report fields of the report type.
$reportDefinitionFields = $reportDefinitionService->getReportFields($reportType);
printf(
"The report type '%s' contains the following fields:\n",
$reportType
);
foreach ($reportDefinitionFields as $reportDefinitionField) {
printf(
' %s (%s)',
$reportDefinitionField->getFieldName(),
$reportDefinitionField->getFieldType()
);
if ($reportDefinitionField->getEnumValues() !== null) {
printf(
' := [%s]',
implode(', ', $reportDefinitionField->getEnumValues())
);
}
print "\n";
}
}
public static function main()
{
// Generate a refreshable OAuth2 credential for authentication.
$oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build();
// Construct an API session configured from a properties file and the
// OAuth2 credentials above.
$session = (new AdWordsSessionBuilder())->fromFile()->withOAuth2Credential($oAuth2Credential)->build();
self::runExample(new AdWordsServices(), $session);
}
}
GetReportFields::main();Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
campaign | source | medium | term | clicks | pay (cost)
test 1 | test_sour | test_med | test_term | 50 | 160
test 1 | test_sour2| test_med2 | test_term2| 42 | 260
test 1 | test_sour3| test_med3 | test_term | 150 | 546[2019-04-08 14:39:31] AW_SOAP.INFO: clientCustomerId=XXX-XXX-XXXX operations=1 service=ReportDefinitionService method=getReportFields responseTime=170 requestId=000586034a2991be0a374b877a05b23d server=adwords.google.com isFault=0 faultMessage=Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
Hi!What I want to get from report - for example:
campaign | source | medium | term | clicks | pay (cost)
test 1 | test_sour | test_med | test_term | 50 | 160
test 1 | test_sour2| test_med2 | test_term2| 42 | 260
test 1 | test_sour3| test_med3 | test_term | 150 | 546In this page I read: "The Paid and Organic Query report provides a holistic view of your search stats across ads and organic listings at the query level".But instead report I have only headers
[2019-04-08 14:39:31] AW_SOAP.INFO: clientCustomerId=353-528-0885 operations=1 service=ReportDefinitionService method=getReportFields responseTime=170 requestId=000586034a2991be0a374b877a05b23d server=adwords.google.com isFault=0 faultMessage=