As per my question, I want to filter the campaign's metrics based on the date range filter read the below code:

 /**  * Runs the example.  *  * @param GoogleAdsClient $googleAdsClient the Google Ads API client  * @param int $customerId the customer ID  */ public static function getGoogleAdCampaigns(GoogleAdsClient $googleAdsClient, int $customerId){     $googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();     // Creates a query that retrieves all campaigns.     $query = "SELECT campaign.id, campaign.name,campaign.status, metrics.impressions, metrics.clicks, metrics.conversions, metrics.ctr, metrics.average_cpc, metrics.cost_micros, campaign.start_date, campaign.end_date FROM campaign WHERE campaign.status = 'ENABLED'";     // Issues a search stream request.     /** @var GoogleAdsServerStreamDecorator $stream */     $stream = $googleAdsServiceClient->searchStream(         SearchGoogleAdsStreamRequest::build($customerId, $query)     );     // Iterates over all rows in all messages and prints the requested field values for     // the campaign in each row.     // Initialize an array to hold campaign data    $campaigns = [];    // Iterates over all rows in all messages and collects the requested field values for    // the campaign in each row.    foreach ($stream->iterateAllElements() as $googleAdsRow) {        /** @var GoogleAdsRow $googleAdsRow */        $campaigns[] = [            'id' => $googleAdsRow->getCampaign()->getId(),            'name' => $googleAdsRow->getCampaign()->getName(),            'start_date' => $googleAdsRow->getCampaign()->getStartDate(),            'end_date' => $googleAdsRow->getCampaign()->getEndDate(),            'status' => $googleAdsRow->getCampaign()->getStatus(),            'impressions' => $googleAdsRow->getMetrics()->getImpressions(),            'clicks' => $googleAdsRow->getMetrics()->getClicks(),            'conversions' => $googleAdsRow->getMetrics()->getConversions(),            'ctr' => $googleAdsRow->getMetrics()->getCtr(),            'average_cpc' => $googleAdsRow->getMetrics()->getAverageCpc(),            'cost_micros' => $googleAdsRow->getMetrics()->getCostMicros(),        ];    }    // print_r($stream->iterateAllElements());    // Return the collected campaign data array     echo json_encode($campaigns);     exit(); } 

Suppose I want to get last week's clicks, impressions last week's cost, etc.

Reference : https://groups.google.com/g/adwords-api/c/H-6qp8v-k-o?pli=1

Hello,
The endpoint that we are using to fetch page's follower count is NOT working as intended.You can see that it returns incorrect/negative numbers.
query: me/insights?metric=page_fans&since=1713052800&until=1715039999
{
"value": 70914,
"end_time": "2024-04-28T07:00:00+0000"
},
{
"value": 70913,
"end_time": "2024-04-29T07:00:00+0000"
},
{
"value": -2,
"end_time": "2024-05-01T07:00:00+0000"
},
{
"value": -4,
"end_time": "2024-05-02T07:00:00+0000"
},
{
"value": -4,
"end_time": "2024-05-03T07:00:00+0000"
},
{
"value": -7,
"end_time": "2024-05-04T07:00:00+0000"
},
{
"value": -7,
"end_time": "2024-05-05T07:00:00+0000"
},
{
"value": -7,
"end_time": "2024-05-06T07:00:00+0000"
},
{
"value": 70909,
"end_time": "2024-05-07T07:00:00+0000"
}

I was deleting some old apps, many apps (around 35 apps) and now looks like my account is blocked everytime I try to open my apps page I see this: HTTP ERROR 429 too many requests? Anyone has any idea how to solve it?