Posts under category Google

I have about 6 month using google merchants center and google ads.

and today I get this issue "

robots.txt on the server is unreachable

" I know this file is not required, and this not exist in my server, but i have created it, but google continue showing the same message.

I have another site, with similar data and this is working fine.

THE SITUATION:

In my Vue app I need to show ads using the Google IMA sdk.
However it seems that the AdDisplayContainer it's stuck in an endless update loop.

JSFIDDLE:

I have recreated the issue on JsFiddle with a bare minimum example. You can check the error in the console.

https://jsfiddle.net/fraMussi/53f6vbjh/7/

As you can see there isn't much going on:

  • I import the google IMA sdk
  • I have basic markup for the video and ad container
  • I setup the adDisplayContainer
  • I have added a watcher to detect the issue

THE CODE:

this.adDisplayContainer = new google.ima.AdDisplayContainer(         this.$refs.adContainer, this.videoContent); 

THE ERROR:

It seems that it adDisplayContainer gets updated in a loop:

Error in nextTick: "RangeError: Maximum call stack size exceeded" <br> RangeError: Maximum call stack size exceeded 

In a production-like environment I get a similar error message:

InternalError: too much recursion 

THE QUESTION:

Do you know why is this happening and how to fix it?

When a user clicks a google ad, then I would like to pass the search query to the landing page via the utm_term parameter.

  1. User goes to www.google.de and searches for "development software grails company ny"

  2. Our google Ad shows, when the search query contains "software development"

  3. The user clicks the Ad and is being send to http://www.ourcompany.com/?utm_term=development+software+grails+comapny+ny

The problem here is, that I can't find the value track variable which saves the search query and I think none exists. I only found {keyword} however, that will only report the keyword against which the search query matched succesfully.

In https://support.google.com/google-ads/answer/6305348?hl=en there is no such variable, which refers to the search query.

Also on this page https://support.newengen.com/hc/en-us/articles/360014178033-Understanding-UTMs-for-Search it does not report one. Only Microsoft bing seems to have one called {SearchQuery}.

Does google allow to capture the "search query" of the user and pass it to the landing page of the google ad or is this simply not possible???

I want to filter information inside the foreach and to return as result only some of them.

This is the code :

    $keywords = "";     $avgmonthly = "";     $compet ="";     foreach ($response->getResults() as $result) {         $avgmonthly = $result->getKeywordIdeaMetrics()->getAvgMonthlySearches()->getValue();         $compet = $result->getKeywordIdeaMetrics()->getCompetition();         $log = $this->getLogger();         $log->err($response->serializeToJsonString());         if ($avgmonthlysearch > 10 && $competition== 4) {             $keywords .= $result->getText()->getValue() . ",";         }     }         return $keywords; 

in my log i see this results:

{"results":[{"text":"world","keywordIdeaMetrics":  {"avgMonthlySearches":"140","competition":"HIGH"}},  {"text":"today ","keywordIdeaMetrics":{"avgMonthlySearches":"10","competition":"HIGH"{"text":"office","keywordIdeaMetrics":{"avgMonthlySearches":"5","competition":"LOW"}} 

when i try to call this function i get this error : Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getAvgMonthlySearches() on null