Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Youtube data api cache issue? [closed]

$
0
0

This is a question regarding if we can affect the cache google uses when making search API calls for youtubeI am using PHP

Step 1I am making calls to the youtube data api.Search -> list

    $client = new Google_Client();    $client->setApplicationName('SocialMachine');    $client->setDeveloperKey($API_key);    $service = new Google_Service_YouTube($client);    $queryParams = ['channelId' => $channelID,'maxResults' => $maxResults,'videoDuration' => 'any'    ];    $response = $service->search->listSearch('snippet', $queryParams);

It returns a list of videos.

Step 2I then do a video -> update.

$service = new Google_Service_YouTube($client);$video = new Google_Service_YouTube_Video();$video->setId($VideoId);$videoSnippet = new Google_Service_YouTube_VideoSnippet();$videoSnippet->setCategoryId('24');$videoSnippet->setDescription($Description);$videoSnippet->setTags($TagsArray);$videoSnippet->setTitle($Title);$video->setSnippet($videoSnippet);$response = $service->videos->update('snippet', $video);

Success. I can see in studio the updated title and description.

Step 3I then run the exact search as done in step 1 and I get the old title and old description

I did the update yesterday.More than 12h later the search still returns the old data.

What am I missing here? You would think by now that google would have updated their query.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>