When I Want to Block IP Address code give this error But my Developer token is fine because i getting the campaign using this IP address

22 views
Skip to first unread message

Nouman ali

unread,
Feb 25, 2021, 6:42:01 AM2/25/21
to AdWords API and Google Ads API Forum
PHP Fatal error: Uncaught InvalidArgumentException: A developer token must be s
et. in D:\xampp\htdocs\google-ads-php\src\Google\Ads\GoogleAds\Lib\AdWordsSessio
nBuilder.php:465
Stack trace:
#0 D:\xampp\htdocs\google-ads-php\src\Google\Ads\GoogleAds\Lib\AdWordsSessionBui
lder.php(395): Google\Ads\GoogleAds\Lib\AdWordsSessionBuilder->validate()
#1 D:\xampp\htdocs\google-ads-php\examples\BasicOperations\BlockedIP.php(66): Go
ogle\Ads\GoogleAds\Lib\AdWordsSessionBuilder->build()
#2 D:\xampp\htdocs\google-ads-php\examples\BasicOperations\BlockedIP.php(72): Go
ogle\Ads\GoogleAds\Examples\BasicOperations\BlockedIP::add('1631289993', '39.40.
249.119')
#3 {main}
thrown in D:\xampp\htdocs\google-ads-php\src\Google\Ads\GoogleAds\Lib\AdWordsS
essionBuilder.php on line 465

Fatal error: Uncaught InvalidArgumentException: A developer token must be set. i
n D:\xampp\htdocs\google-ads-php\src\Google\Ads\GoogleAds\Lib\AdWordsSessionBuil
der.php:465
Stack trace:
#0 D:\xampp\htdocs\google-ads-php\src\Google\Ads\GoogleAds\Lib\AdWordsSessionBui
lder.php(395): Google\Ads\GoogleAds\Lib\AdWordsSessionBuilder->validate()
#1 D:\xampp\htdocs\google-ads-php\examples\BasicOperations\BlockedIP.php(66): Go
ogle\Ads\GoogleAds\Lib\AdWordsSessionBuilder->build()
#2 D:\xampp\htdocs\google-ads-php\examples\BasicOperations\BlockedIP.php(72): Go
ogle\Ads\GoogleAds\Examples\BasicOperations\BlockedIP::add('1631289993', '39.40.
249.119')
#3 {main}
thrown in D:\xampp\htdocs\google-ads-php\src\Google\Ads\GoogleAds\Lib\AdWordsS
essionBuilder.php on line 465
Reply all
Reply to author
Forward
0 new messages