My Business Q&A API - delete answer returns 404 - google-my-business-api

Migrating from 4.9 to the new My Business Q&A API I'm having trouble upon answer deletion (method).
My code:
$client = $this->initGoogleClient($refreshToken);
$gmbService = new MyBusinessQA($client);
$gmbService->locations_questions->deleteAnswers($question->name);
$question->name is in the format of locations/locationID/questions/questionID.
Response is 404, Requested entity was not found yet I can see that this particular answer is live, I'm also retrieving it from the API.
I believe this is either a bug or I'm missing something.

This is a bug, I can reproduce it.
Please report it to the Google Business Profile API Support.

Related

Update namedStyles through Google Docs API

I am trying to update the namedStyles through Docs API, but struggling to find a way around it. It seems you can only create namedStyles when creating a new document through the API - batchUpdate doesn't seem to want to touch it.
Am I missing something?
Posting this for documentation purposes.
As Tanaike said in a comment, currently namedStyles cannot be updated via Docs API, even though this action can be done through Docs UI. There is currently no possible batchUpdate request to achieve this via API.
You could consider filing a Feature Request in this Issue Tracker component.

Missing video ID from comment object

I am trying to retrieve a comment on a video by comment ID using the youtube v3 data api.
Here's the documentation part I am concerned with: https://developers.google.com/youtube/v3/docs/comments#resource
In the resource documentation, there's a property called "videoId" that I don't get when using this API call:
https://www.googleapis.com/youtube/v3/comments?part=snippet,id&key={YOUR_KEY_HERE}&id=z13cdfiygorrst1f422fuzi5eqevcdwsf
Edit: I have already been trying working around this problem to no avail, also started an issue on google issue tracker to no answer. As far as I know, the youtube-data-api tag is where the developers track the issues in the API.
I am not sure why the comments endpoint does not return the videoId, but the commentThreads does.
So calling https://www.googleapis.com/youtube/v3/commentThreads?part=snippet,id&key={YOUR_KEY_HERE}&id=z13cdfiygorrst1f422fuzi5eqevcdwsf and parsing the result to get the proper comment in the comment threads (that includes replies) seems like a reasonable workaround...

Yahoo finance no longer work?

I used to get exhange rate from yahoo finance api by javascript with following url:
http://finance.yahoo.com/webservice/v1/symbols/jpy=x,eur=x/quote?format=json
but now it no longer work! I have search on the net but no luck.
Any help would be great, Thank!
Update: it is working if open with chrome mobile
Yes, it seems like Yahoo! has discontinued the (private, mostly-undocumented) Yahoo Finance API that many have been using for their currency data. All responses seem to be returning "Not a valid parameter". I suppose there's a chance they may switch it back on, but they don't officially support that API anywhere as far as I can tell.
I created Open Exchange Rates about five years ago, and our exchange rate API now supports a community of tens of thousands of developers - and their tens of millions of users - with accurate, up-to-date information.
Please feel welcome to check out our Forever Free service at https://openexchangerates.org.
Our API is in a simple, original JSON format, which has actually caught on as a standard method for displaying rates because it's so simple to work with (unlike the Yahoo API, which required you to parse the obscure nested objects to pull out the basic info you needed...)
If you need assistance porting from the deprecated Yahoo! API, we'll be happy to assist via email.
(I am the founder of Open Exchange Rates.)
indrakula is right, and their response helped me, but...
I also needed to retrieve exchange rate tickers (i.e. USDGBP=X). This was not trivial, and I had to do some searching. The URL format in this case is http://www.google.com/finance/info?q=CURRENCY%3aUSDGBP. This URL returns a JSON body and not something else as the alternative URLs mentioned in one of the comments for that reply. Also note the link with the parameter descriptions seems to be out-of-date, but I found most of them are self-explanatory. So don't rely on that link.
Note: I wanted to post this as a comment to indrakula's answer, but one needs 50 reputation to comment! I'm new! I tried to submit this as an edit to their answer but it was (rightly) refused.
use google http://www.google.com/finance/info?q=GOOGL
paramater description here http://www.networkerror.org/component/content/44.html?task=view

/commentThreads endpoint returns no data when the allThreadsRelatedToChannelId parameter is used

https://www.googleapis.com/youtube/v3/commentThreads?part=id%2Csnippet&allThreadsRelatedToChannelId=UC1WYtW_z8Ib49-up6_ltsYA&maxResults=10&pageToken=&searchTerms=&key=You key
/commentThreads / allThreadsRelatedToChannelId
Google Youtube API for commentThreads does not return any data today afternoon . Does anyone know what the issue is?
It used to have data like this, how ever I copied the same request and resend again today,[It shows no value at all][2]
I check my ratelimit, and it is not exceeded. Does any one have the same issue here?
(Edit: The issue was also reported on the google bug tracker, but Google documentation indicates that StackOverflow is to be used for support questions. This definitely affects more than a few people)
Its already reported as issue to Google:
http://code.google.com/p/gdata-issues/issues/detail?id=7636
You can star it and wait for notification

GetAllCampaignTargets not returning any targets [JAVA - Sandbox V201109]

I am facing this issue when migrating the Google API from V201101, V13 to V201109
I am trying to get all the targets using GetAllCampaignTargets
provided in the link.
For the campaign i added, i am seeing targets in "Google Sandbox
Viewer" but in output object of GetAllCampaignTargets i am seeing
totalNumEntries value as 6 but in actual entries object only 1 is
available with null targets.
Could you please help me to sort out the issue.
Thank you
Balaji
The official forum of AdWords API is http://groups.google.com/group/adwords-api. I recommend that you ask the question there, since the official developer of the PHP library regularly answers questions on the forum. Also, turn on the SOAP logging (the settings are in src/Google/Api/Ads/AdWords/settings.ini), and POST a sanitized SOAP request and response xml for the failing request. Someone will answer your question in a day or two. Make sure you sanitize the xml before posting, do not provide email, password, authToken, developerToken, etc.
Cheers, Anash

Resources