Deprecated: Return type of Google_Model::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Model.php on line 249

Deprecated: Return type of Google_Model::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Model.php on line 254

Deprecated: Return type of Google_Model::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Model.php on line 261

Deprecated: Return type of Google_Model::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Model.php on line 271

Deprecated: Return type of Google_Collection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Collection.php on line 24

Deprecated: Return type of Google_Collection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Collection.php on line 40

Deprecated: Return type of Google_Collection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Collection.php on line 32

Deprecated: Return type of Google_Collection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Collection.php on line 45

Deprecated: Return type of Google_Collection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Collection.php on line 16

Deprecated: Return type of Google_Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Collection.php on line 51

Deprecated: Creation of dynamic property Google\Service\AdMob::$serviceName is deprecated in /var/www/html/admob-api-php/vendor/google/apiclient-services/src/AdMob.php on line 65
Logout AdMob API samples

AdMob API samples


Fatal error: Uncaught Google_Service_Exception: { "error": "invalid_grant", "error_description": "Bad Request" } in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Http/REST.php:118 Stack trace: #0 /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Http/REST.php(94): Google_Http_REST::decodeHttpResponse() #1 /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Task/Runner.php(181): Google_Http_REST::doExecute() #2 /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Http/REST.php(58): Google_Task_Runner->run() #3 /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Client.php(779): Google_Http_REST::execute() #4 /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Service/Resource.php(232): Google_Client->execute() #5 /var/www/html/admob-api-php/vendor/google/apiclient-services/src/AdMob/Resource/Accounts.php(65): Google_Service_Resource->call() #6 /var/www/html/admob-api-php/examples/Accounts/ListAccounts.php(77): Google\Service\AdMob\Resource\Accounts->listAccounts() #7 /var/www/html/admob-api-php/index.php(152): Examples\Accounts\ListAccounts::getFirstAccountName() #8 /var/www/html/admob-api-php/index.php(129): makeRequests() #9 {main} thrown in /var/www/html/admob-api-php/vendor/google/apiclient/src/Google/Http/REST.php on line 118