Adding Adsense Ad to Google Sites programmatically via Google Apps Script - google-apps-script

Is there any workaround to add AdSense Ad programatically to page in Google Sites?

Unfortunately, Google has shut down the API serivce for Adsense in Google Sites:
https://support.google.com/sites/answer/3156640?hl=en&ref_topic=1046094
Here is Google's Apps Script API Reference for Adsenese:
https://developers.google.com/apps-script/service_adsense
It appears that you cannot add Adsense ads programmatically. It looks like an information gathering tool for reporting, etc.
Maybe they will change the features in the future.
Perhaps having page templates pre-populated with Ads?
Good Luck.

Related

How to place Ads on Apps Script Side Bar

First of all is it legal to include ads in an app script side bar?
Adsense seems to be only for websites.
If yes, how do I go about it?
While it is possible to place ads inside Sidebars, if you are planning to publish your Apps Script as an add-on, Google may have a problem with it.
See their Program Policy page.
Google does not allow the serving of ads within Add-ons (including any
ads the Add-on hosts or links to).

Embed google trends chart in google document

is there a way to embed a google trend chart from Google Trend service into a google drive document?
I see the option embed there but it gives you a JS to put on an html document. I'm looking more to embed it in a document in google docs, maybe with the Script Editor.
Thanks.
The google script docs says you can't add iframe (the embed snippet is an iframe). Your best option is to screenshot it.

Google Apps Script Web App on my Domain

I had built a Google UI Apps Script in my Drive account. It works great.
I would like to embed it on my domain. I know that I can embed it as a gadget on a Google site, but I don't want Google's URL appearing in my website.
I have a word-press site and I would like to embed this UI script into a page/post on my word-press site or create a stand alone page on my domain with this script on it.
Is this possible?
I just don't want my users to be redirected off my site and see the long ugly domain of https://script.google.com/a/macros/*************
Any suggestions?
This isn't currently supported.
See (duplicate) Embedding Google Apps Script WebApp in WordPress Page.
Visit Issue 852 and star it for updates. (There are also some potential work-arounds described in the issue comments.)

embed a presentation into a document using script

Is it possible to embed a google presentation into a google document using html or script? If so can you point me in the right direction as I know nothing about script of html codes.
Not at present. Neither the Google Drive API nor Google Apps Script provide access to presentations.
Visit Issue 1573 and star it to receive updates.

flashcards by using google spreadsheet

I am trying to create flashcards by using google spreadsheet.
I tried the way suggested at this page
It produces a panel containing the flashcards but actually it is empty.
I am using the last version of google chrome to produce it.
To me, the flashcards gadget, embedded into google dive, seems too old to work with the current version of google chrome.
My questions are:
Could it be possible?
What could be an alternative way to make flashcards related to your gmail account?
According Google Drive Support the Gadgets in Google Spreadsheets will be deprecated.
http://support.google.com/drive/bin/answer.py?hl=en&topic=15165&answer=2791335.
A good alternative could be http://api.flashcardstogo.com/webapp/
Since gadgets have now been deprecated the makeuseof method no longer works.
Fortunately http://flippity.net/ provides similar functionality using publicly shared (obfuscated) links.
Tip: Create a study topic bookmark folder in your bookmarks containing links to both your google spreadsheet and the flippity generated flashcard. That way you can open both with, right-click + "open all bookmarks". It makes it easier to study and add new cards.