RE: google ads api product link invitation reference

285 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
May 20, 2024, 8:53:45 PM5/20/24
to vedaa...@gmail.com, adwor...@googlegroups.com
Hi Mike,

Thank you for reaching out to the Google Ads API support team.

To replicate the issue from our end, kindly provide us with the customer ID and login customer ID. Also, share an uncropped screenshot of the Google Ads account by highlighting the product invitation link you would like to retrieve it via Google Ads API. 
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ292:ref" (ADR-00235756)

Thanks,
 
Google Logo Google Ads API Team


Ansh Ved

unread,
May 21, 2024, 9:30:53 AM5/21/24
to ads...@forumsupport.google, adwor...@googlegroups.com
Hi,

Thanks for the prompt response. As requested. 
Login Customer ID (MCC Account): 747-188-6550
Customer ID (Child Ads Account): 816-673-3962

Below is the screenshot of the product invitation which I want to accept using google ads api
image.png

--

Google Ads API Forum Advisor

unread,
May 21, 2024, 11:49:15 AM5/21/24
to vedaa...@gmail.com, adwor...@googlegroups.com
Hi,

Based on the information provided, I understand that you are looking for guidance on how to accept the product invitation using the Google Ads API. You can use the ProductLinkInvitationService.UpdateProductLinkInvitation method to update the status of the ProductLinkInvitation to ACCEPTED or REJECTED. I would recommend you to kindly refer to the "Ways to link accounts" documentation for more information. 

Ansh Ved

unread,
May 21, 2024, 12:41:57 PM5/21/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Hi,
As per my original query. I have already tried using ProductLinkInvitationService.UpdateProductLinkInvitation method to update the status of the ProductLinkInvitation to ACCEPTED or REJECTED.

Please find the code below. I am not able to see any pending invitations or accepted invitations even though I have them here.
I want to fetch those invitations first and then accept the correct one. 

I am trying to use the Google AdWords API to accept invitations sent from the YouTube Account. 

I have already set up the connection. Using the PHP library for V16: https://github.com/googleads/google-ads-php/

I am using this with Laravel

I sent a get request to get the list of product invitation links, but I am receiving an empty array. I could successfully fetch campaigns from Google ads.

/////////////////// This works well /////////////
public function getAllCampaigns($customerId)
    {
        $googleAdsServiceClient = $this->client->getGoogleAdsServiceClient();
        $query = '
        SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id
        ';

        $stream = $googleAdsServiceClient->searchStream(
            SearchGoogleAdsStreamRequest::build($customerId, $query)
        );

        $allCampaigns = [];
        foreach ($stream->iterateAllElements() as $row) {
            $allCampaigns[] = [
                'campaign_id' => $row->getCampaign()->getId(),
                'campaign_name' => $row->getCampaign()->getName()
            ];
        }

        return $allCampaigns;
    } ///////////////// This does not work /////////////////
public function listPendingYoutubeLinkInvitations($customerId)
    {
        $googleAdsServiceClient = $this->client->getGoogleAdsServiceClient();
        $query = '
        SELECT product_link_invitation.status, product_link_invitation.type, product_link_invitation.product_link_invitation_id, product_link_invitation.resource_name FROM product_link_invitation
        ';

        $stream = $googleAdsServiceClient->searchStream(
            SearchGoogleAdsStreamRequest::build($customerId, $query)
        );

        $invitations = [];
        foreach ($stream->iterateAllElements() as $row) {
            $invitations[] = $row->getProductLink();
        }

        return $invitations;
    }

Please let me know how to proceed.

Google Ads API Forum Advisor

unread,
May 21, 2024, 6:02:02 PM5/21/24
to vedaa...@gmail.com, adwor...@googlegroups.com
Hi,

Upon checking your account, I could see that there are no product_link_invitation requests received for the Youtube product. This might be the reason that you are getting an empty response via API. Could you please confirm from your end, if you are able to see any pending product_link_invitation requests in your account.

Ansh Ved

unread,
May 22, 2024, 12:15:42 AM5/22/24
to Google Ads API Forum Advisor, adwor...@googlegroups.com, tuushaa...@promodome.in
Hi,

There is a pending request on my Google Ads Account. Sharing a screenshot for your reference
image.png

Google Ads API Forum Advisor

unread,
May 22, 2024, 5:53:08 AM5/22/24
to vedaa...@gmail.com, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

In order to assist you further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end while you are receiving an empty array when fetching the pending invitations.

Since you are using the PHP client library, if you haven't enabled logging yet, I would request you to enable it by referring to this guide PHP.

Google Ads API Forum Advisor

unread,
May 22, 2024, 10:28:53 PM5/22/24
to vedaa...@gmail.com, tuushaa...@promodome.in, adwor...@googlegroups.com

Hi,

To further investigate your issue, kindly provide the request-id and request header generated at your end when hitting the API, as we couldn’t find the request-id and header in the provided code snippet. 

Ansh Ved

unread,
May 23, 2024, 12:35:07 AM5/23/24
to Google Ads API Forum Advisor, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

I have enabled logging from the guide. I am sending you the updated code and the logs. There are no errors or warnings. The request code is 200.

Here is my updated code.

public function listPendingYoutubeLinkInvitations($customerId)
    {
        $googleAdsServiceClient = $this->client->getGoogleAdsServiceClient();
        $query = 'SELECT product_link_invitation.resource_name FROM product_link_invitation';

        $logger = $this->client->getLogger();
        $logger->info("Executing query: $query for customer ID: $customerId");

        $response = $googleAdsServiceClient->search(SearchGoogleAdsRequest::build($customerId, $query));

        $logger->info('Response: ' . json_encode($response));
   
        $invitations = [];
        foreach ($response->iterateAllElements() as $row) {
            $invitationResourceName = $row->getProductLinkInvitation()->getResourceName();
            $invitations[] = [
                'resource_name' => $invitationResourceName,
            ];
        }

        $logger->info('Query executed successfully, invitations fetched.', $invitations);

        return $invitations;
    }



Here is my log output
[2024-05-22T14:41:07.675860+00:00] google-ads-logger.INFO: Google Ads Service logger initialized. [] []
[2024-05-22T14:41:08.419727+00:00] google-ads-logger.INFO: Executing query: SELECT product_link_invitation.resource_name FROM product_link_invitation for customer ID: 8166733962 [] []
[2024-05-22T14:41:12.181379+00:00] google-ads-logger.INFO: Response: {} [] []
[2024-05-22T14:41:12.182676+00:00] google-ads-logger.INFO: Query executed successfully, invitations fetched. [] []

Ansh Ved

unread,
May 23, 2024, 12:35:08 AM5/23/24
to Google Ads API Forum Advisor, tuushaa...@promodome.in, adwor...@googlegroups.com
Adding here

I get his when I var_dump($response)

object(Google\ApiCore\PagedListResponse)#41553 (1) {
  ["firstPage":"Google\ApiCore\PagedListResponse":private]=>
  object(Google\ApiCore\Page)#41630 (6) {
    ["call":"Google\ApiCore\Page":private]=>
    object(Google\ApiCore\Call)#41648 (5) {
      ["method":"Google\ApiCore\Call":private]=>
      string(57) "google.ads.googleads.v16.services.GoogleAdsService/Search"
      ["callType":"Google\ApiCore\Call":private]=>
      int(0)
      ["decodeType":"Google\ApiCore\Call":private]=>
      string(57) "Google\Ads\GoogleAds\V16\Services\SearchGoogleAdsResponse"
      ["message":"Google\ApiCore\Call":private]=>
      object(Google\Ads\GoogleAds\V16\Services\SearchGoogleAdsRequest)#8699 (2) {
        ["customerId"]=>
        string(10) "8166733962"
        ["query"]=>
        string(73) "SELECT product_link_invitation.resource_name FROM product_link_invitation"
      }
      ["descriptor":"Google\ApiCore\Call":private]=>
      array(0) {
      }
    }
    ["callable":"Google\ApiCore\Page":private]=>
    object(Google\ApiCore\Middleware\OptionsFilterMiddleware)#41187 (2) {
      ["nextHandler":"Google\ApiCore\Middleware\OptionsFilterMiddleware":private]=>
      object(Google\ApiCore\Middleware\RequestAutoPopulationMiddleware)#41188 (2) {
        ["nextHandler":"Google\ApiCore\Middleware\RequestAutoPopulationMiddleware":private]=>
        object(Google\ApiCore\Middleware\RetryMiddleware)#41650 (4) {
          ["nextHandler":"Google\ApiCore\Middleware\RetryMiddleware":private]=>
          object(Google\ApiCore\Middleware\FixedHeaderMiddleware)#41649 (3) {
            ["nextHandler":"Google\ApiCore\Middleware\FixedHeaderMiddleware":private]=>
            object(Google\ApiCore\Middleware\CredentialsWrapperMiddleware)#41181 (2) {
              ["nextHandler":"Google\ApiCore\Middleware\CredentialsWrapperMiddleware":private]=>
              object(Closure)#41652 (2) {
                ["this"]=>
                object(Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient)#8706 (15) {
                  ["transport":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  object(Google\ApiCore\Transport\RestTransport)#8655 (4) {
                    ["requestBuilder":"Google\ApiCore\Transport\RestTransport":private]=>
                    object(Google\ApiCore\RequestBuilder)#8662 (2) {
                      ["baseUri":"Google\ApiCore\RequestBuilder":private]=>
                      string(28) "googleads.googleapis.com:443"
                      ["restConfig":"Google\ApiCore\RequestBuilder":private]=>
                      array(1) {
                        ["interfaces"]=>
                        array(2) {
                          ["google.ads.googleads.v16.services.GoogleAdsService"]=>
                          array(3) {
                            ["Mutate"]=>
                            array(4) {
                              ["method"]=>
                              string(4) "post"
                              ["uriTemplate"]=>
                              string(47) "/v16/customers/{customer_id=*}/googleAds:mutate"
                              ["body"]=>
                              string(1) "*"
                              ["placeholders"]=>
                              array(1) {
                                ["customer_id"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(13) "getCustomerId"
                                  }
                                }
                              }
                            }
                            ["Search"]=>
                            array(4) {
                              ["method"]=>
                              string(4) "post"
                              ["uriTemplate"]=>
                              string(47) "/v16/customers/{customer_id=*}/googleAds:search"
                              ["body"]=>
                              string(1) "*"
                              ["placeholders"]=>
                              array(1) {
                                ["customer_id"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(13) "getCustomerId"
                                  }
                                }
                              }
                            }
                            ["SearchStream"]=>
                            array(4) {
                              ["method"]=>
                              string(4) "post"
                              ["uriTemplate"]=>
                              string(53) "/v16/customers/{customer_id=*}/googleAds:searchStream"
                              ["body"]=>
                              string(1) "*"
                              ["placeholders"]=>
                              array(1) {
                                ["customer_id"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(13) "getCustomerId"
                                  }
                                }
                              }
                            }
                          }
                          ["google.longrunning.Operations"]=>
                          array(5) {
                            ["CancelOperation"]=>
                            array(4) {
                              ["method"]=>
                              string(4) "post"
                              ["uriTemplate"]=>
                              string(43) "/v16/{name=customers/*/operations/*}:cancel"
                              ["body"]=>
                              string(1) "*"
                              ["placeholders"]=>
                              array(1) {
                                ["name"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(7) "getName"
                                  }
                                }
                              }
                            }
                            ["DeleteOperation"]=>
                            array(3) {
                              ["method"]=>
                              string(6) "delete"
                              ["uriTemplate"]=>
                              string(36) "/v16/{name=customers/*/operations/*}"
                              ["placeholders"]=>
                              array(1) {
                                ["name"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(7) "getName"
                                  }
                                }
                              }
                            }
                            ["GetOperation"]=>
                            array(3) {
                              ["method"]=>
                              string(3) "get"
                              ["uriTemplate"]=>
                              string(36) "/v16/{name=customers/*/operations/*}"
                              ["placeholders"]=>
                              array(1) {
                                ["name"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(7) "getName"
                                  }
                                }
                              }
                            }
                            ["ListOperations"]=>
                            array(3) {
                              ["method"]=>
                              string(3) "get"
                              ["uriTemplate"]=>
                              string(34) "/v16/{name=customers/*/operations}"
                              ["placeholders"]=>
                              array(1) {
                                ["name"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(7) "getName"
                                  }
                                }
                              }
                            }
                            ["WaitOperation"]=>
                            array(4) {
                              ["method"]=>
                              string(4) "post"
                              ["uriTemplate"]=>
                              string(41) "/v16/{name=customers/*/operations/*}:wait"
                              ["body"]=>
                              string(1) "*"
                              ["placeholders"]=>
                              array(1) {
                                ["name"]=>
                                array(1) {
                                  ["getters"]=>
                                  array(1) {
                                    [0]=>
                                    string(7) "getName"
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                    ["httpHandler":"Google\ApiCore\Transport\RestTransport":private]=>
                    array(2) {
                      [0]=>
                      object(Google\Auth\HttpHandler\Guzzle7HttpHandler)#8656 (1) {
                        ["client":"Google\Auth\HttpHandler\Guzzle6HttpHandler":private]=>
                        object(GuzzleHttp\Client)#8648 (1) {
                          ["config":"GuzzleHttp\Client":private]=>
                          array(8) {
                            ["handler"]=>
                            object(GuzzleHttp\HandlerStack)#8673 (3) {
                              ["handler":"GuzzleHttp\HandlerStack":private]=>
                              object(Closure)#8645 (2) {
                                ["static"]=>
                                array(2) {
                                  ["default"]=>
                                  object(Closure)#8638 (2) {
                                    ["static"]=>
                                    array(2) {
                                      ["default"]=>
                                      object(GuzzleHttp\Handler\CurlMultiHandler)#8672 (7) {
                                        ["factory":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                        object(GuzzleHttp\Handler\CurlFactory)#8671 (2) {
                                          ["handles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                          array(1) {
                                            [0]=>
                                            object(CurlHandle)#41185 (0) {
                                            }
                                          }
                                          ["maxHandles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                          int(50)
                                        }
                                        ["selectTimeout":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                        int(1)
                                        ["active":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                        int(0)
                                        ["handles":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                        array(0) {
                                        }
                                        ["delays":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                        array(0) {
                                        }
                                        ["options":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                        array(0) {
                                        }
                                        ["_mh":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                        object(CurlMultiHandle)#41624 (0) {
                                        }
                                      }
                                      ["sync"]=>
                                      object(GuzzleHttp\Handler\CurlHandler)#8670 (1) {
                                        ["factory":"GuzzleHttp\Handler\CurlHandler":private]=>
                                        object(GuzzleHttp\Handler\CurlFactory)#8669 (2) {
                                          ["handles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                          array(0) {
                                          }
                                          ["maxHandles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                          int(3)
                                        }
                                      }
                                    }
                                    ["parameter"]=>
                                    array(2) {
                                      ["$request"]=>
                                      string(10) "<required>"
                                      ["$options"]=>
                                      string(10) "<required>"
                                    }
                                  }
                                  ["streaming"]=>
                                  object(GuzzleHttp\Handler\StreamHandler)#8646 (1) {
                                    ["lastHeaders":"GuzzleHttp\Handler\StreamHandler":private]=>
                                    array(0) {
                                    }
                                  }
                                }
                                ["parameter"]=>
                                array(2) {
                                  ["$request"]=>
                                  string(10) "<required>"
                                  ["$options"]=>
                                  string(10) "<required>"
                                }
                              }
                              ["stack":"GuzzleHttp\HandlerStack":private]=>
                              array(4) {
                                [0]=>
                                array(2) {
                                  [0]=>
                                  object(Closure)#8644 (2) {
                                    ["static"]=>
                                    array(1) {
                                      ["bodySummarizer"]=>
                                      object(GuzzleHttp\BodySummarizer)#8661 (1) {
                                        ["truncateAt":"GuzzleHttp\BodySummarizer":private]=>
                                        int(240)
                                      }
                                    }
                                    ["parameter"]=>
                                    array(1) {
                                      ["$handler"]=>
                                      string(10) "<required>"
                                    }
                                  }
                                  [1]=>
                                  string(11) "http_errors"
                                }
                                [1]=>
                                array(2) {
                                  [0]=>
                                  object(Closure)#8643 (1) {
                                    ["parameter"]=>
                                    array(1) {
                                      ["$handler"]=>
                                      string(10) "<required>"
                                    }
                                  }
                                  [1]=>
                                  string(15) "allow_redirects"
                                }
                                [2]=>
                                array(2) {
                                  [0]=>
                                  object(Closure)#8642 (1) {
                                    ["parameter"]=>
                                    array(1) {
                                      ["$handler"]=>
                                      string(10) "<required>"
                                    }
                                  }
                                  [1]=>
                                  string(7) "cookies"
                                }
                                [3]=>
                                array(2) {
                                  [0]=>
                                  object(Closure)#8641 (1) {
                                    ["parameter"]=>
                                    array(1) {
                                      ["$handler"]=>
                                      string(10) "<required>"
                                    }
                                  }
                                  [1]=>
                                  string(12) "prepare_body"
                                }
                              }
                              ["cached":"GuzzleHttp\HandlerStack":private]=>
                              object(Closure)#41627 (2) {
                                ["static"]=>
                                array(2) {
                                  ["handler"]=>
                                  object(GuzzleHttp\RedirectMiddleware)#41554 (1) {
                                    ["nextHandler":"GuzzleHttp\RedirectMiddleware":private]=>
                                    object(Closure)#41643 (2) {
                                      ["static"]=>
                                      array(1) {
                                        ["handler"]=>
                                        object(GuzzleHttp\PrepareBodyMiddleware)#41555 (1) {
                                          ["nextHandler":"GuzzleHttp\PrepareBodyMiddleware":private]=>
                                          object(Closure)#8645 (2) {
                                            ["static"]=>
                                            array(2) {
                                              ["default"]=>
                                              object(Closure)#8638 (2) {
                                                ["static"]=>
                                                array(2) {
                                                  ["default"]=>
                                                  object(GuzzleHttp\Handler\CurlMultiHandler)#8672 (7) {
                                                    ["factory":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                                    object(GuzzleHttp\Handler\CurlFactory)#8671 (2) {
                                                      ["handles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                                      array(1) {
                                                        [0]=>
                                                        object(CurlHandle)#41185 (0) {
                                                        }
                                                      }
                                                      ["maxHandles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                                      int(50)
                                                    }
                                                    ["selectTimeout":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                                    int(1)
                                                    ["active":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                                    int(0)
                                                    ["handles":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                                    array(0) {
                                                    }
                                                    ["delays":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                                    array(0) {
                                                    }
                                                    ["options":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                                    array(0) {
                                                    }
                                                    ["_mh":"GuzzleHttp\Handler\CurlMultiHandler":private]=>
                                                    object(CurlMultiHandle)#41624 (0) {
                                                    }
                                                  }
                                                  ["sync"]=>
                                                  object(GuzzleHttp\Handler\CurlHandler)#8670 (1) {
                                                    ["factory":"GuzzleHttp\Handler\CurlHandler":private]=>
                                                    object(GuzzleHttp\Handler\CurlFactory)#8669 (2) {
                                                      ["handles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                                      array(0) {
                                                      }
                                                      ["maxHandles":"GuzzleHttp\Handler\CurlFactory":private]=>
                                                      int(3)
                                                    }
                                                  }
                                                }
                                                ["parameter"]=>
                                                array(2) {
                                                  ["$request"]=>
                                                  string(10) "<required>"
                                                  ["$options"]=>
                                                  string(10) "<required>"
                                                }
                                              }
                                              ["streaming"]=>
                                              object(GuzzleHttp\Handler\StreamHandler)#8646 (1) {
                                                ["lastHeaders":"GuzzleHttp\Handler\StreamHandler":private]=>
                                                array(0) {
                                                }
                                              }
                                            }
                                            ["parameter"]=>
                                            array(2) {
                                              ["$request"]=>
                                              string(10) "<required>"
                                              ["$options"]=>
                                              string(10) "<required>"
                                            }
                                          }
                                        }
                                      }
                                      ["parameter"]=>
                                      array(2) {
                                        ["$request"]=>
                                        string(10) "<required>"
                                        ["$options"]=>
                                        string(10) "<required>"
                                      }
                                    }
                                  }
                                  ["bodySummarizer"]=>
                                  object(GuzzleHttp\BodySummarizer)#8661 (1) {
                                    ["truncateAt":"GuzzleHttp\BodySummarizer":private]=>
                                    int(240)
                                  }
                                }
                                ["parameter"]=>
                                array(2) {
                                  ["$request"]=>
                                  string(10) "<required>"
                                  ["$options"]=>
                                  string(10) "<required>"
                                }
                              }
                            }
                            ["allow_redirects"]=>
                            array(5) {
                              ["max"]=>
                              int(5)
                              ["protocols"]=>
                              array(2) {
                                [0]=>
                                string(4) "http"
                                [1]=>
                                string(5) "https"
                              }
                              ["strict"]=>
                              bool(false)
                              ["referer"]=>
                              bool(false)
                              ["track_redirects"]=>
                              bool(false)
                            }
                            ["http_errors"]=>
                            bool(true)
                            ["decode_content"]=>
                            bool(true)
                            ["verify"]=>
                            bool(true)
                            ["cookies"]=>
                            bool(false)
                            ["idn_conversion"]=>
                            bool(false)
                            ["headers"]=>
                            array(1) {
                              ["User-Agent"]=>
                              string(12) "GuzzleHttp/7"
                            }
                          }
                        }
                      }
                      [1]=>
                      string(5) "async"
                    }
                    ["transportName":"Google\ApiCore\Transport\RestTransport":private]=>
                    string(4) "REST"
                    ["clientCertSource":"Google\ApiCore\Transport\RestTransport":private]=>
                    NULL
                  }
                  ["credentialsWrapper":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  object(Google\ApiCore\CredentialsWrapper)#8664 (4) {
                    ["credentialsFetcher":"Google\ApiCore\CredentialsWrapper":private]=>
                    object(Google\Auth\Credentials\UserRefreshCredentials)#1814 (2) {
                      ["auth":protected]=>
                      object(Google\Auth\OAuth2)#1815 (35) {
                        ["authorizationUri":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["tokenCredentialUri":"Google\Auth\OAuth2":private]=>
                        object(GuzzleHttp\Psr7\Uri)#1816 (8) {
                          ["scheme":"GuzzleHttp\Psr7\Uri":private]=>
                          string(5) "https"
                          ["userInfo":"GuzzleHttp\Psr7\Uri":private]=>
                          string(0) ""
                          ["host":"GuzzleHttp\Psr7\Uri":private]=>
                          string(21) "oauth2.googleapis.com"
                          ["port":"GuzzleHttp\Psr7\Uri":private]=>
                          NULL
                          ["path":"GuzzleHttp\Psr7\Uri":private]=>
                          string(6) "/token"
                          ["query":"GuzzleHttp\Psr7\Uri":private]=>
                          string(0) ""
                          ["fragment":"GuzzleHttp\Psr7\Uri":private]=>
                          string(0) ""
                          ["composedComponents":"GuzzleHttp\Psr7\Uri":private]=>
                          string(35) "https://oauth2.googleapis.com/token"
                        }
                        ["redirectUri":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["clientId":"Google\Auth\OAuth2":private]=>
                        string(73) "1014046215369-k4r7nbifchj2ju79htibs817f4oo3vo4.apps.googleusercontent.com"
                        ["clientSecret":"Google\Auth\OAuth2":private]=>
                        string(35) "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"
                        ["username":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["password":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["scope":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["state":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["code":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["issuer":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["audience":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["sub":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["expiry":"Google\Auth\OAuth2":private]=>
                        int(3600)
                        ["signingKey":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["signingKeyId":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["signingAlgorithm":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["refreshToken":"Google\Auth\OAuth2":private]=>
                        string(103) "1//04qy9hgftMzhiCgYIARAAGAQSNwF-L9IrezBQQPnsTWXzIqfqky7AiRxOmjMqyl1BmZKm8yPcwpwogFyVUDSHI55LFa-VAXNRUzI"
                        ["accessToken":"Google\Auth\OAuth2":private]=>
                        string(220) "ya29.a0AXooCgtxRoP3dH2PmsiDp7-7Kzf4iXDVULdBys7VEVS_W9l_KrEbWQu7mkYbiYRDXk0aLGENo-f3O_IapyvDQvO7v1jW40Y952EWQXDv9CSrdA75FcFb5upW4ANA_XIqgIRhDCQc3OEWhFbm_1eMtxPr6r5CqlUCa34MoQaCgYKAUwSARMSFQHGX2MiNbU3Qa7HOD3bVSTpWAGKuA0173"
                        ["idToken":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["grantedScope":"Google\Auth\OAuth2":private]=>
                        string(39) "https://www.googleapis.com/auth/adwords"
                        ["expiresIn":"Google\Auth\OAuth2":private]=>
                        int(3599)
                        ["expiresAt":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["issuedAt":"Google\Auth\OAuth2":private]=>
                        int(1716389852)
                        ["grantType":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["extensionParams":"Google\Auth\OAuth2":private]=>
                        array(0) {
                        }
                        ["additionalClaims":"Google\Auth\OAuth2":private]=>
                        array(0) {
                        }
                        ["codeVerifier":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["resource":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["subjectTokenFetcher":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["subjectTokenType":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["actorToken":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["actorTokenType":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["issuedTokenType":"Google\Auth\OAuth2":private]=>
                        NULL
                        ["additionalOptions":"Google\Auth\OAuth2":private]=>
                        array(0) {
                        }
                      }
                      ["quotaProject":protected]=>
                      NULL
                    }
                    ["authHttpHandler":"Google\ApiCore\CredentialsWrapper":private]=>
                    NULL
                    ["universeDomain":"Google\ApiCore\CredentialsWrapper":private]=>
                    string(14) "googleapis.com"
                    ["hasCheckedUniverse":"Google\ApiCore\CredentialsWrapper":private]=>
                    bool(true)
                  }
                  ["retrySettings":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  array(3) {
                    ["Mutate"]=>
                    object(Google\ApiCore\RetrySettings)#8666 (12) {
                      ["retriesEnabled":"Google\ApiCore\RetrySettings":private]=>
                      bool(true)
                      ["retryableCodes":"Google\ApiCore\RetrySettings":private]=>
                      array(2) {
                        [0]=>
                        string(11) "UNAVAILABLE"
                        [1]=>
                        string(17) "DEADLINE_EXCEEDED"
                      }
                      ["initialRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(5000)
                      ["retryDelayMultiplier":"Google\ApiCore\RetrySettings":private]=>
                      float(1.3)
                      ["maxRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(60000)
                      ["initialRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["rpcTimeoutMultiplier":"Google\ApiCore\RetrySettings":private]=>
                      float(1)
                      ["maxRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["totalTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["noRetriesRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["maxRetries":"Google\ApiCore\RetrySettings":private]=>
                      int(0)
                      ["retryFunction":"Google\ApiCore\RetrySettings":private]=>
                      NULL
                    }
                    ["Search"]=>
                    object(Google\ApiCore\RetrySettings)#8665 (12) {
                      ["retriesEnabled":"Google\ApiCore\RetrySettings":private]=>
                      bool(true)
                      ["retryableCodes":"Google\ApiCore\RetrySettings":private]=>
                      array(2) {
                        [0]=>
                        string(11) "UNAVAILABLE"
                        [1]=>
                        string(17) "DEADLINE_EXCEEDED"
                      }
                      ["initialRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(5000)
                      ["retryDelayMultiplier":"Google\ApiCore\RetrySettings":private]=>
                      float(1.3)
                      ["maxRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(60000)
                      ["initialRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["rpcTimeoutMultiplier":"Google\ApiCore\RetrySettings":private]=>
                      float(1)
                      ["maxRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["totalTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["noRetriesRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["maxRetries":"Google\ApiCore\RetrySettings":private]=>
                      int(0)
                      ["retryFunction":"Google\ApiCore\RetrySettings":private]=>
                      NULL
                    }
                    ["SearchStream"]=>
                    object(Google\ApiCore\RetrySettings)#8663 (12) {
                      ["retriesEnabled":"Google\ApiCore\RetrySettings":private]=>
                      bool(false)
                      ["retryableCodes":"Google\ApiCore\RetrySettings":private]=>
                      array(0) {
                      }
                      ["initialRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(100)
                      ["retryDelayMultiplier":"Google\ApiCore\RetrySettings":private]=>
                      float(1.3)
                      ["maxRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(60000)
                      ["initialRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(20000)
                      ["rpcTimeoutMultiplier":"Google\ApiCore\RetrySettings":private]=>
                      int(1)
                      ["maxRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(20000)
                      ["totalTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(600000)
                      ["noRetriesRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
                      int(14400000)
                      ["maxRetries":"Google\ApiCore\RetrySettings":private]=>
                      int(0)
                      ["retryFunction":"Google\ApiCore\RetrySettings":private]=>
                      NULL
                    }
                  }
                  ["serviceName":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  string(50) "google.ads.googleads.v16.services.GoogleAdsService"
                  ["agentHeader":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  array(2) {
                    ["x-goog-api-client"]=>
                    array(1) {
                      [0]=>
                      string(73) "gl-php/8.1.25 gccl/23.0.1 gapic/23.0.1 gax/1.33.0 grpc/ rest/1.33.0 pb/+n"
                    }
                    ["User-Agent"]=>
                    array(1) {
                      [0]=>
                      string(21) "gcloud-php-new/23.0.1"
                    }
                  }
                  ["descriptors":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  array(4) {
                    ["Mutate"]=>
                    array(3) {
                      ["callType"]=>
                      int(0)
                      ["responseType"]=>
                      string(57) "Google\Ads\GoogleAds\V16\Services\MutateGoogleAdsResponse"
                      ["headerParams"]=>
                      array(1) {
                        [0]=>
                        array(2) {
                          ["keyName"]=>
                          string(11) "customer_id"
                          ["fieldAccessors"]=>
                          array(1) {
                            [0]=>
                            string(13) "getCustomerId"
                          }
                        }
                      }
                    }
                    ["Search"]=>
                    array(4) {
                      ["pageStreaming"]=>
                      array(6) {
                        ["requestPageTokenGetMethod"]=>
                        string(12) "getPageToken"
                        ["requestPageTokenSetMethod"]=>
                        string(12) "setPageToken"
                        ["requestPageSizeGetMethod"]=>
                        string(11) "getPageSize"
                        ["requestPageSizeSetMethod"]=>
                        string(11) "setPageSize"
                        ["responsePageTokenGetMethod"]=>
                        string(16) "getNextPageToken"
                        ["resourcesGetMethod"]=>
                        string(10) "getResults"
                      }
                      ["callType"]=>
                      int(5)
                      ["responseType"]=>
                      string(57) "Google\Ads\GoogleAds\V16\Services\SearchGoogleAdsResponse"
                      ["headerParams"]=>
                      array(1) {
                        [0]=>
                        array(2) {
                          ["keyName"]=>
                          string(11) "customer_id"
                          ["fieldAccessors"]=>
                          array(1) {
                            [0]=>
                            string(13) "getCustomerId"
                          }
                        }
                      }
                    }
                    ["SearchStream"]=>
                    array(4) {
                      ["grpcStreaming"]=>
                      array(1) {
                        ["grpcStreamingType"]=>
                        string(15) "ServerStreaming"
                      }
                      ["callType"]=>
                      int(3)
                      ["responseType"]=>
                      string(63) "Google\Ads\GoogleAds\V16\Services\SearchGoogleAdsStreamResponse"
                      ["headerParams"]=>
                      array(1) {
                        [0]=>
                        array(2) {
                          ["keyName"]=>
                          string(11) "customer_id"
                          ["fieldAccessors"]=>
                          array(1) {
                            [0]=>
                            string(13) "getCustomerId"
                          }
                        }
                      }
                    }
                    ["templateMap"]=>
                    array(88) {
                      ["accessibleBiddingStrategy"]=>
                      string(73) "customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}"
                      ["ad"]=>
                      string(35) "customers/{customer_id}/ads/{ad_id}"
                      ["adGroup"]=>
                      string(46) "customers/{customer_id}/adGroups/{ad_group_id}"
                      ["adGroupAd"]=>
                      string(56) "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}"
                      ["adGroupAdLabel"]=>
                      string(72) "customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}"
                      ["adGroupAsset"]=>
                      string(75) "customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}"
                      ["adGroupBidModifier"]=>
                      string(72) "customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}"
                      ["adGroupCriterion"]=>
                      string(68) "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}"
                      ["adGroupCriterionCustomizer"]=>
                      string(106) "customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}"
                      ["adGroupCriterionLabel"]=>
                      string(86) "customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}"
                      ["adGroupCustomizer"]=>
                      string(82) "customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}"
                      ["adGroupExtensionSetting"]=>
                      string(79) "customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}"
                      ["adGroupFeed"]=>
                      string(60) "customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}"
                      ["adGroupLabel"]=>
                      string(62) "customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}"
                      ["adParameter"]=>
                      string(83) "customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}"
                      ["asset"]=>
                      string(41) "customers/{customer_id}/assets/{asset_id}"
                      ["assetGroup"]=>
                      string(52) "customers/{customer_id}/assetGroups/{asset_group_id}"
                      ["assetGroupAsset"]=>
                      string(81) "customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}"
                      ["assetGroupListingGroupFilter"]=>
                      string(96) "customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}"
                      ["assetGroupSignal"]=>
                      string(73) "customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}"
                      ["assetSet"]=>
                      string(48) "customers/{customer_id}/assetSets/{asset_set_id}"
                      ["assetSetAsset"]=>
                      string(64) "customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}"
                      ["audience"]=>
                      string(47) "customers/{customer_id}/audiences/{audience_id}"
                      ["biddingDataExclusion"]=>
                      string(68) "customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}"
                      ["biddingSeasonalityAdjustment"]=>
                      string(76) "customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}"
                      ["biddingStrategy"]=>
                      string(63) "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}"
                      ["campaign"]=>
                      string(47) "customers/{customer_id}/campaigns/{campaign_id}"
                      ["campaignAsset"]=>
                      string(76) "customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}"
                      ["campaignAssetSet"]=>
                      string(70) "customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}"
                      ["campaignBidModifier"]=>
                      string(73) "customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}"
                      ["campaignBudget"]=>
                      string(60) "customers/{customer_id}/campaignBudgets/{campaign_budget_id}"
                      ["campaignConversionGoal"]=>
                      string(81) "customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}"
                      ["campaignCriterion"]=>
                      string(69) "customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}"
                      ["campaignCustomizer"]=>
                      string(83) "customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}"
                      ["campaignDraft"]=>
                      string(68) "customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}"
                      ["campaignExtensionSetting"]=>
                      string(80) "customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}"
                      ["campaignFeed"]=>
                      string(61) "customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}"
                      ["campaignGroup"]=>
                      string(58) "customers/{customer_id}/campaignGroups/{campaign_group_id}"
                      ["campaignLabel"]=>
                      string(63) "customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}"
                      ["campaignSharedSet"]=>
                      string(72) "customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}"
                      ["carrierConstant"]=>
                      string(31) "carrierConstants/{criterion_id}"
                      ["combinedAudience"]=>
                      string(64) "customers/{customer_id}/combinedAudiences/{combined_audience_id}"
                      ["conversionAction"]=>
                      string(64) "customers/{customer_id}/conversionActions/{conversion_action_id}"
                      ["conversionCustomVariable"]=>
                      string(81) "customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}"
                      ["conversionGoalCampaignConfig"]=>
                      string(67) "customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}"
                      ["conversionValueRule"]=>
                      string(71) "customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}"
                      ["conversionValueRuleSet"]=>
                      string(78) "customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}"
                      ["customConversionGoal"]=>
                      string(55) "customers/{customer_id}/customConversionGoals/{goal_id}"
                      ["customer"]=>
                      string(23) "customers/{customer_id}"
                      ["customerAsset"]=>
                      string(62) "customers/{customer_id}/customerAssets/{asset_id}~{field_type}"
                      ["customerConversionGoal"]=>
                      string(67) "customers/{customer_id}/customerConversionGoals/{category}~{source}"
                      ["customerCustomizer"]=>
                      string(69) "customers/{customer_id}/customerCustomizers/{customizer_attribute_id}"
                      ["customerExtensionSetting"]=>
                      string(66) "customers/{customer_id}/customerExtensionSettings/{extension_type}"
                      ["customerFeed"]=>
                      string(47) "customers/{customer_id}/customerFeeds/{feed_id}"
                      ["customerLabel"]=>
                      string(49) "customers/{customer_id}/customerLabels/{label_id}"
                      ["customerNegativeCriterion"]=>
                      string(63) "customers/{customer_id}/customerNegativeCriteria/{criterion_id}"
                      ["customizerAttribute"]=>
                      string(70) "customers/{customer_id}/customizerAttributes/{customizer_attribute_id}"
                      ["detailedDemographic"]=>
                      string(70) "customers/{customer_id}/detailedDemographics/{detailed_demographic_id}"
                      ["experiment"]=>
                      string(46) "customers/{customer_id}/experiments/{trial_id}"
                      ["experimentArm"]=>
                      string(64) "customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}"
                      ["extensionFeedItem"]=>
                      string(57) "customers/{customer_id}/extensionFeedItems/{feed_item_id}"
                      ["feed"]=>
                      string(39) "customers/{customer_id}/feeds/{feed_id}"
                      ["feedItem"]=>
                      string(58) "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}"
                      ["feedItemSet"]=>
                      string(65) "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}"
                      ["feedItemSetLink"]=>
                      string(84) "customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}"
                      ["feedItemTarget"]=>
                      string(110) "customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}"
                      ["feedMapping"]=>
                      string(64) "customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}"
                      ["geoTargetConstant"]=>
                      string(33) "geoTargetConstants/{criterion_id}"
                      ["keywordPlan"]=>
                      string(54) "customers/{customer_id}/keywordPlans/{keyword_plan_id}"
                      ["keywordPlanAdGroup"]=>
                      string(70) "customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}"
                      ["keywordPlanAdGroupKeyword"]=>
                      string(85) "customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}"
                      ["keywordPlanCampaign"]=>
                      string(71) "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}"
                      ["keywordPlanCampaignKeyword"]=>
                      string(86) "customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}"
                      ["keywordThemeConstant"]=>
                      string(69) "keywordThemeConstants/{express_category_id}~{express_sub_category_id}"
                      ["label"]=>
                      string(41) "customers/{customer_id}/labels/{label_id}"
                      ["languageConstant"]=>
                      string(32) "languageConstants/{criterion_id}"
                      ["lifeEvent"]=>
                      string(50) "customers/{customer_id}/lifeEvents/{life_event_id}"
                      ["mobileAppCategoryConstant"]=>
                      string(51) "mobileAppCategoryConstants/{mobile_app_category_id}"
                      ["mobileDeviceConstant"]=>
                      string(36) "mobileDeviceConstants/{criterion_id}"
                      ["operatingSystemVersionConstant"]=>
                      string(46) "operatingSystemVersionConstants/{criterion_id}"
                      ["recommendationSubscription"]=>
                      string(73) "customers/{customer_id}/recommendationSubscriptions/{recommendation_type}"
                      ["remarketingAction"]=>
                      string(66) "customers/{customer_id}/remarketingActions/{remarketing_action_id}"
                      ["sharedCriterion"]=>
                      string(69) "customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}"
                      ["sharedSet"]=>
                      string(50) "customers/{customer_id}/sharedSets/{shared_set_id}"
                      ["smartCampaignSetting"]=>
                      string(59) "customers/{customer_id}/smartCampaignSettings/{campaign_id}"
                      ["topicConstant"]=>
                      string(25) "topicConstants/{topic_id}"
                      ["userInterest"]=>
                      string(56) "customers/{customer_id}/userInterests/{user_interest_id}"
                      ["userList"]=>
                      string(48) "customers/{customer_id}/userLists/{user_list_id}"
                    }
                  }
                  ["middlewareCallables":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  array(0) {
                  }
                  ["transportCallMethods":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  array(4) {
                    [0]=>
                    string(14) "startUnaryCall"
                    [1]=>
                    string(22) "startBidiStreamingCall"
                    [2]=>
                    string(24) "startClientStreamingCall"
                    [3]=>
                    string(24) "startServerStreamingCall"
                  }
                  ["backwardsCompatibilityMode":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  bool(false)
                  ["developerToken":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  string(22) "QFflzpuSvBBusAuhpTm8iA"
                  ["loginCustomerId":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  string(10) "7471886550"
                  ["linkedCustomerId":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  NULL
                  ["unaryMiddlewares":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  array(0) {
                  }
                  ["streamingMiddlewares":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  array(0) {
                  }
                  ["responseMetadata":"Google\Ads\GoogleAds\V16\Services\Client\GoogleAdsServiceClient":private]=>
                  NULL
                }
                ["parameter"]=>
                array(2) {
                  ["$call"]=>
                  string(10) "<required>"
                  ["$options"]=>
                  string(10) "<required>"
                }
              }
              ["credentialsWrapper":"Google\ApiCore\Middleware\CredentialsWrapperMiddleware":private]=>
              object(Google\ApiCore\CredentialsWrapper)#8664 (4) {
                ["credentialsFetcher":"Google\ApiCore\CredentialsWrapper":private]=>
                object(Google\Auth\Credentials\UserRefreshCredentials)#1814 (2) {
                  ["auth":protected]=>
                  object(Google\Auth\OAuth2)#1815 (35) {
                    ["authorizationUri":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["tokenCredentialUri":"Google\Auth\OAuth2":private]=>
                    object(GuzzleHttp\Psr7\Uri)#1816 (8) {
                      ["scheme":"GuzzleHttp\Psr7\Uri":private]=>
                      string(5) "https"
                      ["userInfo":"GuzzleHttp\Psr7\Uri":private]=>
                      string(0) ""
                      ["host":"GuzzleHttp\Psr7\Uri":private]=>
                      string(21) "oauth2.googleapis.com"
                      ["port":"GuzzleHttp\Psr7\Uri":private]=>
                      NULL
                      ["path":"GuzzleHttp\Psr7\Uri":private]=>
                      string(6) "/token"
                      ["query":"GuzzleHttp\Psr7\Uri":private]=>
                      string(0) ""
                      ["fragment":"GuzzleHttp\Psr7\Uri":private]=>
                      string(0) ""
                      ["composedComponents":"GuzzleHttp\Psr7\Uri":private]=>
                      string(35) "https://oauth2.googleapis.com/token"
                    }
                    ["redirectUri":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["clientId":"Google\Auth\OAuth2":private]=>
                    string(73) "1014046215369-k4r7nbifchj2ju79htibs817f4oo3vo4.apps.googleusercontent.com"
                    ["clientSecret":"Google\Auth\OAuth2":private]=>
                    string(35) "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"
                    ["username":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["password":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["scope":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["state":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["code":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["issuer":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["audience":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["sub":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["expiry":"Google\Auth\OAuth2":private]=>
                    int(3600)
                    ["signingKey":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["signingKeyId":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["signingAlgorithm":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["refreshToken":"Google\Auth\OAuth2":private]=>
                    string(103) "1//04qy9hgftMzhiCgYIARAAGAQSNwF-L9IrezBQQPnsTWXzIqfqky7AiRxOmjMqyl1BmZKm8yPcwpwogFyVUDSHI55LFa-VAXNRUzI"
                    ["accessToken":"Google\Auth\OAuth2":private]=>
                    string(220) "ya29.a0AXooCgtxRoP3dH2PmsiDp7-7Kzf4iXDVULdBys7VEVS_W9l_KrEbWQu7mkYbiYRDXk0aLGENo-f3O_IapyvDQvO7v1jW40Y952EWQXDv9CSrdA75FcFb5upW4ANA_XIqgIRhDCQc3OEWhFbm_1eMtxPr6r5CqlUCa34MoQaCgYKAUwSARMSFQHGX2MiNbU3Qa7HOD3bVSTpWAGKuA0173"
                    ["idToken":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["grantedScope":"Google\Auth\OAuth2":private]=>
                    string(39) "https://www.googleapis.com/auth/adwords"
                    ["expiresIn":"Google\Auth\OAuth2":private]=>
                    int(3599)
                    ["expiresAt":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["issuedAt":"Google\Auth\OAuth2":private]=>
                    int(1716389852)
                    ["grantType":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["extensionParams":"Google\Auth\OAuth2":private]=>
                    array(0) {
                    }
                    ["additionalClaims":"Google\Auth\OAuth2":private]=>
                    array(0) {
                    }
                    ["codeVerifier":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["resource":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["subjectTokenFetcher":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["subjectTokenType":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["actorToken":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["actorTokenType":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["issuedTokenType":"Google\Auth\OAuth2":private]=>
                    NULL
                    ["additionalOptions":"Google\Auth\OAuth2":private]=>
                    array(0) {
                    }
                  }
                  ["quotaProject":protected]=>
                  NULL
                }
                ["authHttpHandler":"Google\ApiCore\CredentialsWrapper":private]=>
                NULL
                ["universeDomain":"Google\ApiCore\CredentialsWrapper":private]=>
                string(14) "googleapis.com"
                ["hasCheckedUniverse":"Google\ApiCore\CredentialsWrapper":private]=>
                bool(true)
              }
            }
            ["headers":"Google\ApiCore\Middleware\FixedHeaderMiddleware":private]=>
            array(2) {
              ["x-goog-api-client"]=>
              array(1) {
                [0]=>
                string(73) "gl-php/8.1.25 gccl/23.0.1 gapic/23.0.1 gax/1.33.0 grpc/ rest/1.33.0 pb/+n"
              }
              ["User-Agent"]=>
              array(1) {
                [0]=>
                string(21) "gcloud-php-new/23.0.1"
              }
            }
            ["overrideUserHeaders":"Google\ApiCore\Middleware\FixedHeaderMiddleware":private]=>
            bool(true)
          }
          ["retrySettings":"Google\ApiCore\Middleware\RetryMiddleware":private]=>
          object(Google\ApiCore\RetrySettings)#8665 (12) {
            ["retriesEnabled":"Google\ApiCore\RetrySettings":private]=>
            bool(true)
            ["retryableCodes":"Google\ApiCore\RetrySettings":private]=>
            array(2) {
              [0]=>
              string(11) "UNAVAILABLE"
              [1]=>
              string(17) "DEADLINE_EXCEEDED"
            }
            ["initialRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
            int(5000)
            ["retryDelayMultiplier":"Google\ApiCore\RetrySettings":private]=>
            float(1.3)
            ["maxRetryDelayMillis":"Google\ApiCore\RetrySettings":private]=>
            int(60000)
            ["initialRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
            int(14400000)
            ["rpcTimeoutMultiplier":"Google\ApiCore\RetrySettings":private]=>
            float(1)
            ["maxRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
            int(14400000)
            ["totalTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
            int(14400000)
            ["noRetriesRpcTimeoutMillis":"Google\ApiCore\RetrySettings":private]=>
            int(14400000)
            ["maxRetries":"Google\ApiCore\RetrySettings":private]=>
            int(0)
            ["retryFunction":"Google\ApiCore\RetrySettings":private]=>
            NULL
          }
          ["deadlineMs":"Google\ApiCore\Middleware\RetryMiddleware":private]=>
          NULL
          ["retryAttempts":"Google\ApiCore\Middleware\RetryMiddleware":private]=>
          int(0)
        }
        ["autoPopulationSettings":"Google\ApiCore\Middleware\RequestAutoPopulationMiddleware":private]=>
        array(0) {
        }
      }
      ["permittedOptions":"Google\ApiCore\Middleware\OptionsFilterMiddleware":private]=>
      array(6) {
        [0]=>
        string(7) "headers"
        [1]=>
        string(13) "timeoutMillis"
        [2]=>
        string(16) "transportOptions"
        [3]=>
        string(16) "metadataCallback"
        [4]=>
        string(8) "audience"
        [5]=>
        string(18) "metadataReturnType"
      }
    }
    ["options":"Google\ApiCore\Page":private]=>
    array(5) {
      ["headers"]=>
      array(3) {
        ["x-goog-request-params"]=>
        array(1) {
          [0]=>
          string(22) "customer_id=8166733962"
        }
        ["developer-token"]=>
        array(1) {
          [0]=>
          string(22) "QFflzpuSvBBusAuhpTm8iA"
        }
        ["login-customer-id"]=>
        array(1) {
          [0]=>
          string(10) "7471886550"
        }
      }
      ["timeoutMillis"]=>
      NULL
      ["transportOptions"]=>
      array(0) {
      }
      ["retrySettings"]=>
      NULL
      ["audience"]=>
      string(33) "https://googleads.googleapis.com/"
    }
    ["pageStreamingDescriptor":"Google\ApiCore\Page":private]=>
    object(Google\ApiCore\PageStreamingDescriptor)#41636 (1) {
      ["descriptor":"Google\ApiCore\PageStreamingDescriptor":private]=>
      array(6) {
        ["requestPageTokenGetMethod"]=>
        string(12) "getPageToken"
        ["requestPageTokenSetMethod"]=>
        string(12) "setPageToken"
        ["requestPageSizeGetMethod"]=>
        string(11) "getPageSize"
        ["requestPageSizeSetMethod"]=>
        string(11) "setPageSize"
        ["responsePageTokenGetMethod"]=>
        string(16) "getNextPageToken"
        ["resourcesGetMethod"]=>
        string(10) "getResults"
      }
    }
    ["pageToken":"Google\ApiCore\Page":private]=>
    string(0) ""
    ["response":"Google\ApiCore\Page":private]=>
    object(Google\Ads\GoogleAds\V16\Services\SearchGoogleAdsResponse)#41632 (1) {
      ["fieldMask"]=>
      string(34) "productLinkInvitation.resourceName"
    }
  }
}
[]

Ansh Ved

unread,
May 23, 2024, 12:35:20 AM5/23/24
to Google Ads API Forum Advisor, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

Request Headers
array(5) {
      ["headers"]=>
      array(3) {
        ["x-goog-request-params"]=>
        array(1) {
          [0]=>
          string(22) "customer_id=8166733962"
        }
        ["developer-token"]=>
        array(1) {
          [0]=>
          string(22) "QFflzpuSvBBusAuhpTm8iA"
        }
        ["login-customer-id"]=>
        array(1) {
          [0]=>
          string(10) "7471886550"
        }
      }
      ["timeoutMillis"]=>
      NULL
      ["transportOptions"]=>
      array(0) {
      }
      ["retrySettings"]=>
      NULL
      ["audience"]=>
      string(33) "https://googleads.googleapis.com/"
    }

These are the headers, We are unable to get the request-id since the response code is 200
Also I am able to get the correct youtube product links connected to my account. This makes sure that the headers are correct.

The only issue that I am facing is that product link invitation is giving an empty response. If there is a way to get the request id for a 200 response code please let me know
I cannot see any request-id unless the request fails. 
If i try to get $response->requestId or $response->getRequestId()
It gives me errors like requestId does not exist or getRequestId() is not a function

Is there a way to fastrack this?

Please let me know

Google Ads API Forum Advisor

unread,
May 23, 2024, 11:48:32 AM5/23/24
to vedaa...@gmail.com, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

I would like to inform you that our team is currently working on this issue. One of our teammates will get back to you once we have an update on this. Meanwhile your patience is appreciated.

Google Ads API Forum Advisor

unread,
May 23, 2024, 8:12:46 PM5/23/24
to vedaa...@gmail.com, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

We have an update for you. I would like to inform you that it is not possible to manage video ads via Google Ads API.

Ansh Ved

unread,
May 24, 2024, 12:34:13 AM5/24/24
to Google Ads API Forum Advisor, tuushaa...@promodome.in, adwor...@googlegroups.com

Hi,

Thank you for your response. I understand that your team is currently addressing the issue. However, I wanted to express that this situation is causing a significant bottleneck in my application’s functionality. Therefore, I kindly request if it’s possible to expedite the development and resolution of this issue.

Your assistance in fast-tracking this would be greatly appreciated.

Thank you for your understanding and support.

Ansh Ved

unread,
May 24, 2024, 12:34:14 AM5/24/24
to Google Ads API Forum Advisor, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

I am not trying to manage video ads via Google Ads API. I want to accept product invitations using Google Ads API. 

If there is something else please let me know.

Need to get this done at the earliest.

Google Ads API Forum Advisor

unread,
May 24, 2024, 4:31:19 AM5/24/24
to vedaa...@gmail.com, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi Ansh,

I would like to inform you that it is not possible to accept product link invitations via the Google Ads API. However, you can use the API to retrieve the list of pending user invitations and manage the invitations. Please follow the documents Managing User Access Invitations and Linking product accounts to get more information. 

I hope this helps! Feel free to get back to us in case of any further queries.

Ansh Ved

unread,
May 24, 2024, 5:11:23 AM5/24/24
to Google Ads API Forum Advisor, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi 

My original problem is this itself 
When I am printing the Pending Product Link Invitations
I am recieving an empty array 
I have provided the details in the previous mails

Please let me know why am I not being able to see my pending invitations 

Google Ads API Forum Advisor

unread,
May 24, 2024, 10:01:24 AM5/24/24
to vedaa...@gmail.com, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

In order to debug your issue further, kindly provide us with the earlier requested complete API logs (requestresponserequest-id and request header) generated on your device while receiving an empty array when fetching the pending invitations.

You can share the requested details via Reply privately to the author option or a direct private reply to this email.

Ansh Ved

unread,
May 24, 2024, 12:59:15 PM5/24/24
to Google Ads API Forum Advisor, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi,

I have already sent all the details in the previous mails. Kindly check

Google Ads API Forum Advisor

unread,
May 24, 2024, 7:01:27 PM5/24/24
to vedaa...@gmail.com, tuushaa...@promodome.in, adwor...@googlegroups.com
Hi Ansh,

Please note that it's not possible to retrieve the product link invitation details for the 'YouTube channel' via the Google Ads API
Reply all
Reply to author
Forward
0 new messages