Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions | Variables
ads_util.h File Reference
#include "pagespeed/kernel/base/string_util.h"

Go to the source code of this file.

Namespaces

 net_instaweb
 Unit-test framework for wget fetcher.
 

Functions

StringPiece net_instaweb::ads_util::GetPublisherIdWithoutProductPrefix (StringPiece publisher_code)
 
bool net_instaweb::ads_util::IsValidAdsByGoogle (const HtmlElement &element, StringPiece publisher_id)
 Returns if 'element' is a valid adsbygooogle snippet for 'publisher_id'.
 
bool net_instaweb::ads_util::IsShowAdsApiCallJsSrc (StringPiece src)
 Returns if 'src' is pointing to a JS used by showads to call ads JS API.
 
bool net_instaweb::ads_util::IsAdsByGoogleJsSrc (StringPiece src)
 Returns if 'src' is pointing to the JS required by adsbygoogle snippets.
 

Variables

const char net_instaweb::ads_util::kAdsByGoogleJavascriptSrc []
 Src of adsbygoogle javascripts.
 
const char net_instaweb::ads_util::kAdsByGoogleApiCallJavascript []
 Javascript snippet that calls adsbygoogle API.
 
const char net_instaweb::ads_util::kAdsbyGoogleClass []
 Element class name used in adsbygoogle snippets.