Hi,
Now, we are migrating DFP to Ad manger in our application for DFP Premium account, previously we have used v201805 version on nornal account and now updating to v201811.
As per Ad manager we have configured our environment but getting below error so please help ASAP.
PHP Warning: The use statement with non-compound name
'DateTime' has no effect in
/prod/html/tools/dfpapi/googleads-php-lib/examples/Dfp/v201811/ReportService/AdEx_jagran_report.php
on line 36
PHP Warning: The use statement with non-compound name
'DateTimeZone' has no effect in
/prod/html/tools/dfpapi/googleads-php-lib/examples/Dfp/v201811/ReportService/AdEx_jagran_report.php
on line 37
PHP Warning: The use statement with non-compound name
'UnexpectedValueException' has no effect in
/prod/html/tools/dfpapi/googleads-php-lib/examples/Dfp/v201811/ReportService/AdEx_jagran_report.php
on line 55
PHP Fatal error: Uncaught
InvalidArgumentException: Network code is required. in
/prod/html/tools/dfpapi/googleads-php-lib/src/Google/AdsApi/Dfp/AdManagerSessionBuilder.php:350
Stack trace:
#0
/prod/html/tools/dfpapi/googleads-php-lib/src/Google/AdsApi/Dfp/AdManagerSessionBuilder.php(303):
Google\AdsApi\Dfp\AdManagerSessionBuilder->validate()
#1
/prod/html/tools/dfpapi/googleads-php-lib/examples/Dfp/v201811/ReportService/AdEx_jagran_report.php(318):
Google\AdsApi\Dfp\AdManagerSessionBuilder->build()
#2
/prod/html/tools/dfpapi/googleads-php-lib/examples/Dfp/v201811/ReportService/AdEx_jagran_report.php(327):
RunSavedQuery::main()
#3 {main}
thrown in
/prod/html/tools/dfpapi/googleads-php-lib/src/Google/AdsApi/Dfp/AdManagerSessionBuilder.php
on line 350
Thanks & Regards
Abhay Mishra
Sr. Manager - Technology
Jagran New Media[AD_MANAGER]
; Required Ad Manager API properties. Details can be found at:
; https://developers.google.com/ad-manager/docs/soap_xml
networkCode = "INSERT_NETWORK_CODE_HERE"
applicationName = "INSERT_APPLICATION_NAME_HERE"
; Optional additional Ad Manager API settings.
; endpoint = "https://ads.google.com/"
[OAUTH2]
...
[SOAP]
...
[CONNECTION]
...
[LOGGING]
...
use Google\AdsApi\AdManager\AdManagerSession;
use Google\AdsApi\AdManager\AdManagerSessionBuilder;
use Google\AdsApi\AdManager\v201808\ServiceFactory;