Version Description
- Improved: Plugin core functionality is rewritten. The plugin is faster and consumes less memory now.
- Improved: Google API client library is used in non-conflicting way.
- Improved: The size of the plugin is smaller now due to stripped version of Google library
- Improved: Better UX: some menues of the plugin are hidden when plugin has not been configured properly.
- Improved: UX when using custom client ID and secret
- Improved: New UI of reports, charts and tables
- Fixed: Security issues
- Fixed: Compatibility issues with Yoast SEO and UpdraftPlus plugins
- Fixed: Error notices if no web-property or multiple web-properties correspond to current site
- Fixed: Reports for page/post and frontend templates in metaboxes, admin bar, admin list screens and widget
- Fixed: User roles management
- Fixed: PHP error in admin reports for ecommerce
- Fixed: Numerous minor bugs
- Changed: Tracking settings are moved to settings page, as a separate tab
- Changed: Widgets options
- Changed: Emails, alerts, pushover and export features are temporary disabled
Download this release
Release Info
Developer | webdorado |
Plugin | WD Google Analytics |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.22 to 1.2.0
- admin/gawd_google_class.php +0 -1839
- admin/licensing.php +0 -88
- admin/pages/add_web_property.php +79 -0
- admin/pages/authentication.php +50 -0
- admin/pages/custom_dimensions.php +0 -82
- admin/pages/custom_reports.php +2 -18
- admin/pages/dashboard.php +124 -116
- admin/pages/dashboard_menu.php +88 -138
- admin/pages/dashboard_widget.php +57 -43
- admin/pages/date.php +2 -4
- admin/pages/goals.php +293 -300
- admin/pages/licensing.php +87 -0
- admin/pages/location.php +10 -11
- admin/pages/logs.php +39 -0
- admin/pages/overview.php +17 -50
- admin/pages/settings.php +881 -552
- admin/pages/tracking.php +298 -291
- admin/pages/uninstall.php +34 -15
- admin/post_page_view.php +0 -61
- admin/tracking.php +142 -148
- admin/updates.php +148 -0
- assets/Report_icon.png +0 -0
- assets/bg.png +0 -0
- assets/close.png +0 -0
- assets/{freePages → free-pages}/alerts.png +0 -0
- assets/{freePages → free-pages}/custom_dimensions.png +0 -0
- assets/{freePages → free-pages}/custom_reports.png +0 -0
- assets/free-pages/exclude_tracking.png +0 -0
- assets/{freePages → free-pages}/pushovers.png +0 -0
- assets/{freePages → free-pages}/reports.png +0 -0
- assets/freePages/exclude_tracking.png +0 -0
- assets/{analytics-2.png → main_plugin.png} +0 -0
- assets/pro_popup_close.png +0 -0
- assets/search.svg +11 -0
- assets/updates-icon.png +0 -0
- assets/web-dorado.png +0 -0
- config.php +20 -0
- gawd_class.php +1600 -2423
- google-analytics-wd.php +258 -290
- google/src/Google/AccessToken/Verify.php +3 -0
- google/src/Google/Client.php +1 -1
- google/src/Google/Collection.php +3 -4
- google/src/Google/Model.php +24 -31
- google/src/Google/Service/Resource.php +1 -1
- google/vendor/autoload.php +1 -1
- google/vendor/composer/autoload_real.php +7 -7
- google/vendor/composer/autoload_static.php +5 -5
- google/vendor/composer/installed.json +384 -384
- google/vendor/firebase/php-jwt/Firebase/PHP-JWT/tests/JWTTest.php +0 -150
- google/vendor/firebase/php-jwt/Firebase/PHP-JWT/tests/autoload.php.dist +0 -17
- google/vendor/firebase/php-jwt/Firebase/PHP-JWT/tests/bootstrap.php +0 -7
- google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php +0 -67
- google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrl.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrlError.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsRequest.php +0 -40
- google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsResponse.php +0 -54
- google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/Resource/AmpUrls.php +0 -42
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer.php +0 -679
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Account.php +0 -101
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountBidderLocation.php +0 -57
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountsList.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsRequest.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesRequest.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesResponse.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfo.php +0 -58
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfoList.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Budget.php +0 -75
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Buyer.php +0 -30
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/ContactInformation.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersRequest.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersResponse.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Creative.php +0 -305
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrections.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrectionsContexts.php +0 -58
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIds.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIdsDealStatuses.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasons.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasonsReasons.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAd.php +0 -169
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdAppIcon.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdImage.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdLogo.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictions.php +0 -63
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsContexts.php +0 -58
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsDisapprovalReasons.php +0 -40
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativesList.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadata.php +0 -46
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadataDealPauseStatus.php +0 -66
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTerms.php +0 -146
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTerms.php +0 -81
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTermsBillingInfo.php +0 -64
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedAuctionTerms.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedFixedPriceTerms.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsRubiconNonGuaranteedTerms.php +0 -53
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsRequest.php +0 -49
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControl.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControlFrequencyCap.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Dimension.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DimensionDimensionValue.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsRequest.php +0 -72
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOffersResponse.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderDealsResponse.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderNotesResponse.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrdersResponse.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetPublisherProfilesByAccountIdResponse.php +0 -38
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDeal.php +0 -289
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDealParty.php +0 -53
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceLabel.php +0 -64
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceNote.php +0 -93
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReport.php +0 -220
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReportList.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfig.php +0 -284
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigDimensions.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigExcludedPlacements.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigList.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigPlacements.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigVideoPlayerSizes.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Price.php +0 -57
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PricePerBuyer.php +0 -78
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PrivateData.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Product.php +0 -328
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Proposal.php +0 -278
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProfileApiProto.php +0 -243
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProvidedForecast.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Accounts.php +0 -88
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/BillingInfo.php +0 -55
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Budget.php +0 -81
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Creatives.php +0 -127
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacedeals.php +0 -88
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacenotes.php +0 -61
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplaceprivateauction.php +0 -42
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PerformanceReport.php +0 -52
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PretargetingConfig.php +0 -118
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Products.php +0 -55
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Proposals.php +0 -122
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Pubprofiles.php +0 -42
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Seller.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/SharedTargeting.php +0 -63
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValue.php +0 -71
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueCreativeSize.php +0 -81
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargeting.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargetingDayPart.php +0 -66
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueSize.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/UpdatePrivateAuctionProposalRequest.php +0 -64
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII.php +0 -908
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AbsoluteDateRange.php +0 -53
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AddDealAssociationRequest.php +0 -37
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Adexchangebuyer2Empty.php +0 -20
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AppContext.php +0 -31
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AuctionContext.php +0 -31
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/BidMetricsRow.php +0 -133
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/BidResponseWithoutBidsStatusRow.php +0 -62
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CalloutStatusRow.php +0 -62
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Client.php +0 -93
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUser.php +0 -57
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUserInvitation.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Correction.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Creative.php +0 -289
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeDealAssociation.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeStatusRow.php +0 -62
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Date.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Disapproval.php +0 -40
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilterSet.php +0 -160
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteredBidCreativeRow.php +0 -62
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteredBidDetailRow.php +0 -62
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteringStats.php +0 -54
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/HtmlContent.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Image.php +0 -48
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ImpressionMetricsRow.php +0 -117
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListBidMetricsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListBidResponseErrorsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListBidResponsesWithoutBidsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUserInvitationsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUsersResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativeStatusAndCreativeBreakdownByDetailResponse.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativeStatusBreakdownByCreativeResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativeStatusBreakdownByDetailResponse.php +0 -56
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativesResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListDealAssociationsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListFilterSetsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListFilteredBidRequestsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListFilteredBidsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListImpressionMetricsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListLosingBidsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListNonBillableWinningBidsResponse.php +0 -47
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/LocationContext.php +0 -31
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/MetricValue.php +0 -39
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NativeContent.php +0 -159
- google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NonBillableWinningBidStatusRow.php +0 -14
admin/gawd_google_class.php
DELETED
@@ -1,1839 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
class GAWD_google_client
|
5 |
-
{
|
6 |
-
|
7 |
-
private static $instance;
|
8 |
-
private $google_client;
|
9 |
-
public $analytics_member;
|
10 |
-
private $gawd_user_data;
|
11 |
-
private static $error_message = '';
|
12 |
-
|
13 |
-
protected function __construct()
|
14 |
-
{
|
15 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
16 |
-
try {
|
17 |
-
|
18 |
-
$this->google_client = new Google_Client();
|
19 |
-
$this->set_google_client();
|
20 |
-
$this->analytics_member = new Google_Service_Analytics($this->google_client);
|
21 |
-
|
22 |
-
} catch (Google_Service_Exception $e) {
|
23 |
-
$errors = $e->getErrors();
|
24 |
-
self::$error_message = $errors[0]["message"];
|
25 |
-
} catch (Exception $e) {
|
26 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
27 |
-
$fh = fopen($myFile, 'a');
|
28 |
-
fwrite($fh, $e->getMessage() . "----constructor function" . PHP_EOL);
|
29 |
-
fclose($fh);
|
30 |
-
self::$error_message = $e->getMessage();
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Sets the google class member.
|
36 |
-
*/
|
37 |
-
private function set_google_client()
|
38 |
-
{
|
39 |
-
|
40 |
-
$access_token = isset($this->gawd_user_data['access_token']) ? $this->gawd_user_data['access_token'] : '';
|
41 |
-
if ($access_token != '') {
|
42 |
-
$this->google_client->setAccessToken($access_token);
|
43 |
-
|
44 |
-
if ($this->google_client->isAccessTokenExpired()) {
|
45 |
-
$refresh_token = $this->gawd_user_data['refresh_token'];
|
46 |
-
|
47 |
-
$this->google_client->setClientId(GAWD::get_instance()->get_project_client_id());
|
48 |
-
$this->google_client->setClientSecret(GAWD::get_instance()->get_project_client_secret());
|
49 |
-
$this->google_client->setRedirectUri(GAWD::get_instance()->redirect_uri);
|
50 |
-
// $this->google_client->setAuthConfigFile(GAWD_DIR . '/client_secrets.json');
|
51 |
-
$this->google_client->refreshToken($refresh_token);
|
52 |
-
}
|
53 |
-
}
|
54 |
-
}
|
55 |
-
|
56 |
-
public static function create_authentication_url()
|
57 |
-
{
|
58 |
-
$client = new Google_Client();
|
59 |
-
// $client->setAuthConfigFile(GAWD_DIR . '/client_secrets.json');
|
60 |
-
$client->setClientId(GAWD::get_instance()->get_project_client_id());
|
61 |
-
$client->setClientSecret(GAWD::get_instance()->get_project_client_secret());
|
62 |
-
$client->setRedirectUri(GAWD::get_instance()->redirect_uri);
|
63 |
-
$client->addScope(array(Google_Service_Analytics::ANALYTICS_EDIT, Google_Service_Analytics::ANALYTICS_READONLY));
|
64 |
-
$client->setApprovalPrompt('force');
|
65 |
-
$client->setAccessType('offline');
|
66 |
-
return "'" . $client->createAuthUrl() . "'";
|
67 |
-
}
|
68 |
-
|
69 |
-
public static function authenticate($code)
|
70 |
-
{
|
71 |
-
|
72 |
-
$client = new Google_Client();
|
73 |
-
// $client->setAuthConfigFile(GAWD_DIR . '/client_secrets.json');
|
74 |
-
$client->setClientId(GAWD::get_instance()->get_project_client_id());
|
75 |
-
$client->setClientSecret(GAWD::get_instance()->get_project_client_secret());
|
76 |
-
$client->setRedirectUri(GAWD::get_instance()->redirect_uri);
|
77 |
-
if (isset($code) && $code != '') {
|
78 |
-
try {
|
79 |
-
$client->authenticate($code);
|
80 |
-
|
81 |
-
if ($client->isAccessTokenExpired()) {
|
82 |
-
return false;
|
83 |
-
}
|
84 |
-
else {
|
85 |
-
$access_token = $client->getAccessToken();
|
86 |
-
$refresh_token = $client->getRefreshToken();
|
87 |
-
update_option('gawd_user_data', array(
|
88 |
-
'access_token' => $access_token,
|
89 |
-
'refresh_token' => $refresh_token
|
90 |
-
)
|
91 |
-
);//TODO WHY 1?
|
92 |
-
|
93 |
-
$gawd_client = self::get_instance();
|
94 |
-
delete_transient('gawd_user_profiles');
|
95 |
-
$profiles = $gawd_client->get_profiles();
|
96 |
-
|
97 |
-
/* if ($profiles instanceof Google_Service_Exception) {
|
98 |
-
|
99 |
-
delete_option('gawd_user_data');
|
100 |
-
$errors = $profiles->getErrors();
|
101 |
-
return $errors[0]["message"];
|
102 |
-
}*/
|
103 |
-
|
104 |
-
|
105 |
-
update_option('gawd_user_data', array(
|
106 |
-
'access_token' => $access_token,
|
107 |
-
'refresh_token' => $refresh_token,
|
108 |
-
'gawd_profiles' => $profiles,
|
109 |
-
)
|
110 |
-
);//TODO WHY 2?
|
111 |
-
return true;
|
112 |
-
}
|
113 |
-
} catch (Google_Service_Exception $e) {
|
114 |
-
delete_option('gawd_user_data');
|
115 |
-
$errors = $e->getErrors();
|
116 |
-
return $errors[0]["message"];
|
117 |
-
} catch (Exception $e) {
|
118 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
119 |
-
$fh = fopen($myFile, 'a');
|
120 |
-
fwrite($fh, $e->getMessage() . "----authenticate function" . PHP_EOL);
|
121 |
-
fclose($fh);
|
122 |
-
return $e->getMessage();
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
}
|
127 |
-
|
128 |
-
/*
|
129 |
-
* force call to Google API if $data == true
|
130 |
-
*
|
131 |
-
* */
|
132 |
-
public function get_management_accounts($data = false)
|
133 |
-
{
|
134 |
-
$accounts_light = array();
|
135 |
-
|
136 |
-
$accounts = get_option('gawd_management_accounts');
|
137 |
-
if ($accounts == false) {
|
138 |
-
$accounts = array();
|
139 |
-
}
|
140 |
-
try {
|
141 |
-
if ($data == true) {
|
142 |
-
$accounts = $this->analytics_member->management_accounts->listManagementAccounts()->getItems();
|
143 |
-
update_option('gawd_management_accounts', $accounts);
|
144 |
-
}
|
145 |
-
foreach ($accounts as $account) {
|
146 |
-
$edit_flag = FALSE;
|
147 |
-
$permissions = $account['permissions']['effective'];
|
148 |
-
foreach ($permissions as $permission) {
|
149 |
-
if ($permission == 'EDIT') {
|
150 |
-
$edit_flag = TRUE;
|
151 |
-
}
|
152 |
-
}
|
153 |
-
$accounts_light[] = array(
|
154 |
-
'name' => $account['name'],
|
155 |
-
'id' => $account['id'],
|
156 |
-
'edit_permissions' => $edit_flag
|
157 |
-
);
|
158 |
-
/*if ($edit_flag == TRUE) {
|
159 |
-
$accounts_light[] = array(
|
160 |
-
'name' => $account['name'],
|
161 |
-
'id' => $account['id']
|
162 |
-
);
|
163 |
-
}*/
|
164 |
-
}
|
165 |
-
} catch (Google_Service_Exception $e) {
|
166 |
-
//return $e->getErrors()[0]["message"];
|
167 |
-
} catch (Exception $e) {
|
168 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
169 |
-
$fh = fopen($myFile, 'a');
|
170 |
-
fwrite($fh, $e->getMessage() . "----get_management_accounts function" . PHP_EOL);
|
171 |
-
fclose($fh);
|
172 |
-
//return $e->getMessage();
|
173 |
-
}
|
174 |
-
return $accounts_light;
|
175 |
-
}
|
176 |
-
|
177 |
-
public function property_exists()
|
178 |
-
{
|
179 |
-
try {
|
180 |
-
$web_properties = $this->analytics_member->management_webproperties->listManagementWebproperties('~all')->getItems();
|
181 |
-
} catch (Google_Service_Exception $e) {
|
182 |
-
return 'no_matches';
|
183 |
-
|
184 |
-
} catch (Exception $e) {
|
185 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
186 |
-
$fh = fopen($myFile, 'a');
|
187 |
-
fwrite($fh, $e->getMessage() . "----property_exists function" . PHP_EOL);
|
188 |
-
fclose($fh);
|
189 |
-
return 'no_matches';
|
190 |
-
}
|
191 |
-
$exact_properties = array();
|
192 |
-
$site_url = get_site_url() . '/';
|
193 |
-
|
194 |
-
foreach ($web_properties as $web_property) {
|
195 |
-
$current_url = $web_property['websiteUrl'];
|
196 |
-
if (($current_url == $site_url) || (($current_url . '/') == $site_url)) {
|
197 |
-
$exact_properties[] = $web_property;
|
198 |
-
}
|
199 |
-
}
|
200 |
-
if (!empty($exact_properties)) {
|
201 |
-
return $exact_properties;
|
202 |
-
}
|
203 |
-
else {
|
204 |
-
return 'no_matches';
|
205 |
-
}
|
206 |
-
}
|
207 |
-
|
208 |
-
public function get_default_profiles()
|
209 |
-
{
|
210 |
-
$gawd_user_data = get_option('gawd_user_data');
|
211 |
-
$accountId = $this->get_default_accountId();
|
212 |
-
$webPropertyId = $this->get_default_webPropertyId();
|
213 |
-
$webProperty = $this->analytics_member->management_webproperties->get($accountId, $webPropertyId);
|
214 |
-
$webPropertyName = $webProperty['name'];
|
215 |
-
$profiles = $this->analytics_member->management_profiles->listManagementProfiles($accountId, $webPropertyId)->getItems();
|
216 |
-
$profiles_light = array();
|
217 |
-
foreach ($profiles as $profile) {
|
218 |
-
$profiles_light[] = array(
|
219 |
-
'id' => $profile['id'],
|
220 |
-
'name' => $profile['name'],
|
221 |
-
'webPropertyName' => $webPropertyName
|
222 |
-
);
|
223 |
-
}
|
224 |
-
return $profiles_light;
|
225 |
-
}
|
226 |
-
|
227 |
-
public function add_webproperty($accountId, $name)
|
228 |
-
{
|
229 |
-
|
230 |
-
$analytics = $this->analytics_member;
|
231 |
-
$websiteUrl = get_site_url();
|
232 |
-
try {
|
233 |
-
$property = new Google_Service_Analytics_Webproperty();
|
234 |
-
$property->setName($name);
|
235 |
-
$property->setWebsiteUrl($websiteUrl);
|
236 |
-
$analytics->management_webproperties->insert($accountId, $property);
|
237 |
-
} catch (apiServiceException $e) {
|
238 |
-
print 'There was an Analytics API service error '
|
239 |
-
. $e->getCode() . ':' . $e->getMessage();
|
240 |
-
} catch (apiException $e) {
|
241 |
-
print 'There was a general API error '
|
242 |
-
. $e->getCode() . ':' . $e->getMessage();
|
243 |
-
} catch (Google_Service_Exception $e) {
|
244 |
-
return 'There was a general API error '
|
245 |
-
. $e->getCode() . ':' . $e->getMessage();
|
246 |
-
} catch (Exception $e) {
|
247 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
248 |
-
$fh = fopen($myFile, 'a');
|
249 |
-
fwrite($fh, $e->getMessage() . "----add_webproperty function" . PHP_EOL);
|
250 |
-
fclose($fh);
|
251 |
-
echo $e->getCode() . ':' . $e->getMessage();
|
252 |
-
}
|
253 |
-
|
254 |
-
$web_properties = $this->analytics_member->management_webproperties->listManagementWebproperties($accountId)->getItems();
|
255 |
-
foreach ($web_properties as $web_property) {
|
256 |
-
if ($web_property['name'] == $name) {
|
257 |
-
$profile = new Google_Service_Analytics_Profile();
|
258 |
-
$profile->setName('All Web Site Data');
|
259 |
-
|
260 |
-
try {
|
261 |
-
$analytics->management_profiles->insert($accountId, $web_property['id'], $profile);
|
262 |
-
} catch (apiServiceException $e) {
|
263 |
-
print 'There was an Analytics API service error '
|
264 |
-
. $e->getCode() . ':' . $e->getMessage();
|
265 |
-
} catch (apiException $e) {
|
266 |
-
print 'There was a general API error '
|
267 |
-
. $e->getCode() . ':' . $e->getMessage();
|
268 |
-
}
|
269 |
-
$current_profiles = $this->analytics_member->management_profiles->listManagementProfiles($accountId, $web_property['id'])->getItems();
|
270 |
-
try {
|
271 |
-
$property = new Google_Service_Analytics_Webproperty();
|
272 |
-
$property->setName($name);
|
273 |
-
$property->setWebsiteUrl($websiteUrl);
|
274 |
-
$property->setDefaultProfileId($current_profiles[0]['id']);
|
275 |
-
$analytics->management_webproperties->update($accountId, $web_property['id'], $property);
|
276 |
-
} catch (apiServiceException $e) {
|
277 |
-
print 'There was an Analytics API service error '
|
278 |
-
. $e->getCode() . ':' . $e->getMessage();
|
279 |
-
} catch (apiException $e) {
|
280 |
-
print 'There was a general API error '
|
281 |
-
. $e->getCode() . ':' . $e->getMessage();
|
282 |
-
} catch (Google_Service_Exception $e) {
|
283 |
-
return 'There was a general API error '
|
284 |
-
. $e->getCode() . ':' . $e->getMessage();
|
285 |
-
} catch (Exception $e) {
|
286 |
-
echo $e->getCode() . ':' . $e->getMessage();
|
287 |
-
}
|
288 |
-
}
|
289 |
-
}
|
290 |
-
|
291 |
-
}
|
292 |
-
|
293 |
-
/**
|
294 |
-
* Get all the management profiles of the authenticated user.
|
295 |
-
*
|
296 |
-
* @return array
|
297 |
-
*/
|
298 |
-
public function get_profiles()
|
299 |
-
{
|
300 |
-
$profiles_light = get_transient('gawd_user_profiles') ? get_transient('gawd_user_profiles') : '';
|
301 |
-
if ($profiles_light && $profiles_light != '') {
|
302 |
-
return $profiles_light;
|
303 |
-
}
|
304 |
-
$profiles_light = array();
|
305 |
-
$gawd_user_data = get_option('gawd_user_data');
|
306 |
-
try {
|
307 |
-
|
308 |
-
if ($this->analytics_member && $this->analytics_member->management_webproperties) {
|
309 |
-
$web_properties = $this->analytics_member->management_webproperties->listManagementWebproperties('~all')->getItems();
|
310 |
-
$profiles = $this->analytics_member->management_profiles->listManagementProfiles('~all', '~all')->getItems();
|
311 |
-
$profiles_count = count($profiles);
|
312 |
-
$web_properties_count = count($web_properties);
|
313 |
-
for ($i = 0; $i < $web_properties_count; $i++) {
|
314 |
-
for ($j = 0; $j < $profiles_count; $j++) {
|
315 |
-
if ($web_properties[$i]['id'] == $profiles[$j]['webPropertyId']) {
|
316 |
-
$profiles_light[$web_properties[$i]['name']][] = array(
|
317 |
-
'id' => $profiles[$j]['id'],
|
318 |
-
'name' => $profiles[$j]['name'],
|
319 |
-
'webPropertyId' => $profiles[$j]['webPropertyId'],
|
320 |
-
'websiteUrl' => $profiles[$j]['websiteUrl'],
|
321 |
-
'accountId' => $profiles[$j]['accountId']
|
322 |
-
);
|
323 |
-
}
|
324 |
-
}
|
325 |
-
}
|
326 |
-
}
|
327 |
-
else {
|
328 |
-
return 'Something went wrong';
|
329 |
-
}
|
330 |
-
if (!isset($gawd_user_data['gawd_id']) || $gawd_user_data['gawd_id'] == '' || $gawd_user_data['gawd_id'] == NULL) {
|
331 |
-
if (!empty($profiles_light)) {
|
332 |
-
$first_profiles = reset($profiles_light);
|
333 |
-
$first_profile = $first_profiles[0];
|
334 |
-
$gawd_user_data['gawd_id'] = $first_profile['id'];
|
335 |
-
$gawd_user_data['webPropertyId'] = $first_profile['webPropertyId'];
|
336 |
-
$gawd_user_data['accountId'] = $first_profile['accountId'];
|
337 |
-
$gawd_user_data['web_property_name'] = $web_properties[0]['name'];
|
338 |
-
}
|
339 |
-
}
|
340 |
-
|
341 |
-
$gawd_user_data['gawd_profiles'] = $profiles_light;
|
342 |
-
update_option('gawd_user_data', $gawd_user_data);
|
343 |
-
set_transient('gawd_user_profiles', $profiles_light, 60);
|
344 |
-
return $profiles_light;
|
345 |
-
} catch (Google_Service_Exception $e) {
|
346 |
-
return $e;
|
347 |
-
} catch (Exception $e) {
|
348 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
349 |
-
$fh = fopen($myFile, 'a');
|
350 |
-
fwrite($fh, $e->getMessage() . "----get_profiles function" . PHP_EOL);
|
351 |
-
fclose($fh);
|
352 |
-
return $e;
|
353 |
-
}
|
354 |
-
}
|
355 |
-
|
356 |
-
public function get_custom_dimensions($default = '')
|
357 |
-
{
|
358 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
359 |
-
if ($default == 'default') {
|
360 |
-
$webPropertyId = $this->get_default_webPropertyId();
|
361 |
-
$accountId = $this->get_default_accountId();
|
362 |
-
}
|
363 |
-
else {
|
364 |
-
$webPropertyId = $this->get_profile_webPropertyId();
|
365 |
-
$accountId = $this->get_profile_accountId();
|
366 |
-
$transient = get_transient('gawd-custom-dimensions-' . $webPropertyId);
|
367 |
-
if ($transient) {
|
368 |
-
if ($transient != 'no_custom_dimensions_exist') {
|
369 |
-
return json_decode($transient, true);
|
370 |
-
}
|
371 |
-
else {
|
372 |
-
return $transient;
|
373 |
-
}
|
374 |
-
}
|
375 |
-
}
|
376 |
-
try {
|
377 |
-
$all_dimensions = $this->analytics_member->management_customDimensions->listManagementCustomDimensions($accountId, $webPropertyId)->getItems();
|
378 |
-
|
379 |
-
} catch (Exception $e) {
|
380 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
381 |
-
$fh = fopen($myFile, 'a');
|
382 |
-
fwrite($fh, $e->getMessage() . "----get_custom_dimensions function" . PHP_EOL);
|
383 |
-
fclose($fh);
|
384 |
-
}
|
385 |
-
if (0 == sizeof($all_dimensions)) {
|
386 |
-
if ($default == 'default') {
|
387 |
-
update_option('gawd_custom_dimensions', "no_custom_dimensions_exist");
|
388 |
-
}
|
389 |
-
set_transient('gawd-custom-dimensions-' . $webPropertyId, "no_custom_dimensions_exist", 12 * HOUR_IN_SECONDS);
|
390 |
-
return "no_custom_dimensions_exist";
|
391 |
-
}
|
392 |
-
else {
|
393 |
-
foreach ($all_dimensions as $dimension) {
|
394 |
-
$dimensions_light[] = array(
|
395 |
-
'name' => $dimension['name'],
|
396 |
-
'id' => $dimension['id']
|
397 |
-
);
|
398 |
-
}
|
399 |
-
$supported_dimensions = array("Logged in", "Post type", "Author", "Category", "Tags", "Published Month", "Published Year");
|
400 |
-
$dimensions = array();
|
401 |
-
foreach ($dimensions_light as $dimension) {
|
402 |
-
foreach ($supported_dimensions as $supported_dimension) {
|
403 |
-
if (trim(strtolower($dimension['name'])) == strtolower($supported_dimension)) {
|
404 |
-
$dimension['name'] = $supported_dimension;
|
405 |
-
$dimension['id'] = substr($dimension['id'], -1);
|
406 |
-
$dimensions[] = $dimension;
|
407 |
-
}
|
408 |
-
}
|
409 |
-
}
|
410 |
-
if ($default == 'default') {
|
411 |
-
update_option('gawd_custom_dimensions', $dimensions);
|
412 |
-
}
|
413 |
-
set_transient('gawd-custom-dimensions-' . $webPropertyId, json_encode($dimensions_light), 12 * HOUR_IN_SECONDS);
|
414 |
-
return $dimensions_light;
|
415 |
-
}
|
416 |
-
}
|
417 |
-
|
418 |
-
public function get_custom_dimensions_tracking()
|
419 |
-
{
|
420 |
-
$all_dimensions = get_option('gawd_custom_dimensions');
|
421 |
-
if ($all_dimensions) {
|
422 |
-
return $all_dimensions;
|
423 |
-
}
|
424 |
-
$all_dimensions = $this->get_custom_dimensions('default');
|
425 |
-
if ($all_dimensions == 'no_custom_dimensions_exist') {
|
426 |
-
return 'no_custom_dimensions_exist';
|
427 |
-
}
|
428 |
-
$supported_dimensions = array("Logged in", "Post type", "Author", "Category", "Tags", "Published Month", "Published Year");
|
429 |
-
$dimensions = array();
|
430 |
-
foreach ($all_dimensions as $dimension) {
|
431 |
-
foreach ($supported_dimensions as $supported_dimension) {
|
432 |
-
if (trim(strtolower($dimension['name'])) == strtolower($supported_dimension)) {
|
433 |
-
$dimension['id'] = substr($dimension['id'], -1);
|
434 |
-
$dimension['name'] = $supported_dimension;
|
435 |
-
$dimensions[] = $dimension;
|
436 |
-
}
|
437 |
-
}
|
438 |
-
}
|
439 |
-
update_option('gawd_custom_dimensions', $dimensions);
|
440 |
-
if ($dimensions) {
|
441 |
-
return $dimensions;
|
442 |
-
}
|
443 |
-
else {
|
444 |
-
return "no_custom_dimensions_exist";
|
445 |
-
}
|
446 |
-
}
|
447 |
-
|
448 |
-
public static function gawd_cd_logged_in()
|
449 |
-
{
|
450 |
-
$value = var_export(is_user_logged_in(), true);
|
451 |
-
$value = $value == 'true' ? 'yes' : 'no';
|
452 |
-
return $value;
|
453 |
-
}
|
454 |
-
|
455 |
-
public static function gawd_cd_post_type()
|
456 |
-
{
|
457 |
-
if (is_singular()) {
|
458 |
-
$post_type = get_post_type(get_the_ID());
|
459 |
-
|
460 |
-
if ($post_type) {
|
461 |
-
return $post_type;
|
462 |
-
}
|
463 |
-
}
|
464 |
-
}
|
465 |
-
|
466 |
-
public static function gawd_cd_author()
|
467 |
-
{
|
468 |
-
if (is_singular()) {
|
469 |
-
if (have_posts()) {
|
470 |
-
while (have_posts()) {
|
471 |
-
the_post();
|
472 |
-
}
|
473 |
-
}
|
474 |
-
$name = get_the_author_meta('user_nicename');
|
475 |
-
$value = trim($name);
|
476 |
-
return $value;
|
477 |
-
}
|
478 |
-
}
|
479 |
-
|
480 |
-
public static function gawd_cd_category()
|
481 |
-
{
|
482 |
-
if (is_single()) {
|
483 |
-
$categories = get_the_category(get_the_ID());
|
484 |
-
|
485 |
-
if ($categories) {
|
486 |
-
foreach ($categories as $category) {
|
487 |
-
$category_names[] = $category->slug;
|
488 |
-
}
|
489 |
-
|
490 |
-
return implode(',', $category_names);
|
491 |
-
}
|
492 |
-
}
|
493 |
-
}
|
494 |
-
|
495 |
-
public static function gawd_cd_tags()
|
496 |
-
{
|
497 |
-
if (is_single()) {
|
498 |
-
$tag_names = 'untagged';
|
499 |
-
|
500 |
-
$tags = get_the_tags(get_the_ID());
|
501 |
-
|
502 |
-
if ($tags) {
|
503 |
-
$tag_names = implode(',', wp_list_pluck($tags, 'name'));
|
504 |
-
}
|
505 |
-
|
506 |
-
return $tag_names;
|
507 |
-
}
|
508 |
-
}
|
509 |
-
|
510 |
-
|
511 |
-
public static function gawd_cd_published_month()
|
512 |
-
{
|
513 |
-
if (is_singular()) {
|
514 |
-
return get_the_date('M-Y');
|
515 |
-
}
|
516 |
-
}
|
517 |
-
|
518 |
-
public static function gawd_cd_published_year()
|
519 |
-
{
|
520 |
-
if (is_singular()) {
|
521 |
-
return get_the_date('Y');
|
522 |
-
}
|
523 |
-
}
|
524 |
-
|
525 |
-
public function get_management_filters()
|
526 |
-
{
|
527 |
-
$analytics = $this->analytics_member;
|
528 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
529 |
-
$accountId = $this->get_profile_accountId();
|
530 |
-
$profileId = $this->get_profile_id();
|
531 |
-
$webPropertyId = $this->get_profile_webPropertyId();
|
532 |
-
if ((isset($accountId) && $accountId != '') && (isset($webPropertyId) && $webPropertyId != '') && (isset($profileId) && $profileId != '')) {
|
533 |
-
try {
|
534 |
-
$view_filters = $analytics->management_profileFilterLinks->listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId);
|
535 |
-
$filters = $view_filters->getItems();
|
536 |
-
foreach ($filters as $filter) {
|
537 |
-
if (!isset($filter['modelData']['filterRef'])) {
|
538 |
-
continue;
|
539 |
-
}
|
540 |
-
$filter_info = $analytics->management_filters->get($accountId, $filter['modelData']['filterRef']['id']);
|
541 |
-
$all_filters[] = array(
|
542 |
-
'name' => $filter['modelData']['filterRef']['name'],
|
543 |
-
'id' => $filter['modelData']['filterRef']['id'],
|
544 |
-
'type' => $filter_info['excludeDetails']['field'],
|
545 |
-
'value' => $filter_info['excludeDetails']['expressionValue'],
|
546 |
-
'view' => $filter['modelData']['profileRef']['name']
|
547 |
-
);
|
548 |
-
}
|
549 |
-
if (isset($all_filters)) {
|
550 |
-
return $all_filters;
|
551 |
-
}
|
552 |
-
} catch (Exception $e) {
|
553 |
-
|
554 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
555 |
-
$fh = fopen($myFile, 'a');
|
556 |
-
fwrite($fh, $e->getMessage() . "----get_management_filters function" . PHP_EOL);
|
557 |
-
fclose($fh);
|
558 |
-
|
559 |
-
$error = array('error_message' => 'Error');
|
560 |
-
if (strpos($e->getMessage(), 'User does not have sufficient permissions for this ')) {
|
561 |
-
$error['error_message'] = 'User does not have sufficient permissions for this profile';
|
562 |
-
}
|
563 |
-
return json_encode($error);
|
564 |
-
}
|
565 |
-
}
|
566 |
-
}
|
567 |
-
|
568 |
-
public function get_management_goals()
|
569 |
-
{
|
570 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
571 |
-
$profileId = $this->get_profile_id();
|
572 |
-
$accountId = $this->get_profile_accountId();
|
573 |
-
$webPropertyId = $this->get_profile_webPropertyId();
|
574 |
-
$goals = array();
|
575 |
-
if (isset($profileId) && $profileId != '' && isset($webPropertyId) && $webPropertyId != '') {
|
576 |
-
try {
|
577 |
-
$goals = $this->analytics_member->management_goals->listManagementGoals($accountId, $webPropertyId, $profileId)->getItems();
|
578 |
-
} catch (Exception $e) {
|
579 |
-
|
580 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
581 |
-
$fh = fopen($myFile, 'a');
|
582 |
-
fwrite($fh, $e->getMessage() . "----get_management_goals function" . PHP_EOL);
|
583 |
-
fclose($fh);
|
584 |
-
|
585 |
-
}
|
586 |
-
if (0 == sizeof($goals)) {
|
587 |
-
return "no_goals_exist";
|
588 |
-
}
|
589 |
-
else {
|
590 |
-
foreach ($goals as $goal) {
|
591 |
-
$goals_light[] = array(
|
592 |
-
'name' => $goal['name'],
|
593 |
-
'id' => $goal['id']
|
594 |
-
);
|
595 |
-
}
|
596 |
-
return $goals_light;
|
597 |
-
}
|
598 |
-
}
|
599 |
-
}
|
600 |
-
|
601 |
-
public function get_default_goals()
|
602 |
-
{
|
603 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
604 |
-
$accountId = $this->get_default_accountId();
|
605 |
-
$webPropertyId = $this->get_default_webPropertyId();
|
606 |
-
$goals = array();
|
607 |
-
try {
|
608 |
-
$goals = $this->analytics_member->management_goals->listManagementGoals($accountId, $webPropertyId, '~all')->getItems();
|
609 |
-
} catch (Exception $e) {
|
610 |
-
|
611 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
612 |
-
$fh = fopen($myFile, 'a');
|
613 |
-
fwrite($fh, $e->getMessage() . "----get_default_goals function" . PHP_EOL);
|
614 |
-
fclose($fh);
|
615 |
-
|
616 |
-
}
|
617 |
-
if (0 == sizeof($goals)) {
|
618 |
-
return "no_goals_exist";
|
619 |
-
}
|
620 |
-
else {
|
621 |
-
$profiles = array();
|
622 |
-
foreach ($goals as $goal) {
|
623 |
-
$flag = false;
|
624 |
-
foreach ($profiles as $profile) {
|
625 |
-
if ($profile == $goal['profileId']) {
|
626 |
-
$flag = true;
|
627 |
-
}
|
628 |
-
}
|
629 |
-
if ($flag == false) {
|
630 |
-
$profiles[] = $goal['profileId'];
|
631 |
-
}
|
632 |
-
}
|
633 |
-
$goals_light = array();
|
634 |
-
$caseSensitive = '';
|
635 |
-
foreach ($profiles as $profile) {
|
636 |
-
foreach ($goals as $goal) {
|
637 |
-
if ($goal['profileId'] == $profile) {
|
638 |
-
if ($goal['type'] == 'URL_DESTINATION') {
|
639 |
-
$type = 'Destination';
|
640 |
-
if ($goal["modelData"]['urlDestinationDetails']['matchType'] == 'EXACT') {
|
641 |
-
$match_type = 'Equals';
|
642 |
-
}
|
643 |
-
elseif ($goal["modelData"]['urlDestinationDetails']['matchType'] == 'HEAD') {
|
644 |
-
$match_type = 'Begin with';
|
645 |
-
}
|
646 |
-
else {
|
647 |
-
$match_type = 'Regular expresion';
|
648 |
-
}
|
649 |
-
$value = $goal["modelData"]['urlDestinationDetails']['url'];
|
650 |
-
$caseSensitive = $goal["modelData"]['urlDestinationDetails']['caseSensitive'];
|
651 |
-
}
|
652 |
-
elseif ($goal['type'] == 'VISIT_TIME_ON_SITE') {
|
653 |
-
$type = 'Duration';
|
654 |
-
if ($goal["modelData"]['visitTimeOnSiteDetails']['comparisonType'] == 'GREATER_THAN') {
|
655 |
-
$match_type = 'Greater than';
|
656 |
-
}
|
657 |
-
$value = $goal["modelData"]['visitTimeOnSiteDetails']['comparisonValue'];
|
658 |
-
$hours = strlen(floor($value / 3600)) < 2 ? '0' . floor($value / 3600) : floor($value / 3600);
|
659 |
-
$mins = strlen(floor($value / 60 % 60)) < 2 ? '0' . floor($value / 60 % 60) : floor($value / 60 % 60);
|
660 |
-
$secs = strlen(floor($value % 60)) < 2 ? '0' . floor($value % 60) : floor($value % 60);
|
661 |
-
$value = $hours . ':' . $mins . ':' . $secs;
|
662 |
-
}
|
663 |
-
else {
|
664 |
-
$type = 'Pages/Screens per session';
|
665 |
-
if ($goal["modelData"]['visitNumPagesDetails']['comparisonType'] == 'GREATER_THAN') {
|
666 |
-
$match_type = 'Greater than';
|
667 |
-
}
|
668 |
-
$value = $goal["modelData"]['visitNumPagesDetails']['comparisonValue'];
|
669 |
-
}
|
670 |
-
|
671 |
-
$goals_light[$profile][] = array(
|
672 |
-
'name' => $goal['name'],
|
673 |
-
'id' => $goal['id'],
|
674 |
-
'type' => $type,
|
675 |
-
'match_type' => $match_type,
|
676 |
-
'profileID' => $goal['profileId'],
|
677 |
-
'caseSensitive' => $caseSensitive,
|
678 |
-
'value' => $value,
|
679 |
-
);
|
680 |
-
}
|
681 |
-
}
|
682 |
-
}
|
683 |
-
return $goals_light;
|
684 |
-
}
|
685 |
-
}
|
686 |
-
|
687 |
-
public function add_custom_dimension($name, $id)
|
688 |
-
{
|
689 |
-
|
690 |
-
$custom_dimension = new Google_Service_Analytics_CustomDimension();
|
691 |
-
$custom_dimension->setId($id);
|
692 |
-
$custom_dimension->setActive(TRUE);
|
693 |
-
$custom_dimension->setScope('Hit');
|
694 |
-
$custom_dimension->setName($name);
|
695 |
-
|
696 |
-
$accountId = $this->get_default_accountId();
|
697 |
-
$webPropertyId = $this->get_default_webPropertyId();
|
698 |
-
$analytics = $this->analytics_member;
|
699 |
-
delete_transient('gawd-custom-dimensions-' . $webPropertyId);
|
700 |
-
try {
|
701 |
-
$analytics->management_customDimensions->insert($accountId, $webPropertyId, $custom_dimension);
|
702 |
-
} catch (apiServiceException $e) {
|
703 |
-
echo 'There was an Analytics API service error '
|
704 |
-
. $e->getCode() . ':' . $e->getMessage();
|
705 |
-
} catch (apiException $e) {
|
706 |
-
echo 'There was a general API error '
|
707 |
-
. $e->getCode() . ':' . $e->getMessage();
|
708 |
-
} catch (Exception $e) {
|
709 |
-
|
710 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
711 |
-
$fh = fopen($myFile, 'a');
|
712 |
-
fwrite($fh, $e->getMessage() . "----add_custom_dimension function" . PHP_EOL);
|
713 |
-
fclose($fh);
|
714 |
-
|
715 |
-
if (strpos($e->getMessage(), 'not found.') !== false) {
|
716 |
-
echo '<div class="notice notice-error"><p>Something went wrong.</p></div>';
|
717 |
-
return 'error';
|
718 |
-
}
|
719 |
-
}
|
720 |
-
}
|
721 |
-
|
722 |
-
public function add_goal($gawd_goal_profile, $goal_max_id, $gawd_goal_type, $gawd_goal_name, $gawd_goal_comparison = "GREATER_THAN", $gawd_goal_value, $url_case_sensitve = 'false')
|
723 |
-
{
|
724 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
725 |
-
/* This request creates a new Goal. */
|
726 |
-
// Construct the body of the request.
|
727 |
-
$goal = new Google_Service_Analytics_Goal();
|
728 |
-
$goal->setId($goal_max_id); //ID
|
729 |
-
$goal->setActive(True); //ACTIVE/INACTIVE
|
730 |
-
$goal->setType($gawd_goal_type); //URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT
|
731 |
-
$goal->setName($gawd_goal_name); //NAME
|
732 |
-
// Construct the time on site details.
|
733 |
-
if ($gawd_goal_type == 'VISIT_TIME_ON_SITE') {
|
734 |
-
$details = new Google_Service_Analytics_GoalVisitTimeOnSiteDetails();
|
735 |
-
$details->setComparisonType($gawd_goal_comparison); //VISIT_TIME_ON_SITE -------- LESS_THAN/ GREATER_THAN------
|
736 |
-
$details->setComparisonValue($gawd_goal_value);
|
737 |
-
$goal->setVisitTimeOnSiteDetails($details);
|
738 |
-
}
|
739 |
-
elseif ($gawd_goal_type == 'URL_DESTINATION') {
|
740 |
-
if ($url_case_sensitve != '') {
|
741 |
-
$url_case_sensitve = true;
|
742 |
-
}
|
743 |
-
$details = new Google_Service_Analytics_GoalUrlDestinationDetails();
|
744 |
-
$details->setCaseSensitive($url_case_sensitve);
|
745 |
-
$details->setFirstStepRequired('false');
|
746 |
-
$details->setMatchType($gawd_goal_comparison);
|
747 |
-
$details->setUrl($gawd_goal_value);
|
748 |
-
$goal->setUrlDestinationDetails($details);
|
749 |
-
}
|
750 |
-
elseif ($gawd_goal_type == 'VISIT_NUM_PAGES') {
|
751 |
-
$details = new Google_Service_Analytics_GoalVisitNumPagesDetails();
|
752 |
-
$details->setComparisonType($gawd_goal_comparison); //VISIT_TIME_ON_SITE -------- LESS_THAN/ GREATER_THAN------
|
753 |
-
$details->setComparisonValue($gawd_goal_value);
|
754 |
-
$goal->setVisitNumPagesDetails($details);
|
755 |
-
}
|
756 |
-
elseif ($gawd_goal_type == 'EVENT') {
|
757 |
-
/* $details = new Google_Service_Analytics_GoalEventDetails();
|
758 |
-
$details = new Google_Service_Analytics_GoalEventDetailsEventConditions();
|
759 |
-
$detailssetComparisonType
|
760 |
-
//$details->setEventConditions($gawd_goal_comparison);//VISIT_TIME_ON_SITE -------- LESS_THAN/ GREATER_THAN------
|
761 |
-
//$details->setUseEventValue($gawd_goal_value); */
|
762 |
-
// $goal->setEventDetails($details);
|
763 |
-
}
|
764 |
-
|
765 |
-
//Set the time on site details.
|
766 |
-
$this->analytics_member;
|
767 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
768 |
-
$accountId = $this->get_default_accountId();
|
769 |
-
$webPropertyId = $this->get_default_webPropertyId();
|
770 |
-
$profileId = $gawd_goal_profile;
|
771 |
-
$analytics = $this->analytics_member;
|
772 |
-
try {
|
773 |
-
$analytics->management_goals->insert($accountId, $webPropertyId, $profileId, $goal);
|
774 |
-
} catch (apiServiceException $e) {
|
775 |
-
echo 'There was an Analytics API service error '
|
776 |
-
. $e->getCode() . ':' . $e->getMessage();
|
777 |
-
} catch (apiException $e) {
|
778 |
-
echo 'There was a general API error '
|
779 |
-
. $e->getCode() . ':' . $e->getMessage();
|
780 |
-
} catch (Exception $e) {
|
781 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
782 |
-
$fh = fopen($myFile, 'a');
|
783 |
-
fwrite($fh, $e->getMessage() . "----add goal function" . PHP_EOL);
|
784 |
-
fclose($fh);
|
785 |
-
$error = array('error_message' => $e->getMessage());
|
786 |
-
if (strpos($e->getMessage(), 'User does not have permission to perform this operation')) {
|
787 |
-
$error['error_message'] = 'User does not have permission to perform this operation';
|
788 |
-
}
|
789 |
-
return json_encode($error);
|
790 |
-
}
|
791 |
-
}
|
792 |
-
|
793 |
-
public function add_filter($name, $type, $value)
|
794 |
-
{
|
795 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
796 |
-
$accountId = $this->get_profile_accountId();
|
797 |
-
$profileId = $this->get_profile_id();
|
798 |
-
$webPropertyId = $this->get_profile_webPropertyId();
|
799 |
-
$analytics = $this->analytics_member;
|
800 |
-
$condition = $type == 'GEO_IP_ADDRESS' ? 'EQUAL' : 'MATCHES';
|
801 |
-
/**
|
802 |
-
* Note: This code assumes you have an authorized Analytics service object.
|
803 |
-
* See the Filters Developer Guide for details.
|
804 |
-
*/
|
805 |
-
/**
|
806 |
-
* This request creates a new filter.
|
807 |
-
*/
|
808 |
-
try {
|
809 |
-
// Construct the filter expression object.
|
810 |
-
$details = new Google_Service_Analytics_FilterExpression();
|
811 |
-
$details->setField($type);
|
812 |
-
$details->setMatchType($type);
|
813 |
-
$details->setExpressionValue($value);
|
814 |
-
$details->setCaseSensitive(false);
|
815 |
-
// Construct the filter and set the details.
|
816 |
-
$filter = new Google_Service_Analytics_Filter();
|
817 |
-
$filter->setName($name);
|
818 |
-
$filter->setType("EXCLUDE");
|
819 |
-
$filter->setExcludeDetails($details);
|
820 |
-
|
821 |
-
$insertedFilter = $analytics->management_filters->insert($accountId, $filter);
|
822 |
-
$analyticsFilterRef = new Google_Service_Analytics_FilterRef();
|
823 |
-
$analyticsFilterRef->setId($insertedFilter->id);
|
824 |
-
$filterData = new Google_Service_Analytics_ProfileFilterLink();
|
825 |
-
$filterData->setFilterRef($analyticsFilterRef);
|
826 |
-
// Add view to inserted filter
|
827 |
-
$res = $analytics->management_profileFilterLinks->insert($accountId, $webPropertyId, $profileId, $filterData);
|
828 |
-
|
829 |
-
} catch (apiServiceException $e) {
|
830 |
-
echo 'There was an Analytics API service error '
|
831 |
-
. $e->getCode() . ':' . $e->getMessage();
|
832 |
-
} catch (apiException $e) {
|
833 |
-
echo 'There was a general API error '
|
834 |
-
. $e->getCode() . ':' . $e->getMessage();
|
835 |
-
} catch (Exception $e) {
|
836 |
-
|
837 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
838 |
-
$fh = fopen($myFile, 'a');
|
839 |
-
fwrite($fh, $e->getMessage() . "----add_filter function" . PHP_EOL);
|
840 |
-
fclose($fh);
|
841 |
-
|
842 |
-
echo '<script>window.location.href="' . admin_url() . 'admin.php?page=gawd_settings&errorMsg=1#gawd_filters_tab";</script>';
|
843 |
-
}
|
844 |
-
}
|
845 |
-
|
846 |
-
public function get_country_data($metric, $dimension, $start_date, $end_date, $country_filter, $geo_type, $timezone)
|
847 |
-
{
|
848 |
-
$profileId = $this->get_profile_id();
|
849 |
-
$analytics = $this->analytics_member;
|
850 |
-
$metric = 'ga:users,ga:sessions,ga:percentNewSessions,ga:bounceRate,ga:pageviews,ga:avgSessionDuration';
|
851 |
-
|
852 |
-
try {
|
853 |
-
$results = $analytics->data_ga->get(
|
854 |
-
'ga:' . $profileId, $start_date, $end_date, $metric, array(
|
855 |
-
'dimensions' => 'ga:' . $dimension,
|
856 |
-
'sort' => 'ga:' . $dimension,
|
857 |
-
'filters' => 'ga:' . $geo_type . '==' . $country_filter
|
858 |
-
)
|
859 |
-
);
|
860 |
-
} catch (Exception $e) {
|
861 |
-
|
862 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
863 |
-
$fh = fopen($myFile, 'a');
|
864 |
-
fwrite($fh, $e->getMessage() . "----get_country_data function" . PHP_EOL);
|
865 |
-
fclose($fh);
|
866 |
-
|
867 |
-
$error = array('error_message' => 'Error');
|
868 |
-
if (strpos($e->getMessage(), 'User does not have sufficient permissions for this profile')) {
|
869 |
-
$error['error_message'] = 'User does not have sufficient permissions for this profile';
|
870 |
-
}
|
871 |
-
return json_encode($error);
|
872 |
-
}
|
873 |
-
$rows = $results->getRows();
|
874 |
-
$metric = explode(',', $metric);
|
875 |
-
if ($rows) {
|
876 |
-
$data_sum = array();
|
877 |
-
foreach ($results->getTotalsForAllResults() as $key => $value) {
|
878 |
-
$data_sum[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($key, 3))))] = $value;
|
879 |
-
}
|
880 |
-
$j = 0;
|
881 |
-
foreach ($rows as $row) {
|
882 |
-
$data[$j] = array(
|
883 |
-
ucfirst($dimension) => $row[0]
|
884 |
-
);
|
885 |
-
$data[$j]['No'] = floatval($j + 1);
|
886 |
-
for ($i = 0; $i < count($metric); $i++) {
|
887 |
-
$data[$j][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = floatval($row[$i + 1]);
|
888 |
-
}
|
889 |
-
$j++;
|
890 |
-
}
|
891 |
-
}
|
892 |
-
else {
|
893 |
-
$empty[0] = array(
|
894 |
-
trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => 0
|
895 |
-
);
|
896 |
-
$empty[0]['No'] = 1;
|
897 |
-
for ($i = 0; $i < count($metric); $i++) {
|
898 |
-
$empty[0][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = 0;
|
899 |
-
}
|
900 |
-
|
901 |
-
return json_encode($empty);
|
902 |
-
}
|
903 |
-
$expiration = strtotime(date("Y-m-d 23:59:59")) - strtotime(gmdate("Y-m-d H:i:s") . '+' . $timezone . ' hours');
|
904 |
-
$result = $data;
|
905 |
-
if ($data_sum != '') {
|
906 |
-
$result = array('data_sum' => $data_sum, 'chart_data' => $data);
|
907 |
-
}
|
908 |
-
set_transient('gawd-country-' . $profileId . '-' . $country_filter . '-' . $start_date . '-' . $end_date, json_encode($result), $expiration);
|
909 |
-
return json_encode($result);
|
910 |
-
}
|
911 |
-
|
912 |
-
public function get_post_page_data($metric, $dimension, $start_date, $end_date, $filter, $timezone, $chart)
|
913 |
-
{
|
914 |
-
$profileId = $this->get_profile_id();
|
915 |
-
$analytics = $this->analytics_member;
|
916 |
-
$metric = 'ga:users,ga:sessions,ga:percentNewSessions,ga:bounceRate,ga:pageviews,ga:avgSessionDuration,ga:pageviewsPerSession';
|
917 |
-
if ($chart == 'pie') {
|
918 |
-
$diff = date_diff(date_create($start_date), date_create($end_date));
|
919 |
-
if (intval($diff->format("%a")) > 7) {
|
920 |
-
$dimension = 'week';
|
921 |
-
}
|
922 |
-
if (intval($diff->format("%a")) > 60) {
|
923 |
-
$dimension = 'month';
|
924 |
-
}
|
925 |
-
}
|
926 |
-
// Get the results from the Core Reporting API and print the results.
|
927 |
-
// Calls the Core Reporting API and queries for the number of sessions
|
928 |
-
// for the last seven days.
|
929 |
-
|
930 |
-
$filter_type = 'pagePath';
|
931 |
-
|
932 |
-
try {
|
933 |
-
$results = $analytics->data_ga->get(
|
934 |
-
'ga:' . $profileId, $start_date, $end_date, $metric, array(
|
935 |
-
'dimensions' => 'ga:' . $dimension,
|
936 |
-
'sort' => 'ga:' . $dimension,
|
937 |
-
'filters' => 'ga:' . $filter_type . '=~' . $filter
|
938 |
-
)
|
939 |
-
);
|
940 |
-
} catch (Exception $e) {
|
941 |
-
|
942 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
943 |
-
$fh = fopen($myFile, 'a');
|
944 |
-
fwrite($fh, $e->getMessage() . "----get_post_page_data function" . PHP_EOL);
|
945 |
-
fclose($fh);
|
946 |
-
|
947 |
-
$error = array('error_message' => 'Error');
|
948 |
-
if (strpos($e->getMessage(), 'User does not have sufficient permissions for this profile')) {
|
949 |
-
$error['error_message'] = 'User does not have sufficient permissions for this profile';
|
950 |
-
}
|
951 |
-
return json_encode($error);
|
952 |
-
}
|
953 |
-
|
954 |
-
$rows = $results->getRows();
|
955 |
-
$metric = explode(',', $metric);
|
956 |
-
if ($rows) {
|
957 |
-
$j = 0;
|
958 |
-
$data_sum = array();
|
959 |
-
/*if ($dimension == 'week') {
|
960 |
-
$date = $start_date;
|
961 |
-
$_end_date = date("M d,Y", strtotime('next Saturday ' . $date));
|
962 |
-
if (strtotime($end_date) > strtotime(date('Y-m-d'))) {
|
963 |
-
$end_date = date("M d,Y");
|
964 |
-
}
|
965 |
-
foreach ($rows as $row) {
|
966 |
-
if (strtotime($_end_date) <= strtotime(date('Y-m-d'))) {
|
967 |
-
|
968 |
-
$dimension_value = date("M d,Y", strtotime($date)) . '-' . $_end_date;
|
969 |
-
// echo $date;
|
970 |
-
}
|
971 |
-
else {
|
972 |
-
|
973 |
-
if (strtotime($date) != strtotime($end_date)) {
|
974 |
-
$dimension_value = date("M d,Y", strtotime($date)) . '-' . $_end_date;
|
975 |
-
} else {
|
976 |
-
break;
|
977 |
-
}
|
978 |
-
}
|
979 |
-
$data[] = array(trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => $dimension_value);
|
980 |
-
$data[$j]['No'] = floatval($j + 1);
|
981 |
-
for ($i = 0; $i < count($metric); $i++) {
|
982 |
-
$val = $i + 1;
|
983 |
-
$metric_val = floatval($row[$val]);
|
984 |
-
if(substr($metric[$i], 3) == 'bounceRate'){
|
985 |
-
$metric_val = $metric_val;
|
986 |
-
}
|
987 |
-
$data[$j][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = $metric_val;
|
988 |
-
}
|
989 |
-
$j++;
|
990 |
-
$date = date("M d,Y", strtotime('next Sunday ' . $_end_date));
|
991 |
-
$_end_date = date("M d,Y", strtotime('next Saturday ' . $date));
|
992 |
-
if (isset($_end_date) && (strtotime($_end_date) > strtotime($end_date))) {
|
993 |
-
$_end_date = $end_date;
|
994 |
-
}
|
995 |
-
}
|
996 |
-
}*/
|
997 |
-
if ($dimension == 'week' || $dimension == 'month') {
|
998 |
-
$date = $start_date;
|
999 |
-
if ($dimension == 'week') {
|
1000 |
-
$_end_date = date("l", strtotime($date)) == 'Saturday' ? date("M d,Y", strtotime($date)) : date("M d,Y", strtotime('next Saturday ' . $date));
|
1001 |
-
}
|
1002 |
-
elseif ($dimension == 'month') {
|
1003 |
-
$_end_date = date("M t,Y", strtotime($date));
|
1004 |
-
if (strtotime($_end_date) > strtotime(date('Y-m-d'))) {
|
1005 |
-
$_end_date = date("M d,Y", strtotime('-1 day ' . date('Y-m-d')));
|
1006 |
-
}
|
1007 |
-
}
|
1008 |
-
if (strtotime($end_date) > strtotime(date('Y-m-d'))) {
|
1009 |
-
$end_date = date("M d,Y");
|
1010 |
-
}
|
1011 |
-
foreach ($rows as $row) {
|
1012 |
-
if ($dimension == 'hour') {
|
1013 |
-
$dimension_value = date("M d,Y", strtotime($row[0])) . ' ' . $row[1] . ':00';
|
1014 |
-
}
|
1015 |
-
else {
|
1016 |
-
if (strtotime($_end_date) <= strtotime(date('Y-m-d'))) {
|
1017 |
-
|
1018 |
-
$dimension_value = date("M d,Y", strtotime($date)) . '-' . $_end_date;
|
1019 |
-
// echo $date;
|
1020 |
-
}
|
1021 |
-
else {
|
1022 |
-
if ($dimension == 'month') {
|
1023 |
-
//continue;
|
1024 |
-
}
|
1025 |
-
if (strtotime($date) != strtotime($end_date)) {
|
1026 |
-
$dimension_value = date("M d,Y", strtotime($date)) . '-' . $_end_date;
|
1027 |
-
}
|
1028 |
-
else {
|
1029 |
-
break;
|
1030 |
-
}
|
1031 |
-
}
|
1032 |
-
}
|
1033 |
-
$data[] = array(trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => $dimension_value);
|
1034 |
-
$data[$j]['No'] = floatval($j + 1);
|
1035 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1036 |
-
$val = $i + 1;
|
1037 |
-
if ($dimension == 'hour') {
|
1038 |
-
$val = $i + 2;
|
1039 |
-
}
|
1040 |
-
$metric_val = floatval($row[$val]);
|
1041 |
-
if (substr($metric[$i], 3) == 'bounceRate') {
|
1042 |
-
$metric_val = $metric_val;
|
1043 |
-
}
|
1044 |
-
$data[$j][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = $metric_val;
|
1045 |
-
}
|
1046 |
-
|
1047 |
-
$j++;
|
1048 |
-
|
1049 |
-
if (isset($break) && $break) {
|
1050 |
-
break;
|
1051 |
-
}
|
1052 |
-
|
1053 |
-
if ($dimension == 'week') {
|
1054 |
-
$date = date("M d,Y", strtotime('next Sunday ' . $_end_date));
|
1055 |
-
$_end_date = date("M d,Y", strtotime('next Saturday ' . $date));
|
1056 |
-
}
|
1057 |
-
elseif ($dimension == 'month') {
|
1058 |
-
$date = date("M d,Y", strtotime('+1 day ' . $_end_date));
|
1059 |
-
$_end_date = date("M t,Y", strtotime($date));
|
1060 |
-
}
|
1061 |
-
if (isset($_end_date) && (strtotime($_end_date) > strtotime($end_date))) {
|
1062 |
-
$_end_date = date("M d,Y", strtotime($end_date));
|
1063 |
-
$break = true;
|
1064 |
-
}
|
1065 |
-
}
|
1066 |
-
}
|
1067 |
-
else {
|
1068 |
-
foreach ($rows as $row) {
|
1069 |
-
|
1070 |
-
if ($dimension == 'date') {
|
1071 |
-
$row[0] = date('Y-m-d', strtotime($row[0]));
|
1072 |
-
}
|
1073 |
-
$data[$j] = array(
|
1074 |
-
$dimension => $row[0]
|
1075 |
-
);
|
1076 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1077 |
-
$data[$j][substr($metric[$i], 3)] = floatval($row[$i + 1]);
|
1078 |
-
if (isset($data_sum[substr($metric[$i], 3)])) {
|
1079 |
-
$data_sum[substr($metric[$i], 3)] += floatval($row[$i + 1]);
|
1080 |
-
}
|
1081 |
-
else {
|
1082 |
-
if (substr($metric[$i], 3) != 'percentNewSessions' && substr($metric[$i], 3) != 'bounceRate') {
|
1083 |
-
$data_sum[substr($metric[$i], 3)] = floatval($row[$i + 1]);
|
1084 |
-
}
|
1085 |
-
}
|
1086 |
-
}
|
1087 |
-
$j++;
|
1088 |
-
}
|
1089 |
-
}
|
1090 |
-
$expiration = strtotime(date("Y-m-d 23:59:59")) - strtotime(gmdate("Y-m-d H:i:s") . '+' . $timezone . ' hours');
|
1091 |
-
if (isset($same_dimension) && $same_dimension != null) {
|
1092 |
-
$dimension = $same_dimension;
|
1093 |
-
}
|
1094 |
-
$result = array('data_sum' => $data_sum, 'chart_data' => $data);
|
1095 |
-
set_transient('gawd-page-post-' . $profileId . '-' . $filter . '-' . '-' . $dimension . '-' . $start_date . '-' . $end_date . '-' . $chart, json_encode($result), $expiration);
|
1096 |
-
return json_encode($result);
|
1097 |
-
}
|
1098 |
-
else {
|
1099 |
-
$empty[0][$dimension] = date("Y-m-d");
|
1100 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1101 |
-
$empty[0][trim(str_replace(" ", "", preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = 0;
|
1102 |
-
}
|
1103 |
-
return json_encode($empty);
|
1104 |
-
}
|
1105 |
-
}
|
1106 |
-
|
1107 |
-
public function get_data($metric, $dimension, $start_date, $end_date, $filter_type, $timezone, $same_dimension = null)
|
1108 |
-
{
|
1109 |
-
if (function_exists('lcfirst') === false) {
|
1110 |
-
function lcfirst($str)
|
1111 |
-
{
|
1112 |
-
$str[0] = strtolower($str[0]);
|
1113 |
-
return $str;
|
1114 |
-
}
|
1115 |
-
}
|
1116 |
-
$dimension = lcfirst($dimension);
|
1117 |
-
|
1118 |
-
$metric = lcfirst($metric);
|
1119 |
-
$profileId = $this->get_profile_id();
|
1120 |
-
|
1121 |
-
$analytics = $this->analytics_member;
|
1122 |
-
$selected_metric = $metric;
|
1123 |
-
if (strpos($selected_metric, 'ga:') > -1) {
|
1124 |
-
$selected_metric = substr($selected_metric, 3);
|
1125 |
-
}
|
1126 |
-
if (strpos($metric, 'ga:') === false) {
|
1127 |
-
$metric = 'ga:' . $metric;
|
1128 |
-
}
|
1129 |
-
if ($dimension == 'interestInMarketCategory' || $dimension == 'interestAffinityCategory' || $dimension == 'interestOtherCategory' || $dimension == 'country' || $dimension == 'language' || $dimension == 'userType' || $dimension == 'sessionDurationBucket' || $dimension == 'userAgeBracket' || $dimension == 'userGender' || $dimension == 'mobileDeviceInfo' || $dimension == 'deviceCategory' || $dimension == 'operatingSystem' || $dimension == 'browser' || $dimension == 'date' || $dimension == "source") {
|
1130 |
-
$metrics = 'ga:users,ga:sessions,ga:percentNewSessions,ga:bounceRate,ga:pageviews,ga:avgSessionDuration,ga:pageviewsPerSession';
|
1131 |
-
|
1132 |
-
if (strpos($metrics, $metric) !== false) {
|
1133 |
-
$metric = $metrics;
|
1134 |
-
}
|
1135 |
-
}
|
1136 |
-
elseif ($dimension == 'siteSpeed') {
|
1137 |
-
$dimension = 'date';
|
1138 |
-
$metrics = 'ga:avgPageLoadTime,ga:avgRedirectionTime,ga:avgServerResponseTime,ga:avgPageDownloadTime';
|
1139 |
-
if (strpos($metrics, $metric) !== false) {
|
1140 |
-
$metric = $metrics;
|
1141 |
-
}
|
1142 |
-
}
|
1143 |
-
elseif ($dimension == 'eventLabel' || $dimension == 'eventAction' || $dimension == 'eventCategory') {
|
1144 |
-
$metrics = 'ga:eventsPerSessionWithEvent,ga:sessionsWithEvent,ga:avgEventValue,ga:eventValue,ga:uniqueEvents,ga:totalEvents';
|
1145 |
-
if (strpos($metrics, $metric) !== false) {
|
1146 |
-
$metric = $metrics;
|
1147 |
-
}
|
1148 |
-
}
|
1149 |
-
|
1150 |
-
$dimension = $dimension == 'date' ? $filter_type != '' ? $filter_type : 'date' : $dimension;
|
1151 |
-
if ($same_dimension == 'sales_performance' && ($dimension == 'week' || $dimension == 'month' || $dimension == 'hour')) {
|
1152 |
-
$metrics = 'ga:transactionRevenue, ga:transactionsPerSession';
|
1153 |
-
if (strpos($metrics, $metric) !== false) {
|
1154 |
-
$metric = $metrics;
|
1155 |
-
}
|
1156 |
-
}
|
1157 |
-
elseif ($same_dimension == 'adsense' && ($dimension == 'week' || $dimension == 'month' || $dimension == 'hour')) {
|
1158 |
-
$metrics = 'ga:adsenseRevenue,ga:adsenseAdsClicks';
|
1159 |
-
if (strpos($metrics, $metric) !== false) {
|
1160 |
-
$metric = $metrics;
|
1161 |
-
}
|
1162 |
-
}
|
1163 |
-
elseif ($same_dimension == 'siteSpeed' && ($dimension == 'week' || $dimension == 'month' || $dimension == 'hour')) {
|
1164 |
-
$metrics = 'ga:avgPageLoadTime,ga:avgRedirectionTime,ga:avgServerResponseTime,ga:avgPageDownloadTime';
|
1165 |
-
if (strpos($metrics, $metric) !== false) {
|
1166 |
-
$metric = $metrics;
|
1167 |
-
}
|
1168 |
-
}
|
1169 |
-
|
1170 |
-
if ($same_dimension == 'week' || $same_dimension == 'month' || $same_dimension == 'hour') {
|
1171 |
-
$metrics = 'ga:users,ga:sessions,ga:percentNewSessions,ga:bounceRate,ga:pageviews,ga:avgSessionDuration';
|
1172 |
-
if (strpos($metrics, $metric) !== false) {
|
1173 |
-
$metric = $metrics;
|
1174 |
-
}
|
1175 |
-
}
|
1176 |
-
|
1177 |
-
/* if(!is_array($metric)){
|
1178 |
-
if (strpos($metric, 'ga') === false) {
|
1179 |
-
$metric = 'ga:' . $metric;
|
1180 |
-
}
|
1181 |
-
} */
|
1182 |
-
// Get the results from the Core Reporting API and print the results.
|
1183 |
-
// Calls the Core Reporting API and queries for the number of sessions
|
1184 |
-
// for the last seven days.
|
1185 |
-
if ($dimension == 'hour') {
|
1186 |
-
|
1187 |
-
$gawd_dimension = array(
|
1188 |
-
'dimensions' => 'ga:date, ga:hour',
|
1189 |
-
'sort' => 'ga:date',
|
1190 |
-
);
|
1191 |
-
}
|
1192 |
-
else {
|
1193 |
-
if ($dimension != 'sessionDurationBucket') {
|
1194 |
-
$gawd_dimension = array(
|
1195 |
-
'dimensions' => 'ga:' . $dimension,
|
1196 |
-
'sort' => '-ga:' . $selected_metric,
|
1197 |
-
);
|
1198 |
-
}
|
1199 |
-
else {
|
1200 |
-
$gawd_dimension = array(
|
1201 |
-
'dimensions' => 'ga:' . $dimension,
|
1202 |
-
'sort' => 'ga:' . $dimension,
|
1203 |
-
);
|
1204 |
-
}
|
1205 |
-
}
|
1206 |
-
if (isset($profileId) && $profileId != '') {
|
1207 |
-
try {
|
1208 |
-
$results = $analytics->data_ga->get(
|
1209 |
-
'ga:' . $profileId, $start_date, $end_date, $metric, $gawd_dimension
|
1210 |
-
);
|
1211 |
-
|
1212 |
-
} catch (Exception $e) {
|
1213 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
1214 |
-
$fh = fopen($myFile, 'a');
|
1215 |
-
fwrite($fh, $e->getMessage() . "----get_data function" . PHP_EOL);
|
1216 |
-
fclose($fh);
|
1217 |
-
$error = array('error_message' => 'Error');
|
1218 |
-
if (strpos($e->getMessage(), 'Selected dimensions and metrics cannot be queried together')) {
|
1219 |
-
$error['error_message'] = 'Selected dimensions and metrics cannot be queried together';
|
1220 |
-
}
|
1221 |
-
else if (strpos($e->getMessage(), 'User does not have sufficient permissions for this profile')) {
|
1222 |
-
$error['error_message'] = 'User does not have sufficient permissions for this profile';
|
1223 |
-
}
|
1224 |
-
return json_encode($error);
|
1225 |
-
}
|
1226 |
-
|
1227 |
-
$metric = explode(',', $metric);
|
1228 |
-
$rows = $results->getRows();
|
1229 |
-
if ($rows) {
|
1230 |
-
|
1231 |
-
$j = 0;
|
1232 |
-
$data_sum = array();
|
1233 |
-
foreach ($results->getTotalsForAllResults() as $key => $value) {
|
1234 |
-
$data_sum[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($key, 3))))] = $value;
|
1235 |
-
}
|
1236 |
-
|
1237 |
-
if ($dimension == 'week' || $dimension == 'month' || $dimension == 'hour') {
|
1238 |
-
|
1239 |
-
$date = $start_date;
|
1240 |
-
if ($dimension == 'week') {
|
1241 |
-
$_end_date = date("l", strtotime($date)) == 'Saturday' ? date("M d,Y", strtotime($date)) : date("M d,Y", strtotime('next Saturday ' . $date));
|
1242 |
-
}
|
1243 |
-
elseif ($dimension == 'month') {
|
1244 |
-
$_end_date = date("M t,Y", strtotime($date));
|
1245 |
-
if (strtotime($_end_date) > strtotime(date('Y-m-d'))) {
|
1246 |
-
$_end_date = date("M d,Y", strtotime('-1 day ' . date('Y-m-d')));
|
1247 |
-
}
|
1248 |
-
}
|
1249 |
-
if (strtotime($end_date) > strtotime(date('Y-m-d'))) {
|
1250 |
-
$end_date = date("M d,Y");
|
1251 |
-
}
|
1252 |
-
foreach ($rows as $row) {
|
1253 |
-
if ($dimension == 'hour') {
|
1254 |
-
$dimension_value = date("M d,Y", strtotime($row[0])) . ' ' . $row[1] . ':00';
|
1255 |
-
}
|
1256 |
-
else {
|
1257 |
-
if (strtotime($_end_date) <= strtotime(date('Y-m-d'))) {
|
1258 |
-
|
1259 |
-
$dimension_value = date("M d,Y", strtotime($date)) . '-' . $_end_date;
|
1260 |
-
// echo $date;
|
1261 |
-
}
|
1262 |
-
else {
|
1263 |
-
if ($dimension == 'month') {
|
1264 |
-
//continue;
|
1265 |
-
}
|
1266 |
-
if (strtotime($date) != strtotime($end_date)) {
|
1267 |
-
$dimension_value = date("M d,Y", strtotime($date)) . '-' . $_end_date;
|
1268 |
-
}
|
1269 |
-
else {
|
1270 |
-
break;
|
1271 |
-
}
|
1272 |
-
}
|
1273 |
-
}
|
1274 |
-
$data[] = array(trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => $dimension_value);
|
1275 |
-
$data[$j]['No'] = floatval($j + 1);
|
1276 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1277 |
-
$val = $i + 1;
|
1278 |
-
if ($dimension == 'hour') {
|
1279 |
-
$val = $i + 2;
|
1280 |
-
}
|
1281 |
-
$metric_val = floatval($row[$val]);
|
1282 |
-
if (substr($metric[$i], 3) == 'bounceRate') {
|
1283 |
-
$metric_val = $metric_val;
|
1284 |
-
}
|
1285 |
-
$data[$j][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = $metric_val;
|
1286 |
-
}
|
1287 |
-
|
1288 |
-
$j++;
|
1289 |
-
|
1290 |
-
if (isset($break) && $break) {
|
1291 |
-
break;
|
1292 |
-
}
|
1293 |
-
|
1294 |
-
if ($dimension == 'week') {
|
1295 |
-
$date = date("M d,Y", strtotime('next Sunday ' . $_end_date));
|
1296 |
-
$_end_date = date("M d,Y", strtotime('next Saturday ' . $date));
|
1297 |
-
}
|
1298 |
-
elseif ($dimension == 'month') {
|
1299 |
-
$date = date("M d,Y", strtotime('+1 day ' . $_end_date));
|
1300 |
-
$_end_date = date("M t,Y", strtotime($date));
|
1301 |
-
}
|
1302 |
-
if (isset($_end_date) && (strtotime($_end_date) > strtotime($end_date))) {
|
1303 |
-
$_end_date = date("M d,Y", strtotime($end_date));
|
1304 |
-
$break = true;
|
1305 |
-
}
|
1306 |
-
}
|
1307 |
-
}
|
1308 |
-
else {
|
1309 |
-
foreach ($rows as $row) {
|
1310 |
-
if (strtolower($dimension) == 'date') {
|
1311 |
-
$row[0] = date('Y-m-d', strtotime($row[0]));
|
1312 |
-
}
|
1313 |
-
elseif (strtolower($dimension) == 'sessiondurationbucket') {
|
1314 |
-
if ($row[0] >= 0 && $row[0] <= 10) {
|
1315 |
-
$row[0] = '0-10';
|
1316 |
-
}
|
1317 |
-
elseif ($row[0] >= 11 && $row[0] <= 30) {
|
1318 |
-
$row[0] = '11-30';
|
1319 |
-
}
|
1320 |
-
elseif ($row[0] >= 31 && $row[0] <= 40) {
|
1321 |
-
$row[0] = '31-40';
|
1322 |
-
}
|
1323 |
-
elseif ($row[0] >= 41 && $row[0] <= 60) {
|
1324 |
-
$row[0] = '41-60';
|
1325 |
-
}
|
1326 |
-
elseif ($row[0] >= 61 && $row[0] <= 180) {
|
1327 |
-
$row[0] = '61-180';
|
1328 |
-
}
|
1329 |
-
elseif ($row[0] >= 181 && $row[0] <= 600) {
|
1330 |
-
$row[0] = '181-600';
|
1331 |
-
}
|
1332 |
-
elseif ($row[0] >= 601 && $row[0] <= 1800) {
|
1333 |
-
$row[0] = '601-1800';
|
1334 |
-
}
|
1335 |
-
elseif ($row[0] >= 1801) {
|
1336 |
-
$row[0] = '1801';
|
1337 |
-
}
|
1338 |
-
}
|
1339 |
-
elseif (strpos($dimension, 'dimension') > -1) {
|
1340 |
-
$dimension_data = $this->get_custom_dimensions();
|
1341 |
-
foreach ($dimension_data as $key => $value) {
|
1342 |
-
if ($dimension == substr($value['id'], 3)) {
|
1343 |
-
$dimension = $value['name'];
|
1344 |
-
}
|
1345 |
-
}
|
1346 |
-
}
|
1347 |
-
$data[$j]['No'] = floatval($j + 1);
|
1348 |
-
$dimension_data = ctype_digit($row[0]) ? intval($row[0]) : $row[0];
|
1349 |
-
$dimension_data = strpos($dimension_data, 'T') ? substr($dimension_data, 0, strpos($dimension_data, 'T')) : $dimension_data;
|
1350 |
-
$data[$j][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension)))] = $dimension_data;
|
1351 |
-
|
1352 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1353 |
-
$metric_val = floatval($row[$i + 1]);
|
1354 |
-
if (substr($metric[$i], 3) == 'avgSessionDuration') {
|
1355 |
-
$metric_val = ceil($row[$i + 1]);
|
1356 |
-
}
|
1357 |
-
$data[$j][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = $metric_val;
|
1358 |
-
}
|
1359 |
-
$j++;
|
1360 |
-
}
|
1361 |
-
}
|
1362 |
-
$expiration = strtotime(date("Y-m-d 23:59:59")) - strtotime(gmdate("Y-m-d H:i:s") . '+' . $timezone . ' hours');
|
1363 |
-
if (isset($same_dimension) && $same_dimension != null) {
|
1364 |
-
$dimension = $filter_type == 'date' || $filter_type == '' || $filter_type == 'Date' ? $same_dimension : $same_dimension . '_' . $filter_type;
|
1365 |
-
}
|
1366 |
-
if ($dimension == "daysToTransaction") {
|
1367 |
-
foreach ($data as $key => $row) {
|
1368 |
-
$daysToTransaction[$key] = $row['Days To Transaction'];
|
1369 |
-
}
|
1370 |
-
array_multisort($daysToTransaction, SORT_ASC, $data);
|
1371 |
-
foreach ($data as $j => $val) {
|
1372 |
-
$val["No"] = ($j + 1);
|
1373 |
-
$data[$j] = $val;
|
1374 |
-
}
|
1375 |
-
}
|
1376 |
-
elseif ($dimension == "sessionDurationBucket") {
|
1377 |
-
$_data = array();
|
1378 |
-
//$j = 1;
|
1379 |
-
foreach ($data as $val) {
|
1380 |
-
if (isset($_data[$val["Session Duration Bucket"]])) {
|
1381 |
-
$_data[$val["Session Duration Bucket"]]["Users"] += floatval($val["Users"]);
|
1382 |
-
$_data[$val["Session Duration Bucket"]]["Sessions"] += floatval($val["Sessions"]);
|
1383 |
-
$_data[$val["Session Duration Bucket"]]["Percent New Sessions"] += floatval($val["Percent New Sessions"]);
|
1384 |
-
$_data[$val["Session Duration Bucket"]]["Bounce Rate"] += floatval($val["Bounce Rate"]);
|
1385 |
-
$_data[$val["Session Duration Bucket"]]["Pageviews"] += floatval($val["Pageviews"]);
|
1386 |
-
$_data[$val["Session Duration Bucket"]]["Avg Session Duration"] += $val["Avg Session Duration"];
|
1387 |
-
}
|
1388 |
-
else {
|
1389 |
-
// $val["No"] = $j;
|
1390 |
-
// $j++;
|
1391 |
-
$_data[$val["Session Duration Bucket"]] = $val;
|
1392 |
-
$_data[$val["Session Duration Bucket"]]["order"] = intval($val["Session Duration Bucket"]);
|
1393 |
-
}
|
1394 |
-
|
1395 |
-
|
1396 |
-
}
|
1397 |
-
$data = array_values($_data);
|
1398 |
-
foreach ($data as $key => $row) {
|
1399 |
-
$yyy[$key] = $row['order'];
|
1400 |
-
}
|
1401 |
-
array_multisort($yyy, SORT_ASC, $data);
|
1402 |
-
foreach ($data as $j => $val) {
|
1403 |
-
$val["No"] = ($j + 1);
|
1404 |
-
$data[$j] = $val;
|
1405 |
-
}
|
1406 |
-
}
|
1407 |
-
else {
|
1408 |
-
if (strpos($dimension, 'dimension') === false) {
|
1409 |
-
$dimension = $dimension == 'siteSpeed' || $dimension == 'sales_performance' ? 'Date' : $dimension;
|
1410 |
-
foreach ($data as $key => $row) {
|
1411 |
-
$new_data[$key] = $row[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension)))];
|
1412 |
-
}
|
1413 |
-
array_multisort($new_data, SORT_ASC, $data);
|
1414 |
-
foreach ($data as $j => $val) {
|
1415 |
-
$val["No"] = ($j + 1);
|
1416 |
-
$data[$j] = $val;
|
1417 |
-
}
|
1418 |
-
}
|
1419 |
-
}
|
1420 |
-
$result = $data;
|
1421 |
-
if ($data_sum != '') {
|
1422 |
-
$result = array('data_sum' => $data_sum, 'chart_data' => $data);
|
1423 |
-
}
|
1424 |
-
set_transient('gawd-' . $profileId . '-' . $dimension . '-' . $start_date . '-' . $end_date, json_encode($result), $expiration);
|
1425 |
-
return json_encode($result);
|
1426 |
-
}
|
1427 |
-
else {
|
1428 |
-
if (strpos($dimension, 'dimension') > -1) {
|
1429 |
-
$dimension_data = $this->get_custom_dimensions();
|
1430 |
-
foreach ($dimension_data as $key => $value) {
|
1431 |
-
if ($dimension == substr($value['id'], 3)) {
|
1432 |
-
$dimension = $value['name'];
|
1433 |
-
}
|
1434 |
-
}
|
1435 |
-
}
|
1436 |
-
$empty[0] = array(
|
1437 |
-
trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => 0
|
1438 |
-
);
|
1439 |
-
$empty[0]['No'] = 1;
|
1440 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1441 |
-
$empty[0][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = 0;
|
1442 |
-
}
|
1443 |
-
|
1444 |
-
return json_encode(array('chart_data' => $empty));
|
1445 |
-
}
|
1446 |
-
}
|
1447 |
-
}
|
1448 |
-
|
1449 |
-
public function get_data_compact($metric, $dimension, $start_date, $end_date, $timezone)
|
1450 |
-
{
|
1451 |
-
$profileId = $this->get_profile_id();
|
1452 |
-
$metric_sort = $metric;
|
1453 |
-
$analytics = $this->analytics_member;
|
1454 |
-
// Get the results from the Core Reporting API and print the results.
|
1455 |
-
// Calls the Core Reporting API and queries for the number of sessions
|
1456 |
-
// for the last seven days.
|
1457 |
-
if ($dimension == 'date') {
|
1458 |
-
$metric = 'ga:users,ga:sessions,ga:percentNewSessions,ga:bounceRate,ga:pageviews,ga:avgSessionDuration,ga:pageviewsPerSession';
|
1459 |
-
}
|
1460 |
-
try {
|
1461 |
-
$results = $analytics->data_ga->get(
|
1462 |
-
'ga:' . $profileId, $start_date, $end_date, $metric, array(
|
1463 |
-
'dimensions' => 'ga:' . $dimension,
|
1464 |
-
'sort' => 'ga:' . $dimension,
|
1465 |
-
)
|
1466 |
-
);
|
1467 |
-
} catch (Exception $e) {
|
1468 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
1469 |
-
$fh = fopen($myFile, 'a');
|
1470 |
-
fwrite($fh, $e->getMessage() . "----get_data_compact function" . PHP_EOL);
|
1471 |
-
fclose($fh);
|
1472 |
-
}
|
1473 |
-
$rows = $results->getRows();
|
1474 |
-
$metric = explode(',', $metric);
|
1475 |
-
if ($rows) {
|
1476 |
-
$j = 0;
|
1477 |
-
$data_sum = array();
|
1478 |
-
foreach ($results->getTotalsForAllResults() as $key => $value) {
|
1479 |
-
$data_sum[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($key, 3))))] = $value;
|
1480 |
-
}
|
1481 |
-
|
1482 |
-
foreach ($rows as $row) {
|
1483 |
-
if ($dimension == 'date') {
|
1484 |
-
$row[0] = date('Y-m-d', strtotime($row[0]));
|
1485 |
-
}
|
1486 |
-
$data[$j] = array(
|
1487 |
-
trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => $row[0]
|
1488 |
-
);
|
1489 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1490 |
-
$metric_val = floatval($row[$i + 1]);
|
1491 |
-
|
1492 |
-
$data[$j][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = $metric_val;
|
1493 |
-
}
|
1494 |
-
$j++;
|
1495 |
-
}
|
1496 |
-
if ($dimension == "country") {
|
1497 |
-
foreach ($data as $key => $row) {
|
1498 |
-
$country[$key] = $row[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric_sort, 3))))];
|
1499 |
-
}
|
1500 |
-
array_multisort($country, SORT_DESC, $data);
|
1501 |
-
foreach ($data as $j => $val) {
|
1502 |
-
$val["No"] = ($j + 1);
|
1503 |
-
$data[$j] = $val;
|
1504 |
-
}
|
1505 |
-
}
|
1506 |
-
}
|
1507 |
-
else {
|
1508 |
-
$data_sum = array();
|
1509 |
-
$empty[0] = array(
|
1510 |
-
trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => 0
|
1511 |
-
);
|
1512 |
-
$data_sum[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension)))] = 0;
|
1513 |
-
$empty[0]['No'] = 1;
|
1514 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1515 |
-
$empty[0][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = 0;
|
1516 |
-
$data_sum[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = 0;
|
1517 |
-
}
|
1518 |
-
$result = array('data_sum' => $data_sum, 'chart_data' => $empty);
|
1519 |
-
return json_encode($result);
|
1520 |
-
}
|
1521 |
-
if ($data_sum != '') {
|
1522 |
-
$result = array('data_sum' => $data_sum, 'chart_data' => $data);
|
1523 |
-
}
|
1524 |
-
$expiration = strtotime(date("Y-m-d 23:59:59")) - strtotime(gmdate("Y-m-d H:i:s") . '+' . $timezone . ' hours');
|
1525 |
-
set_transient('gawd-compact-' . $profileId . '-' . $dimension . '-' . $start_date . '-' . $end_date, json_encode($result), $expiration);
|
1526 |
-
return json_encode($result);
|
1527 |
-
}
|
1528 |
-
|
1529 |
-
public function get_data_alert($metric, $dimension, $start_date, $end_date, $gawd_alert_view)
|
1530 |
-
{
|
1531 |
-
$profileId = $gawd_alert_view == '' ? $this->get_profile_id() : $gawd_alert_view;
|
1532 |
-
$analytics = $this->analytics_member;
|
1533 |
-
// Get the results from the Core Reporting API and print the results.
|
1534 |
-
// Calls the Core Reporting API and queries for the number of sessions
|
1535 |
-
// for the last seven days.
|
1536 |
-
$results = $analytics->data_ga->get(
|
1537 |
-
'ga:' . $profileId, $start_date, $end_date, $metric, array(
|
1538 |
-
'dimensions' => 'ga:' . $dimension,
|
1539 |
-
'sort' => 'ga:' . $dimension,
|
1540 |
-
)
|
1541 |
-
);
|
1542 |
-
$rows = $results->getRows();
|
1543 |
-
|
1544 |
-
$data = '';
|
1545 |
-
foreach ($rows as $row) {
|
1546 |
-
$data += floatval($row[1]);
|
1547 |
-
}
|
1548 |
-
return ($data);
|
1549 |
-
}
|
1550 |
-
|
1551 |
-
public function get_profile_id()
|
1552 |
-
{
|
1553 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
1554 |
-
$profiles_light = get_transient('gawd_user_profiles') ? get_transient('gawd_user_profiles') : (isset($this->gawd_user_data['gawd_profiles']) ? $this->gawd_user_data['gawd_profiles'] : array());
|
1555 |
-
if (!isset($this->gawd_user_data['gawd_id']) || $this->gawd_user_data['gawd_id'] == '') {
|
1556 |
-
if (!empty($profiles_light)) {
|
1557 |
-
$first_profiles = reset($profiles_light);
|
1558 |
-
$first_profile = $first_profiles[0];
|
1559 |
-
$this->gawd_user_data['gawd_id'] = $first_profile['id'];
|
1560 |
-
}
|
1561 |
-
}
|
1562 |
-
return (isset($this->gawd_user_data['gawd_id']) ? $this->gawd_user_data['gawd_id'] : null);
|
1563 |
-
}
|
1564 |
-
|
1565 |
-
public function get_profile_webPropertyId()
|
1566 |
-
{
|
1567 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
1568 |
-
return (isset($this->gawd_user_data['webPropertyId']) ? $this->gawd_user_data['webPropertyId'] : null);
|
1569 |
-
}
|
1570 |
-
|
1571 |
-
public function get_profile_accountId()
|
1572 |
-
{
|
1573 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
1574 |
-
return isset($this->gawd_user_data['accountId']) ? $this->gawd_user_data['accountId'] : '';
|
1575 |
-
}
|
1576 |
-
|
1577 |
-
public function get_default_webPropertyId()
|
1578 |
-
{
|
1579 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
1580 |
-
return (isset($this->gawd_user_data['default_webPropertyId']) ? $this->gawd_user_data['default_webPropertyId'] : null);
|
1581 |
-
}
|
1582 |
-
|
1583 |
-
public function get_default_accountId()
|
1584 |
-
{
|
1585 |
-
$this->gawd_user_data = get_option('gawd_user_data');
|
1586 |
-
return (isset($this->gawd_user_data['default_accountId']) ? $this->gawd_user_data['default_accountId'] : null);
|
1587 |
-
}
|
1588 |
-
|
1589 |
-
public function get_page_data($dimension, $start_date, $end_date, $timezone)
|
1590 |
-
{
|
1591 |
-
$analytics = $this->analytics_member;
|
1592 |
-
$profileId = $this->get_profile_id();
|
1593 |
-
$metric = $dimension == 'pagePath' || $dimension == 'PagePath' ? 'ga:pageviews,ga:uniquePageviews,ga:avgTimeOnPage,ga:entrances,ga:bounceRate,ga:exitRate,ga:pageValue,ga:avgPageLoadTime' : 'ga:sessions,ga:percentNewSessions,ga:newUsers,ga:bounceRate,ga:pageviewsPerSession,ga:avgSessionDuration,ga:transactions,ga:transactionRevenue,ga:transactionsPerSession';
|
1594 |
-
$sorts = explode(',', $metric);
|
1595 |
-
$sort = '-' . $sorts[0];
|
1596 |
-
|
1597 |
-
try {
|
1598 |
-
$results = $analytics->data_ga->get(
|
1599 |
-
'ga:' . $profileId, $start_date, $end_date, $metric, array(
|
1600 |
-
'dimensions' => 'ga:' . $dimension,
|
1601 |
-
'sort' => $sort,
|
1602 |
-
)
|
1603 |
-
);
|
1604 |
-
} catch (Exception $e) {
|
1605 |
-
|
1606 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
1607 |
-
$fh = fopen($myFile, 'a');
|
1608 |
-
fwrite($fh, $e->getMessage() . "----get_page_data function" . PHP_EOL);
|
1609 |
-
fclose($fh);
|
1610 |
-
|
1611 |
-
$error = array('error_message' => 'Error');
|
1612 |
-
if (strpos($e->getMessage(), 'User does not have sufficient permissions for this profile')) {
|
1613 |
-
$error['error_message'] = 'User does not have sufficient permissions for this profile';
|
1614 |
-
}
|
1615 |
-
return json_encode($error);
|
1616 |
-
}
|
1617 |
-
$rows = $results->getRows();
|
1618 |
-
$metric = explode(',', $metric);
|
1619 |
-
if ($rows) {
|
1620 |
-
$data_sum = array();
|
1621 |
-
foreach ($results->getTotalsForAllResults() as $key => $value) {
|
1622 |
-
$data_sum[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($key, 3))))] = $value;
|
1623 |
-
}
|
1624 |
-
foreach ($rows as $key => $row) {
|
1625 |
-
$hours = strlen(floor($row[3] / 3600)) < 2 ? '0' . floor($row[3] / 3600) : floor($row[3] / 3600);
|
1626 |
-
$mins = strlen(floor($row[3] / 60 % 60)) < 2 ? '0' . floor($row[3] / 60 % 60) : floor($row[3] / 60 % 60);
|
1627 |
-
$secs = strlen(floor($row[3] % 60)) < 2 ? '0' . floor($row[3] % 60) : floor($row[3] % 60);
|
1628 |
-
$time_on_page = $hours . ':' . $mins . ':' . $secs;
|
1629 |
-
if ($dimension == 'pagePath' || $dimension == 'PagePath') {
|
1630 |
-
$data[] = array(
|
1631 |
-
'No' => floatval($key + 1),
|
1632 |
-
'Page Path' => $row[0],
|
1633 |
-
'Pageviews' => intval($row[1]),
|
1634 |
-
'Unique Pageviews' => intval($row[2]),
|
1635 |
-
'Avg Time On Page' => $time_on_page,
|
1636 |
-
'Entrances' => intval($row[4]),
|
1637 |
-
'Bounce Rate' => floatval($row[5]),
|
1638 |
-
'Exit Rate' => ($row[6]),
|
1639 |
-
'Page Value' => intval($row[7]),
|
1640 |
-
'Avg Page Load Time' => intval($row[8])
|
1641 |
-
);
|
1642 |
-
}
|
1643 |
-
else {
|
1644 |
-
$data[] = array(
|
1645 |
-
'No' => floatval($key + 1),
|
1646 |
-
'Landing Page' => $row[0],
|
1647 |
-
'Sessions' => intval($row[1]),
|
1648 |
-
'Percent New Sessions' => ($row[2]),
|
1649 |
-
'New Users' => intval($row[3]),
|
1650 |
-
'Bounce Rate' => ($row[4]),
|
1651 |
-
'Pageviews Per Session' => floatval($row[5]),
|
1652 |
-
'Avg Session Duration' => intval($row[6]),
|
1653 |
-
'Transactions' => intval($row[7]),
|
1654 |
-
'Transaction Revenue' => intval($row[8]),
|
1655 |
-
'Transactions Per Session' => intval($row[9])
|
1656 |
-
);
|
1657 |
-
}
|
1658 |
-
}
|
1659 |
-
|
1660 |
-
}
|
1661 |
-
else {
|
1662 |
-
$empty[0] = array(
|
1663 |
-
trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension))) => 0
|
1664 |
-
);
|
1665 |
-
$empty[0]['No'] = 1;
|
1666 |
-
for ($i = 0; $i < count($metric); $i++) {
|
1667 |
-
$empty[0][trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = 0;
|
1668 |
-
$data_sum[trim(ucfirst(preg_replace('/([A-Z])/', ' $1', substr($metric[$i], 3))))] = 0;
|
1669 |
-
}
|
1670 |
-
|
1671 |
-
return json_encode(array('data_sum' => $data_sum, 'chart_data' => $empty));
|
1672 |
-
}
|
1673 |
-
if ($data_sum != '') {
|
1674 |
-
$result = array('data_sum' => $data_sum, 'chart_data' => $data);
|
1675 |
-
}
|
1676 |
-
$expiration = strtotime(date("Y-m-d 23:59:59")) - strtotime(gmdate("Y-m-d H:i:s") . '+' . $timezone . ' hours');
|
1677 |
-
set_transient('gawd-' . $profileId . '-' . $dimension . '-' . $start_date . '-' . $end_date, json_encode($result), $expiration);
|
1678 |
-
return json_encode($result);
|
1679 |
-
}
|
1680 |
-
|
1681 |
-
public function get_goal_data($dimension, $start_date, $end_date, $timezone, $same_dimension)
|
1682 |
-
{
|
1683 |
-
$goals = $this->get_management_goals();
|
1684 |
-
if ('no_goals_exist' != $goals) {
|
1685 |
-
$analytics = $this->analytics_member;
|
1686 |
-
$profileId = $this->get_profile_id();
|
1687 |
-
$metric = array();
|
1688 |
-
$all_metric = '';
|
1689 |
-
$counter = 1;
|
1690 |
-
foreach ($goals as $goal) {
|
1691 |
-
$all_metric .= 'ga:goal' . $goal['id'] . 'Completions,';
|
1692 |
-
if ($counter <= 10) {
|
1693 |
-
$metrics[0][] = 'ga:goal' . $goal['id'] . 'Completions';
|
1694 |
-
}
|
1695 |
-
else {
|
1696 |
-
$metrics[1][] = 'ga:goal' . $goal['id'] . 'Completions';
|
1697 |
-
}
|
1698 |
-
$counter++;
|
1699 |
-
}
|
1700 |
-
$rows = array();
|
1701 |
-
foreach ($metrics as $metric) {
|
1702 |
-
$metric = implode(',', $metric);
|
1703 |
-
$results = $analytics->data_ga->get(
|
1704 |
-
'ga:' . $profileId, $start_date, $end_date, $metric, array(
|
1705 |
-
'dimensions' => 'ga:' . $dimension,
|
1706 |
-
'sort' => 'ga:' . $dimension,
|
1707 |
-
)
|
1708 |
-
);
|
1709 |
-
|
1710 |
-
$temp_rows = $results->getRows();
|
1711 |
-
if (empty($temp_rows)) {
|
1712 |
-
continue;
|
1713 |
-
}
|
1714 |
-
|
1715 |
-
foreach ($temp_rows as $key => $value) {
|
1716 |
-
if (!isset($rows[$key])) {
|
1717 |
-
$rows[$key] = $value;
|
1718 |
-
}
|
1719 |
-
else {
|
1720 |
-
unset($value[0]);
|
1721 |
-
$rows[$key] = array_merge($rows[$key], $value);
|
1722 |
-
}
|
1723 |
-
}
|
1724 |
-
|
1725 |
-
}
|
1726 |
-
$all_metric = explode(',', $all_metric);
|
1727 |
-
if ($rows) {
|
1728 |
-
$j = 0;
|
1729 |
-
$data_sum = array();
|
1730 |
-
foreach ($rows as $row) {
|
1731 |
-
if ($dimension == 'date') {
|
1732 |
-
$row[0] = date('Y-m-d', strtotime($row[0]));
|
1733 |
-
}
|
1734 |
-
$data[$j] = array(
|
1735 |
-
preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $dimension)))) => $row[0]
|
1736 |
-
);
|
1737 |
-
$data[$j]['No'] = floatval($j + 1);
|
1738 |
-
for ($i = 0; $i < count($goals); $i++) {
|
1739 |
-
$data[$j][preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $goals[$i]['name']))))] = floatval($row[$i + 1]);
|
1740 |
-
if (isset($data_sum[preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $goals[$i]['name']))))])) {
|
1741 |
-
$data_sum[preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $goals[$i]['name']))))] += floatval($row[$i + 1]);
|
1742 |
-
}
|
1743 |
-
else {
|
1744 |
-
if (substr($all_metric[$i], 3) != 'percentNewSessions' && substr($all_metric[$i], 3) != 'bounceRate') {
|
1745 |
-
$data_sum[preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $goals[$i]['name']))))] = floatval($row[$i + 1]);
|
1746 |
-
}
|
1747 |
-
}
|
1748 |
-
}
|
1749 |
-
$j++;
|
1750 |
-
}
|
1751 |
-
$expiration = strtotime(date("Y-m-d 23:59:59")) - strtotime(gmdate("Y-m-d H:i:s") . '+' . $timezone . ' hours');
|
1752 |
-
if (isset($same_dimension) && $same_dimension != null) {
|
1753 |
-
$dimension = $same_dimension;
|
1754 |
-
}
|
1755 |
-
$result = $data;
|
1756 |
-
if ($data_sum != '') {
|
1757 |
-
$result = array('data_sum' => $data_sum, 'chart_data' => $data);
|
1758 |
-
}
|
1759 |
-
set_transient('gawd-' . $profileId . '-' . $dimension . '-' . $start_date . '-' . $end_date, json_encode($result), $expiration);
|
1760 |
-
return json_encode($result);
|
1761 |
-
}
|
1762 |
-
else {
|
1763 |
-
return $goals;
|
1764 |
-
}
|
1765 |
-
}
|
1766 |
-
else {
|
1767 |
-
return json_encode(array('error_message' => 'No goals exist'));
|
1768 |
-
}
|
1769 |
-
}
|
1770 |
-
|
1771 |
-
public function gawd_realtime_data()
|
1772 |
-
{
|
1773 |
-
$analytics = $this->analytics_member;
|
1774 |
-
$profileId = $this->get_profile_id();
|
1775 |
-
$metrics = 'rt:activeUsers';
|
1776 |
-
$dimensions = 'rt:pagePath,rt:source,rt:keyword,rt:trafficType,rt:country,rt:pageTitle,rt:deviceCategory';
|
1777 |
-
$managequota = 'u' . get_current_user_id() . 's' . get_current_blog_id();
|
1778 |
-
|
1779 |
-
try {
|
1780 |
-
$data = $analytics->data_realtime->get('ga:' . $profileId, $metrics, array('dimensions' => $dimensions, 'quotaUser' => $managequota . 'p' . $profileId));
|
1781 |
-
} catch (Exception $e) {
|
1782 |
-
|
1783 |
-
$myFile = GAWD_UPLOAD_DIR . "/logfile.txt";;
|
1784 |
-
$fh = fopen($myFile, 'a');
|
1785 |
-
fwrite($fh, $e->getMessage() . "----gawd_realtime_data function" . PHP_EOL);
|
1786 |
-
fclose($fh);
|
1787 |
-
|
1788 |
-
$error = array('error_message' => 'Error');
|
1789 |
-
if (strpos($e->getMessage(), 'User does not have sufficient permissions for this profile')) {
|
1790 |
-
$error['error_message'] = 'User does not have sufficient permissions for this profile';
|
1791 |
-
}
|
1792 |
-
return json_encode($error);
|
1793 |
-
}
|
1794 |
-
$expiration = 5;
|
1795 |
-
if ($data->getRows() != '') {
|
1796 |
-
$i = 0;
|
1797 |
-
$gawd_data = $data;
|
1798 |
-
foreach ($data->getRows() as $row) {
|
1799 |
-
$gawd_data[$i] = $row;
|
1800 |
-
$i++;
|
1801 |
-
}
|
1802 |
-
set_transient('gawd-real-' . $profileId, json_encode($gawd_data), $expiration);
|
1803 |
-
echo json_encode($gawd_data);
|
1804 |
-
wp_die();
|
1805 |
-
}
|
1806 |
-
else {
|
1807 |
-
return 0;
|
1808 |
-
}
|
1809 |
-
}
|
1810 |
-
|
1811 |
-
public static function get_instance($force_new_instance = false)
|
1812 |
-
{
|
1813 |
-
|
1814 |
-
if (null === self::$instance && !$force_new_instance) {
|
1815 |
-
self::$instance = new self();
|
1816 |
-
}
|
1817 |
-
else if ($force_new_instance) {
|
1818 |
-
self::$instance = new self();
|
1819 |
-
}
|
1820 |
-
|
1821 |
-
return self::$instance;
|
1822 |
-
}
|
1823 |
-
|
1824 |
-
public static function has_error()
|
1825 |
-
{
|
1826 |
-
|
1827 |
-
return self::$error_message == '' ? false : true;
|
1828 |
-
}
|
1829 |
-
|
1830 |
-
public static function get_error_notice()
|
1831 |
-
{
|
1832 |
-
?>
|
1833 |
-
<div class="notice notice-error">
|
1834 |
-
<p>Google Analytics WD: <?php echo self::$error_message; ?></p>
|
1835 |
-
</div>
|
1836 |
-
<?php
|
1837 |
-
}
|
1838 |
-
|
1839 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/licensing.php
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
|
2 |
-
<div id="featurs_tables">
|
3 |
-
<div id="featurs_table1">
|
4 |
-
<span>WordPress 3.5+ <?php _e("ready", 'gawd'); ?></span>
|
5 |
-
<span><?php _e("Overview reports", 'gawd'); ?></span>
|
6 |
-
<span><?php _e("Analytics on WordPress dashboard", 'gawd'); ?></span>
|
7 |
-
<span><?php _e("All Analytics reports", 'gawd'); ?></span>
|
8 |
-
<span><?php _e("Metrics report comparison", 'gawd'); ?></span>
|
9 |
-
<span><?php _e("Date range report comparison", 'gawd'); ?></span>
|
10 |
-
<span><?php _e("Line, Pie and Column chart reports", 'gawd'); ?></span>
|
11 |
-
<span><?php _e("CSV and PDF export", 'gawd'); ?></span>
|
12 |
-
<span><?php _e("Scheduled email notifications", 'gawd'); ?></span>
|
13 |
-
<span><?php _e("Page and post reports", 'gawd'); ?></span>
|
14 |
-
<span><?php _e("Frontend reports", 'gawd'); ?></span>
|
15 |
-
<span><?php _e("Google Analytics tracking code and options", 'gawd'); ?></span>
|
16 |
-
<span><?php _e("Goal management", 'gawd'); ?></span>
|
17 |
-
<span><?php _e("Google Analytics Filters management", 'gawd'); ?></span>
|
18 |
-
<span><?php _e("User and Role permissions to access reports", 'gawd'); ?></span>
|
19 |
-
<span><?php _e("Custom Dimensions", 'gawd'); ?></span>
|
20 |
-
<span><?php _e("Custom Reports", 'gawd'); ?></span>
|
21 |
-
<span><?php _e("Ecommerce reports", 'gawd'); ?></span>
|
22 |
-
<span><?php _e("Google AdSense report", 'gawd'); ?></span>
|
23 |
-
<span><?php _e("Google AdWords report", 'gawd'); ?></span>
|
24 |
-
<span><?php _e("Tracking exclusions by roles and users", 'gawd'); ?></span>
|
25 |
-
<span><?php _e("Google Analytics alerts", 'gawd'); ?></span>
|
26 |
-
<span><?php _e("Pushover notifications", 'gawd'); ?></span>
|
27 |
-
</div>
|
28 |
-
<div id="featurs_table2">
|
29 |
-
<span style="padding-top: 18px;height: 39px;"><?php _e("Free", 'gawd'); ?></span>
|
30 |
-
<span class="yes"></span>
|
31 |
-
<span class="yes"></span>
|
32 |
-
<span class="yes"></span>
|
33 |
-
<span class="yes"></span>
|
34 |
-
<span class="yes"></span>
|
35 |
-
<span class="yes"></span>
|
36 |
-
<span class="yes"></span>
|
37 |
-
<span class="yes"></span>
|
38 |
-
<span class="yes"></span>
|
39 |
-
<span class="yes"></span>
|
40 |
-
<span class="yes"></span>
|
41 |
-
<span class="yes"></span>
|
42 |
-
<span class="yes"></span>
|
43 |
-
<span class="yes"></span>
|
44 |
-
<span class="yes"></span>
|
45 |
-
<span class="no"></span>
|
46 |
-
<span class="no"></span>
|
47 |
-
<span class="no"></span>
|
48 |
-
<span class="no"></span>
|
49 |
-
<span class="no"></span>
|
50 |
-
<span class="no"></span>
|
51 |
-
<span class="no"></span>
|
52 |
-
<span class="no"></span>
|
53 |
-
</div>
|
54 |
-
<div id="featurs_table3">
|
55 |
-
<span><?php _e("Pro Version", 'gawd'); ?></span>
|
56 |
-
<span class="yes"></span>
|
57 |
-
<span class="yes"></span>
|
58 |
-
<span class="yes"></span>
|
59 |
-
<span class="yes"></span>
|
60 |
-
<span class="yes"></span>
|
61 |
-
<span class="yes"></span>
|
62 |
-
<span class="yes"></span>
|
63 |
-
<span class="yes"></span>
|
64 |
-
<span class="yes"></span>
|
65 |
-
<span class="yes"></span>
|
66 |
-
<span class="yes"></span>
|
67 |
-
<span class="yes"></span>
|
68 |
-
<span class="yes"></span>
|
69 |
-
<span class="yes"></span>
|
70 |
-
<span class="yes"></span>
|
71 |
-
<span class="yes"></span>
|
72 |
-
<span class="yes"></span>
|
73 |
-
<span class="yes"></span>
|
74 |
-
<span class="yes"></span>
|
75 |
-
<span class="yes"></span>
|
76 |
-
<span class="yes"></span>
|
77 |
-
<span class="yes"></span>
|
78 |
-
<span class="yes"></span>
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
<div style="float: left; clear: both;">
|
82 |
-
<p><?php _e("After purchasing the commercial version follow these steps:", 'gawd'); ?></p>
|
83 |
-
<ol>
|
84 |
-
<li><?php _e("Deactivate WD Google Analytics plugin.", 'gawd'); ?></li>
|
85 |
-
<li><?php _e("Delete WD Google Analytics plugin.", 'gawd'); ?></li>
|
86 |
-
<li><?php _e("Install the downloaded commercial version of the plugin.", 'gawd'); ?></li>
|
87 |
-
</ol>
|
88 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/add_web_property.php
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Created by PhpStorm.
|
4 |
+
* User: mher
|
5 |
+
* Date: 1/31/18
|
6 |
+
* Time: 1:38 PM
|
7 |
+
*/
|
8 |
+
|
9 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
10 |
+
$properties = GAWD_helper::get_current_site_properties();
|
11 |
+
$accounts = GAWD_helper::get_management_accounts();
|
12 |
+
|
13 |
+
if(empty($properties)) { ?>
|
14 |
+
<p class='gawd_notice'>
|
15 |
+
Create <b>web property</b> on your Google Analytics account to enable tracking of this website. After
|
16 |
+
creating a <b>web property</b> Google Analytics tracking code automatically will beadded to your website.
|
17 |
+
</p>
|
18 |
+
<div class='gawd_settings_wrapper'>
|
19 |
+
<div class='gawd_goal_row'>
|
20 |
+
<span class='gawd_goal_label'>Account</span>
|
21 |
+
<span class='gawd_goal_input'>
|
22 |
+
<select class='gawd_account_select'
|
23 |
+
style='padding: 2px;width: 96%;line-height: 30px;height: 30px !important;'>";
|
24 |
+
<?php foreach($accounts as $account) { ?>
|
25 |
+
<option value="<?php echo $account['id']; ?>"><?php echo $account['name']; ?></option>
|
26 |
+
<?php } ?>
|
27 |
+
</select>
|
28 |
+
</span>
|
29 |
+
<div class='gawd_info'
|
30 |
+
title='Choose the Google Analytics account to connect this property to.'></div>
|
31 |
+
<div class='clear'></div>
|
32 |
+
</div>
|
33 |
+
<div class='gawd_goal_row'>
|
34 |
+
<span class='gawd_goal_label'>Name</span>
|
35 |
+
<span class='gawd_goal_input'>
|
36 |
+
<input id='gawd_property_name' name='gawd_property_name' type='text'>
|
37 |
+
</span>
|
38 |
+
<div class='gawd_info' title='Provide a name for the property.'></div>
|
39 |
+
<div class='clear'></div>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
<div class='clear'></div>
|
43 |
+
<div class='gawd_add_prop gawd_submit'>
|
44 |
+
<input type='button' id='gawd_add_property' class='button_gawd' value='Add'/>
|
45 |
+
</div>
|
46 |
+
<?php
|
47 |
+
}
|
48 |
+
|
49 |
+
if(count($properties) > 1) { ?>
|
50 |
+
<p class='gawd_notice'>
|
51 |
+
You have multiple web-properties set with current site url. Please select the one that you want to use for
|
52 |
+
tracking from the list below.
|
53 |
+
</p>
|
54 |
+
<div class='gawd_settings_wrapper'>
|
55 |
+
<div class='gawd_goal_row'>
|
56 |
+
<span class='gawd_goal_label'>Web-property</span>
|
57 |
+
<span class='gawd_goal_input'>
|
58 |
+
<select class='gawd_property_select'
|
59 |
+
style='padding: 2px;width: 96%;line-height: 30px;height: 30px !important;'>
|
60 |
+
<option value="0">Select a web-property (required)</option>
|
61 |
+
<?php foreach($properties as $select_property) { ?>
|
62 |
+
<option value='<?php echo $select_property['id']; ?>'>
|
63 |
+
<?php echo $select_property['name'] . " (" . $select_property['id'] . ")"; ?>
|
64 |
+
</option>
|
65 |
+
<?php } ?>
|
66 |
+
</select>
|
67 |
+
</span>
|
68 |
+
<div class='gawd_info' title=''></div>
|
69 |
+
<div class='clear'></div>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
<div class='clear'></div>
|
73 |
+
<div class='gawd_submit'>
|
74 |
+
<input type='button' id='gawd_choose_property' class='button_gawd gawd_disabled_button' value='Add'/>
|
75 |
+
</div>
|
76 |
+
<?php
|
77 |
+
}
|
78 |
+
|
79 |
+
|
admin/pages/authentication.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Created by PhpStorm.
|
4 |
+
* User: mher
|
5 |
+
* Date: 2/7/18
|
6 |
+
* Time: 5:18 PM
|
7 |
+
*/
|
8 |
+
|
9 |
+
if(empty(GAWD_helper::get_management_accounts())) { ?>
|
10 |
+
<div class="no_account_content clearfix <?php echo $hide_refresh_accounts; ?>">
|
11 |
+
<p style="color: red;">
|
12 |
+
You have Google account, but it does not have configured Analytics account. Click create button to create account and refresh afterwards.
|
13 |
+
</p>
|
14 |
+
<a id="gawd_refresh_management_accounts" class="gawd_account_button gwd_refresh_page gawd_hidden" href="">Refresh</a>
|
15 |
+
<div class="gawd_account_button gwd_another_account" onclick="gawd_show_authenticate_form()">
|
16 |
+
Authenticate with another account
|
17 |
+
</div>
|
18 |
+
<a class="gawd_auth_button gwd_create_account"
|
19 |
+
href="https://analytics.google.com/analytics/web/provision/?authuser=0#provision/SignUp/"
|
20 |
+
target="_blank" onclick="gawd_reload_account()">CREATE</a>
|
21 |
+
</div>
|
22 |
+
<?php } ?>
|
23 |
+
<div class="gawd_auth_wrap gawd_auth_authenticate <?php echo $hide_auth; ?>">
|
24 |
+
<p class="auth_description">
|
25 |
+
Click <b>Authenticate</b> button and login to your Google account. A window asking for relevant permissions will
|
26 |
+
appear. Click <b>Allow</b> and copy the authentication code from the text input.
|
27 |
+
</p>
|
28 |
+
<div id="gawd_auth_url" onclick="gawd_auth_popup(800,400)" style="cursor: pointer;">
|
29 |
+
<div class="gawd_auth_button">AUTHENTICATE</div>
|
30 |
+
<div class="clear"></div>
|
31 |
+
</div>
|
32 |
+
<div id="gawd_auth_code">
|
33 |
+
<form id="gawd_auth_code_paste" action="" method="post" onSubmit="return false;">
|
34 |
+
<p style="margin:0;color: #444;">Paste the authentication code from the popup to this input.</p>
|
35 |
+
<input id="gawd_token" type="text">
|
36 |
+
<?php wp_nonce_field("gawd_save_form", "gawd_save_form_fild"); ?>
|
37 |
+
</form>
|
38 |
+
<div id="gawd_auth_code_submit">SUBMIT</div>
|
39 |
+
</div>
|
40 |
+
<?php if($gawd_credentials['default'] === false) { ?>
|
41 |
+
<a class="gawd_reset_credentials" id="gawd_reset_credentials">Stop using own project</a>
|
42 |
+
<?php } ?>
|
43 |
+
</div>
|
44 |
+
<div id="opacity_div"
|
45 |
+
style="display: none; background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
46 |
+
<div id="loading_div"
|
47 |
+
style="display:none; text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
48 |
+
<img src="<?php echo GAWD_URL ?>/assets/ajax_loader.gif" style="margin-top: 200px; width:50px;">
|
49 |
+
</div>
|
50 |
+
|
admin/pages/custom_dimensions.php
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$existing_custom_dimensions = $gawd_client->get_custom_dimensions('default');
|
3 |
-
if (!is_array($existing_custom_dimensions)) {
|
4 |
-
$existing_custom_dimensions = array();
|
5 |
-
}
|
6 |
-
$tracking_dimensions = $gawd_client->get_custom_dimensions_tracking();
|
7 |
-
$supported_dimensions = array("Logged in","Post type","Author","Category","Tags", "Published Month", "Published Year");
|
8 |
-
?>
|
9 |
-
<div class="dimension_wrapper">
|
10 |
-
<form action="" method="post" id="gawd_dimensions_form">
|
11 |
-
<div class="gawd_dimension_row">
|
12 |
-
<span class="gawd_dimension_label">Name</span>
|
13 |
-
<span class="gawd_dimension_input">
|
14 |
-
<select name="gawd_custom_dimension_name" id="gawd_custom_dimension_name">
|
15 |
-
<?php
|
16 |
-
foreach ($supported_dimensions as $supported_dimension) {
|
17 |
-
$disabled = '';
|
18 |
-
if (is_array($tracking_dimensions) && !empty($tracking_dimensions)) {
|
19 |
-
foreach ($tracking_dimensions as $tracking_dimension) {
|
20 |
-
if ($supported_dimension == $tracking_dimension['name']) {
|
21 |
-
$disabled = 'disabled="disabled"';
|
22 |
-
break;
|
23 |
-
}
|
24 |
-
}
|
25 |
-
}
|
26 |
-
?>
|
27 |
-
<option value="<?php echo $supported_dimension; ?>" <?php echo $disabled; ?>><?php echo $supported_dimension; ?></option>
|
28 |
-
<?php } ?>
|
29 |
-
</select>
|
30 |
-
</span>
|
31 |
-
<div class="gawd_info" title="Pick a name for your custom dimension."></div>
|
32 |
-
<div class="clear"></div>
|
33 |
-
</div>
|
34 |
-
<div class="gawd_dimension_row">
|
35 |
-
<span class="gawd_dimension_label">Scope</span>
|
36 |
-
<span class="gawd_dimension_input">
|
37 |
-
<select name="gawd_custom_dimension_scope" id="gawd_custom_dimension_scope">
|
38 |
-
<option value="Hit">Hit</option>
|
39 |
-
<option value="Session">Session</option>
|
40 |
-
<option value="User">User</option>
|
41 |
-
<option value="Product">Product</option>
|
42 |
-
</select>
|
43 |
-
</span>
|
44 |
-
<div class="gawd_info" title="Select a scope, hit, session, user or product."></div>
|
45 |
-
<div class="clear"></div>
|
46 |
-
</div>
|
47 |
-
<div class="gawd_dimension_row">
|
48 |
-
<div class="onoffswitch">
|
49 |
-
<input type="checkbox" name="gawd_custom_dimension_tracking" class="onoffswitch-checkbox" id="gawd_custom_dimension_tracking" checked>
|
50 |
-
<label class="onoffswitch-label" for="gawd_custom_dimension_tracking">
|
51 |
-
<span class="onoffswitch-inner"></span>
|
52 |
-
<span class="onoffswitch-switch"></span>
|
53 |
-
</label>
|
54 |
-
</div>
|
55 |
-
<div class="gawd_info" title="Enable this option to track relevant activity and view statistics based on this custom dimension on Reports page."></div>
|
56 |
-
<div class="onoffswitch_text">
|
57 |
-
Tracking for this custom dimension
|
58 |
-
</div>
|
59 |
-
<div class="clear"></div>
|
60 |
-
</div>
|
61 |
-
<div class="gawd_buttons" id="goal_submit">
|
62 |
-
<input class="button_gawd" type="submit" value="Save"/>
|
63 |
-
<input name="gawd_custom_dimension_id" type="hidden" value="<?php echo count($existing_custom_dimensions);?>"/>
|
64 |
-
<div class="clear"></div>
|
65 |
-
</div>
|
66 |
-
<?php wp_nonce_field('gawd_save_form', 'gawd_save_form_fild'); ?>
|
67 |
-
</form>
|
68 |
-
<?php if (!empty($existing_custom_dimensions)) { ?>
|
69 |
-
<table border="1" class="gawd_table">
|
70 |
-
<tr>
|
71 |
-
<th>Name</th>
|
72 |
-
<th>Id</th>
|
73 |
-
</tr>
|
74 |
-
<?php foreach($existing_custom_dimensions as $existing_custom_dimension) { ?>
|
75 |
-
<tr>
|
76 |
-
<td><?php echo $existing_custom_dimension['name']; ?></td>
|
77 |
-
<td><?php echo substr($existing_custom_dimension['id'],-1); ?></td>
|
78 |
-
</tr>
|
79 |
-
<?php } ?>
|
80 |
-
</table>
|
81 |
-
<?php } ?>
|
82 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/custom_reports.php
CHANGED
@@ -1,18 +1,2 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://web-dorado.com/wordpress-google-analytics/quick-start/overview.html">Read more in User Guide.</a>
|
4 |
-
</span>
|
5 |
-
<div class="wd-ugrade-pro-wrap">
|
6 |
-
<a class="gawd_support_link" href="https://wordpress.org/support/plugin/wd-google-analytics" target="_blank">
|
7 |
-
<img src="<?php echo GAWD_URL; ?>/assets/i_support.png" >
|
8 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
9 |
-
</a>
|
10 |
-
<a class="gawd_update_pro_link" href="https://web-dorado.com/files/fromGoogleAnalyticsWD.php" target="_blank">
|
11 |
-
<?php _e("Upgrade to paid version", "gawd"); ?>
|
12 |
-
</a> </div>
|
13 |
-
</div>
|
14 |
-
<img class="gawd_pro_img" data-attr="custom reports" style="margin-top:10px" src="<?php echo GAWD_URL . '/assets/freePages/custom_reports.png';?>"/>
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
1 |
+
<img class="gawd_pro_img" data-gawd-screenshot="custom_reports" src=<?php echo GAWD_URL.'/assets/free-pages/custom_reports.png' ?> />
|
2 |
+
<?php GAWD_helper::print_pro_popup(); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/pages/dashboard.php
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
<?php
|
2 |
-
$goals = $gawd_client->get_management_goals();
|
3 |
-
if (!is_array($goals)) {
|
4 |
-
$goals = array();
|
5 |
-
}
|
6 |
$get_custom_reports = get_option('gawd_custom_reports');
|
7 |
if(!isset($_GET['tab'])){
|
8 |
$_GET['tab'] = 'general';
|
9 |
}
|
|
|
|
|
|
|
|
|
|
|
10 |
$tabs = get_option('gawd_menu_items');
|
11 |
$gawd_zoom_message = get_option('gawd_zoom_message');
|
12 |
$current_user = get_current_user_id();
|
@@ -14,21 +15,38 @@ $saved_user_menues = get_option('gawd_menu_for_user');
|
|
14 |
if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
15 |
$tabs = array_intersect_key($tabs, $saved_user_menues[$current_user]);
|
16 |
}
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
<form method="post" id="gawd_view">
|
33 |
|
34 |
<div class="gawd_profiles" id="gawd_profile_wrapper">
|
@@ -38,17 +56,19 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
38 |
<span>You can zoom chart by dragging the mouse over it</span><input class="button_gawd" type="button" id="gawd_got_it" value="GOT IT"/>
|
39 |
</div>
|
40 |
<?php
|
41 |
-
|
42 |
?>
|
43 |
<select class="gawd_profile_select" id="gawd_id" name="gawd_id" onchange="change_account(this)">
|
44 |
-
<?php
|
|
|
|
|
45 |
<optgroup label="<?php echo $property_name; ?>">
|
46 |
<?php foreach ($property as $profile):
|
47 |
$webPropertyId = $profile['webPropertyId'];
|
48 |
-
$id = $profile['id'];
|
49 |
$name = $profile['name'];
|
50 |
$selected = '';
|
51 |
-
if($id == $
|
52 |
$selected = 'selected="selected"';
|
53 |
}
|
54 |
?>
|
@@ -60,10 +80,10 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
60 |
<div class="clear"></div>
|
61 |
<input type="hidden" name='web_property_name' id='web_property_name'/>
|
62 |
</div>
|
63 |
-
<div id="gawd_body">
|
64 |
-
<?php
|
65 |
include_once('dashboard_menu.php');
|
66 |
-
$page = isset($_GET['tab']) ? $_GET['tab'] : 'overview';
|
67 |
if(strpos($page,'custom_report')!==false){
|
68 |
$tab = $page;
|
69 |
}
|
@@ -74,94 +94,94 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
74 |
break;
|
75 |
case 'location':
|
76 |
$tab = 'country';
|
77 |
-
break;
|
78 |
case 'behaviour':
|
79 |
$tab = 'userType';
|
80 |
-
break;
|
81 |
case 'engagement':
|
82 |
$tab = 'sessionDurationBucket';
|
83 |
-
break;
|
84 |
case 'pagePath':
|
85 |
$tab = 'pagePath';
|
86 |
-
break;
|
87 |
case 'landingPagePath':
|
88 |
$tab = 'landingPagePath';
|
89 |
-
break;
|
90 |
case 'language':
|
91 |
$tab = 'language';
|
92 |
-
break;
|
93 |
case 'browser':
|
94 |
$tab = 'browser';
|
95 |
-
break;
|
96 |
case 'os':
|
97 |
$tab = 'operatingSystem';
|
98 |
-
break;
|
99 |
case 'device_overview':
|
100 |
$tab = 'deviceCategory';
|
101 |
-
break;
|
102 |
case 'devices':
|
103 |
$tab = 'mobileDeviceInfo';
|
104 |
-
break;
|
105 |
case 'realtime':
|
106 |
$tab = 'realTime';
|
107 |
break;
|
108 |
case 'custom':
|
109 |
$tab = 'custom';
|
110 |
-
break;
|
111 |
case 'eventsCategory':
|
112 |
$tab = 'eventCategory';
|
113 |
-
break;
|
114 |
case 'eventsAction':
|
115 |
$tab = 'eventAction';
|
116 |
-
break;
|
117 |
case 'eventsLabel':
|
118 |
$tab = 'eventLabel';
|
119 |
break;
|
120 |
case 'goals':
|
121 |
$tab = 'goals';
|
122 |
-
break;
|
123 |
case 'userGender':
|
124 |
$tab = 'userGender';
|
125 |
-
break;
|
126 |
case 'userAge':
|
127 |
$tab = 'userAgeBracket';
|
128 |
-
break;
|
129 |
case 'adWords':
|
130 |
$tab = 'adGroup';
|
131 |
-
break;
|
132 |
case 'otherCategory':
|
133 |
$tab = 'interestOtherCategory';
|
134 |
-
break;
|
135 |
case 'affinityCategory':
|
136 |
$tab = 'interestAffinityCategory';
|
137 |
-
break;
|
138 |
case 'inMarket':
|
139 |
$tab = 'interestInMarketCategory';
|
140 |
-
break;
|
141 |
case 'trafficSource':
|
142 |
$tab = 'source';
|
143 |
-
break;
|
144 |
case 'siteSpeed':
|
145 |
$tab = 'siteSpeed';
|
146 |
-
break;
|
147 |
case 'adsense':
|
148 |
$tab = 'adsense';
|
149 |
-
break;
|
150 |
case 'productName':
|
151 |
$tab = 'productName';
|
152 |
-
break;
|
153 |
case 'productCategory':
|
154 |
$tab = 'productCategory';
|
155 |
-
break;
|
156 |
case 'productSku':
|
157 |
$tab = 'productSku';
|
158 |
-
break;
|
159 |
case 'transactionId':
|
160 |
$tab = 'transactionId';
|
161 |
-
break;
|
162 |
case 'daysToTransaction':
|
163 |
$tab = 'daysToTransaction';
|
164 |
-
break;
|
165 |
case 'sales_performance':
|
166 |
$tab = 'sales_performance';
|
167 |
break;
|
@@ -270,30 +290,23 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
270 |
?>
|
271 |
<div id="first_metric" >
|
272 |
<select name="gawd_metric" id="gawd_metric" class="gawd_draw_analytics load_tooltip" data-hint="Choose a metric to view overview graph.">
|
273 |
-
<?php
|
274 |
-
if (!empty($goals)) {
|
275 |
-
foreach ($goals as $goal) {
|
276 |
-
echo '<option value="'. $goal['name'] . '">' . $goal['name'] . ' (Goal' . $goal['id'] . ' Completions)' . '</option>';
|
277 |
-
}
|
278 |
-
}
|
279 |
-
?>
|
280 |
</select>
|
281 |
</div>
|
282 |
<div id="metric_compare">
|
283 |
<select name="gawd_metric_compare" id="gawd_metric_compare" class="gawd_draw_analytics load_tooltip" data-hint="Select the second metric to compare reports.">
|
284 |
<option value="0"><?php echo __('None', 'gawd'); ?></option>
|
285 |
<?php
|
286 |
-
|
287 |
foreach ($goals as $goal) {
|
288 |
echo '<option value="' . $goal['name'] . '">' . $goal['name'] . ' (Goal' . $goal['id'] . ' Completions)' . '</option>';
|
289 |
}
|
290 |
-
}
|
291 |
?>
|
292 |
</select>
|
293 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
294 |
</div>
|
295 |
<?php
|
296 |
-
}
|
297 |
elseif($tab == 'siteSpeed'){
|
298 |
?>
|
299 |
<div id="first_metric" >
|
@@ -315,7 +328,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
315 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
316 |
</div>
|
317 |
<?php
|
318 |
-
}
|
319 |
elseif($tab == 'adsense'){
|
320 |
?>
|
321 |
<div id="first_metric" >
|
@@ -404,7 +417,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
404 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
405 |
</div>
|
406 |
<?php
|
407 |
-
}
|
408 |
elseif($tab == 'sales_performance'){
|
409 |
?>
|
410 |
<div id="first_metric" >
|
@@ -413,7 +426,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
413 |
<option value="transactionsPerSession" ><?php echo __('Ecommerce Conversion Rate', 'gawd'); ?></option>
|
414 |
</select>
|
415 |
</div>
|
416 |
-
|
417 |
<?php
|
418 |
}
|
419 |
elseif($tab == 'daysToTransaction'){
|
@@ -423,21 +436,22 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
423 |
<option value="transactions" ><?php echo __('Transactions', 'gawd'); ?></option>
|
424 |
</select>
|
425 |
</div>
|
426 |
-
|
427 |
<?php
|
428 |
}
|
429 |
elseif(strpos($tab,'custom_report')!==false){
|
430 |
$tab = substr($page,14);
|
|
|
431 |
?>
|
432 |
<div id="first_metric" >
|
433 |
<select name="gawd_metric" id="gawd_metric" class="gawd_draw_analytics load_tooltip" data-hint="Choose a metric to view overview graph.">
|
434 |
<option value="<?php echo $get_custom_reports[$tab]['metric'];?>" ><?php echo __(preg_replace('!\s+!',' ',trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $get_custom_reports[$tab]['metric'])))), 'gawd'); ?></option>
|
435 |
-
|
436 |
</select>
|
437 |
</div>
|
438 |
<?php
|
439 |
$tab = 'custom_' . $get_custom_reports[$tab]['dimension'];
|
440 |
-
}
|
441 |
elseif($tab == 'custom') { ?>
|
442 |
<div id="first_metric" >
|
443 |
<select name="gawd_metric" id="gawd_metric" class="gawd_draw_analytics load_tooltip" data-hint="Choose a metric to view overview graph.">
|
@@ -451,25 +465,17 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
451 |
</select>
|
452 |
</div>
|
453 |
<div id="metric_compare">
|
454 |
-
|
455 |
-
$dimensions = $gawd_client->get_custom_dimensions();
|
456 |
-
if('no_custom_dimensions_exist' == $dimensions) { ?>
|
457 |
-
<select class="load_tooltip" data-hint="Select the second metric to compare reports.">
|
458 |
<option value="0">There are no custom dimensions set for current profile.</option>
|
459 |
</select>
|
460 |
-
|
461 |
-
|
462 |
-
<?php foreach ($dimensions as $dimension) : ?>
|
463 |
-
<option value="<?php echo $dimension['id'] ?>"><?php echo $dimension['name'] ?></option>
|
464 |
-
<?php endforeach; ?>
|
465 |
</select>
|
466 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
467 |
-
|
468 |
-
?>
|
469 |
-
</div>
|
470 |
<?php } ?>
|
471 |
</div>
|
472 |
-
|
473 |
<input id="gawd_tab" type="hidden" value="<?php echo $tab; ?>">
|
474 |
|
475 |
<?php if($tab != 'custom' && $tab != 'pagePath' && $tab != 'landingPagePath' && $tab != 'realTime' && $tab != 'daysToTransaction' && $tab != 'sales_performance' && strpos($_GET['tab'],'custom_report') === false) { ?>
|
@@ -484,22 +490,12 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
484 |
<div class="gawd_row load_tooltip" data-hint="Choose Line, Pie or Column chart type to view your Google Analytics report with.">
|
485 |
<div id="gawd_text" class="gawd_text">
|
486 |
CHART
|
487 |
-
</div>
|
488 |
<div class="gawd_content" id="gawd_content_chart" >
|
489 |
<select name="gawd_chart_type" id="gawd_chart_type" class="gawd_draw_analytics">
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
<option value="column" ><?php echo __('Columns', 'gawd'); ?></option>
|
494 |
-
<option value="line" ><?php echo __('Line Chart', 'gawd'); ?></option>
|
495 |
-
<?php
|
496 |
-
}
|
497 |
-
else{
|
498 |
-
?>
|
499 |
-
<option value="line" ><?php echo __('Line Chart', 'gawd'); ?></option>
|
500 |
-
<option value="pie" ><?php echo __('Pie Chart', 'gawd'); ?></option>
|
501 |
-
<option value="column" ><?php echo __('Columns', 'gawd'); ?></option>
|
502 |
-
<?php };?>
|
503 |
</select>
|
504 |
</div>
|
505 |
<div class='clear'></div>
|
@@ -517,13 +513,13 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
517 |
<div class='clear'></div>
|
518 |
</div>
|
519 |
<div class='clear'></div>
|
520 |
-
</div>
|
521 |
<?php } ?>
|
522 |
<div id="compare_time_conteiner" class="float_conteiner">
|
523 |
<?php if(($tab == 'date') || ($tab == 'adsense') || ($tab == 'siteSpeed') || $tab == 'sales_performance' || $tab == 'pagePath' || $tab == 'landingPagePath'){ ?>
|
524 |
<div class="gawd_date_filter_container load_tooltip" data-hint="Set the scale of your statistics graph. It will separate graph results hourly, daily, weekly and monthly.">
|
525 |
<ul class="gawd_list">
|
526 |
-
<li class="gawd_list_item" id="gawd_hour"><a href='#' class="gawd_filter_item" data-type="hour">
|
527 |
<li class="gawd_list_item" id="gawd_day"><a href='#' class="gawd_filter_item" data-type="date">Day</a></li>
|
528 |
<li class="gawd_list_item" id="gawd_week"><a href='#' class="gawd_filter_item" data-type="week">Week</a></li>
|
529 |
<li class="gawd_list_item" id="gawd_month"><a href='#' class="gawd_filter_item" data-type="month">Month</a></li>
|
@@ -534,7 +530,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
534 |
</div>
|
535 |
<input type="hidden" id="gawd_start_end_date_compare"/>
|
536 |
<div class='clear'></div>
|
537 |
-
<?php } ?>
|
538 |
</div>
|
539 |
<div class='clear'></div>
|
540 |
</div>
|
@@ -542,11 +538,19 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
542 |
</form>
|
543 |
|
544 |
<div class="gawd_chart_conteiner">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
545 |
<div id="opacity_div" style="display: none; background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
546 |
<div id="loading_div" style="display:none; text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
547 |
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
548 |
</div>
|
549 |
-
<div id="chartdiv"></div>
|
550 |
<?php if($tab != 'realTime'){
|
551 |
?>
|
552 |
<div id="gawd_buttons">
|
@@ -560,8 +564,11 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
560 |
</div>
|
561 |
</div>
|
562 |
<?php };?>
|
563 |
-
<
|
564 |
-
|
|
|
|
|
|
|
565 |
</div>
|
566 |
</div>
|
567 |
<div class='clear'></div>
|
@@ -581,7 +588,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
581 |
<?php echo get_option('admin_email'); ?>
|
582 |
</div>
|
583 |
<div class='clear'></div>
|
584 |
-
</div>
|
585 |
<div class="gawd_email_row load_tooltip" data-hint="Define one or more email report recipients separated by commas.">
|
586 |
<div class="gawd_email_label">To</div>
|
587 |
<div class="gawd_email_input">
|
@@ -595,14 +602,14 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
595 |
<input class="gawd_email_subject" name="gawd_email_subject" class="" type="text" value="">
|
596 |
</div>
|
597 |
<div class='clear'></div>
|
598 |
-
</div>
|
599 |
<div class="gawd_email_row">
|
600 |
<div class="gawd_email_attachemnt load_tooltip" data-hint="Select type for report attachments, CSV or PDF.">Attachment</div>
|
601 |
<div class="gawd_email_input_attachment" >
|
602 |
-
<select id="gawd_attachment_type" name="export_type">
|
603 |
<option value='csv'>CSV</option>
|
604 |
<option value='pdf'>PDF</option>
|
605 |
-
</select>
|
606 |
</div>
|
607 |
<div class="gawd_email_input gawd_email_month_day_div" id="gawd_email_month_day" data-hint="Select the day of month to send report on.">
|
608 |
<div class="gawd_email_day_of_week">Day of Month</div>
|
@@ -615,7 +622,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
615 |
</div>
|
616 |
<div class="gawd_email_row">
|
617 |
<div class="gawd_email_frequency load_tooltip" data-hint="Send email report Once or set its frequency to Daily, Weekly or Monthly.">Frequency</div>
|
618 |
-
<div class="gawd_email_input_frequency" id="gawd_email_period">
|
619 |
<select name="gawd_email_period">
|
620 |
<option value="once">Once</option>
|
621 |
<option value="daily">Daily</option>
|
@@ -626,7 +633,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
626 |
<div class="gawd_email_input gawd_email_month_day_div" id="gawd_email_month_day">
|
627 |
<div class="gawd_email_month_day">
|
628 |
<select id="gawd_email_month_day_select" name="gawd_email_month_day">
|
629 |
-
<?php
|
630 |
for($i=1; $i<29; $i++){
|
631 |
|
632 |
echo '<option value="'.$i.'">'.$i.'</option>';
|
@@ -652,21 +659,21 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
652 |
<input type="hidden" name="gawd_email_week_day" id="gawd_email_week_day_hidden" >
|
653 |
</div>
|
654 |
<div class='clear'></div>
|
655 |
-
</div>
|
656 |
<div class="gawd_email_row gawd_email_time_row">
|
657 |
<div class="gawd_email_time load_tooltip" data-hint="Select the time, when you would like to receive this email.">Time</div>
|
658 |
<div class="gawd_email_input_time" id="gawd_email_time">
|
659 |
<input type="text" name="gawd_email_time_input" id="gawd_email_time_input" value="<?php echo date('H:i');?>"/>
|
660 |
</div>
|
661 |
-
|
662 |
<div class='clear'></div>
|
663 |
-
</div>
|
664 |
<div class="gawd_email_row gawd_email_message_label" data-hint="Compose email content to be sent with your report.">
|
665 |
Additional Message
|
666 |
</div>
|
667 |
<div class="gawd_email_row gawd_email_message">
|
668 |
<textarea name="gawd_email_body" id="gawd_email_body"></textarea>
|
669 |
-
</div>
|
670 |
<input name="gawd_email_from" id="gawd_email_from" class="" type="hidden" value="<?php echo get_option('admin_email'); ?>">
|
671 |
<input name="gawd_metric" id="gawd_email_metric" class="" type="hidden" value="">
|
672 |
<input name="gawd_metric_compare" id="gawd_metric_compare" class="" type="hidden" value="">
|
@@ -683,7 +690,7 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
683 |
</div>
|
684 |
<div class="email_message_cont"></div>
|
685 |
</div>
|
686 |
-
<canvas id='canvass' style="display:none"></canvas>
|
687 |
<input id="first_data" class="" type="hidden" value="">
|
688 |
<input id="second_data" class="" type="hidden" value="">
|
689 |
<input id="dimension" class="" type="hidden" value="">
|
@@ -691,5 +698,6 @@ if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
|
691 |
<input id="second_data_sum" class="" type="hidden" value="">
|
692 |
<input id="second_start_date" class="" type="hidden" value="">
|
693 |
<input id="second_end_date" class="" type="hidden" value="">
|
694 |
-
|
695 |
-
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
$get_custom_reports = get_option('gawd_custom_reports');
|
3 |
if(!isset($_GET['tab'])){
|
4 |
$_GET['tab'] = 'general';
|
5 |
}
|
6 |
+
/*FREE*/
|
7 |
+
if($_GET['tab'] !== 'general' && $_GET['tab'] !== 'realtime'){
|
8 |
+
$_GET['tab'] = 'general';
|
9 |
+
}
|
10 |
+
|
11 |
$tabs = get_option('gawd_menu_items');
|
12 |
$gawd_zoom_message = get_option('gawd_zoom_message');
|
13 |
$current_user = get_current_user_id();
|
15 |
if($current_user != 1 && isset($saved_user_menues[$current_user])){
|
16 |
$tabs = array_intersect_key($tabs, $saved_user_menues[$current_user]);
|
17 |
}
|
18 |
+
|
19 |
+
$line_column = array('general', 'siteSpeed', 'goals');
|
20 |
+
$pie_column = array(
|
21 |
+
'userGender',
|
22 |
+
'inMarket',
|
23 |
+
'affinityCategory',
|
24 |
+
'otherCategory',
|
25 |
+
'location',
|
26 |
+
'language',
|
27 |
+
'behaviour',
|
28 |
+
'os',
|
29 |
+
'browser',
|
30 |
+
'device_overview',
|
31 |
+
'devices',
|
32 |
+
'trafficSource',
|
33 |
+
);
|
34 |
+
$column_pie = array('userAge', 'engagement', 'adWords','eventsLabel', 'eventsAction', 'eventsCategory', 'productSku', 'productCategory', 'productName', 'custom');
|
35 |
+
$column = array();
|
36 |
+
|
37 |
+
if(in_array($_GET['tab'], $line_column)) {
|
38 |
+
$chart_types = array('line' => 'Line Chart', 'column' => 'Columns');
|
39 |
+
} else if(in_array($_GET['tab'], $pie_column)) {
|
40 |
+
$chart_types = array('pie' => 'Pie Chart', 'column' => 'Columns');
|
41 |
+
} else if(in_array($_GET['tab'], $column_pie)) {
|
42 |
+
$chart_types = array('column' => 'Columns', 'pie' => 'Pie Chart');
|
43 |
+
} else if(in_array($_GET['tab'], $column)) {
|
44 |
+
$chart_types = array('column' => 'Columns');
|
45 |
+
} else {
|
46 |
+
$chart_types = array('line' => 'Line Chart', 'pie' => 'Pie Chart', 'column' => 'Columns');
|
47 |
+
}
|
48 |
+
|
49 |
+
?>
|
50 |
<form method="post" id="gawd_view">
|
51 |
|
52 |
<div class="gawd_profiles" id="gawd_profile_wrapper">
|
56 |
<span>You can zoom chart by dragging the mouse over it</span><input class="button_gawd" type="button" id="gawd_got_it" value="GOT IT"/>
|
57 |
</div>
|
58 |
<?php
|
59 |
+
}
|
60 |
?>
|
61 |
<select class="gawd_profile_select" id="gawd_id" name="gawd_id" onchange="change_account(this)">
|
62 |
+
<?php
|
63 |
+
$gawd_last_viewed_profile = GAWD_helper::get_last_viewed_profile();
|
64 |
+
foreach ($profiles as $property_name => $property): ?>
|
65 |
<optgroup label="<?php echo $property_name; ?>">
|
66 |
<?php foreach ($property as $profile):
|
67 |
$webPropertyId = $profile['webPropertyId'];
|
68 |
+
$id = $profile['id'];
|
69 |
$name = $profile['name'];
|
70 |
$selected = '';
|
71 |
+
if($id == $gawd_last_viewed_profile['profile_id']){
|
72 |
$selected = 'selected="selected"';
|
73 |
}
|
74 |
?>
|
80 |
<div class="clear"></div>
|
81 |
<input type="hidden" name='web_property_name' id='web_property_name'/>
|
82 |
</div>
|
83 |
+
<div id="gawd_body" data-gawd-tab="<?php echo $_GET['tab']; ?>">
|
84 |
+
<?php
|
85 |
include_once('dashboard_menu.php');
|
86 |
+
$page = isset($_GET['tab']) ? $_GET['tab'] : 'overview';
|
87 |
if(strpos($page,'custom_report')!==false){
|
88 |
$tab = $page;
|
89 |
}
|
94 |
break;
|
95 |
case 'location':
|
96 |
$tab = 'country';
|
97 |
+
break;
|
98 |
case 'behaviour':
|
99 |
$tab = 'userType';
|
100 |
+
break;
|
101 |
case 'engagement':
|
102 |
$tab = 'sessionDurationBucket';
|
103 |
+
break;
|
104 |
case 'pagePath':
|
105 |
$tab = 'pagePath';
|
106 |
+
break;
|
107 |
case 'landingPagePath':
|
108 |
$tab = 'landingPagePath';
|
109 |
+
break;
|
110 |
case 'language':
|
111 |
$tab = 'language';
|
112 |
+
break;
|
113 |
case 'browser':
|
114 |
$tab = 'browser';
|
115 |
+
break;
|
116 |
case 'os':
|
117 |
$tab = 'operatingSystem';
|
118 |
+
break;
|
119 |
case 'device_overview':
|
120 |
$tab = 'deviceCategory';
|
121 |
+
break;
|
122 |
case 'devices':
|
123 |
$tab = 'mobileDeviceInfo';
|
124 |
+
break;
|
125 |
case 'realtime':
|
126 |
$tab = 'realTime';
|
127 |
break;
|
128 |
case 'custom':
|
129 |
$tab = 'custom';
|
130 |
+
break;
|
131 |
case 'eventsCategory':
|
132 |
$tab = 'eventCategory';
|
133 |
+
break;
|
134 |
case 'eventsAction':
|
135 |
$tab = 'eventAction';
|
136 |
+
break;
|
137 |
case 'eventsLabel':
|
138 |
$tab = 'eventLabel';
|
139 |
break;
|
140 |
case 'goals':
|
141 |
$tab = 'goals';
|
142 |
+
break;
|
143 |
case 'userGender':
|
144 |
$tab = 'userGender';
|
145 |
+
break;
|
146 |
case 'userAge':
|
147 |
$tab = 'userAgeBracket';
|
148 |
+
break;
|
149 |
case 'adWords':
|
150 |
$tab = 'adGroup';
|
151 |
+
break;
|
152 |
case 'otherCategory':
|
153 |
$tab = 'interestOtherCategory';
|
154 |
+
break;
|
155 |
case 'affinityCategory':
|
156 |
$tab = 'interestAffinityCategory';
|
157 |
+
break;
|
158 |
case 'inMarket':
|
159 |
$tab = 'interestInMarketCategory';
|
160 |
+
break;
|
161 |
case 'trafficSource':
|
162 |
$tab = 'source';
|
163 |
+
break;
|
164 |
case 'siteSpeed':
|
165 |
$tab = 'siteSpeed';
|
166 |
+
break;
|
167 |
case 'adsense':
|
168 |
$tab = 'adsense';
|
169 |
+
break;
|
170 |
case 'productName':
|
171 |
$tab = 'productName';
|
172 |
+
break;
|
173 |
case 'productCategory':
|
174 |
$tab = 'productCategory';
|
175 |
+
break;
|
176 |
case 'productSku':
|
177 |
$tab = 'productSku';
|
178 |
+
break;
|
179 |
case 'transactionId':
|
180 |
$tab = 'transactionId';
|
181 |
+
break;
|
182 |
case 'daysToTransaction':
|
183 |
$tab = 'daysToTransaction';
|
184 |
+
break;
|
185 |
case 'sales_performance':
|
186 |
$tab = 'sales_performance';
|
187 |
break;
|
290 |
?>
|
291 |
<div id="first_metric" >
|
292 |
<select name="gawd_metric" id="gawd_metric" class="gawd_draw_analytics load_tooltip" data-hint="Choose a metric to view overview graph.">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
</select>
|
294 |
</div>
|
295 |
<div id="metric_compare">
|
296 |
<select name="gawd_metric_compare" id="gawd_metric_compare" class="gawd_draw_analytics load_tooltip" data-hint="Select the second metric to compare reports.">
|
297 |
<option value="0"><?php echo __('None', 'gawd'); ?></option>
|
298 |
<?php
|
299 |
+
/* if (!empty($goals)) {
|
300 |
foreach ($goals as $goal) {
|
301 |
echo '<option value="' . $goal['name'] . '">' . $goal['name'] . ' (Goal' . $goal['id'] . ' Completions)' . '</option>';
|
302 |
}
|
303 |
+
}*/
|
304 |
?>
|
305 |
</select>
|
306 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
307 |
</div>
|
308 |
<?php
|
309 |
+
}
|
310 |
elseif($tab == 'siteSpeed'){
|
311 |
?>
|
312 |
<div id="first_metric" >
|
328 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
329 |
</div>
|
330 |
<?php
|
331 |
+
}
|
332 |
elseif($tab == 'adsense'){
|
333 |
?>
|
334 |
<div id="first_metric" >
|
417 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
418 |
</div>
|
419 |
<?php
|
420 |
+
}
|
421 |
elseif($tab == 'sales_performance'){
|
422 |
?>
|
423 |
<div id="first_metric" >
|
426 |
<option value="transactionsPerSession" ><?php echo __('Ecommerce Conversion Rate', 'gawd'); ?></option>
|
427 |
</select>
|
428 |
</div>
|
429 |
+
|
430 |
<?php
|
431 |
}
|
432 |
elseif($tab == 'daysToTransaction'){
|
436 |
<option value="transactions" ><?php echo __('Transactions', 'gawd'); ?></option>
|
437 |
</select>
|
438 |
</div>
|
439 |
+
|
440 |
<?php
|
441 |
}
|
442 |
elseif(strpos($tab,'custom_report')!==false){
|
443 |
$tab = substr($page,14);
|
444 |
+
|
445 |
?>
|
446 |
<div id="first_metric" >
|
447 |
<select name="gawd_metric" id="gawd_metric" class="gawd_draw_analytics load_tooltip" data-hint="Choose a metric to view overview graph.">
|
448 |
<option value="<?php echo $get_custom_reports[$tab]['metric'];?>" ><?php echo __(preg_replace('!\s+!',' ',trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $get_custom_reports[$tab]['metric'])))), 'gawd'); ?></option>
|
449 |
+
|
450 |
</select>
|
451 |
</div>
|
452 |
<?php
|
453 |
$tab = 'custom_' . $get_custom_reports[$tab]['dimension'];
|
454 |
+
}
|
455 |
elseif($tab == 'custom') { ?>
|
456 |
<div id="first_metric" >
|
457 |
<select name="gawd_metric" id="gawd_metric" class="gawd_draw_analytics load_tooltip" data-hint="Choose a metric to view overview graph.">
|
465 |
</select>
|
466 |
</div>
|
467 |
<div id="metric_compare">
|
468 |
+
<select style="display: none;" id="wdi_no_custom_dimensions" class="load_tooltip" data-hint="Select the second metric to compare reports.">
|
|
|
|
|
|
|
469 |
<option value="0">There are no custom dimensions set for current profile.</option>
|
470 |
</select>
|
471 |
+
<select style="display: none;" name="gawd_custom_option" id="gawd_custom_option" class="gawd_draw_analytics">
|
472 |
+
|
|
|
|
|
|
|
473 |
</select>
|
474 |
<img src="<?php echo GAWD_URL. '/assets/cleardot.gif';?>"/>
|
475 |
+
</div>
|
|
|
|
|
476 |
<?php } ?>
|
477 |
</div>
|
478 |
+
|
479 |
<input id="gawd_tab" type="hidden" value="<?php echo $tab; ?>">
|
480 |
|
481 |
<?php if($tab != 'custom' && $tab != 'pagePath' && $tab != 'landingPagePath' && $tab != 'realTime' && $tab != 'daysToTransaction' && $tab != 'sales_performance' && strpos($_GET['tab'],'custom_report') === false) { ?>
|
490 |
<div class="gawd_row load_tooltip" data-hint="Choose Line, Pie or Column chart type to view your Google Analytics report with.">
|
491 |
<div id="gawd_text" class="gawd_text">
|
492 |
CHART
|
493 |
+
</div>
|
494 |
<div class="gawd_content" id="gawd_content_chart" >
|
495 |
<select name="gawd_chart_type" id="gawd_chart_type" class="gawd_draw_analytics">
|
496 |
+
<?php foreach($chart_types as $value => $title) { ?>
|
497 |
+
<option value="<?php echo $value; ?>"><?php echo $title; ?></option>
|
498 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
499 |
</select>
|
500 |
</div>
|
501 |
<div class='clear'></div>
|
513 |
<div class='clear'></div>
|
514 |
</div>
|
515 |
<div class='clear'></div>
|
516 |
+
</div>
|
517 |
<?php } ?>
|
518 |
<div id="compare_time_conteiner" class="float_conteiner">
|
519 |
<?php if(($tab == 'date') || ($tab == 'adsense') || ($tab == 'siteSpeed') || $tab == 'sales_performance' || $tab == 'pagePath' || $tab == 'landingPagePath'){ ?>
|
520 |
<div class="gawd_date_filter_container load_tooltip" data-hint="Set the scale of your statistics graph. It will separate graph results hourly, daily, weekly and monthly.">
|
521 |
<ul class="gawd_list">
|
522 |
+
<li class="gawd_list_item" id="gawd_hour"><a href='#' class="gawd_filter_item" data-type="hour">Hourly</a></li>
|
523 |
<li class="gawd_list_item" id="gawd_day"><a href='#' class="gawd_filter_item" data-type="date">Day</a></li>
|
524 |
<li class="gawd_list_item" id="gawd_week"><a href='#' class="gawd_filter_item" data-type="week">Week</a></li>
|
525 |
<li class="gawd_list_item" id="gawd_month"><a href='#' class="gawd_filter_item" data-type="month">Month</a></li>
|
530 |
</div>
|
531 |
<input type="hidden" id="gawd_start_end_date_compare"/>
|
532 |
<div class='clear'></div>
|
533 |
+
<?php } ?>
|
534 |
</div>
|
535 |
<div class='clear'></div>
|
536 |
</div>
|
538 |
</form>
|
539 |
|
540 |
<div class="gawd_chart_conteiner">
|
541 |
+
<?php if($_GET['tab'] === 'adsense') { ?>
|
542 |
+
<h4>
|
543 |
+
AdSense reports are coming soon. View them
|
544 |
+
<a target="_blank" href="https://analytics.google.com/">
|
545 |
+
here.
|
546 |
+
</a>
|
547 |
+
</h4>
|
548 |
+
<?php } ?>
|
549 |
<div id="opacity_div" style="display: none; background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
550 |
<div id="loading_div" style="display:none; text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
551 |
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
552 |
</div>
|
553 |
+
<div id="chartdiv"></div>
|
554 |
<?php if($tab != 'realTime'){
|
555 |
?>
|
556 |
<div id="gawd_buttons">
|
564 |
</div>
|
565 |
</div>
|
566 |
<?php };?>
|
567 |
+
<div class="gawd_data_table">
|
568 |
+
<table class="display cell-border" style="width:100%">
|
569 |
+
|
570 |
+
</table>
|
571 |
+
</div>
|
572 |
</div>
|
573 |
</div>
|
574 |
<div class='clear'></div>
|
588 |
<?php echo get_option('admin_email'); ?>
|
589 |
</div>
|
590 |
<div class='clear'></div>
|
591 |
+
</div>
|
592 |
<div class="gawd_email_row load_tooltip" data-hint="Define one or more email report recipients separated by commas.">
|
593 |
<div class="gawd_email_label">To</div>
|
594 |
<div class="gawd_email_input">
|
602 |
<input class="gawd_email_subject" name="gawd_email_subject" class="" type="text" value="">
|
603 |
</div>
|
604 |
<div class='clear'></div>
|
605 |
+
</div>
|
606 |
<div class="gawd_email_row">
|
607 |
<div class="gawd_email_attachemnt load_tooltip" data-hint="Select type for report attachments, CSV or PDF.">Attachment</div>
|
608 |
<div class="gawd_email_input_attachment" >
|
609 |
+
<select id="gawd_attachment_type" name="export_type">
|
610 |
<option value='csv'>CSV</option>
|
611 |
<option value='pdf'>PDF</option>
|
612 |
+
</select>
|
613 |
</div>
|
614 |
<div class="gawd_email_input gawd_email_month_day_div" id="gawd_email_month_day" data-hint="Select the day of month to send report on.">
|
615 |
<div class="gawd_email_day_of_week">Day of Month</div>
|
622 |
</div>
|
623 |
<div class="gawd_email_row">
|
624 |
<div class="gawd_email_frequency load_tooltip" data-hint="Send email report Once or set its frequency to Daily, Weekly or Monthly.">Frequency</div>
|
625 |
+
<div class="gawd_email_input_frequency " id="gawd_email_period">
|
626 |
<select name="gawd_email_period">
|
627 |
<option value="once">Once</option>
|
628 |
<option value="daily">Daily</option>
|
633 |
<div class="gawd_email_input gawd_email_month_day_div" id="gawd_email_month_day">
|
634 |
<div class="gawd_email_month_day">
|
635 |
<select id="gawd_email_month_day_select" name="gawd_email_month_day">
|
636 |
+
<?php
|
637 |
for($i=1; $i<29; $i++){
|
638 |
|
639 |
echo '<option value="'.$i.'">'.$i.'</option>';
|
659 |
<input type="hidden" name="gawd_email_week_day" id="gawd_email_week_day_hidden" >
|
660 |
</div>
|
661 |
<div class='clear'></div>
|
662 |
+
</div>
|
663 |
<div class="gawd_email_row gawd_email_time_row">
|
664 |
<div class="gawd_email_time load_tooltip" data-hint="Select the time, when you would like to receive this email.">Time</div>
|
665 |
<div class="gawd_email_input_time" id="gawd_email_time">
|
666 |
<input type="text" name="gawd_email_time_input" id="gawd_email_time_input" value="<?php echo date('H:i');?>"/>
|
667 |
</div>
|
668 |
+
|
669 |
<div class='clear'></div>
|
670 |
+
</div>
|
671 |
<div class="gawd_email_row gawd_email_message_label" data-hint="Compose email content to be sent with your report.">
|
672 |
Additional Message
|
673 |
</div>
|
674 |
<div class="gawd_email_row gawd_email_message">
|
675 |
<textarea name="gawd_email_body" id="gawd_email_body"></textarea>
|
676 |
+
</div>
|
677 |
<input name="gawd_email_from" id="gawd_email_from" class="" type="hidden" value="<?php echo get_option('admin_email'); ?>">
|
678 |
<input name="gawd_metric" id="gawd_email_metric" class="" type="hidden" value="">
|
679 |
<input name="gawd_metric_compare" id="gawd_metric_compare" class="" type="hidden" value="">
|
690 |
</div>
|
691 |
<div class="email_message_cont"></div>
|
692 |
</div>
|
693 |
+
<canvas id='canvass' style="display:none"></canvas>
|
694 |
<input id="first_data" class="" type="hidden" value="">
|
695 |
<input id="second_data" class="" type="hidden" value="">
|
696 |
<input id="dimension" class="" type="hidden" value="">
|
698 |
<input id="second_data_sum" class="" type="hidden" value="">
|
699 |
<input id="second_start_date" class="" type="hidden" value="">
|
700 |
<input id="second_end_date" class="" type="hidden" value="">
|
701 |
+
<?php
|
702 |
+
GAWD_helper::print_pro_popup();
|
703 |
+
?>
|
admin/pages/dashboard_menu.php
CHANGED
@@ -1,185 +1,135 @@
|
|
1 |
-
|
2 |
-
|
3 |
function gawd_write_menu($tabs, $title = true){
|
4 |
-
$gawd_settings = get_option('gawd_settings');
|
5 |
$sub_arrow = '<span class="gawd_menu_li_sub_arrow"></span>';
|
6 |
-
|
7 |
-
|
|
|
8 |
$tab_data["title"] = "";
|
9 |
$sub_arrow = '';
|
10 |
}
|
11 |
-
if($tab_data["childs"] == array()){
|
12 |
$active_tab = $_GET['tab'] == $tab_key ? 'gawd_active_li' : '';
|
13 |
-
|
14 |
-
if(
|
15 |
-
|
16 |
-
echo ' <li class=" gawd_menu_li '.$active_tab.'" id="gawd_'.$tab_key.'" >
|
17 |
-
<a class="gawd_menu_item " href="'.admin_url().'admin.php?page=gawd_reports&tab='.$tab_key.'">'.$tab_data["title"].'</a>
|
18 |
-
<span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
19 |
-
</li>';
|
20 |
-
}
|
21 |
-
elseif($tab_key == 'Pro'){
|
22 |
-
echo ' <li class="gawd_inactive_pro gawd_menu_li '.$active_tab.' " id="gawd_'.$tab_key.'">
|
23 |
<span class="gawd_menu_item gawd_pro_menu" >'.$tab_data["title"].'</span>
|
|
|
24 |
</li>';
|
25 |
-
|
26 |
-
|
27 |
-
echo ' <li class="gawd_inactive gawd_menu_li '.$active_tab.' " id="gawd_'.$tab_key.'">
|
28 |
<span class=" gawd_menu_item gawd_pro_menu" >'.$tab_data["title"].'
|
29 |
</span><span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
30 |
</li>';
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
}
|
42 |
-
elseif($tab_key == 'Pro'){
|
43 |
-
continue;
|
44 |
-
}
|
45 |
-
else{
|
46 |
-
echo ' <li class="gawd_menu_li '.$active_tab.'" id="gawd_'.$tab_key.'" >
|
47 |
-
<a class="gawd_menu_item " href="'.admin_url().'admin.php?page=gawd_reports&tab='.$tab_key.'">'.$tab_data["title"].'</a>
|
48 |
-
<span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
49 |
-
</li>';
|
50 |
-
}
|
51 |
}
|
52 |
-
}
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
<span id="gawd_'.$tab_key.'s" class="gawd_menu_li_sub">'.$tab_data["title"].$sub_arrow.'
|
57 |
</span>
|
58 |
<span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
59 |
<ul id="gawd_'.$tab_key.'_ul">';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
-
else{
|
62 |
-
if($tab_key == 'customReport' || $tab_key == 'ecommerce'){
|
63 |
-
echo ' <li class="gawd_menu_li " id="gawd_'.$tab_key.'_li">
|
64 |
-
<span id="gawd_'.$tab_key.'s" class="gawd_pro_menu gawd_menu_li_sub">'.$tab_data["title"].$sub_arrow.'
|
65 |
-
<span class="gawd_pro_flag">Paid</span>
|
66 |
-
</span>
|
67 |
-
<span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
68 |
-
<ul id="gawd_'.$tab_key.'_ul">';
|
69 |
-
}
|
70 |
-
else{
|
71 |
-
echo ' <li class="gawd_menu_li " id="gawd_'.$tab_key.'_li" >
|
72 |
-
<span id="gawd_'.$tab_key.'" class="gawd_menu_li_sub">'.$tab_data["title"].$sub_arrow.'
|
73 |
-
</span>
|
74 |
-
<span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
75 |
-
<ul id="gawd_'.$tab_key.'_ul">';
|
76 |
-
}
|
77 |
-
}
|
78 |
-
|
79 |
foreach($tab_data["childs"] as $child_key => $child_title) {
|
80 |
-
if(!$title){
|
81 |
$child_title = "";
|
82 |
}
|
83 |
$active_tab = $_GET['tab'] == $child_key ? 'gawd_active_li' : '';
|
84 |
-
if(
|
85 |
echo ' <li class=" gawd_menu_ul_li '.$active_tab.'">
|
86 |
<span class="gawd_menu_item " >'.$child_title.'</span>
|
87 |
</li> ';
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
-
|
90 |
-
|
91 |
-
echo ' <li class="gawd_menu_ul_li '.$active_tab.'">
|
92 |
-
<span class="gawd_menu_item " >'.$child_title.'</span>
|
93 |
-
</li> ';
|
94 |
-
}
|
95 |
-
else{
|
96 |
-
echo ' <li class="gawd_menu_ul_li '.$active_tab.'">
|
97 |
-
<a class="gawd_menu_item " href="'.admin_url().'admin.php?page=gawd_reports&tab='.$child_key.'">'.$child_title.'</a>
|
98 |
-
</li> ';
|
99 |
-
}
|
100 |
-
}
|
101 |
-
}
|
102 |
-
echo '</ul>
|
103 |
</li>';
|
104 |
}
|
105 |
}
|
106 |
}
|
107 |
-
function gawd_write_menu_collapse($tabs, $title = true){
|
108 |
-
$gawd_settings = get_option('gawd_settings');
|
109 |
|
|
|
110 |
$sub_arrow = '<span class="gawd_menu_li_sub_arrow"></span>';
|
111 |
-
foreach
|
112 |
-
if(!$title){
|
113 |
$tab_data["title"] = "";
|
114 |
$sub_arrow = '';
|
115 |
}
|
116 |
-
if($tab_data["childs"] == array()){
|
117 |
$active_tab = $_GET['tab'] == $tab_key ? 'gawd_active_li' : '';
|
118 |
-
if(
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
else{
|
123 |
-
echo '<span id="gawd_'.$tab_key.'" class="'.$active_tab.' gawd_menu_item " >'.$tab_data["title"].'</span>';
|
124 |
-
}
|
125 |
}
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
}
|
136 |
-
else{
|
137 |
-
if($tab_key == 'customReport' || $tab_key == 'ecommerce'){
|
138 |
-
echo '<span id="gawd_'.$tab_key.'_li" id="gawd_'.$tab_key.'s" class="gawd_menu_li_sub">'.$tab_data["title"].$sub_arrow.'
|
139 |
-
<div class="collapse_ul" id="gawd_'.$tab_key.'_ul">';
|
140 |
-
}
|
141 |
-
else{
|
142 |
-
echo '<span id="gawd_'.$tab_key.'_li" id="gawd_'.$tab_key.'" class="gawd_menu_li_sub">'.$tab_data["title"].$sub_arrow.'
|
143 |
-
<div class="collapse_ul" id="gawd_'.$tab_key.'_ul">';
|
144 |
}
|
145 |
foreach($tab_data["childs"] as $child_key => $child_title) {
|
146 |
$active_tab = $_GET['tab'] == $child_key ? 'gawd_active_li_text' : '';
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
}
|
151 |
-
else{
|
152 |
-
echo '<a class="'.$active_tab.' gawd_menu_item " href="'.admin_url().'admin.php?page=gawd_reports&tab='.$child_key.'">'.$child_title.'</a>';
|
153 |
-
}
|
154 |
-
}
|
155 |
-
else{
|
156 |
-
echo '<span class="'.$active_tab.' gawd_menu_item " >'.$child_title.'</span>';
|
157 |
-
}
|
158 |
-
|
159 |
-
}
|
160 |
-
echo '</div></span>';
|
161 |
}
|
162 |
}
|
163 |
-
|
164 |
}
|
165 |
-
?>
|
166 |
-
<div class="resp_menu"><div class="menu_img"></div><div class="button_label">REPORTS</div><div class="clear"></div></div>
|
167 |
|
168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
<div class="gawd_menu_ul">
|
170 |
-
|
171 |
-
gawd_write_menu_collapse($tabs,false);
|
172 |
-
|
173 |
-
|
174 |
</div>
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
gawd_write_menu($tabs);
|
182 |
-
|
183 |
-
|
184 |
</ul>
|
185 |
-
|
1 |
+
<?php
|
|
|
2 |
function gawd_write_menu($tabs, $title = true){
|
|
|
3 |
$sub_arrow = '<span class="gawd_menu_li_sub_arrow"></span>';
|
4 |
+
$free_tabs = array('general', 'realtime');
|
5 |
+
foreach($tabs as $tab_key => $tab_data) {
|
6 |
+
if(!$title) {
|
7 |
$tab_data["title"] = "";
|
8 |
$sub_arrow = '';
|
9 |
}
|
10 |
+
if($tab_data["childs"] == array()) {
|
11 |
$active_tab = $_GET['tab'] == $tab_key ? 'gawd_active_li' : '';
|
12 |
+
/** FREE **/
|
13 |
+
if($tab_key === "Pro"){
|
14 |
+
echo ' <li class="gawd_inactive_pro gawd_menu_li '.$active_tab.' " id="gawd_'.$tab_key.'">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
<span class="gawd_menu_item gawd_pro_menu" >'.$tab_data["title"].'</span>
|
16 |
+
<div style="display: inline-block;float: right;margin-top: 6px;"><a href="https://web-dorado.com/products/wordpress-google-analytics-plugin.html" target="_blank" class="gawd-topbar-upgrade-button">Upgrade</a></div>
|
17 |
</li>';
|
18 |
+
}else if(!in_array($tab_key, $free_tabs)){
|
19 |
+
echo ' <li class="gawd_inactive gawd_menu_li '.$active_tab.' " id="gawd_'.$tab_key.'">
|
|
|
20 |
<span class=" gawd_menu_item gawd_pro_menu" >'.$tab_data["title"].'
|
21 |
</span><span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
22 |
</li>';
|
23 |
+
}/** END FREE **/
|
24 |
+
else if($tab_key == 'customReport') {
|
25 |
+
echo ' <li class="gawd_menu_li ' . $active_tab . '" id="gawd_' . $tab_key . '" >
|
26 |
+
<a class="gawd_menu_item " href="' . admin_url() . 'admin.php?page=gawd_custom_reports">' . $tab_data["title"] . '</a>
|
27 |
+
</li><span class="gawd_description" data-hint="' . $tab_data["desc"] . '"></span>';
|
28 |
+
} else {
|
29 |
+
echo ' <li class="gawd_menu_li ' . $active_tab . '" id="gawd_' . $tab_key . '" >
|
30 |
+
<a class="gawd_menu_item " href="' . admin_url() . 'admin.php?page=gawd_reports&tab=' . $tab_key . '">' . $tab_data["title"] . '</a>
|
31 |
+
<span class="gawd_description" data-hint="' . $tab_data["desc"] . '"></span>
|
32 |
+
</li>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
+
} else {
|
35 |
+
/** FREE **/
|
36 |
+
if(!in_array($tab_key, $free_tabs)){
|
37 |
+
echo ' <li class="gawd_inactive gawd_menu_li " id="gawd_'.$tab_key.'_li">
|
38 |
<span id="gawd_'.$tab_key.'s" class="gawd_menu_li_sub">'.$tab_data["title"].$sub_arrow.'
|
39 |
</span>
|
40 |
<span class="gawd_description" data-hint="'.$tab_data["desc"].'"></span>
|
41 |
<ul id="gawd_'.$tab_key.'_ul">';
|
42 |
+
}/** END FREE **/
|
43 |
+
else if($tab_key == 'customReport') {
|
44 |
+
echo ' <li class="gawd_menu_li " id="gawd_' . $tab_key . '_li">
|
45 |
+
<span class="gawd_description" data-hint="' . $tab_data["desc"] . '"></span>
|
46 |
+
<span id="gawd_' . $tab_key . 's" class="gawd_menu_li_sub">' . $tab_data["title"] . $sub_arrow . '
|
47 |
+
</span>
|
48 |
+
<ul id="gawd_' . $tab_key . '_ul">';
|
49 |
+
} else {
|
50 |
+
echo ' <li class="gawd_menu_li" id="gawd_' . $tab_key . '_li" ">
|
51 |
+
<span class="gawd_description" data-hint="' . $tab_data["desc"] . '"></span>
|
52 |
+
<span id="gawd_' . $tab_key . '" class="gawd_menu_li_sub">' . $tab_data["title"] . $sub_arrow . '
|
53 |
+
</span>
|
54 |
+
<ul id="gawd_' . $tab_key . '_ul">';
|
55 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
foreach($tab_data["childs"] as $child_key => $child_title) {
|
57 |
+
if(!$title) {
|
58 |
$child_title = "";
|
59 |
}
|
60 |
$active_tab = $_GET['tab'] == $child_key ? 'gawd_active_li' : '';
|
61 |
+
if(!in_array($tab_key, $free_tabs)){
|
62 |
echo ' <li class=" gawd_menu_ul_li '.$active_tab.'">
|
63 |
<span class="gawd_menu_item " >'.$child_title.'</span>
|
64 |
</li> ';
|
65 |
+
|
66 |
+
}/** END FREE **/
|
67 |
+
else {
|
68 |
+
echo ' <li class="gawd_menu_ul_li ' . $active_tab . '">
|
69 |
+
<a class="gawd_menu_item " href="' . admin_url() . 'admin.php?page=gawd_reports&tab=' . $child_key . '">' . $child_title . '</a>
|
70 |
+
</li> ';
|
71 |
}
|
72 |
+
}
|
73 |
+
echo '</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
</li>';
|
75 |
}
|
76 |
}
|
77 |
}
|
|
|
|
|
78 |
|
79 |
+
function gawd_write_menu_collapse($tabs, $title = true){
|
80 |
$sub_arrow = '<span class="gawd_menu_li_sub_arrow"></span>';
|
81 |
+
foreach($tabs as $tab_key => $tab_data) {
|
82 |
+
if(!$title) {
|
83 |
$tab_data["title"] = "";
|
84 |
$sub_arrow = '';
|
85 |
}
|
86 |
+
if($tab_data["childs"] == array()) {
|
87 |
$active_tab = $_GET['tab'] == $tab_key ? 'gawd_active_li' : '';
|
88 |
+
if($tab_key == 'customReport') {
|
89 |
+
echo '<a id="gawd_' . $tab_key . '" class="' . $active_tab . ' gawd_menu_item " href="' . admin_url() . 'admin.php?page=gawd_custom_reports">' . $tab_data["title"] . '</a>';
|
90 |
+
} else {
|
91 |
+
echo '<a id="gawd_' . $tab_key . '" class="' . $active_tab . ' gawd_menu_item " href="' . admin_url() . 'admin.php?page=gawd_reports&tab=' . $tab_key . '">' . $tab_data["title"] . '</a>';
|
|
|
|
|
|
|
92 |
}
|
93 |
+
} else {
|
94 |
+
if($tab_key == 'customReport') {
|
95 |
+
echo '<span id="gawd_' . $tab_key . '_li" id="gawd_' . $tab_key . 's" class="gawd_menu_li_sub">' . $tab_data["title"] . $sub_arrow . '
|
96 |
+
<div class="collapse_ul" id="gawd_' . $tab_key . '_ul">';
|
97 |
+
} else {
|
98 |
+
echo '<span id="gawd_' . $tab_key . '_li" id="gawd_' . $tab_key . '" class="gawd_menu_li_sub">' . $tab_data["title"] . $sub_arrow . '
|
99 |
+
<div class="collapse_ul" id="gawd_' . $tab_key . '_ul">';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
foreach($tab_data["childs"] as $child_key => $child_title) {
|
102 |
$active_tab = $_GET['tab'] == $child_key ? 'gawd_active_li_text' : '';
|
103 |
+
echo '<a class="' . $active_tab . ' gawd_menu_item " href="' . admin_url() . 'admin.php?page=gawd_reports&tab=' . $child_key . '">' . $child_title . '</a>';
|
104 |
+
}
|
105 |
+
echo '</div></span>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
}
|
108 |
+
|
109 |
}
|
|
|
|
|
110 |
|
111 |
+
?>
|
112 |
+
<div class="resp_menu">
|
113 |
+
<div class="menu_img"></div>
|
114 |
+
<div class="button_label">REPORTS</div>
|
115 |
+
<div class="clear"></div>
|
116 |
+
</div>
|
117 |
+
|
118 |
+
<div class="gawd_menu_coteiner_collapse">
|
119 |
<div class="gawd_menu_ul">
|
120 |
+
<?php
|
121 |
+
gawd_write_menu_collapse($tabs, false);
|
122 |
+
?>
|
123 |
+
<span class='gawd_collapsed'></span>
|
124 |
</div>
|
125 |
+
</div>
|
126 |
+
<div class="gawd_menu_coteiner">
|
127 |
+
<input onkeyup="gawd_search()" type="text" class='gawd_search_input' placeholder="<?php _e('Search', 'gawd'); ?>"
|
128 |
+
autofocus/>
|
129 |
+
<ul class="gawd_menu_ul">
|
130 |
+
<?php
|
131 |
gawd_write_menu($tabs);
|
132 |
+
?>
|
133 |
+
<li class='gawd_collapse'>Collapse menu</li>
|
134 |
</ul>
|
135 |
+
</div>
|
admin/pages/dashboard_widget.php
CHANGED
@@ -1,43 +1,57 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
$
|
10 |
-
|
11 |
-
$
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<form method="post" id="gawd_dashboard_wp">
|
2 |
+
<select title="Click to pick the website, audience report of which you’d like to display."
|
3 |
+
style="width: 41%; margin-right: 20px;"
|
4 |
+
class="gawd_profile_select"
|
5 |
+
name="gawd_id"
|
6 |
+
onchange="gawd_wp_dashboard_change_account(this)">
|
7 |
+
<?php foreach($profiles as $property_name => $property): ?>
|
8 |
+
<optgroup label="<?php echo $property_name; ?>">
|
9 |
+
<?php foreach($property as $profile):
|
10 |
+
$webPropertyId = $profile['webPropertyId'];
|
11 |
+
$id = $profile['id'];
|
12 |
+
$name = $profile['name'];
|
13 |
+
$selected = '';
|
14 |
+
if($id == $gawd_last_viewed_profile['profile_id']) {
|
15 |
+
$selected = 'selected="selected"';
|
16 |
+
}
|
17 |
+
?>
|
18 |
+
<option value="<?php echo $id; ?>" <?php echo $selected; ?>><?php echo $property_name . ' - ' . $name; ?></option>
|
19 |
+
<?php endforeach ?>
|
20 |
+
</optgroup>
|
21 |
+
<?php endforeach ?>
|
22 |
+
</select>
|
23 |
+
<input type="hidden" name='web_property_name' id='web_property_name'/>
|
24 |
+
<select name="gawd_widget_date" id="gawd_widget_date">
|
25 |
+
<option value="<?php echo date('Y-m-d', strtotime('-7 days')); ?>"><?php echo __('Last 7 Days', 'gawd'); ?></option>
|
26 |
+
<option value="<?php echo date('Y-m-d', strtotime('-30 days')); ?>"><?php echo __('Last 30 Days', 'gawd'); ?></option>
|
27 |
+
<option value="realTime"><?php echo __('Real Time', 'gawd'); ?></option>
|
28 |
+
</select>
|
29 |
+
<select name="gawd_metric_widget" id="gawd_metric_widget">
|
30 |
+
<option value="sessions"><?php echo __('Sessions', 'gawd'); ?></option>
|
31 |
+
<option value="users"><?php echo __('Users', 'gawd'); ?></option>
|
32 |
+
<option value="bounceRate"><?php echo __('Bounce Rate', 'gawd'); ?></option>
|
33 |
+
<option value="pageviews"><?php echo __('Pageviews', 'gawd'); ?></option>
|
34 |
+
<option value="percentNewSessions">% New Sessions</option>
|
35 |
+
<option value="avgSessionDuration">Avg Session Duration</option>
|
36 |
+
<option value="pageviewsPerSession"><?php echo __('Pages/Session', 'gawd'); ?></option>
|
37 |
+
</select>
|
38 |
+
</form>
|
39 |
+
<div id="gawd_wp_dashboard_chart_container">
|
40 |
+
<div class="gawd_opacity_div_compact">
|
41 |
+
<div class="gawd_loading_div_compact">
|
42 |
+
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
<div id="gawd_wp_dashboard_chart_wrapper"></div>
|
46 |
+
</div>
|
47 |
+
<script>
|
48 |
+
function gawd_wp_dashboard_change_account(that) {
|
49 |
+
jQuery('#web_property_name').val(jQuery(that).find(':selected').closest('optgroup').attr('label'));
|
50 |
+
jQuery('#gawd_dashboard_wp').submit();
|
51 |
+
}
|
52 |
+
|
53 |
+
jQuery(document).ready(function () {
|
54 |
+
var wp_dashboard_chart = new gawd_wp_dashboard_charts();
|
55 |
+
wp_dashboard_chart.init();
|
56 |
+
});
|
57 |
+
</script>
|
admin/pages/date.php
CHANGED
@@ -39,10 +39,8 @@
|
|
39 |
jQuery(document).ready(function(){
|
40 |
hide_same_metric(jQuery('#gawd_metric_compare_compact'));
|
41 |
hide_same_metric(jQuery('#gawd_metric_compact'));
|
42 |
-
|
43 |
-
var start_date_7 = (Date.today().add(-1).days()).add(-7).days().toString("yyyy-MM-dd")
|
44 |
-
var _end_date = (moment().subtract(1, 'day')).format("YYYY-MM-DD");
|
45 |
-
var start_date_7 = (moment().subtract(8, 'day')).format("YYYY-MM-DD");
|
46 |
var start_end_date = typeof jQuery('#gawd_start_end_date_compact').val() != 'undefined' ? jQuery('#gawd_start_end_date_compact').val() : start_date_7 + '/-/' + _end_date;
|
47 |
|
48 |
var start_end_date = start_end_date.split('/-/');
|
39 |
jQuery(document).ready(function(){
|
40 |
hide_same_metric(jQuery('#gawd_metric_compare_compact'));
|
41 |
hide_same_metric(jQuery('#gawd_metric_compact'));
|
42 |
+
var _end_date = (Date.today().add(-1).days()).toString("yyyy-MM-dd");
|
43 |
+
var start_date_7 = (Date.today().add(-1).days()).add(-7).days().toString("yyyy-MM-dd");
|
|
|
|
|
44 |
var start_end_date = typeof jQuery('#gawd_start_end_date_compact').val() != 'undefined' ? jQuery('#gawd_start_end_date_compact').val() : start_date_7 + '/-/' + _end_date;
|
45 |
|
46 |
var start_end_date = start_end_date.split('/-/');
|
admin/pages/goals.php
CHANGED
@@ -1,319 +1,312 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
}
|
12 |
-
|
13 |
-
|
14 |
-
if (!is_array($goals)) {
|
15 |
-
$goals = array();
|
16 |
-
}
|
17 |
-
?>
|
18 |
-
<div class="wd-upgrade-pro-main-wrap">
|
19 |
-
<span class="wd-text">This section allows you to add Google Analytics goals for current domain.
|
20 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://web-dorado.com/wordpress-google-analytics/quick-start/overview.html">Read more in User Guide.</a>
|
21 |
-
</span>
|
22 |
-
<div class="wd-ugrade-pro-wrap">
|
23 |
-
<a class="gawd_support_link" href="https://wordpress.org/support/plugin/wd-google-analytics" target="_blank">
|
24 |
-
<img src="<?php echo GAWD_URL; ?>/assets/i_support.png" >
|
25 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
26 |
-
</a>
|
27 |
-
<a class="gawd_update_pro_link" href="https://web-dorado.com/files/fromGoogleAnalyticsWD.php" target="_blank">
|
28 |
-
<?php _e("Upgrade to paid version", "gawd"); ?>
|
29 |
-
</a>
|
30 |
</div>
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
35 |
<h3 class="gawd_page_titles">Goal Management</h3>
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
<
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
</
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
93 |
</div>
|
94 |
-
<div class="gawd_info" style="margin-left: 15px" title="Set a duration for this goal. For example, if you select 20 minutes, each time users spend 20 minutes or more on your site, it will be counted as goal completion."></div>
|
95 |
-
<div class='clear'></div>
|
96 |
</div>
|
97 |
-
<div class="
|
98 |
-
|
99 |
-
<div class="
|
100 |
-
<select name="gawd_goal_page_comparison" class="gawd_goal_duration_comparison">
|
101 |
-
<option value="GREATER_THAN">Greater than</option>
|
102 |
-
</select>
|
103 |
-
</div>
|
104 |
-
<div class="gawd_duration">
|
105 |
-
<div class="time_wrap">
|
106 |
-
<!--<div class="time_label">Hour</div> -->
|
107 |
-
<input type="number" min='0' name="gawd_page_sessions"/>
|
108 |
-
</div>
|
109 |
-
<div class='clear'></div>
|
110 |
</div>
|
111 |
-
<div class="gawd_info" style="margin-left: 15px" title="Choose the number of pages/screens users should view to complete this goal."></div>
|
112 |
-
<div class='clear'></div>
|
113 |
</div>
|
114 |
-
<div class="
|
115 |
-
|
116 |
-
<div class="
|
117 |
-
<select name="gawd_goal_page_destination_match" class="gawd_goal_duration_comparison">
|
118 |
-
<option value="EXACT">Equals to</option>
|
119 |
-
<option value="HEAD">Begins with</option>
|
120 |
-
<option value="REGEX">Regular expression</option>
|
121 |
-
</select>
|
122 |
</div>
|
123 |
-
<div class="gawd_info" style="margin-left: 8px;" title="Set the destination of your goal. It can be equal to the specified value, as well as begin with it. You can also add a Regular Expression as destination value."></div>
|
124 |
-
<div class="gawd_destination_url">
|
125 |
-
<label for="gawd_case_sensitive" class="case_sensitive gawd_duration_label">URL</label>
|
126 |
-
<div class="time_wrap">
|
127 |
-
<div class="time_input"><input type="text" name="gawd_page_url"/></div>
|
128 |
-
</div>
|
129 |
-
<div class="gawd_info" title="Set destination URL."></div>
|
130 |
-
<div class='clear'></div>
|
131 |
-
</div>
|
132 |
-
<div class="gawd_destination_url">
|
133 |
-
<label for="gawd_case_sensitive" class="case_sensitive gawd_duration_label">URL Case sensitive</label>
|
134 |
-
<div class="time_wrap">
|
135 |
-
<div class="onoffswitch" style="margin: 3px 0 0 6px;">
|
136 |
-
<input type="checkbox" name="url_case_sensitve" class="onoffswitch-checkbox" id="gawd_case_sensitive">
|
137 |
-
<label class="onoffswitch-label" for="gawd_case_sensitive">
|
138 |
-
<span class="onoffswitch-inner"></span>
|
139 |
-
<span class="onoffswitch-switch"></span>
|
140 |
-
</label>
|
141 |
-
</div>
|
142 |
-
</div>
|
143 |
-
<div class="gawd_info" title="Enable this option to set destination URL case sensitive."></div>
|
144 |
-
</div>
|
145 |
-
|
146 |
-
<div class='clear'></div>
|
147 |
</div>
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
</div>
|
164 |
-
<
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
</
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
</div>
|
194 |
-
<div class="event_type_row">
|
195 |
-
<div class="gawd_duration_label">Value</div>
|
196 |
-
<div class="gawd_event_comparison_input" >
|
197 |
-
<select name="gawd_goal_event_match" class="gawd_goal_duration_comparison">
|
198 |
-
<option value="EXACT">Equals to</option>
|
199 |
-
<option value="GREATER_THAN">Greater than</option>
|
200 |
-
<option value="LESS_THAN">Less than</option>
|
201 |
-
</select>
|
202 |
-
</div>
|
203 |
-
<div class="gawd_event_name">
|
204 |
-
<input type="text" name="gawd_value_name"/>
|
205 |
-
<div class='clear'></div>
|
206 |
-
</div>
|
207 |
-
<div class='clear'></div>
|
208 |
-
</div>
|
209 |
-
|
210 |
-
</div>-->
|
211 |
-
<div class="gawd_buttons" id="goal_submit">
|
212 |
-
<input class="button_gawd" type="button" name="add_goal" value="Save"/>
|
213 |
</div>
|
214 |
-
|
215 |
-
|
216 |
-
<input class="goal_max_id" id="goal_max_id" name="goal_max_id" type="hidden" value="<?php echo count($goals[$profile_id]);?>"/>
|
217 |
-
<?php } ?>
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
-
|
250 |
<script>
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
|
|
|
|
|
|
|
|
267 |
} else {
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
}
|
273 |
-
});
|
274 |
-
jQuery('.button_gawd').on('click',function(){
|
275 |
-
var submit_form = true;
|
276 |
-
var gawd_goal_name = jQuery("#gawd_goal_name");
|
277 |
-
var gawd_goal_name = jQuery("#gawd_goal_name");
|
278 |
-
if(gawd_goal_name.val()=== ""){
|
279 |
-
gawd_goal_name.addClass('gawd_invalid');
|
280 |
-
submit_form = false;
|
281 |
}
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
return;
|
305 |
}
|
306 |
-
|
307 |
-
|
308 |
-
jQuery('
|
309 |
-
|
|
|
|
|
|
|
310 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
});
|
312 |
-
jQuery(
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
});
|
319 |
-
|
|
1 |
+
<?php if ($display_goals_page === false) { ?>
|
2 |
+
<div>
|
3 |
+
<h4 style="margin-top: 30px;">
|
4 |
+
You cannot configure goals for this site, because there is no property chosen for it.
|
5 |
+
<a href="<?php echo admin_url('admin.php?page=gawd_settings#gawd_tracking_tab'); ?>"
|
6 |
+
style="cursor: pointer">
|
7 |
+
Click here
|
8 |
+
</a>
|
9 |
+
to set up a property.
|
10 |
+
</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
</div>
|
12 |
+
<?php
|
13 |
+
return;
|
14 |
+
} ?>
|
15 |
+
<div class="goal_wrap">
|
16 |
+
<div>
|
17 |
<h3 class="gawd_page_titles">Goal Management</h3>
|
18 |
+
<div class="gawd_refresh_button_wrapper">
|
19 |
+
<div class="gawd_info gawd_info_goal"
|
20 |
+
title="<?php esc_attr_e('Use this button to synchronize user data on this site with Google Analytics service. For example, after adding GA Account or changing web-properties.', 'gawd'); ?>">
|
21 |
+
</div>
|
22 |
+
<div class="gawd_account_button refresh_user_info refresh_user_info_goal" onclick="gawd_refresh_user_info(false,true)">
|
23 |
+
Refresh user info
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
+
</div>
|
27 |
+
<p style="width: 80%;">
|
28 |
+
You can set and manage goals for your website tracking. Select the View that you’re going to track and configure
|
29 |
+
these options based on the type of goal you would like to set.
|
30 |
+
</p>
|
31 |
+
<form method="post" id="gawd_goal_form">
|
32 |
+
<div class="gawd_goal_row">
|
33 |
+
<span class="gawd_goal_label">Website</span>
|
34 |
+
<span class="gawd_goal_input">
|
35 |
+
<select name="gawd_goal_profile" class="gawd_goal_profile">
|
36 |
+
<?php foreach ($profiles as $profile) {
|
37 |
+
$next_goal_id = (isset($next_goals_id[$profile['id']])) ? $next_goals_id[$profile['id']] : "1";
|
38 |
+
echo '<option data-next_id="' . $next_goal_id . '" value="' . $profile['id'] . '">' . $property['name'] . ' - ' . $profile['name'] . '</option>';
|
39 |
+
} ?>
|
40 |
+
</select>
|
41 |
+
</span>
|
42 |
+
<div class="gawd_info"
|
43 |
+
title="Choose the website, to which you would like to set Google Analytics Goals. "></div>
|
44 |
+
<div class='clear'></div>
|
45 |
+
</div>
|
46 |
+
<div class="gawd_goal_row">
|
47 |
+
<span class="gawd_goal_label">Name</span>
|
48 |
+
<span class="gawd_goal_input">
|
49 |
+
<input id="gawd_goal_name" name="gawd_goal_name" class="" type="text" value="">
|
50 |
+
</span>
|
51 |
+
<div class="gawd_info" title="Provide a name for this goal"></div>
|
52 |
+
<div class='clear'></div>
|
53 |
+
</div>
|
54 |
+
<div class="gawd_goal_row">
|
55 |
+
<span class="gawd_goal_label">Type</span>
|
56 |
+
<span class="gawd_goal_input">
|
57 |
+
<select name="gawd_goal_type" class="gawd_goal_type">
|
58 |
+
<option value="URL_DESTINATION">Destination</option>
|
59 |
+
<option value="VISIT_TIME_ON_SITE">Duration</option>
|
60 |
+
<option value="VISIT_NUM_PAGES">Pages/Screens per session</option>
|
61 |
+
<!-- <option value="EVENT">Event</option> -->
|
62 |
+
</select>
|
63 |
+
</span>
|
64 |
+
<div class="gawd_info"
|
65 |
+
title="Select its type (Destination, Duration, Pages/Screens per session or Event)."></div>
|
66 |
+
<div class='clear'></div>
|
67 |
+
</div>
|
68 |
+
<div class="gawd_goal_duration_wrap" id="gawd_goal_duration_wrap">
|
69 |
+
<div class="gawd_duration_label">Duration</div>
|
70 |
+
<div class="gawd_comparison_input">
|
71 |
+
<select name="gawd_goal_duration_comparison" class="gawd_goal_duration_comparison">
|
72 |
+
<option value="GREATER_THAN">Greater than</option>
|
73 |
+
</select>
|
74 |
+
</div>
|
75 |
+
<div class="gawd_duration">
|
76 |
+
<div class="time_wrap">
|
77 |
+
<!--<div class="time_label">Hour</div> -->
|
78 |
+
<div class="time_input"><input placeholder="hour" type="number" min='0' name="gawd_visit_hour"/>
|
79 |
</div>
|
|
|
|
|
80 |
</div>
|
81 |
+
<div class="time_wrap">
|
82 |
+
<!--<div class="time_label">Minute</div> -->
|
83 |
+
<div class="time_input"><input placeholder="min." type="number" min='0' name="gawd_visit_minute"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
</div>
|
|
|
|
|
85 |
</div>
|
86 |
+
<div class="time_wrap" id="time_wrap">
|
87 |
+
<!--<div class="time_label">Second</div> -->
|
88 |
+
<div class="time_input"><input placeholder="sec." type="number" min='0' name="gawd_visit_second"/>
|
|
|
|
|
|
|
|
|
|
|
89 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
</div>
|
91 |
+
<div class='clear'></div>
|
92 |
+
</div>
|
93 |
+
<div class="gawd_info" style="margin-left: 15px"
|
94 |
+
title="Set a duration for this goal. For example, if you select 20 minutes, each time users spend 20 minutes or more on your site, it will be counted as goal completion."></div>
|
95 |
+
<div class='clear'></div>
|
96 |
+
</div>
|
97 |
+
<div class="gawd_page_sessions" id="gawd_page_sessions">
|
98 |
+
<div class="gawd_duration_label">Pages per session</div>
|
99 |
+
<div class="gawd_comparison_input">
|
100 |
+
<select name="gawd_goal_page_comparison" class="gawd_goal_duration_comparison">
|
101 |
+
<option value="GREATER_THAN">Greater than</option>
|
102 |
+
</select>
|
103 |
+
</div>
|
104 |
+
<div class="gawd_duration">
|
105 |
+
<div class="time_wrap">
|
106 |
+
<!--<div class="time_label">Hour</div> -->
|
107 |
+
<input type="number" min='0' name="gawd_page_sessions"/>
|
108 |
+
</div>
|
109 |
+
<div class='clear'></div>
|
110 |
+
</div>
|
111 |
+
<div class="gawd_info" style="margin-left: 15px"
|
112 |
+
title="Choose the number of pages/screens users should view to complete this goal."></div>
|
113 |
+
<div class='clear'></div>
|
114 |
+
</div>
|
115 |
+
<div class="gawd_page_destination" id="gawd_page_destination">
|
116 |
+
<div class="gawd_duration_label">Destination type</div>
|
117 |
+
<div class="gawd_url_comparison_input">
|
118 |
+
<select name="gawd_goal_page_destination_match" class="gawd_goal_duration_comparison">
|
119 |
+
<option value="EXACT">Equals to</option>
|
120 |
+
<option value="HEAD">Begins with</option>
|
121 |
+
<option value="REGEX">Regular expression</option>
|
122 |
+
</select>
|
123 |
+
</div>
|
124 |
+
<div class="gawd_info" style="margin-left: 8px;"
|
125 |
+
title="Set the destination of your goal. It can be equal to the specified value, as well as begin with it. You can also add a Regular Expression as destination value."></div>
|
126 |
+
<div class="gawd_destination_url">
|
127 |
+
<label for="gawd_case_sensitive" class="case_sensitive gawd_duration_label">URL</label>
|
128 |
+
<div class="time_wrap">
|
129 |
+
<div class="time_input"><input type="text" name="gawd_page_url"/></div>
|
130 |
+
</div>
|
131 |
+
<div class="gawd_info" title="Set the URL or Regular Expression of the destination."></div>
|
132 |
+
<div class='clear'></div>
|
133 |
+
</div>
|
134 |
+
<div class="gawd_destination_url">
|
135 |
+
<label for="gawd_case_sensitive" class="case_sensitive gawd_duration_label">Case-sensitive URL</label>
|
136 |
+
<div class="time_wrap">
|
137 |
+
<div class="onoffswitch" style="margin: 3px 0 0 6px;">
|
138 |
+
<input type="checkbox" name="url_case_sensitve" class="onoffswitch-checkbox"
|
139 |
+
id="gawd_case_sensitive">
|
140 |
+
<label class="onoffswitch-label" for="gawd_case_sensitive">
|
141 |
+
<span class="onoffswitch-inner"></span>
|
142 |
+
<span class="onoffswitch-switch"></span>
|
143 |
+
</label>
|
144 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
</div>
|
146 |
+
<div class="gawd_info" title="Enable this option to set destination URL to be case-sensitive."></div>
|
147 |
+
</div>
|
|
|
|
|
148 |
|
149 |
+
<div class='clear'></div>
|
150 |
+
</div>
|
151 |
+
<div class="gawd_buttons" id="goal_submit">
|
152 |
+
<input class="button_gawd" type="button" name="add_goal" value="Save"/>
|
153 |
+
</div>
|
154 |
+
<input type="hidden" name="gawd_next_goal_id" id="gawd_next_goal_id" value=""/>
|
155 |
+
</form>
|
156 |
+
<input type="hidden" id="gawd_refresh_user_info_transient"
|
157 |
+
value="<?php echo $refresh_user_info_transient; ?>"/>
|
158 |
+
<?php if (!empty($goals)) {
|
159 |
+
$counter = 0;
|
160 |
+
foreach ($goals as $profile_id => $profile_goals) { ?>
|
161 |
+
<table border="1" class="gawd_table" id="<?php echo $profile_id; ?>"
|
162 |
+
style="<?php echo(($counter != 0) ? 'display:none;' : ''); ?>">
|
163 |
+
<tr>
|
164 |
+
<th>ID</th>
|
165 |
+
<th>Name</th>
|
166 |
+
<th>Type</th>
|
167 |
+
<th>Match Type</th>
|
168 |
+
<th>Value</th>
|
169 |
+
</tr>
|
170 |
+
<?php
|
171 |
+
foreach ($profile_goals as $goal) {
|
172 |
+
$case_sensitive = $goal['caseSensitive'] ? ' - case sensitive' : '';
|
173 |
+
?>
|
174 |
+
<tr class="gawd_rows">
|
175 |
+
<td><?php echo $goal['id']; ?></td>
|
176 |
+
<td><?php echo $goal['name']; ?></td>
|
177 |
+
<td><?php echo $goal['type']; ?></td>
|
178 |
+
<td><?php echo ($goal['match_type'] !== 'GREATER_THAN') ? $goal['match_type'] : "Greater than"; ?></td>
|
179 |
+
<td><?php echo $goal['value'] . $case_sensitive; ?></td>
|
180 |
+
</tr>
|
181 |
+
<?php
|
182 |
+
}
|
183 |
+
?>
|
184 |
+
</table>
|
185 |
+
<?php $counter++;
|
186 |
+
}
|
187 |
+
} ?>
|
188 |
|
189 |
+
</div>
|
190 |
<script>
|
191 |
+
|
192 |
+
jQuery('.gawd_goal_type').on('change', function ()
|
193 |
+
{
|
194 |
+
if (jQuery('.gawd_goal_type :selected').val() == 'VISIT_TIME_ON_SITE') {
|
195 |
+
jQuery('.gawd_goal_duration_wrap').show();
|
196 |
+
jQuery('.gawd_page_sessions').hide();
|
197 |
+
jQuery('.gawd_page_destination').hide();
|
198 |
+
jQuery('.gawd_page_event').hide();
|
199 |
+
} else
|
200 |
+
if (jQuery('.gawd_goal_type :selected').val() == 'VISIT_NUM_PAGES') {
|
201 |
+
jQuery('.gawd_goal_duration_wrap').hide();
|
202 |
+
jQuery('.gawd_page_destination').hide();
|
203 |
+
jQuery('.gawd_page_event').hide();
|
204 |
+
jQuery('.gawd_page_sessions').show();
|
205 |
+
} else
|
206 |
+
if (jQuery('.gawd_goal_type :selected').val() == 'EVENT') {
|
207 |
+
jQuery('.gawd_goal_duration_wrap').hide();
|
208 |
+
jQuery('.gawd_page_sessions').hide();
|
209 |
+
jQuery('.gawd_page_destination').hide();
|
210 |
+
jQuery('.gawd_page_event').show();
|
211 |
} else {
|
212 |
+
jQuery('.gawd_goal_duration_wrap').hide();
|
213 |
+
jQuery('.gawd_page_sessions').hide();
|
214 |
+
jQuery('.gawd_page_event').hide();
|
215 |
+
jQuery('.gawd_page_destination').show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
}
|
217 |
+
});
|
218 |
+
|
219 |
+
jQuery('.button_gawd').on('click', function ()
|
220 |
+
{
|
221 |
+
var submit_form = true;
|
222 |
+
var gawd_goal_name = jQuery("#gawd_goal_name");
|
223 |
+
var gawd_goal_name = jQuery("#gawd_goal_name");
|
224 |
+
if (gawd_goal_name.val() === "") {
|
225 |
+
gawd_goal_name.addClass('gawd_invalid');
|
226 |
+
submit_form = false;
|
227 |
+
}
|
228 |
+
else
|
229 |
+
if (
|
230 |
+
(jQuery('input[name="gawd_page_sessions"]').val() === '' && jQuery('.gawd_goal_type :selected').val() == 'VISIT_NUM_PAGES') ||
|
231 |
+
(jQuery('input[name="gawd_page_url"]').val() === '' && jQuery('.gawd_goal_type :selected').val() == 'URL_DESTINATION') ||
|
232 |
+
((jQuery('input[name="gawd_visit_hour"]').val() === '' || jQuery('input[name="gawd_visit_minute"]').val() === '' || jQuery('input[name="gawd_visit_second"]').val() === '') && jQuery('.gawd_goal_type :selected').val() == 'VISIT_TIME_ON_SITE')) {
|
233 |
+
jQuery('input[name="gawd_page_url"]').addClass('gawd_invalid');
|
234 |
+
jQuery('input[name="gawd_page_sessions"]').addClass('gawd_invalid');
|
235 |
+
jQuery('input[name="gawd_visit_hour"]').addClass('gawd_invalid');
|
236 |
+
jQuery('input[name="gawd_visit_minute"]').addClass('gawd_invalid');
|
237 |
+
jQuery('input[name="gawd_visit_second"]').addClass('gawd_invalid');
|
238 |
+
submit_form = false;
|
|
|
239 |
}
|
240 |
+
else {
|
241 |
+
gawd_goal_name.removeClass('gawd_invalid');
|
242 |
+
jQuery('input[name="gawd_page_url"]').removeClass('gawd_invalid');
|
243 |
+
jQuery('input[name="gawd_page_sessions"]').removeClass('gawd_invalid');
|
244 |
+
jQuery('input[name="gawd_visit_hour"]').removeClass('gawd_invalid');
|
245 |
+
jQuery('input[name="gawd_visit_minute"]').removeClass('gawd_invalid');
|
246 |
+
jQuery('input[name="gawd_visit_second"]').removeClass('gawd_invalid');
|
247 |
}
|
248 |
+
|
249 |
+
var table_id = jQuery('.gawd_goal_profile').val();
|
250 |
+
var next_id = jQuery('.gawd_goal_profile').find('option:selected').data('next_id');
|
251 |
+
|
252 |
+
if (jQuery('#' + table_id + ' .gawd_table tr').length - 1 >= 20 || next_id === "") {
|
253 |
+
alert('You have reached the maximum number of goals.')
|
254 |
+
return;
|
255 |
+
}
|
256 |
+
|
257 |
+
jQuery('#gawd_next_goal_id').val(next_id);
|
258 |
+
if (submit_form) {
|
259 |
+
gawd_save_goals();
|
260 |
+
return false;
|
261 |
+
}
|
262 |
+
});
|
263 |
+
|
264 |
+
jQuery('.gawd_goal_profile').on('change', function ()
|
265 |
+
{
|
266 |
+
jQuery('.gawd_table').each(function ()
|
267 |
+
{
|
268 |
+
jQuery(this).hide();
|
269 |
});
|
270 |
+
var id = jQuery(this).val();
|
271 |
+
jQuery('#' + id).show();
|
272 |
+
});
|
273 |
+
|
274 |
+
function gawd_save_goals()
|
275 |
+
{
|
276 |
+
|
277 |
+
var serialized_form = jQuery("#gawd_goal_form").serializeArray();
|
278 |
+
var form_data = {};
|
279 |
+
for (var i = 0; i < serialized_form.length; i++) {
|
280 |
+
form_data[serialized_form[i].name] = serialized_form[i].value;
|
281 |
+
}
|
282 |
+
|
283 |
+
var args = gawd_custom_ajax_args();
|
284 |
+
args.type = 'POST';
|
285 |
+
args.async = true;
|
286 |
+
args.data.gawd_action = "save_goals";
|
287 |
+
args.data.gawd_data = {
|
288 |
+
'form': form_data
|
289 |
+
};
|
290 |
+
|
291 |
+
var $loader_container = jQuery("#gawd_goal_form");
|
292 |
+
args.beforeSend = function ()
|
293 |
+
{
|
294 |
+
gawd_add_loader($loader_container);
|
295 |
+
};
|
296 |
+
|
297 |
+
args.success = function (response)
|
298 |
+
{
|
299 |
+
window.location.reload();
|
300 |
+
};
|
301 |
+
|
302 |
+
args.error = function ()
|
303 |
+
{
|
304 |
+
window.location.reload();
|
305 |
+
};
|
306 |
+
|
307 |
+
jQuery.ajax(args).done(function ()
|
308 |
+
{
|
309 |
+
gawd_remove_loader($loader_container);
|
310 |
});
|
311 |
+
}
|
312 |
+
</script>
|
admin/pages/licensing.php
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="featurs_tables">
|
2 |
+
<div id="featurs_table1">
|
3 |
+
<span>WordPress 3.5+ <?php _e("ready", 'gawd'); ?></span>
|
4 |
+
<span><?php _e("Overview reports", 'gawd'); ?></span>
|
5 |
+
<span><?php _e("Analytics on WordPress dashboard", 'gawd'); ?></span>
|
6 |
+
<span><?php _e("All Analytics reports", 'gawd'); ?></span>
|
7 |
+
<span><?php _e("Metrics report comparison", 'gawd'); ?></span>
|
8 |
+
<span><?php _e("Date range report comparison", 'gawd'); ?></span>
|
9 |
+
<span><?php _e("Line, Pie and Column chart reports", 'gawd'); ?></span>
|
10 |
+
<span><?php _e("CSV and PDF export", 'gawd'); ?></span>
|
11 |
+
<span><?php _e("Scheduled email notifications", 'gawd'); ?></span>
|
12 |
+
<span><?php _e("Page and post reports", 'gawd'); ?></span>
|
13 |
+
<span><?php _e("Frontend reports", 'gawd'); ?></span>
|
14 |
+
<span><?php _e("Google Analytics tracking code and options", 'gawd'); ?></span>
|
15 |
+
<span><?php _e("Goal management", 'gawd'); ?></span>
|
16 |
+
<span><?php _e("Google Analytics Filters management", 'gawd'); ?></span>
|
17 |
+
<span><?php _e("User and Role permissions to access reports", 'gawd'); ?></span>
|
18 |
+
<span><?php _e("Custom Dimensions", 'gawd'); ?></span>
|
19 |
+
<span><?php _e("Custom Reports", 'gawd'); ?></span>
|
20 |
+
<span><?php _e("Ecommerce reports", 'gawd'); ?></span>
|
21 |
+
<span><?php _e("Google AdSense report", 'gawd'); ?></span>
|
22 |
+
<span><?php _e("Google AdWords report", 'gawd'); ?></span>
|
23 |
+
<span><?php _e("Tracking exclusions by roles and users", 'gawd'); ?></span>
|
24 |
+
<span><?php _e("Google Analytics alerts", 'gawd'); ?></span>
|
25 |
+
<span><?php _e("Pushover notifications", 'gawd'); ?></span>
|
26 |
+
</div>
|
27 |
+
<div id="featurs_table2">
|
28 |
+
<span style="padding-top: 18px;height: 39px;"><?php _e("Free", 'gawd'); ?></span>
|
29 |
+
<span class="yes"></span>
|
30 |
+
<span class="yes"></span>
|
31 |
+
<span class="yes"></span>
|
32 |
+
<span class="yes"></span>
|
33 |
+
<span class="yes"></span>
|
34 |
+
<span class="yes"></span>
|
35 |
+
<span class="yes"></span>
|
36 |
+
<span class="yes"></span>
|
37 |
+
<span class="yes"></span>
|
38 |
+
<span class="yes"></span>
|
39 |
+
<span class="yes"></span>
|
40 |
+
<span class="yes"></span>
|
41 |
+
<span class="yes"></span>
|
42 |
+
<span class="yes"></span>
|
43 |
+
<span class="yes"></span>
|
44 |
+
<span class="no"></span>
|
45 |
+
<span class="no"></span>
|
46 |
+
<span class="no"></span>
|
47 |
+
<span class="no"></span>
|
48 |
+
<span class="no"></span>
|
49 |
+
<span class="no"></span>
|
50 |
+
<span class="no"></span>
|
51 |
+
<span class="no"></span>
|
52 |
+
</div>
|
53 |
+
<div id="featurs_table3">
|
54 |
+
<span><?php _e("Pro Version", 'gawd'); ?></span>
|
55 |
+
<span class="yes"></span>
|
56 |
+
<span class="yes"></span>
|
57 |
+
<span class="yes"></span>
|
58 |
+
<span class="yes"></span>
|
59 |
+
<span class="yes"></span>
|
60 |
+
<span class="yes"></span>
|
61 |
+
<span class="yes"></span>
|
62 |
+
<span class="yes"></span>
|
63 |
+
<span class="yes"></span>
|
64 |
+
<span class="yes"></span>
|
65 |
+
<span class="yes"></span>
|
66 |
+
<span class="yes"></span>
|
67 |
+
<span class="yes"></span>
|
68 |
+
<span class="yes"></span>
|
69 |
+
<span class="yes"></span>
|
70 |
+
<span class="yes"></span>
|
71 |
+
<span class="yes"></span>
|
72 |
+
<span class="yes"></span>
|
73 |
+
<span class="yes"></span>
|
74 |
+
<span class="yes"></span>
|
75 |
+
<span class="yes"></span>
|
76 |
+
<span class="yes"></span>
|
77 |
+
<span class="yes"></span>
|
78 |
+
</div>
|
79 |
+
</div>
|
80 |
+
<div style="float: left; clear: both;">
|
81 |
+
<p><?php _e("After purchasing the commercial version follow these steps:", 'gawd'); ?></p>
|
82 |
+
<ol>
|
83 |
+
<li><?php _e("Deactivate WD Google Analytics plugin.", 'gawd'); ?></li>
|
84 |
+
<li><?php _e("Delete WD Google Analytics plugin.", 'gawd'); ?></li>
|
85 |
+
<li><?php _e("Install the downloaded commercial version of the plugin.", 'gawd'); ?></li>
|
86 |
+
</ol>
|
87 |
+
</div>
|
admin/pages/location.php
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
<div class="gawd_wrapper">
|
4 |
-
<div class="opacity_div_compact">
|
5 |
-
<div class="loading_div_compact">
|
6 |
-
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
7 |
-
</div>
|
8 |
-
</div>
|
9 |
-
<table
|
10 |
-
|
11 |
-
</div>
|
1 |
+
|
2 |
+
|
3 |
+
<div class="gawd_wrapper" id="gawd_overview_location">
|
4 |
+
<div class="opacity_div_compact">
|
5 |
+
<div class="loading_div_compact">
|
6 |
+
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
7 |
+
</div>
|
8 |
+
</div>
|
9 |
+
<div class="gawd_data_table"><table class="display cell-border" width="100%"></table></div>
|
10 |
+
</div>
|
|
admin/pages/logs.php
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
#gawd_logs_tb {
|
3 |
+
width: 97%;
|
4 |
+
/*text-align: center;*/
|
5 |
+
}
|
6 |
+
|
7 |
+
#gawd_logs_tb td {
|
8 |
+
border: 1px solid;
|
9 |
+
padding: 2px 0px 2px 7px;
|
10 |
+
}
|
11 |
+
|
12 |
+
#gawd_logs_tb td:nth-child(1) {
|
13 |
+
width: 80%;
|
14 |
+
}
|
15 |
+
|
16 |
+
#gawd_logs_tb td:nth-child(2) {
|
17 |
+
width: 15%;
|
18 |
+
}
|
19 |
+
|
20 |
+
#gawd_logs_tb td:nth-child(3) {
|
21 |
+
width: 2%;
|
22 |
+
}
|
23 |
+
</style>
|
24 |
+
<table id="gawd_logs_tb">
|
25 |
+
<thead>
|
26 |
+
<th>Fail</th>
|
27 |
+
<th>Log</th>
|
28 |
+
<th>Date</th>
|
29 |
+
</thead>
|
30 |
+
<tbody>
|
31 |
+
<?php foreach($logs as $log) { ?>
|
32 |
+
<tr>
|
33 |
+
<td><?php echo $log['log']; ?></td>
|
34 |
+
<td><?php echo $log['date']; ?></td>
|
35 |
+
<td><?php echo $log['fail'] ? '1' : "0"; ?></td>
|
36 |
+
</tr>
|
37 |
+
<?php } ?>
|
38 |
+
</tbody>
|
39 |
+
</table>
|
admin/pages/overview.php
CHANGED
@@ -11,21 +11,7 @@ $new_buttons_full = '<button data-hint="Click to navigate to Real Time report on
|
|
11 |
}
|
12 |
?>
|
13 |
|
14 |
-
<?php //screen_icon('options-general'); ?>
|
15 |
-
<div class="wd-upgrade-pro-main-wrap">
|
16 |
-
<span class="wd-text">This section lets you check the audience overview of your website.
|
17 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://web-dorado.com/wordpress-google-analytics/quick-start/overview.html">Read more in User Guide.</a>
|
18 |
-
</span>
|
19 |
-
<div class="wd-ugrade-pro-wrap">
|
20 |
-
<a class="gawd_support_link" href="https://wordpress.org/support/plugin/wd-google-analytics" target="_blank">
|
21 |
-
<img src="<?php echo GAWD_URL; ?>/assets/i_support.png" >
|
22 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
23 |
-
</a>
|
24 |
-
<a class="gawd_update_pro_link" href="https://web-dorado.com/files/fromGoogleAnalyticsWD.php" target="_blank">
|
25 |
-
<?php _e("Upgrade to paid version", "gawd"); ?>
|
26 |
-
</a>
|
27 |
-
</div>
|
28 |
-
</div>
|
29 |
<h2 style="margin-top:10px" class="gawd_page_titles"><?php echo get_admin_page_title(); ?></h2>
|
30 |
<div class="gawd_wrap">
|
31 |
<div class="gawd_row" style="float:left;width:35%; margin-bottom:0">
|
@@ -43,20 +29,22 @@ $new_buttons_full = '<button data-hint="Click to navigate to Real Time report on
|
|
43 |
<div class="gawd_profiles" id="gawd_profile_wrapper" style="float:right;width: 63%; margin:0">
|
44 |
<form method="post" id="gawd_overview">
|
45 |
<select data-hint="Click to pick the website, overview reports of which you’d like to display." style="width: 41%;" class="gawd_profile_select load_tooltip" name="gawd_id" onchange="change_account(this)">
|
46 |
-
<?php
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
$
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
$selected = '
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
60 |
<?php endforeach ?>
|
61 |
</select>
|
62 |
<div class="clear"></div>
|
@@ -75,28 +63,7 @@ $new_buttons_full = '<button data-hint="Click to navigate to Real Time report on
|
|
75 |
</div>
|
76 |
</div>
|
77 |
</div>
|
78 |
-
<div style="display: inline-block;margin-left: 25px;">
|
79 |
-
<style>
|
80 |
-
#gawd_analytics_link {
|
81 |
-
font-size: 14px;
|
82 |
-
color: rgba(255, 255, 255, 1);
|
83 |
-
background-color: #7CB5D7;
|
84 |
-
display: inline-block;
|
85 |
-
padding: 10px 23px;
|
86 |
-
border-radius: 100px;
|
87 |
-
cursor: pointer;
|
88 |
-
text-decoration: none;
|
89 |
-
opacity: 1;
|
90 |
-
line-height: 18px;
|
91 |
-
}
|
92 |
|
93 |
-
#gawd_analytics_link:hover {
|
94 |
-
opacity: 0.8;
|
95 |
-
}
|
96 |
-
</style>
|
97 |
-
<p>Reports charts are temporarily disabled in this version. Please use Google Analytics dashboard to view them.</p>
|
98 |
-
<a id="gawd_analytics_link" href="https://analytics.google.com/" target="_blank">View reports</a>
|
99 |
-
</div>
|
100 |
<script>
|
101 |
function change_account(that){
|
102 |
jQuery('#web_property_name').val(jQuery(that).find(':selected').closest('optgroup').attr('label'));
|
11 |
}
|
12 |
?>
|
13 |
|
14 |
+
<?php //screen_icon('options-general'); //todo deprecated?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
<h2 style="margin-top:10px" class="gawd_page_titles"><?php echo get_admin_page_title(); ?></h2>
|
16 |
<div class="gawd_wrap">
|
17 |
<div class="gawd_row" style="float:left;width:35%; margin-bottom:0">
|
29 |
<div class="gawd_profiles" id="gawd_profile_wrapper" style="float:right;width: 63%; margin:0">
|
30 |
<form method="post" id="gawd_overview">
|
31 |
<select data-hint="Click to pick the website, overview reports of which you’d like to display." style="width: 41%;" class="gawd_profile_select load_tooltip" name="gawd_id" onchange="change_account(this)">
|
32 |
+
<?php
|
33 |
+
$gawd_last_viewed_profile = GAWD_helper::get_last_viewed_profile();
|
34 |
+
foreach ($profiles as $property_name => $property): ?>
|
35 |
+
<optgroup label="<?php echo $property_name; ?>">
|
36 |
+
<?php foreach ($property as $profile):
|
37 |
+
$webPropertyId = $profile['webPropertyId'];
|
38 |
+
$id = $profile['id'];
|
39 |
+
$name = $profile['name'];
|
40 |
+
$selected = '';
|
41 |
+
if($id == $gawd_last_viewed_profile['profile_id']){
|
42 |
+
$selected = 'selected="selected"';
|
43 |
+
}
|
44 |
+
?>
|
45 |
+
<option value="<?php echo $id; ?>" <?php echo $selected; ?>><?php echo $property_name.' - '.$name ; ?></option>
|
46 |
+
<?php endforeach ?>
|
47 |
+
</optgroup>
|
48 |
<?php endforeach ?>
|
49 |
</select>
|
50 |
<div class="clear"></div>
|
63 |
</div>
|
64 |
</div>
|
65 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
<script>
|
68 |
function change_account(that){
|
69 |
jQuery('#web_property_name').val(jQuery(that).find(':selected').closest('optgroup').attr('label'));
|
admin/pages/settings.php
CHANGED
@@ -1,37 +1,25 @@
|
|
1 |
<?php
|
2 |
$gawd_settings = get_option('gawd_settings');
|
3 |
-
$
|
4 |
-
|
5 |
-
$profiles = $gawd_client->get_profiles();
|
6 |
-
//$accounts = $gawd_client->get_management_accounts();
|
7 |
$tabs = get_option('gawd_menu_items');
|
8 |
$current_user = get_current_user_id();
|
9 |
$saved_user_menues = get_option('gawd_menu_for_user');
|
|
|
10 |
|
11 |
-
|
12 |
-
$own_credentials = get_option("gawd_credentials");
|
13 |
-
$own_cliend_secret = $own_credentials['project_secret'];
|
14 |
-
$own_cliend_id = $own_credentials['project_id'];
|
15 |
-
echo'<form method="post" style="width: 92.9%;">
|
16 |
-
<div class="">
|
17 |
-
<input type="hidden" name="reset_data" id="reset_data"/>
|
18 |
-
<input type="button" class="button_gawd" id="gawd_reset_button" value="RESET"/>
|
19 |
-
<div class="clear"></div>
|
20 |
-
</div>
|
21 |
-
</form>';
|
22 |
-
}
|
23 |
-
$filters = $gawd_client->get_management_filters();
|
24 |
-
if (!is_array($filters)) {
|
25 |
-
$filters = array();
|
26 |
-
}
|
27 |
|
28 |
-
|
|
|
|
|
|
|
29 |
$gawd_excluded_users = isset($gawd_settings['gawd_excluded_users']) ? $gawd_settings['gawd_excluded_users'] : array();
|
30 |
$gawd_excluded_roles = isset($gawd_settings['gawd_excluded_roles']) ? $gawd_settings['gawd_excluded_roles'] : array();
|
31 |
-
$gawd_backend_roles = isset($gawd_settings['gawd_backend_roles']) ? implode(','
|
32 |
-
$gawd_frontend_roles = isset($gawd_settings['gawd_frontend_roles']) ? implode(','
|
33 |
-
$gawd_post_page_roles = isset($gawd_settings['gawd_post_page_roles']) ? implode(','
|
34 |
$gawd_file_formats = isset($gawd_settings['gawd_file_formats']) ? $gawd_settings['gawd_file_formats'] : '';
|
|
|
35 |
$enable_hover_tooltip = isset($gawd_settings['enable_hover_tooltip']) ? $gawd_settings['enable_hover_tooltip'] : 'on';
|
36 |
$exclude_events = isset($gawd_settings['exclude_events']) ? $gawd_settings['exclude_events'] : '';
|
37 |
$enable_cross_domain = isset($gawd_settings['enable_cross_domain']) ? $gawd_settings['enable_cross_domain'] : '';
|
@@ -41,23 +29,23 @@ $post_page_chart = isset($gawd_settings['post_page_chart']) ? $gawd_settings['po
|
|
41 |
$roles = new WP_Roles();
|
42 |
$roles_changed = array();
|
43 |
$_roles_changed = array();
|
44 |
-
foreach($roles->role_names as $key => $name){
|
45 |
$_roles_changed['role_names'][$name] = $key;
|
46 |
}
|
47 |
-
foreach($roles->role_names as $key => $name){
|
48 |
-
if($name == 'Administrator'){
|
49 |
$key = 'manage_options';
|
50 |
}
|
51 |
-
elseif($name == 'Editor'){
|
52 |
$key = 'moderate_comments';
|
53 |
}
|
54 |
-
elseif($name == 'Author'){
|
55 |
$key = 'publish_posts';
|
56 |
}
|
57 |
-
elseif($name == 'Contributor'){
|
58 |
$key = 'edit_posts';
|
59 |
}
|
60 |
-
else{
|
61 |
$key = 'read';
|
62 |
}
|
63 |
$roles_changed['role_names'][$name] = $key;
|
@@ -65,42 +53,22 @@ foreach($roles->role_names as $key => $name){
|
|
65 |
?>
|
66 |
|
67 |
<div id="gawd_body">
|
68 |
-
|
69 |
-
<
|
70 |
-
|
71 |
-
|
72 |
-
<div class="wd-ugrade-pro-wrap">
|
73 |
-
<a class="gawd_support_link" href="https://wordpress.org/support/plugin/wd-google-analytics" target="_blank">
|
74 |
-
<img src="<?php echo GAWD_URL; ?>/assets/i_support.png" >
|
75 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
76 |
-
</a>
|
77 |
-
<a class="gawd_update_pro_link" href="https://web-dorado.com/files/fromGoogleAnalyticsWD.php" target="_blank">
|
78 |
-
<?php _e("Upgrade to paid version", "gawd"); ?>
|
79 |
-
</a> </div>
|
80 |
</div>
|
81 |
-
<div class="
|
82 |
-
<div class="gawd_menu_coteiner gawd_settings_menu_coteiner">
|
83 |
<ul class="gawd_menu_ul">
|
84 |
-
<li class="gawd_menu_li" id="gawd_authenicate">
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
<
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
<span class="gawd_pro_flag">Paid</span>
|
94 |
-
</li>
|
95 |
-
<li class="gawd_menu_li" id="gawd_filters">
|
96 |
-
Filters
|
97 |
-
</li>
|
98 |
-
<li class="gawd_menu_li" id="gawd_emails">
|
99 |
-
Emails
|
100 |
-
</li>
|
101 |
-
<li class=" gawd_menu_li" id="gawd_advanced">
|
102 |
-
Advanced
|
103 |
-
</li>
|
104 |
</ul>
|
105 |
</div>
|
106 |
<div id="gawd_right_conteiner">
|
@@ -108,76 +76,360 @@ foreach($roles->role_names as $key => $name){
|
|
108 |
|
109 |
<form method="post" id="gawd_form">
|
110 |
<div class="gawd_authenicate">
|
111 |
-
<div id="opacity_div"
|
112 |
-
|
113 |
-
|
|
|
|
|
|
|
114 |
</div>
|
115 |
-
<div id="
|
116 |
-
<div style="
|
117 |
-
|
118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
<div class="clear"></div>
|
120 |
</div>
|
121 |
<div id="gawd_auth_code">
|
122 |
<p style="margin:0;color: #444;">Paste the authentication code from the popup to this input.</p>
|
123 |
<input id="gawd_token" type="text">
|
124 |
<div id="gawd_auth_code_submit">SUBMIT</div>
|
125 |
-
</div>
|
126 |
-
|
127 |
<div class="gawd_own_wrap">
|
128 |
-
|
129 |
-
<
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
<div class="gawd_goal_row">
|
135 |
<div class="gawd_goal_label">Client ID</div>
|
136 |
<div class="gawd_goal_input">
|
137 |
-
<input type="text"
|
|
|
|
|
138 |
</div>
|
139 |
-
<div class="gawd_info"
|
|
|
140 |
<div class='clear'></div>
|
141 |
-
</div>
|
142 |
<div class="gawd_goal_row">
|
143 |
<div class="gawd_goal_label">Client Secret</div>
|
144 |
<div class="gawd_goal_input">
|
145 |
-
<input type="text"
|
|
|
|
|
146 |
</div>
|
147 |
-
<div class="gawd_info"
|
|
|
148 |
<div class='clear'></div>
|
149 |
</div>
|
150 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
</div>
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
</select>
|
166 |
-
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
foreach ($profiles as $property_name => $property): ?>
|
169 |
-
|
170 |
<?php foreach ($property as $profile):
|
171 |
$webPropertyId = $profile['webPropertyId'];
|
172 |
-
$id = $profile['id'];
|
173 |
$name = $profile['name'];
|
174 |
$selected = '';
|
175 |
-
if($id == $gawd_user_data['
|
176 |
$selected = 'selected="selected"';
|
177 |
$filter_account_name = $property_name;
|
178 |
}
|
179 |
-
|
180 |
-
<option
|
|
|
181 |
<?php endforeach ?>
|
182 |
</optgroup>
|
183 |
<?php endforeach ?>
|
@@ -185,20 +437,21 @@ foreach($roles->role_names as $key => $name){
|
|
185 |
<input type="hidden" name='account_name' id='account_name'/>
|
186 |
<input type="hidden" name='web_property_name' id='web_property_name'/>
|
187 |
</span>
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
<
|
193 |
-
|
|
|
194 |
<input id="gawd_goal_name " class="gawd_filter_name_fild" name="gawd_filter_name" type="text">
|
195 |
</span>
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
<select name="gawd_filter_type" id="gawd_filter_type">
|
203 |
<option data-name="IP" value="GEO_IP_ADDRESS">Exclude Traffic From IP Address</option>
|
204 |
<option data-name="Country" value="GEO_COUNTRY">Exclude Traffic From Country</option>
|
@@ -206,352 +459,410 @@ foreach($roles->role_names as $key => $name){
|
|
206 |
<option data-name="City" value="GEO_CITY">Exclude Traffic From City</option>
|
207 |
</select>
|
208 |
</span>
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
<
|
214 |
-
|
|
|
215 |
<div class="time_input"><input id="gawd_filter_value" type="text" name="gawd_filter_value"/></div>
|
216 |
</span>
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
<th>Name</th>
|
226 |
<th>Type</th>
|
227 |
<th>Value</th>
|
228 |
<th>View</th>
|
229 |
<th>Action</th>
|
230 |
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
?>
|
249 |
-
<tr data-key="<?php echo $filter['id']; ?>"
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
|
|
|
|
255 |
</tr>
|
256 |
<?php
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
<?php
|
261 |
-
}
|
262 |
-
else{
|
263 |
-
echo 'There is no data for this view.';
|
264 |
-
}
|
265 |
-
?>
|
266 |
-
</div>
|
267 |
-
<div class="gawd_emails">
|
268 |
-
<?php
|
269 |
-
$gawd_emails = get_option('gawd_email');
|
270 |
-
|
271 |
-
if($gawd_emails){
|
272 |
-
?>
|
273 |
-
<table border="1" class="gawd_table">
|
274 |
-
<tr>
|
275 |
-
<th>Subject</th>
|
276 |
-
<th>Frequency</th>
|
277 |
-
<th>Start Date</th>
|
278 |
-
<th>Recipients</th>
|
279 |
-
<th>View</th>
|
280 |
-
<th>Action</th>
|
281 |
-
</tr>
|
282 |
-
<?php
|
283 |
-
foreach($gawd_emails as $key => $email){
|
284 |
-
if($email['period'] == 'gawd_weekly'){
|
285 |
-
$email['period'] = 'Weekly';
|
286 |
-
}
|
287 |
-
elseif($email['period'] == 'gawd_monthly'){
|
288 |
-
$email['period'] = 'Monthly';
|
289 |
-
}
|
290 |
-
else{
|
291 |
-
$email['period'] = 'Daily';
|
292 |
-
}
|
293 |
-
?>
|
294 |
-
<tr data-key="<?php echo $key +1; ?>" >
|
295 |
-
<td><?php echo $email['name']; ?></td>
|
296 |
-
<td><?php echo $email['period']; ?></td>
|
297 |
-
<td><?php echo $email['creation_date']; ?></td>
|
298 |
-
<td><span class="gawd_break"><?php echo implode(', ',$email['emails']); ?></span></td>
|
299 |
-
<td><span class="gawd_break"><?php echo $email['view_id']; ?></span></td>
|
300 |
-
<td><a href="" class="gawd_remove_emails" onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected item?", 'gawd')); ?>')) {gawd_remove_item('<?php echo $key +1; ?>','gawd_email_remove');return false;} else {return false;}">remove</a></td>
|
301 |
-
</tr>
|
302 |
<?php
|
303 |
}
|
|
|
|
|
|
|
304 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
</table>
|
306 |
<?php
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
</div>
|
313 |
-
<div class="gawd_advanced">
|
314 |
-
<div class="settings_row">
|
315 |
-
<div class="onoffswitch">
|
316 |
-
<input type="checkbox" name="gawd_show_in_dashboard" class="onoffswitch-checkbox" id="gawd_show_in_dashboard" <?php echo isset($gawd_settings['gawd_show_in_dashboard']) && 'on' == $gawd_settings['gawd_show_in_dashboard'] ? 'checked' : '';?>>
|
317 |
-
<label class="onoffswitch-label" for="gawd_show_in_dashboard">
|
318 |
-
<span class="onoffswitch-inner"></span>
|
319 |
-
<span class="onoffswitch-switch"></span>
|
320 |
-
</label>
|
321 |
-
</div>
|
322 |
-
<div class="gawd_info" title="Enable this option to display Google Analytics overview report on WordPress Dashboard."></div>
|
323 |
-
<div class="onoffswitch_text">
|
324 |
-
Analytics on WordPress Dashboard
|
325 |
-
</div>
|
326 |
-
<div class="clear"></div>
|
327 |
-
</div>
|
328 |
-
<div class="settings_row">
|
329 |
-
<div class="onoffswitch">
|
330 |
-
<input type="checkbox" name="enable_hover_tooltip" class="onoffswitch-checkbox" id="enable_hover_tooltip" <?php echo $enable_hover_tooltip != '' ? 'checked' : '';?>>
|
331 |
-
<label class="onoffswitch-label" for="enable_hover_tooltip">
|
332 |
-
<span class="onoffswitch-inner"></span>
|
333 |
-
<span class="onoffswitch-switch"></span>
|
334 |
-
</label>
|
335 |
-
</div>
|
336 |
-
<div class="gawd_info" title="Click to enable/disable help text for WD Google Analytics reports."></div>
|
337 |
-
<div class="onoffswitch_text">
|
338 |
-
Enable reports tooltips
|
339 |
-
</div>
|
340 |
-
<div class="clear"></div>
|
341 |
-
</div>
|
342 |
-
<div class="settings_row">
|
343 |
-
<div class="onoffswitch onoffswitch_disabled">
|
344 |
-
<input disabled type="checkbox" name="adsense_acc_linking" class="onoffswitch-checkbox" id="adsense_acc_linking" >
|
345 |
-
<label class="onoffswitch-label" for="adsense_acc_linking">
|
346 |
-
<span class="onoffswitch-inner"></span>
|
347 |
-
<span class="onoffswitch-switch"></span>
|
348 |
-
</label>
|
349 |
-
</div>
|
350 |
-
<div class="gawd_info" title="Turn this option on to get AdSense tracking reports. Make sure to link your Google AdSense to Google Analytics first (find out more in plugin User Guide)"></div>
|
351 |
-
<div class="onoffswitch_text">
|
352 |
-
Enable AdSense link tracking <a target="_blank" href="https://web-dorado.com/products/wordpress-google-analytics-plugin.html" class="gawd_pro"> ( This feature is available in Google Analytics WD Pro. )</a>
|
353 |
-
</div>
|
354 |
-
<div class="clear"></div>
|
355 |
</div>
|
356 |
-
<div class="
|
357 |
-
<div class="
|
358 |
-
<
|
359 |
-
|
360 |
-
|
361 |
-
<
|
362 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
</div>
|
364 |
-
<div class="
|
365 |
-
|
366 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
</div>
|
368 |
-
<div class="
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
</div>
|
378 |
-
<div class="
|
379 |
-
|
380 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
</div>
|
382 |
-
<div class="
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
</div>
|
392 |
-
<div class="
|
393 |
-
|
394 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
</div>
|
396 |
-
|
397 |
-
</div>
|
398 |
-
<?php
|
399 |
$cross_dom_show = $enable_cross_domain == '' ? 'style="display:none"' : '';
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
<div class="time_input">
|
405 |
<?php $gawd_settings_cross_domains = get_option("gawd_settings");
|
406 |
-
if(isset($gawd_settings_cross_domains) && isset($gawd_settings_cross_domains["cross_domains"])){
|
407 |
$gawd_settings_cross_domains = $gawd_settings_cross_domains["cross_domains"];
|
408 |
-
}
|
|
|
409 |
$gawd_settings_cross_domains = "";
|
410 |
}
|
411 |
?>
|
412 |
-
<input type="text" value="<?php echo $gawd_settings_cross_domains
|
413 |
</div>
|
414 |
</span>
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
$gawd_settings_site_speed_rate
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
<
|
|
|
|
|
|
|
430 |
</span>
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
<div class="
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
<?php
|
447 |
}
|
|
|
|
|
|
|
|
|
|
|
448 |
}
|
449 |
-
|
450 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
<div class='clear'></div>
|
452 |
</div>
|
453 |
-
<div class="
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
473 |
<div class='clear'></div>
|
474 |
</div>
|
475 |
-
<div class="
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
<div class='clear'></div>
|
496 |
</div>
|
497 |
-
<div class="
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
<div class='clear'></div>
|
518 |
</div>
|
519 |
-
|
520 |
-
<div class=
|
521 |
-
|
522 |
-
|
523 |
-
<span class="gawd_goal_label">Date format</span>
|
524 |
-
<span class="gawd_goal_input">
|
525 |
<select name="default_date_format" id="default_date_format">
|
526 |
-
<option <?php selected($default_date_format,'ymd_with_week')
|
527 |
-
<option <?php selected($default_date_format,'ymd_without_week')
|
528 |
-
|
529 |
-
<option <?php selected($default_date_format,'
|
|
|
|
|
530 |
</select>
|
531 |
</span>
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
<select name="default_date" id="default_date">
|
539 |
-
<option id='gawd_last_30days' <?php selected($default_date,'last_30days')
|
540 |
-
<option id='gawd_last_7days' <?php selected($default_date,'last_7days')
|
541 |
-
<option id='gawd_last_week' <?php selected($default_date,'last_week')
|
542 |
-
|
543 |
-
<option id='
|
544 |
-
|
545 |
-
<option id='
|
|
|
|
|
|
|
|
|
546 |
</select>
|
547 |
</span>
|
548 |
-
|
549 |
-
|
|
|
|
|
550 |
</div>
|
551 |
-
|
552 |
<div class="gawd_submit">
|
553 |
-
<input type="button"
|
554 |
-
<input type="button" style="display:none;"
|
|
|
555 |
</div>
|
556 |
<input type='hidden' name="gawd_alert_remove" id="gawd_alert_remove"/>
|
557 |
<input type='hidden' name="gawd_menu_remove" id="gawd_menu_remove"/>
|
@@ -562,184 +873,202 @@ foreach($roles->role_names as $key => $name){
|
|
562 |
<input type='hidden' name="settings_submit" id="gawd_settings_submit"/>
|
563 |
<input type='hidden' name="gawd_settings_logout" id="gawd_settings_logout_val"/>
|
564 |
<?php wp_nonce_field('gawd_save_form', 'gawd_save_form_fild'); ?>
|
565 |
-
|
566 |
<div class="gawd_permissions_popup_overlay"></div>
|
567 |
<div class="gawd_permissions_popup">
|
568 |
<div class="close_btn_cont">
|
569 |
<div class="gawd_permission_popup_btn">X</div>
|
570 |
</div>
|
571 |
<div class="gawd_permissions_popup_content">
|
572 |
-
</div>
|
573 |
-
|
574 |
<input type="button" class="button_gawd" id="add_roles" value="Add"/>
|
575 |
</div>
|
576 |
</div>
|
577 |
-
<input type='hidden' name="gawd_backend_roles" id="gawd_backend_roles"
|
578 |
-
|
579 |
-
<input type='hidden' name="
|
580 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
581 |
</form>
|
582 |
</div>
|
583 |
|
584 |
<div class="clear"></div>
|
585 |
</div>
|
586 |
-
|
587 |
<script>
|
588 |
-
jQuery('.gawd_chose_btn').on('click', function()
|
589 |
-
|
590 |
-
|
|
|
591 |
|
592 |
-
function permissions_popup_content(id)
|
593 |
-
|
594 |
var roles = <?php echo json_encode(new WP_Roles());?>;
|
595 |
-
|
596 |
-
|
597 |
-
var
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
var add_role = 'add_roles';
|
605 |
-
var permissions_array = '';
|
606 |
-
jQuery("." + popup_body).fadeIn('fast');
|
607 |
-
jQuery("." + popup_overlay).fadeIn('fast');
|
608 |
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
jQuery("." + role_value).each(function(){
|
649 |
check.push(jQuery(this).data('attribute'));
|
650 |
});
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
html += '<td><input id="' + permissions_for+inp_id + '"' + disabled +' class="gawd_perm" type="checkbox"' + checked + ' value="' + value + '"/></td></tr>';
|
662 |
-
}
|
663 |
-
html += '</table>';
|
664 |
-
jQuery('.gawd_permissions_popup_content').html(html);
|
665 |
-
jQuery('.gawd_perm').on('click',function(){
|
666 |
-
if(jQuery(this).attr('checked') == 'checked'){
|
667 |
-
jQuery(this).closest('tr').prevAll().find(".gawd_perm").attr('checked',true);
|
668 |
}
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
678 |
});
|
679 |
-
jQuery(add_role).unbind(
|
680 |
-
jQuery(add_role).on('click', function (event)
|
|
|
681 |
event.preventDefault();
|
682 |
jQuery(popup_body).fadeOut('fast');
|
683 |
jQuery(popup_overlay).fadeOut('fast');
|
684 |
-
var span ='';
|
685 |
var display_name = "";
|
686 |
var value = [];
|
687 |
-
jQuery(
|
|
|
688 |
value.push(jQuery(this).val());
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
});
|
697 |
-
|
698 |
-
jQuery('#' + permissions_array.replace('[]','')).val(value.join());
|
699 |
-
jQuery(open_popup_btn).before(span);
|
700 |
-
jQuery("." + remove_role).on('click', function () {
|
701 |
-
var find = jQuery(this).closest('.time_wrap').find("." + role_value).html();
|
702 |
-
jQuery(this).closest('div').remove();
|
703 |
-
|
704 |
-
jQuery(popup_body + " .gawd_table input[type='checkbox']:checked").each(function () {
|
705 |
-
if(jQuery(this).val() == find){
|
706 |
-
jQuery(this).removeAttr('checked');
|
707 |
-
}
|
708 |
-
});
|
709 |
-
var value = [];
|
710 |
-
jQuery("." + role_value).each(function () {
|
711 |
-
value.push(jQuery(this).attr('data-attribute'));
|
712 |
-
});
|
713 |
-
jQuery('#' + permissions_array.replace('[]','')).val(value.join());
|
714 |
-
})
|
715 |
-
});
|
716 |
|
717 |
-
|
718 |
-
|
|
|
|
|
|
|
719 |
jQuery(this).closest('div').remove();
|
720 |
|
721 |
-
|
722 |
-
|
|
|
723 |
jQuery(this).removeAttr('checked');
|
724 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
725 |
});
|
726 |
var value = [];
|
727 |
-
jQuery("." + role_value).each(function ()
|
|
|
728 |
value.push(jQuery(this).attr('data-attribute'));
|
729 |
});
|
730 |
-
jQuery('#' + permissions_array.replace('[]','')).val(value.join());
|
731 |
})
|
732 |
-
}
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
742 |
}
|
743 |
-
|
744 |
-
|
745 |
</script>
|
|
1 |
<?php
|
2 |
$gawd_settings = get_option('gawd_settings');
|
3 |
+
$profiles = GAWD_helper::get_profiles();
|
4 |
+
|
|
|
|
|
5 |
$tabs = get_option('gawd_menu_items');
|
6 |
$current_user = get_current_user_id();
|
7 |
$saved_user_menues = get_option('gawd_menu_for_user');
|
8 |
+
$refresh_user_info_transient = get_site_transient('gawd_refresh_user_info');
|
9 |
|
10 |
+
$credentials = GAWD_helper::get_project_credentials();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
+
|
13 |
+
$filters = array();//todo
|
14 |
+
|
15 |
+
$gawd_permissions = isset($gawd_settings['gawd_permissions']) ? implode(',', $gawd_settings['gawd_permissions']) : 'manage_options';
|
16 |
$gawd_excluded_users = isset($gawd_settings['gawd_excluded_users']) ? $gawd_settings['gawd_excluded_users'] : array();
|
17 |
$gawd_excluded_roles = isset($gawd_settings['gawd_excluded_roles']) ? $gawd_settings['gawd_excluded_roles'] : array();
|
18 |
+
$gawd_backend_roles = isset($gawd_settings['gawd_backend_roles']) ? implode(',', $gawd_settings['gawd_backend_roles']) : 'administrator';
|
19 |
+
$gawd_frontend_roles = isset($gawd_settings['gawd_frontend_roles']) ? implode(',', $gawd_settings['gawd_frontend_roles']) : 'administrator';
|
20 |
+
$gawd_post_page_roles = isset($gawd_settings['gawd_post_page_roles']) ? implode(',', $gawd_settings['gawd_post_page_roles']) : 'administrator';
|
21 |
$gawd_file_formats = isset($gawd_settings['gawd_file_formats']) ? $gawd_settings['gawd_file_formats'] : '';
|
22 |
+
$adsense_acc_linking = isset($gawd_settings['adsense_acc_linking']) ? $gawd_settings['adsense_acc_linking'] : '';
|
23 |
$enable_hover_tooltip = isset($gawd_settings['enable_hover_tooltip']) ? $gawd_settings['enable_hover_tooltip'] : 'on';
|
24 |
$exclude_events = isset($gawd_settings['exclude_events']) ? $gawd_settings['exclude_events'] : '';
|
25 |
$enable_cross_domain = isset($gawd_settings['enable_cross_domain']) ? $gawd_settings['enable_cross_domain'] : '';
|
29 |
$roles = new WP_Roles();
|
30 |
$roles_changed = array();
|
31 |
$_roles_changed = array();
|
32 |
+
foreach ($roles->role_names as $key => $name) {
|
33 |
$_roles_changed['role_names'][$name] = $key;
|
34 |
}
|
35 |
+
foreach ($roles->role_names as $key => $name) {
|
36 |
+
if ($name == 'Administrator') {
|
37 |
$key = 'manage_options';
|
38 |
}
|
39 |
+
elseif ($name == 'Editor') {
|
40 |
$key = 'moderate_comments';
|
41 |
}
|
42 |
+
elseif ($name == 'Author') {
|
43 |
$key = 'publish_posts';
|
44 |
}
|
45 |
+
elseif ($name == 'Contributor') {
|
46 |
$key = 'edit_posts';
|
47 |
}
|
48 |
+
else {
|
49 |
$key = 'read';
|
50 |
}
|
51 |
$roles_changed['role_names'][$name] = $key;
|
53 |
?>
|
54 |
|
55 |
<div id="gawd_body">
|
56 |
+
<div class="resp_menu">
|
57 |
+
<div class="menu_img"></div>
|
58 |
+
<div class="button_label">SETTINGS</div>
|
59 |
+
<div class="clear"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
</div>
|
61 |
+
<div class="gawd_menu_coteiner gawd_settings_menu_coteiner">
|
|
|
62 |
<ul class="gawd_menu_ul">
|
63 |
+
<li class="gawd_menu_li" id="gawd_authenicate">Authenticate</li>
|
64 |
+
<li class="gawd_menu_li" id="gawd_tracking">Tracking</li>
|
65 |
+
<?php if (GAWD_helper::gawd_has_property()) { ?>
|
66 |
+
<li class="gawd_menu_li" id="gawd_alerts">Alerts</li>
|
67 |
+
<li class="gawd_menu_li" id="gawd_pushover">Pushover</li>
|
68 |
+
<li class="gawd_menu_li" id="gawd_filters">Filters</li>
|
69 |
+
<li class="gawd_menu_li" id="gawd_emails">Emails</li>
|
70 |
+
<li class=" gawd_menu_li" id="gawd_advanced">Advanced</li>
|
71 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
</ul>
|
73 |
</div>
|
74 |
<div id="gawd_right_conteiner">
|
76 |
|
77 |
<form method="post" id="gawd_form">
|
78 |
<div class="gawd_authenicate">
|
79 |
+
<div id="opacity_div"
|
80 |
+
style="display: none; background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
|
81 |
+
<div id="loading_div"
|
82 |
+
style="display:none; text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
|
83 |
+
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>"
|
84 |
+
style="margin-top: 200px; width:50px;">
|
85 |
</div>
|
86 |
+
<div id="gawd_auth_url_wrapper">
|
87 |
+
<div id="gawd_auth_url" style="cursor: pointer; margin: -10px 0 20px 0;">
|
88 |
+
<div style="color:#444;padding:5px 5px 5px 0">Press <b>Reauthenticate</b> button to
|
89 |
+
change your Google account.
|
90 |
+
</div>
|
91 |
+
<div class="gawd_auth_button" onclick="gawd_auth_popup(800,400)">REAUTHENTICATE</div>
|
92 |
+
</div>
|
93 |
+
<div class="gawd_refresh_button_wrapper">
|
94 |
+
<div class="gawd_account_button refresh_user_info" onclick="gawd_refresh_user_info(false,true)">
|
95 |
+
Refresh user info
|
96 |
+
</div>
|
97 |
+
<div class="gawd_info"
|
98 |
+
title="<?php esc_attr_e('Use this button to synchronize user data on this site with Google Analytics service. For example, after adding GA Account or changing web-properties.', 'gawd'); ?>"></div>
|
99 |
+
</div>
|
100 |
<div class="clear"></div>
|
101 |
</div>
|
102 |
<div id="gawd_auth_code">
|
103 |
<p style="margin:0;color: #444;">Paste the authentication code from the popup to this input.</p>
|
104 |
<input id="gawd_token" type="text">
|
105 |
<div id="gawd_auth_code_submit">SUBMIT</div>
|
106 |
+
</div>
|
107 |
+
|
108 |
<div class="gawd_own_wrap">
|
109 |
+
<?php if ($credentials['default'] === false) { ?>
|
110 |
+
<span>Authenticated with own project</span>
|
111 |
+
<?php }
|
112 |
+
else { ?>
|
113 |
+
<label for="gawd_own_project">
|
114 |
+
<input type="checkbox" <?php echo $credentials['default'] === false ? 'checked disabled' : ''; ?>
|
115 |
+
name="gawd_own_project" id="gawd_own_project"/>
|
116 |
+
<!-- <span>Use your own project</span>-->
|
117 |
+
<span>Authenticated with own project</span>
|
118 |
+
<div class="gawd_info"
|
119 |
+
title="Mark as checked to use your project, which you created on console.developers.google.com"></div>
|
120 |
+
</label>
|
121 |
+
<?php } ?>
|
122 |
+
<div class="own_inputs" <?php echo $credentials['default'] === false ? '' : 'style="display:none"'; ?>>
|
123 |
<div class="gawd_goal_row">
|
124 |
<div class="gawd_goal_label">Client ID</div>
|
125 |
<div class="gawd_goal_input">
|
126 |
+
<input type="text"
|
127 |
+
value="<?php echo (isset($credentials['project_id']) && $credentials['default'] === false) ? $credentials['project_id'] : ''; ?>"
|
128 |
+
name="gawd_own_client_id"/>
|
129 |
</div>
|
130 |
+
<div class="gawd_info"
|
131 |
+
title="Paste Client ID key. For more information about getting project keys please check the plugin User Guide."></div>
|
132 |
<div class='clear'></div>
|
133 |
+
</div>
|
134 |
<div class="gawd_goal_row">
|
135 |
<div class="gawd_goal_label">Client Secret</div>
|
136 |
<div class="gawd_goal_input">
|
137 |
+
<input type="text"
|
138 |
+
value="<?php echo (isset($credentials['project_secret']) && $credentials['default'] === false) ? $credentials['project_secret'] : ''; ?>"
|
139 |
+
name="gawd_own_client_secret"/>
|
140 |
</div>
|
141 |
+
<div class="gawd_info"
|
142 |
+
title="Paste Client Secret key. For more information about getting project keys please check the User Guide."></div>
|
143 |
<div class='clear'></div>
|
144 |
</div>
|
145 |
</div>
|
146 |
+
<?php if ($credentials['default'] === false) { ?>
|
147 |
+
<a class="gawd_reset_credentials" id="gawd_reset_credentials">Stop using own project</a>
|
148 |
+
<?php } ?>
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
<div class="gawd_tracking">
|
152 |
+
<?php include_once 'tracking.php'; ?>
|
153 |
+
</div>
|
154 |
+
<?php if (GAWD_helper::gawd_has_property()) { ?>
|
155 |
+
<div class="gawd_alerts">
|
156 |
+
<div class="gawd_goal_row">
|
157 |
+
<span class="gawd_goal_label">View</span>
|
158 |
+
<span class="gawd_goal_input">
|
159 |
+
<select name="gawd_alert_view" id="gawd_alert_view">
|
160 |
+
<?php foreach ($profiles as $property_name => $property): ?>
|
161 |
+
<optgroup label="<?php echo $property_name; ?>">
|
162 |
+
<?php foreach ($property as $profile):
|
163 |
+
$webPropertyId = $profile['webPropertyId'];
|
164 |
+
$id = $profile['id'];
|
165 |
+
$name = $profile['name'];
|
166 |
+
$selected = '';
|
167 |
+
if ($id == $gawd_user_data['profile_id']) {
|
168 |
+
$selected = 'selected="selected"';
|
169 |
+
}
|
170 |
+
?>
|
171 |
+
<option
|
172 |
+
value="<?php echo $id; ?>" <?php echo $selected; ?>><?php echo $property_name . ' - ' . $name; ?></option>
|
173 |
+
<?php endforeach ?>
|
174 |
+
</optgroup>
|
175 |
+
<?php endforeach ?>
|
176 |
+
</select>
|
177 |
+
</span>
|
178 |
+
<div class="gawd_info"
|
179 |
+
title="Choose the website, to which you would like to set Google Analytics Alerts."></div>
|
180 |
+
<div class='clear'></div>
|
181 |
+
</div>
|
182 |
+
<div class="gawd_goal_row">
|
183 |
+
<span class="gawd_goal_label">Name</span>
|
184 |
+
<span class="gawd_goal_input">
|
185 |
+
<input id="gawd_goal_name" name="gawd_alert_name" class="" type="text" value="">
|
186 |
+
</span>
|
187 |
+
<div class="gawd_info" title="Provide a title for the alert notification."></div>
|
188 |
+
<div class='clear'></div>
|
189 |
+
</div>
|
190 |
+
<div class="gawd_goal_row">
|
191 |
+
<span class="gawd_goal_label">Period</span>
|
192 |
+
<span class="gawd_goal_input">
|
193 |
+
<select name="gawd_alert_period">
|
194 |
+
<option value="daily">Day</option>
|
195 |
+
<option value="gawd_weekly">Week</option>
|
196 |
+
<option value="gawd_monthly">Month</option>
|
197 |
+
</select>
|
198 |
+
</span>
|
199 |
+
<div class="gawd_info"
|
200 |
+
title="Select period (daily, weekly or monthly) for receiving alerts."></div>
|
201 |
+
<div class='clear'></div>
|
202 |
+
</div>
|
203 |
+
<div class="gawd_goal_row">
|
204 |
+
<span class="gawd_goal_label">Email</span>
|
205 |
+
<span class="gawd_goal_input">
|
206 |
+
<input type="text" id="gawd_alert_emails" name="gawd_alert_emails"/>
|
207 |
+
</span>
|
208 |
+
<div class="gawd_info"
|
209 |
+
title="Provide the email address, to which you’d like to receive alerts."></div>
|
210 |
+
<div class='clear'></div>
|
211 |
+
</div>
|
212 |
+
<div id="alert_condition"> ALERT CONDITIONS</div>
|
213 |
+
<div class="gawd_goal_row">
|
214 |
+
<span class="gawd_goal_label">When</span>
|
215 |
+
<span class="gawd_goal_input">
|
216 |
+
<select name="gawd_alert_metric" id="gawd_alert_metric" class="gawd_alert_metric">
|
217 |
+
<option value="sessions"><?php echo __('Sessions', 'gawd'); ?></option>
|
218 |
+
<option value="users"><?php echo __('Users', 'gawd'); ?></option>
|
219 |
+
<option value="bounceRate"><?php echo __('Bounce Rate', 'gawd'); ?></option>
|
220 |
+
<option value="sessionDuration"><?php echo __('Avg Session Duration', 'gawd'); ?></option>
|
221 |
+
</select>
|
222 |
+
</span>
|
223 |
+
<div class="gawd_info"
|
224 |
+
title="Pick a metric (Sessions, Users, Bounces or Session Duration) to evaluate for notification alerts."></div>
|
225 |
+
<div class='clear'></div>
|
226 |
+
</div>
|
227 |
+
<div class="gawd_goal_row">
|
228 |
+
<span class="gawd_goal_label">Condition</span>
|
229 |
+
<span class="gawd_goal_input">
|
230 |
+
<select name="gawd_alert_condition" id="gawd_alert_condition" class="gawd_alert_condition">
|
231 |
+
<option value="less"><?php echo __('Is less than', 'gawd'); ?></option>
|
232 |
+
<option value="greater"><?php echo __('Is greater than', 'gawd'); ?></option>
|
233 |
+
</select>
|
234 |
+
</span>
|
235 |
+
<div class="gawd_info"
|
236 |
+
title="Select a condition (Is less than or Is greater than) for alert emails."></div>
|
237 |
+
<div class='clear'></div>
|
238 |
+
</div>
|
239 |
+
<div class="gawd_goal_row">
|
240 |
+
<span class="gawd_goal_label">Value:</span>
|
241 |
+
<span class="gawd_goal_input">
|
242 |
+
<div class="time_input"><input type="number" min='0' value="0" name="gawd_alert_value"/></div>
|
243 |
+
</span>
|
244 |
+
<div class="gawd_info"
|
245 |
+
title="Define value for the metric, based on which notifications will be sent."></div>
|
246 |
+
<div class='clear'></div>
|
247 |
+
</div>
|
248 |
+
<?php
|
249 |
+
$alerts = get_option('gawd_alerts');
|
250 |
+
|
251 |
+
if ($alerts) {
|
252 |
+
?>
|
253 |
+
<table border="1" class="gawd_table">
|
254 |
+
<tr>
|
255 |
+
<th>Name</th>
|
256 |
+
<th>Period</th>
|
257 |
+
<th>Condition</th>
|
258 |
+
<th>View</th>
|
259 |
+
<th>Action</th>
|
260 |
+
</tr>
|
261 |
+
<?php
|
262 |
+
foreach ($alerts as $key => $alert) {
|
263 |
+
$condition = $alert['condition'] == 'less' ? ' is less then ' : ' greater than ';
|
264 |
+
?>
|
265 |
+
<tr data-key="<?php echo $key + 1; ?>">
|
266 |
+
<td><?php echo $alert['name']; ?></td>
|
267 |
+
<td><?php echo strpos($alert['period'], 'gawd') > -1 ? substr($alert['period'], 5) : $alert['period']; ?></td>
|
268 |
+
<td><?php echo $alert['metric'] . $condition . $alert['value']; ?></td>
|
269 |
+
<td><?php echo $alert['alert_view_name']; ?></td>
|
270 |
+
<td><a href="" class="gawd_remove_alert"
|
271 |
+
onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected item?", 'gawd')); ?>')) {gawd_remove_item('<?php echo $key + 1; ?>','gawd_alert_remove');return false;} else {return false;}">remove</a>
|
272 |
+
</td>
|
273 |
+
</tr>
|
274 |
+
<?php
|
275 |
+
}
|
276 |
+
?>
|
277 |
+
</table>
|
278 |
+
<?php
|
279 |
+
}
|
280 |
+
?>
|
281 |
+
<input type="hidden" name="alert_view_name" id='alert_view_name'/>
|
282 |
</div>
|
283 |
+
<div class="gawd_pushover">
|
284 |
+
<div class="gawd_goal_row">
|
285 |
+
<span class="gawd_goal_label">View</span>
|
286 |
+
<span class="gawd_goal_input">
|
287 |
+
<select name="gawd_pushover_view" id="gawd_pushover_view">
|
288 |
+
<?php foreach ($profiles as $property_name => $property): ?>
|
289 |
+
<optgroup label="<?php echo $property_name; ?>">
|
290 |
+
<?php foreach ($property as $profile):
|
291 |
+
$webPropertyId = $profile['webPropertyId'];
|
292 |
+
$id = $profile['id'];
|
293 |
+
$name = $profile['name'];
|
294 |
+
$selected = '';
|
295 |
+
if ($id == $gawd_user_data['profile_id']) {
|
296 |
+
$selected = 'selected="selected"';
|
297 |
+
}
|
298 |
+
?>
|
299 |
+
<option
|
300 |
+
value="<?php echo $id; ?>" <?php echo $selected; ?>><?php echo $property_name . ' - ' . $name; ?></option>
|
301 |
+
<?php endforeach ?>
|
302 |
+
</optgroup>
|
303 |
+
<?php endforeach ?>
|
304 |
+
</select>
|
305 |
+
</span>
|
306 |
+
<div class="gawd_info"
|
307 |
+
title="Choose the website, to which you would like to set Pushover Notifications. "></div>
|
308 |
+
<div class='clear'></div>
|
309 |
+
</div>
|
310 |
+
<div class="gawd_goal_row">
|
311 |
+
<span class="gawd_goal_label">Name</span>
|
312 |
+
<span class="gawd_goal_input">
|
313 |
+
<input id="gawd_goal_name" name="gawd_pushover_name" class="gawd_pushover_name_fild" type="text" value="">
|
314 |
+
</span>
|
315 |
+
<div class="gawd_info" title="Provide a title for Pushover alert."></div>
|
316 |
+
<div class='clear'></div>
|
317 |
+
</div>
|
318 |
+
<div class="gawd_goal_row">
|
319 |
+
<span class="gawd_goal_label">Period</span>
|
320 |
+
<span class="gawd_goal_input">
|
321 |
+
<select name="gawd_pushover_period">
|
322 |
+
<option value="daily">Day</option>
|
323 |
+
<option value="gawd_weekly">Week</option>
|
324 |
+
<option value="gawd_monthly">Month</option>
|
325 |
+
</select>
|
326 |
+
</span>
|
327 |
+
<div class="gawd_info"
|
328 |
+
title="Select period (daily, weekly or monthly) for receiving Pushover notifications."></div>
|
329 |
+
<div class='clear'></div>
|
330 |
+
</div>
|
331 |
+
<div class="gawd_goal_row">
|
332 |
+
<span class="gawd_goal_label">User Key</span>
|
333 |
+
<span class="gawd_goal_input">
|
334 |
+
<input type="text" class="gawd_pushover_user_keys_fild" name="gawd_pushover_user_keys"/>
|
335 |
+
</span>
|
336 |
+
<div class="gawd_info"
|
337 |
+
title="Provide the User Key of your Pushover account, to which you’d like to get notification alerts."></div>
|
338 |
+
<div class='clear'></div>
|
339 |
+
</div>
|
340 |
+
<div id="pushover_condition">PUSHOVER CONDITIONS</div>
|
341 |
+
<div class="gawd_goal_row">
|
342 |
+
<span class="gawd_goal_label">When</span>
|
343 |
+
<span class="gawd_goal_input">
|
344 |
+
<select name="gawd_pushover_metric" id="gawd_pushover_metric" class="gawd_pushover_metric">
|
345 |
+
<option value="sessions"><?php echo __('Sessions', 'gawd'); ?></option>
|
346 |
+
<option value="users"><?php echo __('Users', 'gawd'); ?></option>
|
347 |
+
<option value="bounceRate"><?php echo __('Bounce Rate', 'gawd'); ?></option>
|
348 |
+
<option value="sessionDuration"><?php echo __('Avg Session Duration', 'gawd'); ?></option>
|
349 |
+
</select>
|
350 |
+
</span>
|
351 |
+
<div class="gawd_info"
|
352 |
+
title="Pick a metric (Sessions, Users, Bounces or Session Duration) to evaluate for Pushover notifications."></div>
|
353 |
+
<div class='clear'></div>
|
354 |
+
</div>
|
355 |
+
<div class="gawd_goal_row">
|
356 |
+
<span class="gawd_goal_label">Condition</span>
|
357 |
+
<span class="gawd_goal_input">
|
358 |
+
<select name="gawd_pushover_condition" id="gawd_pushover_condition" class="gawd_pushover_condition">
|
359 |
+
<option value="less"><?php echo __('Is less than', 'gawd'); ?></option>
|
360 |
+
<option value="greater"><?php echo __('Is greater than', 'gawd'); ?></option>
|
361 |
</select>
|
362 |
+
</span>
|
363 |
+
<div class="gawd_info"
|
364 |
+
title="Select a condition (Is less than or Is greater than) for the notifications."></div>
|
365 |
+
<div class='clear'></div>
|
366 |
+
</div>
|
367 |
+
<div class="gawd_goal_row">
|
368 |
+
<span class="gawd_goal_label">Value:</span>
|
369 |
+
<span class="gawd_goal_input">
|
370 |
+
<div class="time_input"><input type="number" min='0' value="0" name="gawd_pushover_value"/></div>
|
371 |
+
</span>
|
372 |
+
<div class="gawd_info"
|
373 |
+
title="Define value for the metric, based on which notifications will be sent."></div>
|
374 |
+
<div class='clear'></div>
|
375 |
+
</div>
|
376 |
+
<?php
|
377 |
+
$pushovers = get_option('gawd_pushovers');
|
378 |
+
|
379 |
+
if ($pushovers) {
|
380 |
+
?>
|
381 |
+
<table border="1" class="gawd_table">
|
382 |
+
<tr>
|
383 |
+
<th>Name</th>
|
384 |
+
<th>Period</th>
|
385 |
+
<th>Condition</th>
|
386 |
+
<th>View</th>
|
387 |
+
<th>Action</th>
|
388 |
+
</tr>
|
389 |
+
<?php
|
390 |
+
foreach ($pushovers as $key => $pushover) {
|
391 |
+
$condition = $pushover['condition'] == 'less' ? ' is less then ' : ' greater than ';
|
392 |
+
?>
|
393 |
+
<tr data-key="<?php echo $key + 1; ?>">
|
394 |
+
<td><?php echo $pushover['name']; ?></td>
|
395 |
+
<td><?php echo strpos($pushover['period'], 'gawd') > -1 ? substr($pushover['period'], 5) : $pushover['period']; ?></td>
|
396 |
+
<td><?php echo $pushover['metric'] . $condition . $pushover['value']; ?></td>
|
397 |
+
<td><?php echo $pushover['pushover_view_name']; ?></td>
|
398 |
+
<td><a href="" class="gawd_pushover_remove"
|
399 |
+
onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected item?", 'gawd')); ?>')) {gawd_remove_item('<?php echo $key + 1; ?>','gawd_pushover_remove');return false;} else {return false;}">remove</a>
|
400 |
+
</td>
|
401 |
+
</tr>
|
402 |
+
<?php
|
403 |
+
}
|
404 |
+
?>
|
405 |
+
</table>
|
406 |
+
<?php
|
407 |
+
}
|
408 |
+
?>
|
409 |
+
<input type="hidden" name="pushover_view_name" id='pushover_view_name'/>
|
410 |
+
</div>
|
411 |
+
<div class="gawd_filters">
|
412 |
+
<div class="gawd_goal_row">
|
413 |
+
<span class="gawd_goal_label">View</span>
|
414 |
+
<span class="gawd_goal_input">
|
415 |
+
|
416 |
+
<select title="Click to pick the website, filters of which you’d like to display." name="gawd_profile_id"
|
417 |
+
onchange="change_filter_account(this)">
|
418 |
+
<?php
|
419 |
foreach ($profiles as $property_name => $property): ?>
|
420 |
+
<optgroup label="<?php echo $property_name; ?>">
|
421 |
<?php foreach ($property as $profile):
|
422 |
$webPropertyId = $profile['webPropertyId'];
|
423 |
+
$id = $profile['id'];
|
424 |
$name = $profile['name'];
|
425 |
$selected = '';
|
426 |
+
if ($id == $gawd_user_data['profile_id']) {
|
427 |
$selected = 'selected="selected"';
|
428 |
$filter_account_name = $property_name;
|
429 |
}
|
430 |
+
?>
|
431 |
+
<option
|
432 |
+
value="<?php echo $id; ?>" <?php echo $selected; ?>><?php echo $property_name . ' - ' . $name; ?></option>
|
433 |
<?php endforeach ?>
|
434 |
</optgroup>
|
435 |
<?php endforeach ?>
|
437 |
<input type="hidden" name='account_name' id='account_name'/>
|
438 |
<input type="hidden" name='web_property_name' id='web_property_name'/>
|
439 |
</span>
|
440 |
+
<div class="gawd_info"
|
441 |
+
title="Select the website, for which you would like to configure this filter."></div>
|
442 |
+
<div class='clear'></div>
|
443 |
+
</div>
|
444 |
+
<div class="gawd_goal_row">
|
445 |
+
<span class="gawd_goal_label">Name</span>
|
446 |
+
<span class="gawd_goal_input">
|
447 |
<input id="gawd_goal_name " class="gawd_filter_name_fild" name="gawd_filter_name" type="text">
|
448 |
</span>
|
449 |
+
<div class="gawd_info" title="Write a title for the filter."></div>
|
450 |
+
<div class='clear'></div>
|
451 |
+
</div>
|
452 |
+
<div class="gawd_goal_row">
|
453 |
+
<span class="gawd_goal_label">Type</span>
|
454 |
+
<span class="gawd_goal_input">
|
455 |
<select name="gawd_filter_type" id="gawd_filter_type">
|
456 |
<option data-name="IP" value="GEO_IP_ADDRESS">Exclude Traffic From IP Address</option>
|
457 |
<option data-name="Country" value="GEO_COUNTRY">Exclude Traffic From Country</option>
|
459 |
<option data-name="City" value="GEO_CITY">Exclude Traffic From City</option>
|
460 |
</select>
|
461 |
</span>
|
462 |
+
<div class="gawd_info"
|
463 |
+
title="Choose a type for tracking exclusions: IP address, Country, Region or City."></div>
|
464 |
+
<div class='clear'></div>
|
465 |
+
</div>
|
466 |
+
<div class="gawd_goal_row" id="gawd_filter_value_cont">
|
467 |
+
<span class="gawd_goal_label" id="gawd_filter_name">IP</span>
|
468 |
+
<span class="gawd_goal_input">
|
469 |
<div class="time_input"><input id="gawd_filter_value" type="text" name="gawd_filter_value"/></div>
|
470 |
</span>
|
471 |
+
<div class="gawd_info" title="Enter the IP address to filter from Google Analytics tracking."></div>
|
472 |
+
<div class='clear'></div>
|
473 |
+
</div>
|
474 |
+
<?php
|
475 |
+
if (!empty($filters)) {
|
476 |
+
?>
|
477 |
+
<table border="1" class="gawd_table">
|
478 |
+
<tr>
|
479 |
<th>Name</th>
|
480 |
<th>Type</th>
|
481 |
<th>Value</th>
|
482 |
<th>View</th>
|
483 |
<th>Action</th>
|
484 |
|
485 |
+
</tr>
|
486 |
+
<?php
|
487 |
+
foreach ($filters as $filter) {
|
488 |
+
$filter_type = 'Not Supported';
|
489 |
+
$filter_value = $filter['value'] != "" ? $filter['value'] : 'Not Suported';
|
490 |
+
if ($filter['type'] == "GEO_COUNTRY") {
|
491 |
+
$filter_type = 'Exclude Traffic From Country';
|
492 |
+
}
|
493 |
+
elseif ($filter['type'] == "GEO_REGION") {
|
494 |
+
$filter_type = 'Exclude Traffic From Region';
|
495 |
+
}
|
496 |
+
elseif ($filter['type'] == "GEO_CITY") {
|
497 |
+
$filter_type = 'Exclude Traffic From City';
|
498 |
+
}
|
499 |
+
elseif ($filter['type'] == "GEO_IP_ADDRESS") {
|
500 |
+
$filter_type = 'Exclude Traffic From IP Address';
|
501 |
+
}
|
502 |
?>
|
503 |
+
<tr data-key="<?php echo $filter['id']; ?>">
|
504 |
+
<td><?php echo $filter['name']; ?></td>
|
505 |
+
<td><?php echo $filter_type; ?></td>
|
506 |
+
<td><?php echo $filter_value; ?></td>
|
507 |
+
<td><?php echo $filter['view']; ?></td>
|
508 |
+
<td><a href="" class="gawd_filter_remove"
|
509 |
+
onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected item?", 'gawd')); ?>')) {gawd_remove_item('<?php echo $filter['id']; ?>','gawd_filter_remove');return false;} else {return false;}">remove</a>
|
510 |
+
</td>
|
511 |
</tr>
|
512 |
<?php
|
513 |
+
}
|
514 |
+
?>
|
515 |
+
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
516 |
<?php
|
517 |
}
|
518 |
+
else {
|
519 |
+
echo 'There is no data for this view.';
|
520 |
+
}
|
521 |
?>
|
522 |
+
</div>
|
523 |
+
<div class="gawd_emails">
|
524 |
+
<?php
|
525 |
+
$gawd_emails = get_option('gawd_email');
|
526 |
+
|
527 |
+
if ($gawd_emails) {
|
528 |
+
?>
|
529 |
+
<table border="1" class="gawd_table">
|
530 |
+
<tr>
|
531 |
+
<th>Subject</th>
|
532 |
+
<th>Frequency</th>
|
533 |
+
<th>Start Date</th>
|
534 |
+
<th>Recipients</th>
|
535 |
+
<th>View</th>
|
536 |
+
<th>Action</th>
|
537 |
+
</tr>
|
538 |
+
<?php
|
539 |
+
foreach ($gawd_emails as $key => $email) {
|
540 |
+
if ($email['period'] == 'gawd_weekly') {
|
541 |
+
$email['period'] = 'Weekly';
|
542 |
+
}
|
543 |
+
elseif ($email['period'] == 'gawd_monthly') {
|
544 |
+
$email['period'] = 'Monthly';
|
545 |
+
}
|
546 |
+
else {
|
547 |
+
$email['period'] = 'Daily';
|
548 |
+
}
|
549 |
+
?>
|
550 |
+
<tr data-key="<?php echo $key + 1; ?>">
|
551 |
+
<td><?php echo $email['name']; ?></td>
|
552 |
+
<td><?php echo $email['period']; ?></td>
|
553 |
+
<td><?php echo $email['creation_date']; ?></td>
|
554 |
+
<td><span class="gawd_break"><?php echo implode(', ', $email['emails']); ?></span></td>
|
555 |
+
<td><span class="gawd_break"><?php echo $email['view_id']; ?></span></td>
|
556 |
+
<td><a href="" class="gawd_remove_emails"
|
557 |
+
onclick="if (confirm('<?php echo addslashes(__("Do you want to delete selected item?", 'gawd')); ?>')) {gawd_remove_item('<?php echo $key + 1; ?>','gawd_email_remove');return false;} else {return false;}">remove</a>
|
558 |
+
</td>
|
559 |
+
</tr>
|
560 |
+
<?php
|
561 |
+
}
|
562 |
+
?>
|
563 |
</table>
|
564 |
<?php
|
565 |
+
}
|
566 |
+
else {
|
567 |
+
echo '<a href="' . admin_url() . 'admin.php?page=gawd_reports">You can setup sending e-mail to recipients for any report.</a>';
|
568 |
+
}
|
569 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
570 |
</div>
|
571 |
+
<div class="gawd_advanced">
|
572 |
+
<div class="settings_row">
|
573 |
+
<div class="onoffswitch">
|
574 |
+
<input type="checkbox" name="gawd_show_in_dashboard" class="onoffswitch-checkbox"
|
575 |
+
id="gawd_show_in_dashboard" <?php echo isset($gawd_settings['gawd_show_in_dashboard']) && 'on' == $gawd_settings['gawd_show_in_dashboard'] ? 'checked' : ''; ?>>
|
576 |
+
<label class="onoffswitch-label" for="gawd_show_in_dashboard">
|
577 |
+
<span class="onoffswitch-inner"></span>
|
578 |
+
<span class="onoffswitch-switch"></span>
|
579 |
+
</label>
|
580 |
+
</div>
|
581 |
+
<div class="gawd_info"
|
582 |
+
title="Enable this option to display Google Analytics overview report on WordPress Dashboard."></div>
|
583 |
+
<div class="onoffswitch_text">
|
584 |
+
Analytics on WordPress Dashboard
|
585 |
+
</div>
|
586 |
+
<div class="clear"></div>
|
587 |
</div>
|
588 |
+
<div class="settings_row">
|
589 |
+
<div class="onoffswitch">
|
590 |
+
<input type="checkbox" name="enable_hover_tooltip" class="onoffswitch-checkbox"
|
591 |
+
id="enable_hover_tooltip" <?php echo $enable_hover_tooltip != '' ? 'checked' : ''; ?>>
|
592 |
+
<label class="onoffswitch-label" for="enable_hover_tooltip">
|
593 |
+
<span class="onoffswitch-inner"></span>
|
594 |
+
<span class="onoffswitch-switch"></span>
|
595 |
+
</label>
|
596 |
+
</div>
|
597 |
+
<div class="gawd_info"
|
598 |
+
title="Click to enable/disable help text for WD Google Analytics reports."></div>
|
599 |
+
<div class="onoffswitch_text">
|
600 |
+
Enable reports tooltips
|
601 |
+
</div>
|
602 |
+
<div class="clear"></div>
|
603 |
</div>
|
604 |
+
<div class="settings_row">
|
605 |
+
<div class="onoffswitch onoffswitch_disabled">
|
606 |
+
<input disabled type="checkbox" name="adsense_acc_linking" class="onoffswitch-checkbox"
|
607 |
+
id="adsense_acc_linking" <?php echo $adsense_acc_linking != '' ? 'checked' : ''; ?>>
|
608 |
+
<label class="onoffswitch-label" for="adsense_acc_linking">
|
609 |
+
<span class="onoffswitch-inner"></span>
|
610 |
+
<span class="onoffswitch-switch"></span>
|
611 |
+
</label>
|
612 |
+
</div>
|
613 |
+
<div class="gawd_info"
|
614 |
+
title="Turn this option on to get AdSense tracking reports. Make sure to link your Google AdSense to Google Analytics first (find out more in User Guide)"></div>
|
615 |
+
<div class="onoffswitch_text">
|
616 |
+
Enable AdSense link tracking
|
617 |
+
<a target="_blank" href="https://web-dorado.com/products/wordpress-google-analytics-plugin.html" class="gawd_pro"> ( This feature is available in Google Analytics WD Pro. )</a>
|
618 |
+
</div>
|
619 |
+
<div class="clear"></div>
|
620 |
</div>
|
621 |
+
<div class="settings_row">
|
622 |
+
<div class="onoffswitch">
|
623 |
+
<input type="checkbox" name="post_page_chart" class="onoffswitch-checkbox"
|
624 |
+
id="post_page_chart" <?php echo $post_page_chart != '' ? 'checked' : ''; ?>>
|
625 |
+
<label class="onoffswitch-label" for="post_page_chart">
|
626 |
+
<span class="onoffswitch-inner"></span>
|
627 |
+
<span class="onoffswitch-switch"></span>
|
628 |
+
</label>
|
629 |
+
</div>
|
630 |
+
<div class="gawd_info"
|
631 |
+
title="Enable this option to display individual page and post reports on frontend and backend."></div>
|
632 |
+
<div class="onoffswitch_text">
|
633 |
+
Enable reports on posts/pages (frontend and backend)
|
634 |
+
</div>
|
635 |
+
<div class="clear"></div>
|
636 |
</div>
|
637 |
+
<div class="settings_row">
|
638 |
+
<div class="onoffswitch">
|
639 |
+
<input type="checkbox" name="exclude_events" class="onoffswitch-checkbox"
|
640 |
+
id="exclude_events" <?php echo $exclude_events != '' ? 'checked' : ''; ?>>
|
641 |
+
<label class="onoffswitch-label" for="exclude_events">
|
642 |
+
<span class="onoffswitch-inner"></span>
|
643 |
+
<span class="onoffswitch-switch"></span>
|
644 |
+
</label>
|
645 |
+
</div>
|
646 |
+
<div class="gawd_info"
|
647 |
+
title="For example, watching a video is a non-interactive event, whereas submitting a form is interactive. Enable this option to filter non-interactive events while calculating bounce-rate."></div>
|
648 |
+
<div class="onoffswitch_text">
|
649 |
+
Exclude non-interactive events from bounce-rate calculation
|
650 |
+
</div>
|
651 |
+
<div class="clear"></div>
|
652 |
</div>
|
653 |
+
<div class="settings_row">
|
654 |
+
<div class="onoffswitch">
|
655 |
+
<input type="checkbox" name="enable_cross_domain" class="onoffswitch-checkbox"
|
656 |
+
id="enable_cross_domain" <?php echo $enable_cross_domain != '' ? 'checked' : ''; ?>>
|
657 |
+
<label class="onoffswitch-label" for="enable_cross_domain">
|
658 |
+
<span class="onoffswitch-inner"></span>
|
659 |
+
<span class="onoffswitch-switch"></span>
|
660 |
+
</label>
|
661 |
+
</div>
|
662 |
+
<div class="gawd_info"
|
663 |
+
title="Enable Cross domain tracking to let Google Analytics see similar activities on two related websites as single session."></div>
|
664 |
+
<div class="onoffswitch_text">
|
665 |
+
Enable Cross Domain Tracking
|
666 |
+
</div>
|
667 |
+
<div class="clear"></div>
|
668 |
</div>
|
669 |
+
<?php
|
|
|
|
|
670 |
$cross_dom_show = $enable_cross_domain == '' ? 'style="display:none"' : '';
|
671 |
+
?>
|
672 |
+
<div id="cross_domains" class="gawd_goal_row" <?php echo $cross_dom_show; ?>>
|
673 |
+
<span class="gawd_goal_label">Cross Domains</span>
|
674 |
+
<span class="gawd_goal_input">
|
675 |
<div class="time_input">
|
676 |
<?php $gawd_settings_cross_domains = get_option("gawd_settings");
|
677 |
+
if (isset($gawd_settings_cross_domains) && isset($gawd_settings_cross_domains["cross_domains"])) {
|
678 |
$gawd_settings_cross_domains = $gawd_settings_cross_domains["cross_domains"];
|
679 |
+
}
|
680 |
+
else {
|
681 |
$gawd_settings_cross_domains = "";
|
682 |
}
|
683 |
?>
|
684 |
+
<input type="text" value="<?php echo $gawd_settings_cross_domains; ?>" name="cross_domains">
|
685 |
</div>
|
686 |
</span>
|
687 |
+
<div class="gawd_info"
|
688 |
+
title="Provide cross domain links separated by commas. The links should have the following format: http://example.com"></div>
|
689 |
+
<div class="clear"></div>
|
690 |
+
</div>
|
691 |
+
|
692 |
+
<div class="gawd_goal_row">
|
693 |
+
<?php $gawd_settings_site_speed_rate = get_option("gawd_settings");
|
694 |
+
if (isset($gawd_settings_site_speed_rate) && isset($gawd_settings_site_speed_rate["site_speed_rate"])) {
|
695 |
+
$gawd_settings_site_speed_rate = intval($gawd_settings_site_speed_rate["site_speed_rate"]);
|
696 |
+
}
|
697 |
+
else {
|
698 |
+
$gawd_settings_site_speed_rate = 1;
|
699 |
+
}
|
700 |
+
?>
|
701 |
+
<span class="gawd_goal_label">Site Speed SR (%)</span>
|
702 |
+
<span class="gawd_goal_input">
|
703 |
+
<div class="time_input"><input value="<?php echo $gawd_settings_site_speed_rate; ?>" type="number" min="1"
|
704 |
+
name="site_speed_rate"></div>
|
705 |
</span>
|
706 |
+
<div class="gawd_info"
|
707 |
+
title="Define the percentage of users, which activity should be evaluated for Site Speed report."></div>
|
708 |
+
<div class="clear"></div>
|
709 |
+
</div>
|
710 |
+
<div class="gawd_goal_row">
|
711 |
+
<div class="gawd_goal_label">Plugin settings permissions</div>
|
712 |
+
<div class="checkbox_wrap">
|
713 |
+
<div class="time_wrap gawd_permissions"><span data-attribute="manage_options"
|
714 |
+
class="gawd_permission">Administrator</span>
|
715 |
+
</div>
|
716 |
+
<?php
|
717 |
+
if ($gawd_permissions != '') {
|
718 |
+
foreach (array_intersect($_roles_changed['role_names'], explode(',', $gawd_permissions)) as $key => $_roles) {
|
719 |
+
if ($key == 'Administrator') {
|
720 |
+
continue;
|
|
|
721 |
}
|
722 |
+
?>
|
723 |
+
<div class="time_wrap gawd_permissions"><span data-attribute="<?php echo $_roles; ?>"
|
724 |
+
class="gawd_permission"><?php echo $key; ?></span><span
|
725 |
+
class="remove_gawd_permission gawd_remove">X</span></div>
|
726 |
+
<?php
|
727 |
}
|
728 |
+
}
|
729 |
+
?>
|
730 |
+
<input type="button" id="open_gawd_permissions" class="gawd_chose_btn button_gawd"
|
731 |
+
value="Choose"/>
|
732 |
+
<div class='clear'></div>
|
733 |
+
</div>
|
734 |
+
<div class="gawd_info"
|
735 |
+
title="Select user roles that have an access to change settings of the plugin. Only Administrator users can view it by default."></div>
|
736 |
<div class='clear'></div>
|
737 |
</div>
|
738 |
+
<div class="gawd_goal_row">
|
739 |
+
<div class="gawd_goal_label">Reports permissions</div>
|
740 |
+
<div class="checkbox_wrap">
|
741 |
+
<div class="time_wrap dashboard_report_permissions"><span data-attribute="administrator"
|
742 |
+
class="dashboard_report_permission">Administrator</span>
|
743 |
+
</div>
|
744 |
+
<?php
|
745 |
+
if ($gawd_backend_roles != '') {
|
746 |
+
foreach (array_intersect($_roles_changed['role_names'], explode(',', $gawd_backend_roles)) as $key => $roles) {
|
747 |
+
if ($roles == 'administrator') {
|
748 |
+
continue;
|
749 |
+
}
|
750 |
+
?>
|
751 |
+
<div class="time_wrap dashboard_report_permissions"><span
|
752 |
+
data-attribute="<?php echo $roles; ?>"
|
753 |
+
class="dashboard_report_permission"><?php echo $key; ?></span><span
|
754 |
+
class="remove_dashboard_report_permission gawd_remove">X</span></div>
|
755 |
+
<?php
|
756 |
+
}
|
757 |
+
}
|
758 |
+
?>
|
759 |
+
<input type="button" id="open_dashboard_report_permissions" class="gawd_chose_btn button_gawd"
|
760 |
+
value="Choose"/>
|
761 |
+
<div class='clear'></div>
|
762 |
+
</div>
|
763 |
+
<div class="gawd_info"
|
764 |
+
title="Select user roles, that have an access to view analytics reports in admin area."></div>
|
765 |
<div class='clear'></div>
|
766 |
</div>
|
767 |
+
<div class="gawd_goal_row">
|
768 |
+
<div class="gawd_goal_label">Post/Page report permissions</div>
|
769 |
+
<div class="checkbox_wrap">
|
770 |
+
<div class="time_wrap gawd_post_page_roles"><span data-attribute="administrator"
|
771 |
+
class="gawd_post_page_role">Administrator</span>
|
772 |
+
</div>
|
773 |
+
<?php
|
774 |
+
if ($gawd_post_page_roles != '') {
|
775 |
+
foreach (array_intersect($_roles_changed['role_names'], explode(',', $gawd_post_page_roles)) as $key => $roles) {
|
776 |
+
if ($roles == 'administrator') {
|
777 |
+
continue;
|
778 |
+
}
|
779 |
+
?>
|
780 |
+
<div class="time_wrap gawd_post_page_roles"><span data-attribute="<?php echo $roles; ?>"
|
781 |
+
class="gawd_post_page_role"><?php echo $key; ?></span><span
|
782 |
+
class="remove_post_page_role gawd_remove">X</span></div>
|
783 |
+
<?php
|
784 |
+
}
|
785 |
+
}
|
786 |
+
?>
|
787 |
+
<input type="button" id="post_page_report_permissions" class="gawd_chose_btn button_gawd"
|
788 |
+
value="Choose"/>
|
789 |
+
<div class='clear'></div>
|
790 |
+
</div>
|
791 |
+
<div class="gawd_info"
|
792 |
+
title="Select user roles, which will have access to view reports of posts and pages."></div>
|
793 |
<div class='clear'></div>
|
794 |
</div>
|
795 |
+
<div class="gawd_goal_row">
|
796 |
+
<div class="gawd_goal_label">Frontend report permissions</div>
|
797 |
+
<div class="checkbox_wrap">
|
798 |
+
<div class="time_wrap frontend_report_roles"><span data-attribute="administrator"
|
799 |
+
class="frontend_report_role">Administrator</span>
|
800 |
+
</div>
|
801 |
+
<?php
|
802 |
+
if ($gawd_frontend_roles != '') {
|
803 |
+
foreach (array_intersect($_roles_changed['role_names'], explode(',', $gawd_frontend_roles)) as $key => $roles) {
|
804 |
+
if ($roles == 'administrator') {
|
805 |
+
continue;
|
806 |
+
}
|
807 |
+
?>
|
808 |
+
<div class="time_wrap frontend_report_roles"><span data-attribute="<?php echo $roles; ?>"
|
809 |
+
class="frontend_report_role"><?php echo $key; ?></span><span
|
810 |
+
class="remove_frontend_report_role gawd_remove">X</span></div>
|
811 |
+
<?php
|
812 |
+
}
|
813 |
+
}
|
814 |
+
?>
|
815 |
+
<input type="button" id="open_frontend_report_permissions" class="gawd_chose_btn button_gawd"
|
816 |
+
value="Choose"/>
|
817 |
+
<div class='clear'></div>
|
818 |
+
</div>
|
819 |
+
<div class="gawd_info"
|
820 |
+
title="Select user roles, which will have access to view reports from frontend of your website."></div>
|
821 |
<div class='clear'></div>
|
822 |
</div>
|
823 |
+
<?php /*todo remove default_date_format*/ ?>
|
824 |
+
<div class="gawd_goal_row" style="display: none;">
|
825 |
+
<span class="gawd_goal_label">Date format</span>
|
826 |
+
<span class="gawd_goal_input">
|
|
|
|
|
827 |
<select name="default_date_format" id="default_date_format">
|
828 |
+
<option <?php selected($default_date_format, 'ymd_with_week'); ?> value="ymd_with_week">l, Y-m-d</option>
|
829 |
+
<option <?php selected($default_date_format, 'ymd_without_week'); ?>
|
830 |
+
value="ymd_without_week">Y-m-d</option>
|
831 |
+
<option <?php selected($default_date_format, 'month_name_with_week'); ?> value="month_name_with_week">l, F d, Y</option>
|
832 |
+
<option <?php selected($default_date_format, 'month_name_without_week'); ?>
|
833 |
+
value="month_name_without_week">F d, Y</option>
|
834 |
</select>
|
835 |
</span>
|
836 |
+
<div class="gawd_info" title="Choose the date format"></div>
|
837 |
+
<div class='clear'></div>
|
838 |
+
</div>
|
839 |
+
<div class="gawd_goal_row">
|
840 |
+
<span class="gawd_goal_label">Default date range</span>
|
841 |
+
<span class="gawd_goal_input">
|
842 |
<select name="default_date" id="default_date">
|
843 |
+
<option id='gawd_last_30days' <?php selected($default_date, 'last_30days'); ?> value="last_30days">Last 30 Days</option>
|
844 |
+
<option id='gawd_last_7days' <?php selected($default_date, 'last_7days'); ?> value="last_7days">Last 7 Days</option>
|
845 |
+
<option id='gawd_last_week' <?php selected($default_date, 'last_week'); ?>
|
846 |
+
value="last_week">Last Week</option>
|
847 |
+
<option id='gawd_this_month' <?php selected($default_date, 'this_month'); ?>
|
848 |
+
value="this_month">This Month</option>
|
849 |
+
<option id='gawd_last_month' <?php selected($default_date, 'last_month'); ?>
|
850 |
+
value="last_month">Last Month</option>
|
851 |
+
<option id='gawd_today' <?php selected($default_date, 'today'); ?> value="today">Today</option>
|
852 |
+
<option id='gawd_yesterday' <?php selected($default_date, 'yesterday'); ?>
|
853 |
+
value="yesterday">Yesterday</option>
|
854 |
</select>
|
855 |
</span>
|
856 |
+
<div class="gawd_info"
|
857 |
+
title="Choose the initial time period, which will be applied to all reports as their date range."></div>
|
858 |
+
<div class='clear'></div>
|
859 |
+
</div>
|
860 |
</div>
|
861 |
+
<?php } ?>
|
862 |
<div class="gawd_submit">
|
863 |
+
<input type="button" class="button_gawd" id="gawd_settings_button" value="Save"/>
|
864 |
+
<input type="button" style="display:none;" class="button_gawd" id="gawd_settings_logout"
|
865 |
+
value="Logout"/>
|
866 |
</div>
|
867 |
<input type='hidden' name="gawd_alert_remove" id="gawd_alert_remove"/>
|
868 |
<input type='hidden' name="gawd_menu_remove" id="gawd_menu_remove"/>
|
873 |
<input type='hidden' name="settings_submit" id="gawd_settings_submit"/>
|
874 |
<input type='hidden' name="gawd_settings_logout" id="gawd_settings_logout_val"/>
|
875 |
<?php wp_nonce_field('gawd_save_form', 'gawd_save_form_fild'); ?>
|
876 |
+
|
877 |
<div class="gawd_permissions_popup_overlay"></div>
|
878 |
<div class="gawd_permissions_popup">
|
879 |
<div class="close_btn_cont">
|
880 |
<div class="gawd_permission_popup_btn">X</div>
|
881 |
</div>
|
882 |
<div class="gawd_permissions_popup_content">
|
883 |
+
</div>
|
884 |
+
<div class="add_btn_cont">
|
885 |
<input type="button" class="button_gawd" id="add_roles" value="Add"/>
|
886 |
</div>
|
887 |
</div>
|
888 |
+
<input type='hidden' name="gawd_backend_roles" id="gawd_backend_roles"
|
889 |
+
value="<?php echo $gawd_backend_roles; ?>"/>
|
890 |
+
<input type='hidden' name="gawd_frontend_roles" id="gawd_frontend_roles"
|
891 |
+
value="<?php echo $gawd_frontend_roles; ?>"/>
|
892 |
+
<input type='hidden' name="gawd_post_page_roles" id="gawd_post_page_roles"
|
893 |
+
value="<?php echo $gawd_post_page_roles; ?>"/>
|
894 |
+
<input type='hidden' name="gawd_permissions" id="gawd_permissions"
|
895 |
+
value="<?php echo $gawd_permissions; ?>"/>
|
896 |
+
<input type="hidden" id="gawd_refresh_user_info_transient"
|
897 |
+
value="<?php echo $refresh_user_info_transient; ?>"/>
|
898 |
</form>
|
899 |
</div>
|
900 |
|
901 |
<div class="clear"></div>
|
902 |
</div>
|
903 |
+
<?php GAWD_helper::print_pro_popup(); ?>
|
904 |
<script>
|
905 |
+
jQuery('.gawd_chose_btn').on('click', function ()
|
906 |
+
{
|
907 |
+
permissions_popup_content(jQuery(this).attr('id'))
|
908 |
+
});
|
909 |
|
910 |
+
function permissions_popup_content(id)
|
911 |
+
{
|
912 |
var roles = <?php echo json_encode(new WP_Roles());?>;
|
913 |
+
var inp_id = 0;
|
914 |
+
var html = '';
|
915 |
+
var popup_overlay = 'gawd_permissions_popup_overlay';
|
916 |
+
var popup_body = 'gawd_permissions_popup';
|
917 |
+
var popup_btn = 'gawd_permission_popup_btn';
|
918 |
+
var add_role = 'add_roles';
|
919 |
+
var permissions_array = '';
|
920 |
+
jQuery("." + popup_body).fadeIn('fast');
|
921 |
+
jQuery("." + popup_overlay).fadeIn('fast');
|
|
|
|
|
|
|
|
|
922 |
|
923 |
+
if (id == "open_dashboard_report_permissions") {
|
924 |
+
permissions_array = 'gawd_backend_roles[]';
|
925 |
+
var permissions_for = 'gawd_backend_roles';
|
926 |
+
var open_popup_btn = 'open_dashboard_report_permissions';
|
927 |
+
var removed_roles = 'dashboard_report_permissions';
|
928 |
+
var remove_role = 'remove_dashboard_report_permission';
|
929 |
+
var role_value = 'dashboard_report_permission';
|
930 |
+
}
|
931 |
+
else
|
932 |
+
if (id == "open_frontend_report_permissions") {
|
933 |
+
permissions_array = 'gawd_frontend_roles[]';
|
934 |
+
var permissions_for = 'frontend_report_permissions';
|
935 |
+
var open_popup_btn = 'open_frontend_report_permissions';
|
936 |
+
var removed_roles = 'frontend_report_roles';
|
937 |
+
var remove_role = 'remove_frontend_report_role';
|
938 |
+
var role_value = 'frontend_report_role';
|
939 |
+
}
|
940 |
+
else
|
941 |
+
if (id == "post_page_report_permissions") {
|
942 |
+
permissions_array = 'gawd_post_page_roles[]';
|
943 |
+
var permissions_for = 'gawd_post_page_roles';
|
944 |
+
var open_popup_btn = 'post_page_report_permissions';
|
945 |
+
var removed_roles = 'gawd_post_page_roles';
|
946 |
+
var remove_role = 'remove_post_page_role';
|
947 |
+
var role_value = 'gawd_post_page_role';
|
948 |
+
}
|
949 |
+
else
|
950 |
+
if (id == "open_gawd_permissions") {
|
951 |
+
permissions_array = 'gawd_permissions[]';
|
952 |
+
var permissions_for = 'gawd_post_page_roles';
|
953 |
+
var open_popup_btn = 'open_gawd_permissions';
|
954 |
+
var removed_roles = 'gawd_permissions';
|
955 |
+
var remove_role = 'remove_gawd_permission';
|
956 |
+
var role_value = 'gawd_permission';
|
957 |
+
}
|
958 |
+
var check = [];
|
959 |
+
|
960 |
+
jQuery("." + role_value).each(function ()
|
961 |
+
{
|
|
|
962 |
check.push(jQuery(this).data('attribute'));
|
963 |
});
|
964 |
+
html += '<table border="1" class="gawd_table" id="' + id + '_table">';
|
965 |
+
html += '<tr><th>Name</th><th>Action</th></tr>';
|
966 |
+
for (key in roles.role_names) {
|
967 |
+
inp_id++;
|
968 |
+
var disabled = key == "administrator" || key == 'Administrator' ? "disabled" : "";
|
969 |
+
var checked = check.indexOf(key) > -1 || key == 'administrator' ? 'checked' : '';
|
970 |
+
var value = key;
|
971 |
+
var name = roles.role_names[key];
|
972 |
+
html += '<tr><td><label for="' + permissions_for + inp_id + '">' + name + '</label></td>';
|
973 |
+
html += '<td><input id="' + permissions_for + inp_id + '"' + disabled + ' class="gawd_perm" type="checkbox"' + checked + ' value="' + value + '"/></td></tr>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
}
|
975 |
+
html += '</table>';
|
976 |
+
jQuery('.gawd_permissions_popup_content').html(html);
|
977 |
+
jQuery('.gawd_perm').on('click', function ()
|
978 |
+
{
|
979 |
+
if (jQuery(this).attr('checked') == 'checked') {
|
980 |
+
jQuery(this).closest('tr').prevAll().find(".gawd_perm").attr('checked', true);
|
981 |
+
}
|
982 |
+
})
|
983 |
+
popup_overlay = "." + popup_overlay;
|
984 |
+
popup_btn = "." + popup_btn;
|
985 |
+
popup_body = "." + popup_body;
|
986 |
+
open_popup_btn = "#" + open_popup_btn;
|
987 |
+
add_role = "#" + add_role;
|
988 |
+
jQuery(popup_overlay + ', ' + popup_btn).on('click', function ()
|
989 |
+
{
|
990 |
+
jQuery(popup_body).fadeOut('fast');
|
991 |
+
jQuery(popup_overlay).fadeOut('fast');
|
992 |
});
|
993 |
+
jQuery(add_role).unbind("click");
|
994 |
+
jQuery(add_role).on('click', function (event)
|
995 |
+
{
|
996 |
event.preventDefault();
|
997 |
jQuery(popup_body).fadeOut('fast');
|
998 |
jQuery(popup_overlay).fadeOut('fast');
|
999 |
+
var span = '';
|
1000 |
var display_name = "";
|
1001 |
var value = [];
|
1002 |
+
jQuery("#" + id + "_table input[type='checkbox']:checked").each(function ()
|
1003 |
+
{
|
1004 |
value.push(jQuery(this).val());
|
1005 |
+
display_name = jQuery(this).closest('tr').find('label').html();
|
1006 |
+
jQuery("." + removed_roles).remove();
|
1007 |
+
span += '<div class="time_wrap ' + removed_roles + '"><span data-attribute="' + jQuery(this).val() + '" class="' + role_value + '">' + display_name + '</span>';
|
1008 |
+
if (display_name.toLowerCase() != 'administrator') {
|
1009 |
+
span += '<span class="' + remove_role + '">X</span>'
|
1010 |
+
}
|
1011 |
+
span += '</div>';
|
1012 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1013 |
|
1014 |
+
jQuery('#' + permissions_array.replace('[]', '')).val(value.join());
|
1015 |
+
jQuery(open_popup_btn).before(span);
|
1016 |
+
jQuery("." + remove_role).on('click', function ()
|
1017 |
+
{
|
1018 |
+
var find = jQuery(this).closest('.time_wrap').find("." + role_value).html();
|
1019 |
jQuery(this).closest('div').remove();
|
1020 |
|
1021 |
+
jQuery(popup_body + " .gawd_table input[type='checkbox']:checked").each(function ()
|
1022 |
+
{
|
1023 |
+
if (jQuery(this).val() == find) {
|
1024 |
jQuery(this).removeAttr('checked');
|
1025 |
}
|
1026 |
+
});
|
1027 |
+
var value = [];
|
1028 |
+
jQuery("." + role_value).each(function ()
|
1029 |
+
{
|
1030 |
+
value.push(jQuery(this).attr('data-attribute'));
|
1031 |
+
});
|
1032 |
+
jQuery('#' + permissions_array.replace('[]', '')).val(value.join());
|
1033 |
+
})
|
1034 |
+
});
|
1035 |
+
|
1036 |
+
jQuery("." + removed_roles).on('click', function ()
|
1037 |
+
{
|
1038 |
+
var find = jQuery(this).closest('.time_wrap').find(role_value).html();
|
1039 |
+
jQuery(this).closest('div').remove();
|
1040 |
+
|
1041 |
+
jQuery(popup_body + " .gawd_table input[type='checkbox']:checked").each(function ()
|
1042 |
+
{
|
1043 |
+
if (jQuery(this).val() == find) {
|
1044 |
+
jQuery(this).removeAttr('checked');
|
1045 |
+
}
|
1046 |
});
|
1047 |
var value = [];
|
1048 |
+
jQuery("." + role_value).each(function ()
|
1049 |
+
{
|
1050 |
value.push(jQuery(this).attr('data-attribute'));
|
1051 |
});
|
1052 |
+
jQuery('#' + permissions_array.replace('[]', '')).val(value.join());
|
1053 |
})
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
jQuery(".gawd_remove").on('click', function ()
|
1057 |
+
{
|
1058 |
+
var id = jQuery(this).closest('.time_wrap').attr('class').split(' ')[1];
|
1059 |
+
jQuery(this).closest('div').remove();
|
1060 |
+
var value = [];
|
1061 |
+
jQuery('.' + id.substring(0, id.length - 1)).each(function ()
|
1062 |
+
{
|
1063 |
+
value.push(jQuery(this).attr('data-attribute'));
|
1064 |
+
});
|
1065 |
+
if (id == 'dashboard_report_permissions') {
|
1066 |
+
id = 'gawd_backend_roles';
|
1067 |
+
} else
|
1068 |
+
if (id == "frontend_report_roles") {
|
1069 |
+
id = "gawd_frontend_roles";
|
1070 |
}
|
1071 |
+
jQuery('#' + id).val(value.join());
|
1072 |
+
})
|
1073 |
</script>
|
1074 |
+
|
admin/pages/tracking.php
CHANGED
@@ -1,21 +1,24 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
if (
|
4 |
-
|
5 |
-
|
6 |
-
$tracking_dimensions = 'no_custom_dimensions_exist';
|
7 |
-
}
|
8 |
-
try{
|
9 |
-
$existing_custom_dimensions = $gawd_client->get_custom_dimensions('default');
|
10 |
-
}catch (Exception $e){
|
11 |
-
$existing_custom_dimensions = array();
|
12 |
}
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
}
|
16 |
-
|
17 |
-
$
|
18 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
$gawd_anonymize = isset($gawd_settings['gawd_anonymize']) ? $gawd_settings['gawd_anonymize'] : '';
|
20 |
$gawd_tracking_enable = isset($gawd_settings['gawd_tracking_enable']) ? $gawd_settings['gawd_tracking_enable'] : 'on';
|
21 |
$gawd_outbound = isset($gawd_settings['gawd_outbound']) ? $gawd_settings['gawd_outbound'] : '';
|
@@ -25,295 +28,299 @@ $gawd_enhanced = isset($gawd_settings['gawd_enhanced']) ? $gawd_settings['gawd_e
|
|
25 |
$enable_custom_code = isset($gawd_settings['enable_custom_code']) ? $gawd_settings['enable_custom_code'] : '';
|
26 |
$gawd_custom_code = isset($gawd_settings['gawd_custom_code']) ? $gawd_settings['gawd_custom_code'] : '';
|
27 |
|
28 |
-
|
29 |
$gawd_tracking_enable = isset($_GET['enableTracking']) ? 'on' : $gawd_tracking_enable;
|
30 |
$domain = GAWD::get_domain(esc_html(get_option('siteurl')));
|
31 |
?>
|
32 |
|
33 |
-
<div id="gawd_body">
|
34 |
-
<div class="wd-upgrade-pro-main-wrap">
|
35 |
-
<span class="wd-text">Create a web property and manage tracking settings in this section.
|
36 |
-
<a style="color: #5CAEBD; text-decoration: none;border-bottom: 1px dotted;" target="_blank" href="https://web-dorado.com/wordpress-google-analytics/quick-start/overview.html">Read more in User Guide.</a>
|
37 |
-
</span>
|
38 |
-
<div class="wd-ugrade-pro-wrap">
|
39 |
-
<a class="gawd_support_link" href="https://wordpress.org/support/plugin/wd-google-analytics" target="_blank">
|
40 |
-
<img src="<?php echo GAWD_URL; ?>/assets/i_support.png" >
|
41 |
-
<?php _e("Support Forum", "gmwd"); ?>
|
42 |
-
</a>
|
43 |
-
<a class="gawd_update_pro_link" href="https://web-dorado.com/files/fromGoogleAnalyticsWD.php" target="_blank">
|
44 |
-
<?php _e("Upgrade to paid version", "gawd"); ?>
|
45 |
-
</a> </div>
|
46 |
-
</div>
|
47 |
-
<div class="resp_menu"><div class="menu_img"></div><div class="button_label">TRACKING</div><div class="clear"></div></div>
|
48 |
-
<div class="gawd_menu_coteiner gawd_settings_menu_coteiner">
|
49 |
-
<ul class="gawd_menu_ul">
|
50 |
-
<li class=" gawd_menu_li_tracking" id="gawd_tracking">
|
51 |
-
Tracking
|
52 |
-
</li>
|
53 |
-
<li class=" gawd_menu_li_tracking gawd_pro_menu" id="gawd_exclude_tracking">
|
54 |
-
Exclude
|
55 |
-
<span class="gawd_pro_flag">Paid</span>
|
56 |
-
</li>
|
57 |
-
</ul>
|
58 |
-
</div>
|
59 |
-
<div id="gawd_right_conteiner">
|
60 |
-
<h3 class="gawd_page_titles">Tracking</h3>
|
61 |
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
<
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
<div class="time_input">
|
156 |
-
<textarea class="gawd_custom_code" name="gawd_custom_code"><?php echo $gawd_custom_code
|
157 |
</div>
|
158 |
</span>
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
<div class="gawd_tracking_display">
|
168 |
-
<p>CODE ADDED TO SITE:</p>
|
169 |
-
<div id="gawd_tracking_enable_code" <?php if('on' != $gawd_tracking_enable): ?>style="display: none;"<?php endif; ?>>
|
170 |
-
<code class="html"><script></code>
|
171 |
-
<code class="javascript">
|
172 |
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
173 |
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
174 |
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
175 |
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
176 |
-
|
177 |
-
<br /><br />
|
178 |
-
ga('create', '<?php echo $ua_code ?>', 'auto');
|
179 |
-
</code>
|
180 |
-
<code id="enable_custom_code_code" class="javascript" <?php if('on' != $enable_custom_code){; ?> style="display: none;"<?php }; ?>>
|
181 |
-
</br>
|
182 |
-
<?php echo "/*CUSTOM CODE START*/ </br>" . $gawd_custom_code . "</br>/*CUSTOM CODE END*/ </br>";?>
|
183 |
-
|
184 |
-
</code>
|
185 |
-
<code id="gawd_anonymize_code" class="javascript" <?php if('on' != $gawd_anonymize): ?>style="display: none;"<?php endif; ?>>
|
186 |
-
ga('set', 'anonymizeIp', true);
|
187 |
-
</code>
|
188 |
-
<code id="gawd_enhanced_code" class="javascript" <?php if('on' != $gawd_enhanced): ?>style="display: none;"<?php endif; ?>>
|
189 |
-
ga('require', 'linkid', 'linkid.js');
|
190 |
-
</code>
|
191 |
-
<code id="gawd_outbound_code" class="javascript" <?php echo $gawd_outbound != '' && isset($domain) && $domain != '' ? '' : 'style="display: none;"';?>>
|
192 |
-
var links_out = document.querySelectorAll('a[href^="http"]');
|
193 |
-
links_out.forEach(function (link, key, listObj){
|
194 |
-
if (!link.href.match(/.*\.(zip|mp3*|mpe*g|pdf|docx*|pptx*|xlsx*|rar*)(\?.*)?$/) {
|
195 |
-
if (link.href.indexOf('mysite.example') == -1) {
|
196 |
-
link.addEventListener('click', function (e){
|
197 |
-
ga('send', 'event', 'outbound', 'click', e.target.href, {'nonInteraction': 1});
|
198 |
-
});
|
199 |
-
});
|
200 |
-
}
|
201 |
-
}});
|
202 |
-
</code>
|
203 |
-
<code id="gawd_file_formats_code" class="javascript" <?php echo isset($gawd_file_formats) && $gawd_file_formats != '' ? '' : 'style="display: none"';?>>
|
204 |
-
var links_download = document.querySelectorAll( 'a' );
|
205 |
-
links_download.forEach(function(link, key, listObj){
|
206 |
-
if (link.href.match(/.*\.(zip|mp3*|mpe*g|pdf|docx*|pptx*|xlsx*|rar*)(\?.*)?$/)) {
|
207 |
-
link.addEventListener('click', function (e)
|
208 |
-
{
|
209 |
-
ga('send', 'event', 'download', 'click', e.target.href,{'nonInteraction': 1});
|
210 |
-
});
|
211 |
-
}
|
212 |
-
});
|
213 |
-
var links_mailto = document.querySelectorAll('a[href^="mailto"]');
|
214 |
-
links_mailto.forEach(function(link, key, listObj) {
|
215 |
-
link.addEventListener('click', function (e)
|
216 |
-
{
|
217 |
-
ga('send', 'event', 'email', 'send', e.target.href, {'nonInteraction': 1}";
|
218 |
-
});
|
219 |
-
});
|
220 |
-
});
|
221 |
-
</code>
|
222 |
-
<code class="javascript">
|
223 |
-
</br>
|
224 |
-
ga('send', 'pageview');
|
225 |
-
</code>
|
226 |
-
<code class="html"></script></code>
|
227 |
-
</div>
|
228 |
-
</div>
|
229 |
-
<div class="clear"></div>
|
230 |
-
</div>
|
231 |
-
<div class="gawd_exclude_tracking">
|
232 |
-
<img class="gawd_pro_img" data-attr="exclude options" src="<?php echo GAWD_URL.'/assets/freePages/exclude_tracking.png';?>"/>
|
233 |
</div>
|
234 |
-
<input type='hidden' name="settings_submit" id="settings_submit"/>
|
235 |
-
<div class="gawd_submit"><input type="submit" name="settings_submit" class="button_gawd" value="SAVE"/></div>
|
236 |
-
<input type='hidden' name="gawd_settings_tab" id="gawd_settings_tab"/>
|
237 |
-
<input type='hidden' name="add_dimension_value" id="add_dimension_value"/>
|
238 |
-
<?php wp_nonce_field('gawd_save_form', 'gawd_save_form_fild'); ?>
|
239 |
-
</form>
|
240 |
</div>
|
241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
<div class="clear"></div>
|
243 |
</div>
|
244 |
-
<script>
|
245 |
-
jQuery(function() {
|
246 |
-
jQuery('.chosen-select').chosen();
|
247 |
-
jQuery('.chosen-select-deselect').chosen({ allow_single_deselect: true });
|
248 |
-
});
|
249 |
-
jQuery(document).ready(function(){
|
250 |
-
jQuery('.button_gawd_add').on('click',function(){
|
251 |
-
jQuery('#add_dimension_value').val(jQuery(this).data('name'));
|
252 |
-
jQuery('#settings_submit').val('1');
|
253 |
-
jQuery('#gawd_form').submit();
|
254 |
-
})
|
255 |
-
jQuery("#gawd_right_conteiner").show();
|
256 |
-
if(window.location.hash===''){
|
257 |
-
jQuery('.gawd_submit').width('92.9%');
|
258 |
-
jQuery('.gawd_tracking').show();
|
259 |
-
jQuery('#gawd_tracking').addClass('gawd_active_li');
|
260 |
-
if(jQuery(window).width() < 720){
|
261 |
-
jQuery('#gawd_tracking').addClass('gawd_resp_active_li');
|
262 |
-
}
|
263 |
-
}
|
264 |
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
}
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
</
|
319 |
|
1 |
<?php
|
2 |
+
|
3 |
+
if (GAWD_helper::gawd_has_property() === false) {
|
4 |
+
require_once 'add_web_property.php';
|
5 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
7 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
8 |
+
|
9 |
+
$tracking_dimensions = array();
|
10 |
+
if (isset($gawd_user_data['property_id'])) {
|
11 |
+
$tracking_dimensions = GAWD_helper::get_custom_dimensions();
|
12 |
}
|
13 |
+
|
14 |
+
$supported_dimensions = GAWD_helper::get_supported_dimensions();
|
15 |
+
$ua_code = isset($gawd_user_data['property_id']) ? $gawd_user_data['property_id'] : '';
|
16 |
+
|
17 |
+
//$gawd_permissions = isset($gawd_settings['gawd_permissions']) ? $gawd_settings['gawd_permissions'] : array();
|
18 |
+
//$gawd_excluded_users = isset($gawd_settings['gawd_excluded_users']) ? $gawd_settings['gawd_excluded_users'] : array();
|
19 |
+
//$gawd_excluded_roles = isset($gawd_settings['gawd_excluded_roles']) ? $gawd_settings['gawd_excluded_roles'] : array();
|
20 |
+
//$gawd_backend_roles = isset($gawd_settings['gawd_backend_roles']) ? $gawd_settings['gawd_backend_roles'] : array();
|
21 |
+
//$gawd_frontend_roles = isset($gawd_settings['gawd_frontend_roles']) ? $gawd_settings['gawd_frontend_roles'] : array();
|
22 |
$gawd_anonymize = isset($gawd_settings['gawd_anonymize']) ? $gawd_settings['gawd_anonymize'] : '';
|
23 |
$gawd_tracking_enable = isset($gawd_settings['gawd_tracking_enable']) ? $gawd_settings['gawd_tracking_enable'] : 'on';
|
24 |
$gawd_outbound = isset($gawd_settings['gawd_outbound']) ? $gawd_settings['gawd_outbound'] : '';
|
28 |
$enable_custom_code = isset($gawd_settings['enable_custom_code']) ? $gawd_settings['enable_custom_code'] : '';
|
29 |
$gawd_custom_code = isset($gawd_settings['gawd_custom_code']) ? $gawd_settings['gawd_custom_code'] : '';
|
30 |
|
31 |
+
//$gawd_file_formats = isset($gawd_settings['gawd_file_formats']) ? $gawd_settings['gawd_file_formats'] : '';
|
32 |
$gawd_tracking_enable = isset($_GET['enableTracking']) ? 'on' : $gawd_tracking_enable;
|
33 |
$domain = GAWD::get_domain(esc_html(get_option('siteurl')));
|
34 |
?>
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
+
<div class="gawd_tracking">
|
38 |
+
<div class="gawd_settings_wrapper">
|
39 |
+
<div class="settings_row">
|
40 |
+
<div class="onoffswitch">
|
41 |
+
<input type="checkbox" name="gawd_tracking_enable" class="onoffswitch-checkbox"
|
42 |
+
id="gawd_tracking_enable" <?php echo $gawd_tracking_enable != '' ? 'checked' : ''; ?>>
|
43 |
+
<label class="onoffswitch-label" for="gawd_tracking_enable">
|
44 |
+
<span class="onoffswitch-inner"></span>
|
45 |
+
<span class="onoffswitch-switch"></span>
|
46 |
+
</label>
|
47 |
+
</div>
|
48 |
+
<div class="gawd_info"
|
49 |
+
title="Enable this option to add Google Analytics tracking code into <head> tag of your website HTML."></div>
|
50 |
+
<div class="onoffswitch_text">
|
51 |
+
Enable Tracking
|
52 |
+
</div>
|
53 |
+
<div class="clear"></div>
|
54 |
+
</div>
|
55 |
+
<div class="settings_row independent_setting">
|
56 |
+
<div
|
57 |
+
class="onoffswitch <?php echo(($gawd_tracking_enable == '') ? 'onoffswitch_disabled' : ''); ?> independent_switch">
|
58 |
+
<input type="checkbox" name="gawd_anonymize" class="onoffswitch-checkbox independent_input"
|
59 |
+
id="gawd_anonymize" <?php echo $gawd_anonymize != '' ? 'checked' : ''; ?> <?php echo(($gawd_tracking_enable == '') ? 'disabled' : ''); ?>>
|
60 |
+
<label class="onoffswitch-label" for="gawd_anonymize">
|
61 |
+
<span class="onoffswitch-inner"></span>
|
62 |
+
<span class="onoffswitch-switch"></span>
|
63 |
+
</label>
|
64 |
+
</div>
|
65 |
+
<div class="gawd_info"
|
66 |
+
title="Turn this option on, in case you’d like to hide the last block of users’ IP addresses."></div>
|
67 |
+
<div class="onoffswitch_text">
|
68 |
+
Anonymize IP address
|
69 |
+
<span style="color:#dd0000;"> If disabled, you must inform website visitors according to GDPR.<span>
|
70 |
+
</div>
|
71 |
+
<div class="clear"></div>
|
72 |
+
</div>
|
73 |
+
<div class="settings_row independent_setting">
|
74 |
+
<div
|
75 |
+
class="onoffswitch <?php echo(($gawd_tracking_enable == '') ? 'onoffswitch_disabled' : ''); ?> independent_switch">
|
76 |
+
<input type="checkbox" name="gawd_enhanced" class="onoffswitch-checkbox independent_input"
|
77 |
+
id="gawd_enhanced" <?php echo $gawd_enhanced != '' ? 'checked' : ''; ?> <?php echo(($gawd_tracking_enable == '') ? 'disabled' : ''); ?>>
|
78 |
+
<label class="onoffswitch-label" for="gawd_enhanced">
|
79 |
+
<span class="onoffswitch-inner"></span>
|
80 |
+
<span class="onoffswitch-switch"></span>
|
81 |
+
</label>
|
82 |
+
</div>
|
83 |
+
<div class="gawd_info"
|
84 |
+
title="Enable this option to track multiple links with the same destination. Get information for buttons, menus, as well as elements with multiple destinations, e.g. search boxes."></div>
|
85 |
+
<div class="onoffswitch_text">
|
86 |
+
Enhanced Link Attribution
|
87 |
+
</div>
|
88 |
+
<div class="clear"></div>
|
89 |
+
</div>
|
90 |
+
<div class="settings_row independent_setting">
|
91 |
+
<div
|
92 |
+
class="onoffswitch <?php echo(($gawd_tracking_enable == '') ? 'onoffswitch_disabled' : ''); ?> independent_switch">
|
93 |
+
<input type="checkbox" name="gawd_outbound" class="onoffswitch-checkbox independent_input"
|
94 |
+
id="gawd_outbound" <?php echo $gawd_outbound != '' ? 'checked' : ''; ?> <?php echo(($gawd_tracking_enable == '') ? 'disabled' : ''); ?>>
|
95 |
+
<label class="onoffswitch-label" for="gawd_outbound">
|
96 |
+
<span class="onoffswitch-inner"></span>
|
97 |
+
<span class="onoffswitch-switch"></span>
|
98 |
+
</label>
|
99 |
+
</div>
|
100 |
+
<div class="gawd_info"
|
101 |
+
title="Turn outbound clicks tracking on to track the links users click to leave your website."></div>
|
102 |
+
<div class="onoffswitch_text">
|
103 |
+
Outbound clicks tracking
|
104 |
+
</div>
|
105 |
+
<div class="clear"></div>
|
106 |
+
</div>
|
107 |
+
<div class="settings_row independent_setting">
|
108 |
+
<div
|
109 |
+
class="onoffswitch <?php echo(($gawd_tracking_enable == '') ? 'onoffswitch_disabled' : ''); ?> independent_switch">
|
110 |
+
<input type="checkbox" name="gawd_file_formats"
|
111 |
+
value="zip|mp3*|mpe*g|pdf|docx*|pptx*|xlsx*|rar*"
|
112 |
+
class="onoffswitch-checkbox independent_input"
|
113 |
+
id="gawd_file_formats" <?php echo $gawd_file_formats != '' ? 'checked' : ''; ?> <?php echo(($gawd_tracking_enable == '') ? 'disabled' : ''); ?>>
|
114 |
+
<label class="onoffswitch-label" for="gawd_file_formats">
|
115 |
+
<span class="onoffswitch-inner"></span>
|
116 |
+
<span class="onoffswitch-switch"></span>
|
117 |
+
</label>
|
118 |
+
</div>
|
119 |
+
<div class="gawd_info" title="Enable to track file downloads and mailing links."></div>
|
120 |
+
<div class="onoffswitch_text track_label">
|
121 |
+
Mailto, Download tracking (ex.: .doc, .pdf, .jpg, etc.)
|
122 |
+
</div>
|
123 |
+
<div class="clear"></div>
|
124 |
+
</div>
|
125 |
+
<div class="settings_row">
|
126 |
+
<div class="onoffswitch">
|
127 |
+
<input type="checkbox" name="enable_custom_code" class="onoffswitch-checkbox"
|
128 |
+
id="enable_custom_code" <?php echo $enable_custom_code != '' ? 'checked' : ''; ?>>
|
129 |
+
<label class="onoffswitch-label" for="enable_custom_code">
|
130 |
+
<span class="onoffswitch-inner"></span>
|
131 |
+
<span class="onoffswitch-switch"></span>
|
132 |
+
</label>
|
133 |
+
</div>
|
134 |
+
<div class="gawd_info" title="Enable adding custom code to tracking code."></div>
|
135 |
+
<div class="onoffswitch_text">
|
136 |
+
Enable custom code <span
|
137 |
+
style="color:#dd0000;"> Make sure the code is provided by a trustworthy source.<span>
|
138 |
+
</div>
|
139 |
+
<div class="clear"></div>
|
140 |
+
</div>
|
141 |
+
<?php
|
142 |
+
$custom_code_show = $enable_custom_code == '' ? 'style="display:none"' : '';
|
143 |
+
?>
|
144 |
+
<div id="gawd_custom_code" class="gawd_goal_row" <?php echo $custom_code_show; ?>>
|
145 |
+
<span class="gawd_goal_label">Custom Code</span>
|
146 |
+
<span class="gawd_goal_input">
|
147 |
<div class="time_input">
|
148 |
+
<textarea class="gawd_custom_code" name="gawd_custom_code"><?php echo $gawd_custom_code; ?></textarea>
|
149 |
</div>
|
150 |
</span>
|
151 |
+
<div class="gawd_info" title="Provide custom code that you want to add in tracking code"></div>
|
152 |
+
<div class="clear"></div>
|
153 |
+
</div>
|
154 |
+
<div style="margin-top: 15px;">
|
155 |
+
<img class="gawd_pro_img" data-gawd-screenshot="custom_dimensions" src="<?php echo GAWD_URL . '/assets/free-pages/custom_dimensions.png'; ?>"/>
|
156 |
+
</div>
|
157 |
+
<div style="margin-top: 15px;">
|
158 |
+
<img class="gawd_pro_img" data-gawd-screenshot="exclude_tracking" src="<?php echo GAWD_URL . '/assets/free-pages/exclude_tracking.png'; ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
</div>
|
161 |
+
<input id="gawd_custom_dimension_id" name="gawd_custom_dimension_id" type="hidden"
|
162 |
+
value="<?php echo count($tracking_dimensions); ?>"/>
|
163 |
+
<div class="gawd_tracking_display">
|
164 |
+
<p>TRACKING CODE ADDED TO SITE:</p>
|
165 |
+
<div id="gawd_tracking_enable_code"
|
166 |
+
<?php if ('on' != $gawd_tracking_enable): ?>style="display: none;"<?php endif; ?>>
|
167 |
+
<code class="html"><script></code>
|
168 |
+
<code class="javascript">
|
169 |
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
170 |
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
171 |
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
172 |
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
173 |
+
<br/><br/>
|
174 |
+
ga('create', '<?php echo $ua_code ?>', 'auto');
|
175 |
+
</code>
|
176 |
+
<code id="enable_custom_code_code" class="javascript" <?php if ('on' != $enable_custom_code) {
|
177 |
+
; ?> style="display: none;"<?php }; ?>>
|
178 |
+
</br>
|
179 |
+
<?php echo "/*CUSTOM CODE START*/ </br>" . $gawd_custom_code . "</br>/*CUSTOM CODE END*/ </br>"; ?>
|
180 |
+
</code>
|
181 |
+
<code id="gawd_anonymize_code" class="javascript"
|
182 |
+
<?php if ('on' != $gawd_anonymize): ?>style="display: none;"<?php endif; ?>>
|
183 |
+
ga('set', 'anonymizeIp', true);
|
184 |
+
</code>
|
185 |
+
<code id="gawd_enhanced_code" class="javascript"
|
186 |
+
<?php if ('on' != $gawd_enhanced): ?>style="display: none;"<?php endif; ?>>
|
187 |
+
ga('require', 'linkid', 'linkid.js');
|
188 |
+
</code>
|
189 |
+
<code id="gawd_outbound_code"
|
190 |
+
class="javascript" <?php echo $gawd_outbound != '' && isset($domain) && $domain != '' ? '' : 'style="display: none;"'; ?>>
|
191 |
+
var links_out = document.querySelectorAll('a[href^="http"]');
|
192 |
+
links_out.forEach(function (link, key, listObj){
|
193 |
+
if (!link.href.match(/.*\.(zip|mp3*|mpe*g|pdf|docx*|pptx*|xlsx*|rar*)(\?.*)?$/) {
|
194 |
+
if (link.href.indexOf('mysite.example') == -1) {
|
195 |
+
link.addEventListener('click', function (e){
|
196 |
+
ga('send', 'event', 'outbound', 'click', e.target.href, {'nonInteraction': 1});
|
197 |
+
});
|
198 |
+
});
|
199 |
+
}
|
200 |
+
}});
|
201 |
+
</code>
|
202 |
+
<code id="gawd_file_formats_code"
|
203 |
+
class="javascript" <?php echo isset($gawd_file_formats) && $gawd_file_formats != '' ? '' : 'style="display: none"'; ?>>
|
204 |
+
var links_download = document.querySelectorAll( 'a' );
|
205 |
+
links_download.forEach(function(link, key, listObj){
|
206 |
+
if (link.href.match(/.*\.(zip|mp3*|mpe*g|pdf|docx*|pptx*|xlsx*|rar*)(\?.*)?$/)) {
|
207 |
+
link.addEventListener('click', function (e)
|
208 |
+
{
|
209 |
+
ga('send', 'event', 'download', 'click', e.target.href,{'nonInteraction': 1});
|
210 |
+
});
|
211 |
+
}
|
212 |
+
});
|
213 |
+
var links_mailto = document.querySelectorAll('a[href^="mailto"]');
|
214 |
+
links_mailto.forEach(function(link, key, listObj) {
|
215 |
+
link.addEventListener('click', function (e)
|
216 |
+
{
|
217 |
+
ga('send', 'event', 'email', 'send', e.target.href, {'nonInteraction': 1}";
|
218 |
+
});
|
219 |
+
});
|
220 |
+
});
|
221 |
+
</code>
|
222 |
+
<code class="javascript">
|
223 |
+
</br>
|
224 |
+
ga('send', 'pageview');
|
225 |
+
</code>
|
226 |
+
<code class="html"></script></code>
|
227 |
+
</div>
|
228 |
+
</div>
|
229 |
<div class="clear"></div>
|
230 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
|
232 |
+
<input type='hidden' name="gawd_settings_tab" id="gawd_settings_tab"/>
|
233 |
+
<input type='hidden' name="add_dimension_value" id="add_dimension_value"/>
|
234 |
+
<div class="gawd_exclude_users_popup_overlay"></div>
|
235 |
+
<div class="gawd_exclude_users_popup">
|
236 |
+
<div class="close_btn_cont">
|
237 |
+
<div class="gawd_exclude_users_popup_btn">X</div>
|
238 |
+
</div>
|
239 |
+
<?php
|
240 |
+
$all_users = get_users();
|
241 |
+
|
242 |
+
if ($all_users) {
|
243 |
+
?>
|
244 |
+
<table border="1" class="gawd_table">
|
245 |
+
<tr>
|
246 |
+
<th>Name</th>
|
247 |
+
<th>Role</th>
|
248 |
+
<th>Action</th>
|
249 |
+
</tr>
|
250 |
+
<?php
|
251 |
+
$inp_id = 0;
|
252 |
+
foreach ($all_users as $user) {
|
253 |
+
$inp_id++;
|
254 |
+
?>
|
255 |
+
<tr>
|
256 |
+
<td>
|
257 |
+
<label for="gawd_excluded_users<?php echo $inp_id; ?>">
|
258 |
+
<?php echo $user->user_nicename; ?>
|
259 |
+
</label>
|
260 |
+
</td>
|
261 |
+
<td>
|
262 |
+
<?php echo $user->roles[0]; ?>
|
263 |
+
</td>
|
264 |
+
<td>
|
265 |
+
<input id="gawd_excluded_users<?php echo $inp_id; ?>" type="checkbox"
|
266 |
+
name="gawd_excluded_users[]" <?php echo in_array($user->user_nicename, $gawd_excluded_users) ? 'checked' : ''; ?>
|
267 |
+
value="<?php echo $user->user_nicename; ?>"/>
|
268 |
+
</td>
|
269 |
+
|
270 |
+
|
271 |
+
</tr>
|
272 |
+
<?php
|
273 |
}
|
274 |
+
?>
|
275 |
+
</table>
|
276 |
+
<div class="add_btn_cont">
|
277 |
+
<input type="button" class="button_gawd" id="gawd_add_users" value="Add"/>
|
278 |
+
</div>
|
279 |
+
<?php
|
280 |
+
}
|
281 |
+
?>
|
282 |
+
</div>
|
283 |
+
<div class="gawd_exclude_roles_popup_overlay"></div>
|
284 |
+
<div class="gawd_exclude_roles_popup">
|
285 |
+
<div class="close_btn_cont">
|
286 |
+
<div class="gawd_exclude_roles_popup_btn">X</div>
|
287 |
+
</div>
|
288 |
+
<?php
|
289 |
+
$roles = new WP_Roles();
|
290 |
+
if ($roles) {
|
291 |
+
?>
|
292 |
+
<table border="1" class="gawd_table">
|
293 |
+
<tr>
|
294 |
+
<th>Name</th>
|
295 |
+
<th>Action</th>
|
296 |
+
</tr>
|
297 |
+
<?php
|
298 |
+
$inp_id = 0;
|
299 |
+
foreach ($roles->role_names as $key => $name) {
|
300 |
+
$inp_id++;
|
301 |
+
?>
|
302 |
+
<tr>
|
303 |
+
<td>
|
304 |
+
<label for="user_type_inp<?php echo $inp_id; ?>">
|
305 |
+
<?php echo $name; ?>
|
306 |
+
</label>
|
307 |
+
</td>
|
308 |
|
309 |
+
<td>
|
310 |
+
<input id="user_type_inp<?php echo $inp_id; ?>" type="checkbox"
|
311 |
+
name="gawd_excluded_roles[]" <?php echo in_array($key, $gawd_excluded_roles) ? 'checked' : ''; ?>
|
312 |
+
value="<?php echo $key; ?>"/>
|
313 |
+
</td>
|
314 |
+
</tr>
|
315 |
+
<?php
|
316 |
+
}
|
317 |
+
?>
|
318 |
+
</table>
|
319 |
+
<div class="add_btn_cont">
|
320 |
+
<input type="button" class="button_gawd" id="gawd_add_roles" value="Add"/>
|
321 |
+
</div>
|
322 |
+
<?php
|
323 |
+
}
|
324 |
+
?>
|
325 |
+
</div>
|
326 |
|
admin/pages/uninstall.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
|
3 |
class GAWDUninstall{
|
4 |
|
@@ -12,17 +12,19 @@ class GAWDUninstall{
|
|
12 |
</h2>
|
13 |
<div class="goodbye-text">
|
14 |
<?php
|
15 |
-
$support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=google-analytics-wd" target="_blank">' . __('
|
16 |
$contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=google-analytics-wd" target="_blank">' . __('Contact us', 'gawd') . '</a>';
|
17 |
-
|
18 |
-
|
|
|
19 |
</div>
|
20 |
<p style="color: red;">
|
21 |
<strong><?php _e("WARNING:","gawd"); ?></strong>
|
22 |
-
|
|
|
23 |
</p>
|
24 |
<p style="color: red">
|
25 |
-
<strong><?php _e("The following
|
26 |
</p>
|
27 |
<table class="widefat">
|
28 |
<thead>
|
@@ -33,7 +35,6 @@ class GAWDUninstall{
|
|
33 |
<tr>
|
34 |
<td valign="top">
|
35 |
<ol>
|
36 |
-
<li>gawd_custom_reports</li>
|
37 |
<li>gawd_menu_for_user</li>
|
38 |
<li>gawd_all_metrics</li>
|
39 |
<li>gawd_all_dimensions</li>
|
@@ -44,7 +45,6 @@ class GAWDUninstall{
|
|
44 |
<li>gawd_menu_items</li>
|
45 |
<li>gawd_export_chart_data</li>
|
46 |
<li>gawd_email</li>
|
47 |
-
<li>gawd_custom_reports</li>
|
48 |
<li>gawd_alerts</li>
|
49 |
<li>gawd_pushovers</li>
|
50 |
<li>gawd_menu_for_users</li>
|
@@ -53,16 +53,35 @@ class GAWDUninstall{
|
|
53 |
</ol>
|
54 |
</td>
|
55 |
</tr>
|
56 |
-
|
57 |
</table>
|
58 |
-
<p style="text-align: center;"> <?php _e("
|
|
|
|
|
|
|
|
|
59 |
<p style="text-align: center;">
|
60 |
-
<input type="button" id="gawd_uninstall" value="<?php _e("UNINSTALL","gawd"); ?>"
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
</form>
|
65 |
<?php
|
66 |
}
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
1 |
+
<?php
|
2 |
|
3 |
class GAWDUninstall{
|
4 |
|
12 |
</h2>
|
13 |
<div class="goodbye-text">
|
14 |
<?php
|
15 |
+
$support_team = '<a href="https://web-dorado.com/support/contact-us.html?source=google-analytics-wd" target="_blank">' . __('Web-Dorado Customer Care', 'gawd') . '</a>';
|
16 |
$contact_us = '<a href="https://web-dorado.com/support/contact-us.html?source=google-analytics-wd" target="_blank">' . __('Contact us', 'gawd') . '</a>';
|
17 |
+
?>
|
18 |
+
Before uninstalling the plugin, please contact <?php echo $support_team; ?>. We'll do our best to assist you with your request.<br/>
|
19 |
+
However, if you have made a decision to uninstall Google Analytics plugin, we would be happy to hear your feedback and comments on further improvement of the product.
|
20 |
</div>
|
21 |
<p style="color: red;">
|
22 |
<strong><?php _e("WARNING:","gawd"); ?></strong>
|
23 |
+
Uninstalling Google Analytics will completely remove all its data. This includes deleting tracking code and resetting all options to their defaults.<br/>
|
24 |
+
Please make sure you don’t have any important information before you proceed.
|
25 |
</p>
|
26 |
<p style="color: red">
|
27 |
+
<strong><?php _e("The following database options will be deleted:","gawd"); ?></strong>
|
28 |
</p>
|
29 |
<table class="widefat">
|
30 |
<thead>
|
35 |
<tr>
|
36 |
<td valign="top">
|
37 |
<ol>
|
|
|
38 |
<li>gawd_menu_for_user</li>
|
39 |
<li>gawd_all_metrics</li>
|
40 |
<li>gawd_all_dimensions</li>
|
45 |
<li>gawd_menu_items</li>
|
46 |
<li>gawd_export_chart_data</li>
|
47 |
<li>gawd_email</li>
|
|
|
48 |
<li>gawd_alerts</li>
|
49 |
<li>gawd_pushovers</li>
|
50 |
<li>gawd_menu_for_users</li>
|
53 |
</ol>
|
54 |
</td>
|
55 |
</tr>
|
56 |
+
|
57 |
</table>
|
58 |
+
<p style="text-align: center;"> <?php _e("Are you sure you want to uninstall Google Analytics plugin?","gawd"); ?></p>
|
59 |
+
<p style="text-align: center;">
|
60 |
+
<input type="checkbox" name="unistall_gawd" id="check_yes" value="yes" />
|
61 |
+
<label for="check_yes"><?php _e("Yes","gawd"); ?></label>
|
62 |
+
</p>
|
63 |
<p style="text-align: center;">
|
64 |
+
<input type="button" id="gawd_uninstall" value="<?php _e("UNINSTALL","gawd"); ?>" onclick="if (check_yes.checked) {
|
65 |
+
if (confirm('You are About to Uninstall WD Google Analytics from WordPress.\nThis Action Is Not Reversible.')) {
|
66 |
+
jQuery('#adminForm').submit();;
|
67 |
+
} else {
|
68 |
+
return false;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
else {
|
72 |
+
return false;
|
73 |
+
}" class="wd-btn wd-btn-primary" />
|
74 |
+
</p>
|
75 |
+
</div>
|
76 |
+
<?php wp_nonce_field('gawd_save_form', 'gawd_save_form_field'); ?>
|
77 |
</form>
|
78 |
<?php
|
79 |
}
|
80 |
+
|
81 |
+
public function delete_options(){
|
82 |
+
global $wpdb;
|
83 |
+
check_admin_referer('gawd_save_form', 'gawd_save_form_field');
|
84 |
+
$wpdb->query("DELETE FROM {$wpdb->prefix}options WHERE option_name LIKE '%gawd%'");
|
85 |
+
set_site_transient('gawd_uninstall', '1', 5 * 60);
|
86 |
+
}
|
87 |
}
|
admin/post_page_view.php
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$uri = "";
|
3 |
-
$id = isset($_GET['post']) ? $_GET['post'] : '';
|
4 |
-
$uri_parts = parse_url(get_permalink( $id ));
|
5 |
-
if ( isset( $uri_parts["path"] ) ) {
|
6 |
-
$uri = $uri_parts["path"];
|
7 |
-
if(isset($uri_parts["query"])){
|
8 |
-
$uri .= "?" . $uri_parts["query"];
|
9 |
-
}
|
10 |
-
}
|
11 |
-
$filter = rawurlencode( rawurldecode( $uri ) );
|
12 |
-
?>
|
13 |
-
<a href="#" class="gawd_btn">X</a>
|
14 |
-
<!--<select name="gawd_post_page_date" id="gawd_post_page_date" >
|
15 |
-
<option value="<?php echo date('Y-m-d', strtotime('-30 days')); ?>"><?php _e('Last 30 Days', 'gawd'); ?></option>
|
16 |
-
<option value="<?php echo date('Y-m-d', strtotime('-7 days')); ?>"><?php _e('Last 7 Days', 'gawd'); ?></option>
|
17 |
-
</select> -->
|
18 |
-
<div class="gawd_content" id="gawd_content_range" >
|
19 |
-
<div id="reportrange" class="pull-right" style="float:none !important">
|
20 |
-
<span></span> <b class="caret"></b>
|
21 |
-
</div>
|
22 |
-
<input type="hidden" id="gawd_start_end_date"/>
|
23 |
-
</div>
|
24 |
-
<select name="gawd_metric_post_page" id="gawd_metric_post_page" >
|
25 |
-
<option value="sessions"><?php _e('Sessions', 'gawd'); ?></option>
|
26 |
-
<option value="users" ><?php _e('Users', 'gawd'); ?></option>
|
27 |
-
<option value="bounceRate" ><?php _e('Bounce Rate', 'gawd'); ?></option>
|
28 |
-
<option value="pageviews" ><?php _e('Pageviews', 'gawd'); ?></option>
|
29 |
-
<option value="percentNewSessions"><?php _e('% New Sessions', 'gawd'); ?></option>
|
30 |
-
<option value="avgSessionDuration"><?php _e('Avg Session Duration', 'gawd'); ?></option>
|
31 |
-
<option value="pageviewsPerSession" ><?php echo __('Pages/Session', 'gawd'); ?></option>
|
32 |
-
</select>
|
33 |
-
<select name="gawd_chart_type_post_page" id="gawd_chart_type_post_page" class="gawd_draw_analytics">
|
34 |
-
<option value="line" ><?php _e('Line Chart', 'gawd'); ?></option>
|
35 |
-
<option value="pie" ><?php _e('Pie Chart', 'gawd'); ?></option>
|
36 |
-
<option value="column" ><?php _e('Columns', 'gawd'); ?></option>
|
37 |
-
</select>
|
38 |
-
<div class="clear"></div>
|
39 |
-
|
40 |
-
<div class="">
|
41 |
-
<div class="opacity_div_compact">
|
42 |
-
<div class="loading_div_compact">
|
43 |
-
<img src="<?php echo GAWD_URL . '/assets/ajax_loader.gif'; ?>" style="margin-top: 200px; width:50px;">
|
44 |
-
</div>
|
45 |
-
</div>
|
46 |
-
<div class="gawd_post_page_meta" id="gawd_post_page_meta"></div>
|
47 |
-
</div>
|
48 |
-
<script>
|
49 |
-
jQuery(document).ready(function(){
|
50 |
-
datepicker_js('right','gawd_chart_type_post_page_callback');
|
51 |
-
jQuery('#gawd_metric_post_page, #gawd_post_page_date, #gawd_chart_type_post_page').on('change',function(){
|
52 |
-
gawd_chart_type_post_page('#<?php echo $filter;?>','gawd_post_page_meta');
|
53 |
-
})
|
54 |
-
})
|
55 |
-
function gawd_chart_type_post_page_callback(start, end){
|
56 |
-
jQuery('#reportrange span').html(start.format('Y-MM-DD') + ' - ' + end.format('Y-MM-DD'));
|
57 |
-
jQuery('#gawd_start_end_date').val(start.format('Y-MM-DD') + '/-/' + end.format('Y-MM-DD'));
|
58 |
-
gawd_chart_type_post_page('#<?php echo $filter;?>','gawd_post_page_meta');
|
59 |
-
}
|
60 |
-
|
61 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/tracking.php
CHANGED
@@ -1,23 +1,38 @@
|
|
1 |
<?php
|
2 |
-
$custom_dimensions = $gawd_client->get_custom_dimensions_tracking();
|
3 |
-
$gawd_settings = get_option('gawd_settings');
|
4 |
|
|
|
|
|
|
|
|
|
5 |
$enable_custom_code = isset($gawd_settings['enable_custom_code']) ? $gawd_settings['enable_custom_code'] : '';
|
6 |
|
7 |
$gawd_custom_code = isset($gawd_settings["gawd_custom_code"]) ? $gawd_settings["gawd_custom_code"] : '';
|
8 |
-
|
|
|
9 |
$domain = GAWD::get_domain(esc_html(get_option('siteurl')));
|
10 |
-
$
|
11 |
-
|
12 |
-
|
13 |
-
$
|
14 |
}
|
15 |
-
$gawd_user_data = get_option('gawd_user_data');
|
16 |
-
$ua_code = $gawd_user_data['default_webPropertyId'];
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
$cross_domain_list = '';
|
20 |
-
if
|
21 |
$cross_domain_list = $gawd_settings['cross_domains'];
|
22 |
}
|
23 |
$gawd_outbound = isset($gawd_settings['gawd_outbound']) ? $gawd_settings['gawd_outbound'] : '';
|
@@ -26,164 +41,143 @@ $gawd_outbound = isset($gawd_settings['gawd_outbound']) ? $gawd_settings['gawd_o
|
|
26 |
|
27 |
|
28 |
<script>
|
29 |
-
<?php
|
30 |
-
|
31 |
-
if ('on' == $gawd_settings['gawd_tracking_enable']) {
|
32 |
-
echo "/* WEB DORADO GOOGLE ANALYTICS TRACKING CODE */";
|
33 |
?>
|
34 |
-
(function (i, s, o, g, r, a, m)
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
{
|
39 |
-
(i[r].q = i[r].q || []).push(arguments)
|
40 |
}, i[r].l = 1 * new Date();
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
})
|
47 |
-
|
48 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
ga('require', 'linker');
|
50 |
ga('linker:autoLink', [' <?php echo $cross_domain_list; ?>']);
|
51 |
-
<?php }
|
52 |
-
|
53 |
-
<?php if (isset($gawd_settings['gawd_anonymize']) && 'on' == $gawd_settings['gawd_anonymize']) : ?>
|
54 |
ga('set', 'anonymizeIp', true);
|
55 |
-
<?php
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
if (GAWD_google_client::gawd_cd_published_month()) {
|
88 |
-
echo "ga('set', 'dimension" . $custom_dimension['id'] . "', '" . GAWD_google_client::gawd_cd_published_month() . "');\n";
|
89 |
-
}
|
90 |
-
break;
|
91 |
-
}
|
92 |
-
case 'Published Year': {
|
93 |
-
if (GAWD_google_client::gawd_cd_published_year()) {
|
94 |
-
echo "ga('set', 'dimension" . $custom_dimension['id'] . "', '" . GAWD_google_client::gawd_cd_published_year() . "');\n";
|
95 |
-
}
|
96 |
-
break;
|
97 |
-
}
|
98 |
-
case 'Tags': {
|
99 |
-
if (GAWD_google_client::gawd_cd_tags()) {
|
100 |
-
echo "ga('set', 'dimension" . $custom_dimension['id'] . "', '" . GAWD_google_client::gawd_cd_tags() . "');\n";
|
101 |
-
}
|
102 |
-
break;
|
103 |
-
}
|
104 |
-
default:
|
105 |
-
break;
|
106 |
-
}
|
107 |
-
}
|
108 |
}
|
109 |
}
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
|
116 |
-
|
|
|
|
|
|
|
|
|
117 |
|
118 |
$download_script = (isset($gawd_settings['gawd_file_formats']) && $gawd_settings['gawd_file_formats'] != '');
|
119 |
$links_script = ($gawd_outbound != '' && isset($domain) && $domain);
|
120 |
-
|
121 |
-
|
122 |
-
if($download_script || $links_script){ ?>
|
123 |
-
document.addEventListener("DOMContentLoaded", function(event) {
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
138 |
}
|
139 |
-
?>);
|
140 |
});
|
141 |
-
}
|
142 |
-
});
|
143 |
|
144 |
-
//Track Mailto
|
145 |
-
var links_mailto = document.querySelectorAll('a[href^="mailto"]');
|
146 |
-
links_mailto.forEach(function(link, key, listObj)
|
147 |
-
{
|
148 |
|
|
|
|
|
|
|
149 |
|
150 |
-
link.addEventListener('click', function (e)
|
151 |
-
{
|
152 |
-
ga('send', 'event', 'email', 'send', e.target.href<?php
|
153 |
-
if (isset($gawd_settings['exclude_events']) && $gawd_settings['exclude_events']) {
|
154 |
-
echo ", {'nonInteraction': 1}";
|
155 |
-
}
|
156 |
-
?>);
|
157 |
-
});
|
158 |
-
});
|
159 |
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
|
|
|
|
|
|
|
|
|
|
|
180 |
});
|
181 |
-
<?php }
|
182 |
-
?>
|
183 |
-
});
|
184 |
});
|
185 |
-
|
186 |
-
<?php }
|
187 |
-
?>
|
188 |
-
|
189 |
</script>
|
1 |
<?php
|
|
|
|
|
2 |
|
3 |
+
//todo change to class
|
4 |
+
$custom_dimensions = GAWD_helper::get_custom_dimensions();
|
5 |
+
|
6 |
+
$gawd_settings = get_option('gawd_settings');
|
7 |
$enable_custom_code = isset($gawd_settings['enable_custom_code']) ? $gawd_settings['enable_custom_code'] : '';
|
8 |
|
9 |
$gawd_custom_code = isset($gawd_settings["gawd_custom_code"]) ? $gawd_settings["gawd_custom_code"] : '';
|
10 |
+
$gawd_enhanced = isset($gawd_settings['gawd_enhanced']) ? $gawd_settings['gawd_enhanced'] : '';
|
11 |
+
|
12 |
$domain = GAWD::get_domain(esc_html(get_option('siteurl')));
|
13 |
+
$current_user = '';
|
14 |
+
if(get_current_user_id() != 0) {
|
15 |
+
$current_user = wp_get_current_user();
|
16 |
+
$current_user = $current_user->data->user_nicename;
|
17 |
}
|
|
|
|
|
18 |
|
19 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
20 |
+
$ua_code = isset($gawd_user_data['property_id']) ? $gawd_user_data['property_id'] : '';
|
21 |
+
if(!isset($gawd_settings['gawd_excluded_users'])) {
|
22 |
+
$gawd_settings['gawd_excluded_users'] = array();
|
23 |
+
}
|
24 |
+
/* TRACKING CODE ADD */
|
25 |
+
if(in_array($current_user, $gawd_settings['gawd_excluded_users'])) {
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
if(isset($gawd_settings['gawd_excluded_roles'])) {
|
29 |
+
if(GAWD::gawd_roles($gawd_settings['gawd_excluded_roles'], true)) {
|
30 |
+
return;
|
31 |
+
}
|
32 |
+
}
|
33 |
|
34 |
$cross_domain_list = '';
|
35 |
+
if(isset($gawd_settings['enable_cross_domain']) && isset($gawd_settings['cross_domains']) && $gawd_settings['cross_domains'] != '' && $gawd_settings['enable_cross_domain'] != '') {
|
36 |
$cross_domain_list = $gawd_settings['cross_domains'];
|
37 |
}
|
38 |
$gawd_outbound = isset($gawd_settings['gawd_outbound']) ? $gawd_settings['gawd_outbound'] : '';
|
41 |
|
42 |
|
43 |
<script>
|
44 |
+
<?php if ('on' == $gawd_settings['gawd_tracking_enable']) {
|
|
|
|
|
|
|
45 |
?>
|
46 |
+
(function (i, s, o, g, r, a, m) {
|
47 |
+
i['GoogleAnalyticsObject'] = r;
|
48 |
+
i[r] = i[r] || function () {
|
49 |
+
(i[r].q = i[r].q || []).push(arguments)
|
|
|
|
|
50 |
}, i[r].l = 1 * new Date();
|
51 |
+
a = s.createElement(o),
|
52 |
+
m = s.getElementsByTagName(o)[0];
|
53 |
+
a.async = 1;
|
54 |
+
a.src = g;
|
55 |
+
m.parentNode.insertBefore(a, m)
|
56 |
+
})
|
57 |
+
(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
58 |
+
ga('create', '<?php echo $ua_code ?>', 'auto', {
|
59 |
+
'siteSpeedSampleRate': '<?php echo isset($gawd_settings['site_speed_rate']) ? $gawd_settings['site_speed_rate'] : 1; ?>' <?php echo $cross_domain_list != '' ? ",'allowLinker' : true" : ""; ?>
|
60 |
+
});
|
61 |
+
<?php if($gawd_enhanced === 'on'){ ?>
|
62 |
+
ga('require', 'linkid', 'linkid.js');
|
63 |
+
<?php }
|
64 |
+
if ($cross_domain_list != '') { ?>
|
65 |
ga('require', 'linker');
|
66 |
ga('linker:autoLink', [' <?php echo $cross_domain_list; ?>']);
|
67 |
+
<?php }
|
68 |
+
if (isset($gawd_settings['gawd_anonymize']) && 'on' == $gawd_settings['gawd_anonymize']){ ?>
|
|
|
69 |
ga('set', 'anonymizeIp', true);
|
70 |
+
<?php }
|
71 |
+
|
72 |
+
foreach($custom_dimensions as $custom_dimension) {
|
73 |
+
|
74 |
+
$optname = 'gawd_custom_dimension_' . str_replace(' ', '_', $custom_dimension['name']);
|
75 |
+
if($gawd_settings[$optname] !== 'on') {
|
76 |
+
continue;
|
77 |
+
}
|
78 |
+
|
79 |
+
$custom_dimension_value = "";
|
80 |
+
switch($custom_dimension['name']) {
|
81 |
+
case 'Logged in':
|
82 |
+
$custom_dimension_value = (is_user_logged_in()) ? "yes" : "no";
|
83 |
+
break;
|
84 |
+
case 'Post type':
|
85 |
+
$custom_dimension_value = GAWD_helper::get_post_type();
|
86 |
+
break;
|
87 |
+
case 'Author':
|
88 |
+
$custom_dimension_value = GAWD_helper::get_author_nickname();
|
89 |
+
break;
|
90 |
+
case 'Category':
|
91 |
+
$custom_dimension_value = GAWD_helper::get_categories();
|
92 |
+
break;
|
93 |
+
case 'Published Month':
|
94 |
+
$custom_dimension_value = GAWD_helper::get_published_month();
|
95 |
+
break;
|
96 |
+
case 'Published Year':
|
97 |
+
$custom_dimension_value = GAWD_helper::get_published_year();
|
98 |
+
break;
|
99 |
+
case 'Tags': {
|
100 |
+
$custom_dimension_value = GAWD_helper::get_tags();
|
101 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
}
|
104 |
|
105 |
+
if(!empty($custom_dimension_value)) {
|
106 |
+
echo "ga('set', 'dimension" . $custom_dimension['id'] . "', '" . $custom_dimension_value . "');\n";
|
107 |
+
}
|
108 |
+
}
|
109 |
|
110 |
+
if($enable_custom_code == 'on') {
|
111 |
+
echo "/*CUSTOM CODE START*/" . $gawd_custom_code . "/*CUSTOM CODE END*/";
|
112 |
+
} ?>
|
113 |
+
ga('send', 'pageview');
|
114 |
+
<?php }
|
115 |
|
116 |
$download_script = (isset($gawd_settings['gawd_file_formats']) && $gawd_settings['gawd_file_formats'] != '');
|
117 |
$links_script = ($gawd_outbound != '' && isset($domain) && $domain);
|
118 |
+
$adsence_acc_linking = (isset($gawd_settings['adsense_acc_linking']) && $gawd_settings['adsense_acc_linking'] != '');
|
119 |
+
|
120 |
+
if($download_script || $links_script || $adsence_acc_linking){ ?>
|
121 |
+
document.addEventListener("DOMContentLoaded", function (event) {
|
122 |
+
window.addEventListener('load', function () {
|
123 |
+
|
124 |
+
|
125 |
+
<?php
|
126 |
+
if($download_script === true){ ?>
|
127 |
+
|
128 |
+
//Track Downloads
|
129 |
+
var links_download = document.querySelectorAll('a');
|
130 |
+
links_download.forEach(function (link, key, listObj) {
|
131 |
+
if (link.href.match(/.*\.(<?php echo esc_js($gawd_settings['gawd_file_formats']); ?>)(\?.*)?$/)) {
|
132 |
+
link.addEventListener('click', function (e) {
|
133 |
+
ga('send', 'event', 'download', 'click', e.target.href<?php
|
134 |
+
if(isset($gawd_settings['exclude_events']) && $gawd_settings['exclude_events']) {
|
135 |
+
echo ", {'nonInteraction': 1}";
|
136 |
+
}
|
137 |
+
?>);
|
138 |
+
});
|
139 |
}
|
|
|
140 |
});
|
|
|
|
|
141 |
|
|
|
|
|
|
|
|
|
142 |
|
143 |
+
//Track Mailto
|
144 |
+
var links_mailto = document.querySelectorAll('a[href^="mailto"]');
|
145 |
+
links_mailto.forEach(function (link, key, listObj) {
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
+
link.addEventListener('click', function (e) {
|
149 |
+
ga('send', 'event', 'email', 'send', e.target.href<?php
|
150 |
+
if(isset($gawd_settings['exclude_events']) && $gawd_settings['exclude_events']) {
|
151 |
+
echo ", {'nonInteraction': 1}";
|
152 |
+
}
|
153 |
+
?>);
|
154 |
+
});
|
155 |
+
});
|
156 |
+
<?php }
|
157 |
+
|
158 |
+
if($links_script === true){ ?>
|
159 |
+
//Track Outbound Links
|
160 |
+
var links_out = document.querySelectorAll('a[href^="http"]');
|
161 |
+
links_out.forEach(function (link, key, listObj) {
|
162 |
+
if (!link.href.match(/.*\.(<?php echo esc_js(isset($gawd_settings['gawd_file_formats']) && $gawd_settings['gawd_file_formats'] != ''); ?>)(\?.*)?$/)) {
|
163 |
+
if (link.href.indexOf('<?php echo $domain; ?>') == -1) {
|
164 |
+
link.addEventListener('click', function (e) {
|
165 |
+
ga('send', 'event', 'outbound', 'click', e.target.href<?php
|
166 |
+
if(isset($gawd_settings['exclude_events']) && $gawd_settings['exclude_events']) {
|
167 |
+
echo ", {'nonInteraction': 1}";
|
168 |
+
}
|
169 |
+
?>);
|
170 |
+
});
|
171 |
+
}
|
172 |
+
}
|
173 |
|
174 |
|
175 |
+
});
|
176 |
+
<?php }
|
177 |
+
if ($adsence_acc_linking) { ?>
|
178 |
+
window.google_analytics_uacct = "<?php echo esc_html($ua_code); ?>";
|
179 |
+
<?php }?>
|
180 |
});
|
|
|
|
|
|
|
181 |
});
|
182 |
+
<?php } ?>
|
|
|
|
|
|
|
183 |
</script>
|
admin/updates.php
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin page
|
4 |
+
*/
|
5 |
+
// Exit if accessed directly.
|
6 |
+
if(!defined('ABSPATH')) {
|
7 |
+
exit;
|
8 |
+
}
|
9 |
+
|
10 |
+
//global $gawd_options;
|
11 |
+
?>
|
12 |
+
|
13 |
+
<div class="wrap">
|
14 |
+
<?php settings_errors(); ?>
|
15 |
+
<div id="settings">
|
16 |
+
<div id="settings-content">
|
17 |
+
<h2 id="add_on_title"><?php echo esc_html(get_admin_page_title()); ?></h2>
|
18 |
+
|
19 |
+
|
20 |
+
<div class="main-plugin_desc-cont">
|
21 |
+
You can download the latest version of your plugins from your <a href="https://web-dorado.com"
|
22 |
+
target="_blank"> Web-Dorado.com</a>
|
23 |
+
account. After deactivating and deleting the current version, install the downloaded version of the
|
24 |
+
plugin.
|
25 |
+
</div>
|
26 |
+
|
27 |
+
<br/>
|
28 |
+
<br/>
|
29 |
+
|
30 |
+
<?php
|
31 |
+
if($gawd_plugins) {
|
32 |
+
$update = 0;
|
33 |
+
if(isset($gawd_plugins[158])) {
|
34 |
+
|
35 |
+
$project = $gawd_plugins[158];
|
36 |
+
unset($gawd_plugins[158]);
|
37 |
+
if(isset($updates[158])) {
|
38 |
+
$update = 1;
|
39 |
+
}
|
40 |
+
?>
|
41 |
+
<div class="main-plugin">
|
42 |
+
<div class="add-on">
|
43 |
+
<?php if($project['gawd_data']['image']) { ?>
|
44 |
+
<div class="figure-img">
|
45 |
+
<a href="<?php echo $project['gawd_data']['url'] ?>" target="_blank">
|
46 |
+
<img src="<?php echo $project['gawd_data']['image'] ?>"/>
|
47 |
+
</a>
|
48 |
+
</div>
|
49 |
+
<?php } ?>
|
50 |
+
|
51 |
+
</div>
|
52 |
+
<div class="main-plugin-info">
|
53 |
+
<h2>
|
54 |
+
<a href="<?php echo $project['gawd_data']['url'] ?>"
|
55 |
+
target="_blank"><?php echo $project['Title'] ?></a>
|
56 |
+
</h2>
|
57 |
+
|
58 |
+
<div class="main-plugin_desc-cont">
|
59 |
+
<div class="main-plugin-desc"><?php echo $project['gawd_data']['description'] ?></div>
|
60 |
+
<div class="main-plugin-desc main-plugin-desc-info">
|
61 |
+
<p><a href="<?php echo $project['gawd_data']['url'] ?>"
|
62 |
+
target="_blank">Version <?php echo $project['Version'] ?></a></p>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
<?php if(isset($updates[158][0])) { ?>
|
66 |
+
<span class="update-info">There is an new <?php echo $updates[158][0]['version'] ?>
|
67 |
+
version</span>
|
68 |
+
<p><span>What's new:</span></p>
|
69 |
+
<div class="last_update"><b><?php echo $updates[158][0]['version'] ?></b>
|
70 |
+
<?php echo strip_tags(str_ireplace('Important', '', $updates[158][0]['note']), '<p>') ?>
|
71 |
+
</div>
|
72 |
+
<?php unset($updates[158][0]); ?>
|
73 |
+
<?php if(count($updates[158]) > 0) { ?>
|
74 |
+
|
75 |
+
<div class="more_updates">
|
76 |
+
<?php foreach($updates[158] as $update) {
|
77 |
+
?>
|
78 |
+
<div class="update"><b><?php echo $update['version'] ?></b>
|
79 |
+
<?php echo strip_tags(str_ireplace('Important', '', $update['note']), '<p>') ?>
|
80 |
+
</div>
|
81 |
+
<?php
|
82 |
+
}
|
83 |
+
?>
|
84 |
+
</div>
|
85 |
+
<a href="#" class="show_more_updates">More updates</a>
|
86 |
+
<?php
|
87 |
+
}
|
88 |
+
?>
|
89 |
+
|
90 |
+
|
91 |
+
<?php } ?>
|
92 |
+
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
<?php }
|
97 |
+
?>
|
98 |
+
<div class="addons_updates">
|
99 |
+
<?php
|
100 |
+
foreach($gawd_plugins as $id => $project) {
|
101 |
+
$last_index = 0;
|
102 |
+
if(isset($updates[$id]) && !empty($updates[$id])) {
|
103 |
+
$last_index = count($updates[$id]) - 1;
|
104 |
+
}
|
105 |
+
?>
|
106 |
+
<div class="add-on">
|
107 |
+
<figure class="figure">
|
108 |
+
<div class="figure-img">
|
109 |
+
<a href="<?php echo $project['gawd_data']['url'] ?>" target="_blank">
|
110 |
+
<?php if($project['gawd_data']['image']) { ?>
|
111 |
+
<img src="<?php echo $project['gawd_data']['image'] ?>"/>
|
112 |
+
<?php } ?>
|
113 |
+
</a>
|
114 |
+
</div>
|
115 |
+
<figcaption class="addon-descr figcaption">
|
116 |
+
<?php if(isset($updates[$id][$last_index])) { ?>
|
117 |
+
<p>What's new:</p>
|
118 |
+
<?php echo strip_tags($updates[$id][$last_index]['note'], '<p>') ?>
|
119 |
+
<?php } else { ?><?php echo $project['Title'] ?> is up to date
|
120 |
+
<?php } ?>
|
121 |
+
</figcaption>
|
122 |
+
</figure>
|
123 |
+
<h2><?php echo $project['Title'] ?></h2>
|
124 |
+
|
125 |
+
<div class="main-plugin-desc-info">
|
126 |
+
<p><a href="<?php echo $project['gawd_data']['url'] ?>"
|
127 |
+
target="_blank"><?php echo $project['Version'] ?></a> | Web-Dorado</p>
|
128 |
+
</div>
|
129 |
+
<?php if(isset($updates[$id]) && isset($updates[$id][$last_index]['version'])) { ?>
|
130 |
+
<div class="addon-descr-update">
|
131 |
+
<span
|
132 |
+
class="update-info">There is an new <?php echo $updates[$id][$last_index]['version'] ?>
|
133 |
+
version</span><br/>
|
134 |
+
</div>
|
135 |
+
<?php } ?>
|
136 |
+
</div>
|
137 |
+
<?php }
|
138 |
+
?>
|
139 |
+
</div>
|
140 |
+
<?php
|
141 |
+
}
|
142 |
+
?>
|
143 |
+
|
144 |
+
</div>
|
145 |
+
<!-- #gawd-settings-content -->
|
146 |
+
</div>
|
147 |
+
<!-- #gawd-settings -->
|
148 |
+
</div><!-- .wrap -->
|
assets/Report_icon.png
DELETED
Binary file
|
assets/bg.png
DELETED
Binary file
|
assets/close.png
DELETED
Binary file
|
assets/{freePages → free-pages}/alerts.png
RENAMED
File without changes
|
assets/{freePages → free-pages}/custom_dimensions.png
RENAMED
File without changes
|
assets/{freePages → free-pages}/custom_reports.png
RENAMED
File without changes
|
assets/free-pages/exclude_tracking.png
ADDED
Binary file
|
assets/{freePages → free-pages}/pushovers.png
RENAMED
File without changes
|
assets/{freePages → free-pages}/reports.png
RENAMED
File without changes
|
assets/freePages/exclude_tracking.png
DELETED
Binary file
|
assets/{analytics-2.png → main_plugin.png}
RENAMED
File without changes
|
assets/pro_popup_close.png
ADDED
Binary file
|
assets/search.svg
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!-- Generator: Adobe Illustrator 21.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
3 |
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
4 |
+
width="16.1px" height="16.5px" viewBox="0 0 16.1 16.5" style="enable-background:new 0 0 16.1 16.5;" xml:space="preserve">
|
5 |
+
<style type="text/css">
|
6 |
+
.st0{opacity:0.62;fill:#323A45;}
|
7 |
+
</style>
|
8 |
+
<path class="st0" d="M11.4,10.4c0.9-1.1,1.4-2.6,1.4-4C12.8,2.9,9.9,0,6.4,0C2.9,0,0,2.9,0,6.4s2.9,6.4,6.4,6.4
|
9 |
+
c1.3,0,2.5-0.4,3.6-1.1l4.8,4.8l1.3-1.3L11.4,10.4z M11.7,6.4c0,2.9-2.4,5.3-5.3,5.3S1.1,9.3,1.1,6.4s2.4-5.3,5.3-5.3
|
10 |
+
S11.7,3.5,11.7,6.4z"/>
|
11 |
+
</svg>
|
assets/updates-icon.png
ADDED
Binary file
|
assets/web-dorado.png
DELETED
Binary file
|
config.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Created by PhpStorm.
|
4 |
+
* User: mher
|
5 |
+
* Date: 1/19/18
|
6 |
+
* Time: 4:34 PM
|
7 |
+
*/
|
8 |
+
|
9 |
+
if(!defined('GAWD_DIR')) {
|
10 |
+
|
11 |
+
define('GAWD_DIR', dirname(__FILE__));
|
12 |
+
define('GAWD_LIB_DIR', GAWD_DIR . '/library');
|
13 |
+
define('GWD_NAME', plugin_basename(dirname(__FILE__)));
|
14 |
+
define('GAWD_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
15 |
+
define('GAWD_INC', GAWD_URL . '/inc');
|
16 |
+
define('GAWD_VERSION', '1.2.0');
|
17 |
+
|
18 |
+
$upload_dir = wp_upload_dir();
|
19 |
+
define('GAWD_UPLOAD_DIR', $upload_dir['basedir'] . '/' . plugin_basename(dirname(__FILE__)));
|
20 |
+
}
|
gawd_class.php
CHANGED
@@ -1,2554 +1,1731 @@
|
|
1 |
<?php
|
2 |
-
if(!class_exists("Google_Client")){
|
3 |
-
require_once(GAWD_DIR . '/google/vendor/autoload.php');
|
4 |
-
}
|
5 |
-
|
6 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
7 |
-
|
8 |
-
class GAWD
|
9 |
-
{
|
10 |
-
/**
|
11 |
-
* @var GAWD The reference to Singleton instance of this class
|
12 |
-
*/
|
13 |
-
private static $instance;
|
14 |
-
private $project_client_id = null;
|
15 |
-
private $project_client_secret = null;
|
16 |
-
public $redirect_uri = "urn:ietf:wg:oauth:2.0:oob";
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Protected constructor to prevent creating a new instance of the
|
20 |
-
* Singleton via the `new` operator from outside of this class.
|
21 |
-
*/
|
22 |
-
protected function __construct()
|
23 |
-
{
|
24 |
-
$gawd_user_data = get_option('gawd_user_data');
|
25 |
-
$gawd_user_status = get_option("gawd_user_status");
|
26 |
-
if($gawd_user_status === false && isset($gawd_user_data['access_token'])){
|
27 |
-
add_option("gawd_user_status", "1");
|
28 |
-
}
|
29 |
-
|
30 |
-
|
31 |
-
if(isset($_GET["refresh_user_info"])){
|
32 |
-
$gawd_client = GAWD_google_client::get_instance();
|
33 |
-
$gawd_client->get_management_accounts(true);
|
34 |
-
}
|
35 |
-
if (isset($_POST["reset_data"]) && $_POST["reset_data"] != '') {
|
36 |
-
$this->reset_user_data();
|
37 |
-
}
|
38 |
-
if(!extension_loaded('openssl')){
|
39 |
-
add_action( 'admin_notices', array( $this, 'nossl_message' ), 1 );
|
40 |
-
return;
|
41 |
-
}
|
42 |
-
|
43 |
|
44 |
-
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
// add_filter('manage_posts_columns', array($this, 'gawd_add_columns'));
|
53 |
-
// // Populate custom column in Posts List
|
54 |
-
// add_action('manage_posts_custom_column', array($this, 'gawd_add_icons'), 10, 2);
|
55 |
-
// // Add custom column in Pages List
|
56 |
-
// add_filter('manage_pages_columns', array($this, 'gawd_add_columns'));
|
57 |
-
// // Populate custom column in Pages List
|
58 |
-
// add_action('manage_pages_custom_column', array($this, 'gawd_add_icons'), 10, 2);
|
59 |
-
// add_action('load-post.php', array($this, 'gawd_add_custom_box'));
|
60 |
-
// }
|
61 |
-
$gawd_frontend_roles = isset($gawd_settings['gawd_frontend_roles']) ? $gawd_settings['gawd_frontend_roles'] : array();
|
62 |
-
$gawd_user_status = get_option('gawd_user_status');
|
63 |
-
// if ((isset($gawd_settings['gawd_tracking_enable']) && $gawd_settings['gawd_tracking_enable'] == 'on') && (in_array($roles, $gawd_frontend_roles) || current_user_can('manage_options')) && ( isset( $gawd_user_data['refresh_token'] ) && ( $gawd_user_data['refresh_token'] != '' ) ) && isset($gawd_user_data['default_webPropertyId']) && $gawd_user_status == '1') {
|
64 |
-
// add_action('wp_enqueue_scripts', array($this, 'gawd_front_scripts'));
|
65 |
-
// add_action('admin_bar_menu', array($this, 'report_adminbar'), 999);
|
66 |
-
// }
|
67 |
-
|
68 |
-
$this->update_credentials();
|
69 |
-
$credentials = get_option('gawd_credentials');
|
70 |
-
if (is_array($credentials)) {
|
71 |
-
$this->set_project_client_id($credentials['project_id']);
|
72 |
-
$this->set_project_client_secret($credentials['project_secret']);
|
73 |
-
} else {
|
74 |
-
//send error
|
75 |
-
return;
|
76 |
-
}
|
77 |
-
}
|
78 |
|
79 |
-
|
80 |
-
|
81 |
-
global $wp_roles;
|
82 |
-
if (is_user_logged_in()) {
|
83 |
-
$current_user = wp_get_current_user();
|
84 |
-
$roles = $current_user->roles;
|
85 |
-
$role = array_shift($roles);
|
86 |
-
return $role;
|
87 |
-
} else {
|
88 |
-
return "";
|
89 |
-
}
|
90 |
}
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
$gawd_settings = get_option('gawd_settings');
|
96 |
-
$gawd_frontend_roles = isset($gawd_settings['gawd_frontend_roles']) ? $gawd_settings['gawd_frontend_roles'] : array();
|
97 |
-
$roles = $this->get_current_user_role();
|
98 |
-
$id = intval(get_the_ID());
|
99 |
-
if (((in_array($roles, $gawd_frontend_roles) || current_user_can('manage_options')) && !is_admin()) && $gawd_settings['post_page_chart'] != '' && $id > 0) {
|
100 |
-
$uri_parts = get_post($id);
|
101 |
-
$uri = '/' . $uri_parts->post_name;
|
102 |
-
$filter = rawurlencode(rawurldecode($uri));
|
103 |
-
$args = array(
|
104 |
-
'id' => 'gawd',
|
105 |
-
'title' => '<span data-url="' . $filter . '" class="ab-icon"></span><span class="">' . __("Analytics WD", 'gawd') . '</span>',
|
106 |
-
'href' => '#1',
|
107 |
-
);
|
108 |
-
/* @formatter:on */
|
109 |
-
$wp_admin_bar->add_node($args);
|
110 |
-
}
|
111 |
}
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
//check_admin_referer('gawd_save_form', 'gawd_save_form_fild');
|
116 |
-
if ($_POST) {
|
117 |
-
$gawd_own_project = isset($_POST['gawd_own_project']) ? $_POST['gawd_own_project'] : '';
|
118 |
-
$gawd_own_client_id = isset($_POST['gawd_own_client_id']) ? $_POST['gawd_own_client_id'] : '';
|
119 |
-
$gawd_own_client_secret = isset($_POST['gawd_own_client_secret']) ? $_POST['gawd_own_client_secret'] : '';
|
120 |
-
$gawd_credentials['project_id'] = $gawd_own_client_id;
|
121 |
-
$gawd_credentials['project_secret'] = $gawd_own_client_secret;
|
122 |
-
if ($gawd_own_project && $gawd_own_client_id != '' && $gawd_own_client_secret != '') {
|
123 |
-
update_option('gawd_credentials', $gawd_credentials);
|
124 |
-
delete_option('gawd_user_data');
|
125 |
-
add_option('gawd_own_project', 1);
|
126 |
-
}
|
127 |
-
}
|
128 |
}
|
129 |
|
130 |
-
|
131 |
-
|
132 |
-
$this->project_client_id = $id;
|
133 |
}
|
134 |
|
135 |
-
|
136 |
-
{
|
137 |
-
return $this->project_client_id;
|
138 |
-
}
|
139 |
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
-
|
151 |
-
{
|
152 |
-
global $gawd_redirect_to_settings;
|
153 |
-
$current_page = isset($_GET['page']) ? $_GET['page'] : "";
|
154 |
-
if (strpos($current_page, 'gawd') !== false) {
|
155 |
-
$gawd_user_data = get_option('gawd_user_data');
|
156 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
157 |
-
$gawd_client = GAWD_google_client::get_instance();
|
158 |
-
|
159 |
-
if(GAWD_google_client::has_error()){
|
160 |
-
add_action( 'admin_notices', array( 'GAWD_google_client', 'get_error_notice' ), 1 );
|
161 |
-
return;
|
162 |
-
}
|
163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
//delete_option("gawd_user_data");
|
173 |
-
update_option('gawd_redirect_to_settings', 'yes');
|
174 |
-
}
|
175 |
-
}
|
176 |
-
}
|
177 |
-
$gawd_redirect_to_settings = get_option('gawd_redirect_to_settings');
|
178 |
-
|
179 |
-
/*add_action('admin_notices', array($this, 'upgrade_pro'))*/;
|
180 |
-
add_action('admin_menu', array($this, 'gawd_add_menu'), 9);
|
181 |
-
add_action('admin_enqueue_scripts', array($this, 'gawd_enqueue_scripts'));
|
182 |
-
add_action('wp_ajax_gawd_auth', array($this, 'gawd_auth'));
|
183 |
-
add_action('wp_ajax_create_pdf_file', array($this, 'create_pdf_file'));
|
184 |
-
add_action('wp_ajax_create_csv_file', array($this, 'create_csv_file'));
|
185 |
-
add_action('wp_ajax_show_data', array($this, 'show_data'));
|
186 |
-
add_action('wp_ajax_remove_zoom_message', array($this, 'remove_zoom_message'));
|
187 |
-
add_action('wp_ajax_show_page_post_data', array($this, 'show_page_post_data'));
|
188 |
-
add_action('wp_ajax_show_data_compact', array($this, 'show_data_compact'));
|
189 |
-
add_action('wp_ajax_get_realtime', array($this, 'get_realtime'));
|
190 |
-
// add_action('wp_dashboard_setup', array($this, 'google_analytics_wd_dashboard_widget'));
|
191 |
-
add_action('admin_menu', array($this, 'overview_date_meta'));
|
192 |
-
// add_filter('cron_schedules', array($this, 'gawd_my_schedule'));
|
193 |
-
add_action('admin_init', array($this, 'gawd_export'));
|
194 |
-
// add_action('gawd_pushover_daily', array($this, 'gawd_pushover_daily'));
|
195 |
-
// add_action('gawd_pushover_gawd_weekly', array($this, 'gawd_pushover_weekly'));
|
196 |
-
// add_action('gawd_pushover_gawd_monthly', array($this, 'gawd_pushover_monthly'));
|
197 |
-
// add_action('gawd_alert_daily', array($this, 'gawd_alert_daily'));
|
198 |
-
// add_action('gawd_alert_gawd_monthly', array($this, 'gawd_alert_monthly'));
|
199 |
-
// add_action('gawd_alert_gawd_weekly', array($this, 'gawd_alert_weekly'));
|
200 |
-
// add_action('gawd_email_daily', array($this, 'gawd_daily_email'), 0);
|
201 |
-
// add_action('gawd_email_gawd_weekly', array($this, 'gawd_weekly_email'));
|
202 |
-
// add_action('gawd_email_gawd_monthly', array($this, 'gawd_monthly_email'));
|
203 |
-
//add_action('init', array($this, 'gawd_daily_email'));
|
204 |
-
add_action('wp_head', array($this, 'gawd_tracking_code'), 99);
|
205 |
-
add_action('admin_notices', array($this, 'check_property_delete'), 9999);
|
206 |
}
|
207 |
|
208 |
-
|
209 |
-
{
|
210 |
-
$screens = array('post', 'page');
|
211 |
-
foreach ($screens as $screen) {
|
212 |
-
add_meta_box('gawd_page_post_meta', 'Sessions in month', array(
|
213 |
-
$this,
|
214 |
-
'gawd_add_custom_box_callback'
|
215 |
-
), $screen, 'normal');
|
216 |
-
}
|
217 |
-
}
|
218 |
|
219 |
-
|
220 |
-
|
221 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
}
|
223 |
|
224 |
-
|
225 |
-
{
|
226 |
-
if ($column != 'gawd_stats') {
|
227 |
-
return;
|
228 |
-
}
|
229 |
-
$uri_parts = get_post($id);
|
230 |
-
$uri = '/' . $uri_parts->post_name;
|
231 |
-
$filter = rawurlencode(rawurldecode($uri));
|
232 |
-
echo '<a id="gawd-' . $id . '" class="gawd_page_post_stats" title="' . get_the_title($id) . '" href="#' . $filter . '"><img src="' . GAWD_URL . '/assets/back_logo.png"</a>';
|
233 |
-
}
|
234 |
|
235 |
-
|
236 |
-
|
237 |
-
return array_merge($columns, array('gawd_stats' => __('Analytics WD', 'gawd')));
|
238 |
-
}
|
239 |
|
240 |
-
|
241 |
-
|
242 |
-
if (is_user_logged_in() && isset($access_level)) {
|
243 |
-
$current_user = wp_get_current_user();
|
244 |
-
$roles = (array)$current_user->roles;
|
245 |
-
if ((current_user_can('manage_options')) && !$tracking) {
|
246 |
-
return true;
|
247 |
-
}
|
248 |
-
if (count(array_intersect($roles, $access_level)) > 0) {
|
249 |
-
return true;
|
250 |
-
} else {
|
251 |
-
return false;
|
252 |
-
}
|
253 |
-
}
|
254 |
-
return false;
|
255 |
}
|
256 |
|
257 |
-
public function gawd_tracking_code()
|
258 |
-
{
|
259 |
-
$gawd_user_data = get_option('gawd_user_data');
|
260 |
-
if (isset($gawd_user_data['default_webPropertyId']) && ($gawd_user_data['default_webPropertyId'])) {
|
261 |
-
global $gawd_client;
|
262 |
-
$gawd_client = GAWD_google_client::get_instance();
|
263 |
-
require_once(GAWD_DIR . '/admin/tracking.php');
|
264 |
-
}
|
265 |
-
}
|
266 |
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
$export_type = isset($_REQUEST["export_type"]) ? sanitize_text_field($_REQUEST["export_type"]) : '';
|
273 |
-
if ($export_type != 'pdf') {
|
274 |
-
return;
|
275 |
-
}
|
276 |
-
$report_type = isset($_REQUEST["report_type"]) ? sanitize_text_field($_REQUEST["report_type"]) : '';
|
277 |
-
if ($report_type !== 'alert') {
|
278 |
-
return;
|
279 |
-
}
|
280 |
-
}
|
281 |
-
include_once GAWD_DIR . '/include/gawd_pdf_file.php';
|
282 |
-
$file = new GAWD_PDF_FILE();
|
283 |
-
/*
|
284 |
-
|
285 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
286 |
-
|
287 |
-
$this->gawd_google_client = GAWD_google_client::get_instance();
|
288 |
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
if ($first_data != '') {
|
293 |
-
$file->create_file('pages');
|
294 |
-
} elseif (($_data_compare) != '') {
|
295 |
-
$file->create_file('compare');
|
296 |
-
} else {
|
297 |
-
$file->create_file(true);
|
298 |
-
}
|
299 |
-
if ($ajax == true) {
|
300 |
-
die();
|
301 |
-
} else {
|
302 |
-
return $file->file_dir;
|
303 |
-
}
|
304 |
}
|
|
|
305 |
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
}
|
313 |
-
$report_type = isset($_REQUEST["report_type"]) ? sanitize_text_field($_REQUEST["report_type"]) : '';
|
314 |
-
if ($report_type !== 'alert') {
|
315 |
-
return;
|
316 |
-
}
|
317 |
-
}
|
318 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
319 |
-
$this->gawd_google_client = GAWD_google_client::get_instance();
|
320 |
-
$first_data = isset($_REQUEST["first_data"]) ? sanitize_text_field($_REQUEST["first_data"]) : '';
|
321 |
-
include_once GAWD_DIR . '/include/gawd_csv_file.php';
|
322 |
-
$file = new GAWD_CSV_FILE();
|
323 |
-
$file->get_request_data($this, $ajax, $data, $dimension, $start_date, $end_date, $metric_compare_recc, $metric_recc);
|
324 |
-
$file->sort_data();
|
325 |
-
//$file->get_request_data($this);
|
326 |
-
$file->sort_data();
|
327 |
-
if ($first_data != '') {
|
328 |
-
$file->create_file(false);
|
329 |
-
} else {
|
330 |
-
$file->create_file();
|
331 |
-
}
|
332 |
-
if ($ajax == true) {
|
333 |
-
die();
|
334 |
-
} else {
|
335 |
-
return $file->file_dir;
|
336 |
-
}
|
337 |
-
}
|
338 |
|
339 |
-
|
340 |
-
{
|
341 |
-
|
342 |
-
$ret_domain = str_ireplace('www', '', isset($root[2]) ? $root[2] : $domain);
|
343 |
-
return $ret_domain;
|
344 |
}
|
|
|
345 |
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
|
|
|
|
|
|
350 |
|
351 |
-
|
352 |
-
|
353 |
-
if (!isset($_REQUEST['action']) || (isset($_REQUEST['action']) && $_REQUEST['action'] !== 'gawd_export')) {
|
354 |
-
return;
|
355 |
-
}
|
356 |
-
$export_type = isset($_REQUEST["export_type"]) ? sanitize_text_field($_REQUEST["export_type"]) : '';
|
357 |
-
if ($export_type != 'pdf' && $export_type != 'csv') {
|
358 |
-
return;
|
359 |
-
}
|
360 |
-
$report_type = isset($_REQUEST["report_type"]) ? sanitize_text_field($_REQUEST["report_type"]) : '';
|
361 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
362 |
-
$this->gawd_google_client = GAWD_google_client::get_instance();
|
363 |
-
if ($export_type == 'pdf') {
|
364 |
-
include_once GAWD_DIR . '/include/gawd_pdf_file.php';
|
365 |
-
$file = new GAWD_PDF_FILE();
|
366 |
-
} else {
|
367 |
-
include_once GAWD_DIR . '/include/gawd_csv_file.php';
|
368 |
-
$file = new GAWD_CSV_FILE();
|
369 |
-
}
|
370 |
-
if ($report_type == 'alert') {
|
371 |
-
if ($export_type == 'pdf') {
|
372 |
-
$file->export_file();
|
373 |
-
} else {
|
374 |
-
$file->export_file();
|
375 |
-
}
|
376 |
-
} else {
|
377 |
-
$metric = isset($_REQUEST["gawd_metric"]) ? sanitize_text_field($_REQUEST["gawd_metric"]) : '';
|
378 |
-
$_data_compare = isset($_REQUEST["_data_compare"]) ? ($_REQUEST["_data_compare"]) : '';
|
379 |
-
$first_data = isset($_REQUEST["first_data"]) ? ($_REQUEST["first_data"]) : '';
|
380 |
-
$view_id = isset($_REQUEST["view_id"]) ? sanitize_text_field($_REQUEST["view_id"]) : '';
|
381 |
-
$metric_compare = isset($_REQUEST["gawd_metric_compare"]) ? sanitize_text_field($_REQUEST["gawd_metric_compare"]) : '';
|
382 |
-
$dimension = isset($_REQUEST["gawd_dimension"]) ? sanitize_text_field($_REQUEST["gawd_dimension"]) : '';
|
383 |
-
$tab_name = isset($_REQUEST["tab_name"]) ? sanitize_text_field($_REQUEST["tab_name"]) : '';
|
384 |
-
$img = isset($_REQUEST["img"]) ? sanitize_text_field($_REQUEST["img"]) : '';
|
385 |
-
$gawd_email_subject = isset($_REQUEST["gawd_email_subject"]) ? sanitize_text_field($_REQUEST["gawd_email_subject"]) : '';
|
386 |
-
$gawd_email_body = isset($_REQUEST["gawd_email_body"]) && $_REQUEST["gawd_email_body"] != '' ? sanitize_text_field($_REQUEST["gawd_email_body"]) : ' ';
|
387 |
-
$email_from = isset($_REQUEST["gawd_email_from"]) ? sanitize_email($_REQUEST["gawd_email_from"]) : '';
|
388 |
-
$email_to = isset($_REQUEST["gawd_email_to"]) ? sanitize_email($_REQUEST["gawd_email_to"]) : '';
|
389 |
-
$email_period = isset($_REQUEST["gawd_email_period"]) ? sanitize_text_field($_REQUEST["gawd_email_period"]) : '';
|
390 |
-
$week_day = isset($_REQUEST["gawd_email_week_day"]) ? sanitize_text_field($_REQUEST["gawd_email_week_day"]) : '';
|
391 |
-
$month_day = isset($_REQUEST["gawd_email_month_day"]) ? sanitize_text_field($_REQUEST["gawd_email_month_day"]) : '';
|
392 |
-
$email_time = isset($_REQUEST["email_time"]) ? sanitize_text_field($_REQUEST["email_time"]) : '';
|
393 |
-
$emails = array();
|
394 |
-
$invalid_email = false;
|
395 |
-
$email_to = explode(',', $email_to);
|
396 |
-
foreach ($email_to as $email) {
|
397 |
-
if (is_email($email) == false) {
|
398 |
-
$emails = $email;
|
399 |
-
}
|
400 |
-
}
|
401 |
-
if (count($emails) > 0) {
|
402 |
-
$invalid_email = true;
|
403 |
-
}
|
404 |
-
if (($invalid_email != true) && is_email($email_from) && $gawd_email_subject != '') {
|
405 |
-
if ($email_period == "once") {
|
406 |
-
$file->get_request_data($this);
|
407 |
-
$file->sort_data();
|
408 |
-
if ($export_type == 'csv') {
|
409 |
-
if ($first_data != '') {
|
410 |
-
$file->create_file(false);
|
411 |
-
} else {
|
412 |
-
$file->create_file();
|
413 |
-
}
|
414 |
-
} else {
|
415 |
-
if ($first_data != '') {
|
416 |
-
$file->create_file('pages');
|
417 |
-
} elseif (($_data_compare) != '') {
|
418 |
-
$file->create_file('compare');
|
419 |
-
} else {
|
420 |
-
$file->create_file(false);
|
421 |
-
}
|
422 |
-
}
|
423 |
-
$attachment = $file->file_dir;
|
424 |
-
if ($report_type == 'email') {
|
425 |
-
$headers = 'From: <' . $email_from . '>';
|
426 |
-
wp_mail($email_to, $gawd_email_subject, $gawd_email_body, $headers, $attachment);
|
427 |
-
}
|
428 |
-
echo json_encode(array('status' => 'success', 'msg' => 'Email successfuly sent'));
|
429 |
-
} else {
|
430 |
-
if ($email_period == 'gawd_weekly') {
|
431 |
-
$period_day = $week_day;
|
432 |
-
$timestamp = strtotime('this ' . $period_day . ' ' . $email_time);
|
433 |
-
} elseif ($email_period == 'gawd_monthly') {
|
434 |
-
$period_day = $month_day;
|
435 |
-
$timestamp = strtotime(date('Y-m-' . $period_day . ' ' . $email_time));
|
436 |
-
} else {
|
437 |
-
$period_day = '';
|
438 |
-
$timestamp = strtotime(date('Y-m-d ' . $email_time));
|
439 |
-
}
|
440 |
-
$saved_email = get_option('gawd_email');
|
441 |
-
if ($saved_email) {
|
442 |
-
$gawd_email_options = array(
|
443 |
-
'name' => $gawd_email_subject,
|
444 |
-
'period' => $email_period,
|
445 |
-
'metric' => $metric,
|
446 |
-
'metric_compare' => $metric_compare,
|
447 |
-
'dimension' => $dimension,
|
448 |
-
'creation_date' => date('Y-m-d') . ' ' . $email_time,
|
449 |
-
'emails' => $email_to,
|
450 |
-
'email_from' => $email_from,
|
451 |
-
'email_subject' => $gawd_email_subject,
|
452 |
-
'email_body' => $gawd_email_body,
|
453 |
-
'period_day' => $period_day,
|
454 |
-
'period_time' => $email_time,
|
455 |
-
'img' => $img,
|
456 |
-
'tab_name' => $tab_name,
|
457 |
-
'view_id' => $view_id,
|
458 |
-
'export_type' => $export_type
|
459 |
-
);
|
460 |
-
$saved_email[] = $gawd_email_options;
|
461 |
-
update_option('gawd_email', $saved_email);
|
462 |
-
} else {
|
463 |
-
$gawd_email_options = array(
|
464 |
-
0 => array(
|
465 |
-
'name' => $gawd_email_subject,
|
466 |
-
'period' => $email_period,
|
467 |
-
'metric' => $metric,
|
468 |
-
'metric_compare' => $metric_compare,
|
469 |
-
'dimension' => $dimension,
|
470 |
-
'creation_date' => date('Y-m-d') . ' ' . $email_time,
|
471 |
-
'emails' => $email_to,
|
472 |
-
'email_from' => $email_from,
|
473 |
-
'email_subject' => $gawd_email_subject,
|
474 |
-
'email_body' => $gawd_email_body,
|
475 |
-
'period_day' => $period_day,
|
476 |
-
'period_time' => $email_time,
|
477 |
-
'img' => $img,
|
478 |
-
'tab_name' => $tab_name,
|
479 |
-
'view_id' => $view_id,
|
480 |
-
'export_type' => $export_type
|
481 |
-
)
|
482 |
-
);
|
483 |
-
update_option('gawd_email', $gawd_email_options);
|
484 |
-
}
|
485 |
-
$saved_email = get_option('gawd_email');
|
486 |
-
if ($saved_email) {
|
487 |
-
foreach ($saved_email as $email) {
|
488 |
-
if (!wp_next_scheduled('gawd_email_' . $email['period'])) {
|
489 |
-
wp_schedule_event($timestamp, $email['period'], 'gawd_email_' . $email['period']);
|
490 |
-
}
|
491 |
-
}
|
492 |
-
}
|
493 |
-
$success_message = 'Email successfuly Scheduled </br> Go to <a href="' . admin_url() . 'admin.php?page=gawd_settings#gawd_emails_tab">Settings page</a> to delete scheduled e-mails.';
|
494 |
-
echo json_encode(array('status' => 'success', 'msg' => $success_message));
|
495 |
-
}
|
496 |
-
die;
|
497 |
-
} else {
|
498 |
-
if ($invalid_email == true) {
|
499 |
-
echo json_encode('Invalid email');
|
500 |
-
die;
|
501 |
-
} else if ($gawd_email_subject == '') {
|
502 |
-
echo json_encode("Can't send email with empty subject");
|
503 |
-
die;
|
504 |
-
}
|
505 |
-
}
|
506 |
-
}
|
507 |
-
}
|
508 |
|
509 |
-
|
510 |
-
{
|
511 |
-
//righ side wide meta..
|
512 |
-
$orintation = wp_is_mobile() ? 'side' : 'normal';
|
513 |
-
add_meta_box('gawd-real-time', __('Real Time', 'gawd'), array(
|
514 |
-
$this,
|
515 |
-
'gawd_real_time'
|
516 |
-
), 'gawd_analytics', 'side', 'high');
|
517 |
-
// add_meta_box('gawd-date-meta', __('Audience', 'gawd'), array(
|
518 |
-
// $this,
|
519 |
-
// 'gawd_date_box'
|
520 |
-
// ), 'gawd_analytics', $orintation, null);
|
521 |
-
// add_meta_box('gawd-country-box', __('Location', 'gawd'), array(
|
522 |
-
// $this,
|
523 |
-
// 'gawd_country_box'
|
524 |
-
// ), 'gawd_analytics', $orintation, null);
|
525 |
-
// //left side thin meta.
|
526 |
-
// add_meta_box('gawd-visitors-meta', __('Visitors', 'gawd'), array(
|
527 |
-
// $this,
|
528 |
-
// 'gawd_visitors'
|
529 |
-
// ), 'gawd_analytics', 'side', null);
|
530 |
-
// add_meta_box('gawd-browser-meta', __('Browsers', 'gawd'), array(
|
531 |
-
// $this,
|
532 |
-
// 'gawd_browser'
|
533 |
-
// ), 'gawd_analytics', 'side', null);
|
534 |
-
}
|
535 |
|
536 |
-
|
537 |
-
|
538 |
-
|
|
|
|
|
|
|
|
|
539 |
}
|
|
|
540 |
|
541 |
-
|
542 |
-
{
|
543 |
-
require_once('admin/pages/location.php');
|
544 |
-
}
|
545 |
|
546 |
-
|
547 |
-
|
548 |
-
require_once('admin/pages/real_time.php');
|
549 |
}
|
550 |
|
551 |
-
|
552 |
-
{
|
553 |
-
require_once('admin/pages/visitors.php');
|
554 |
-
}
|
555 |
|
556 |
-
|
557 |
-
{
|
558 |
-
require_once('admin/pages/browser.php');
|
559 |
-
}
|
560 |
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
{
|
566 |
-
if (function_exists('is_multisite') && is_multisite()) {
|
567 |
-
// Check if it is a network activation - if so, run the activation function for each blog id.
|
568 |
-
if ($networkwide) {
|
569 |
-
global $wpdb;
|
570 |
-
// Get all blog ids.
|
571 |
-
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
|
572 |
-
foreach ($blogids as $blog_id) {
|
573 |
-
switch_to_blog($blog_id);
|
574 |
-
self::activate();
|
575 |
-
restore_current_blog();
|
576 |
-
}
|
577 |
-
return;
|
578 |
-
}
|
579 |
-
}
|
580 |
-
self::activate();
|
581 |
-
}
|
582 |
-
|
583 |
-
public static function activate()
|
584 |
-
{
|
585 |
-
$credentials['project_id'] = '115052745574-5vbr7tci4hjkr9clkflmnpto5jisgstg.apps.googleusercontent.com';
|
586 |
-
$credentials['project_secret'] = 'wtNiu3c_bA_g7res6chV0Trt';
|
587 |
-
if (!get_option('gawd_credentials')) {
|
588 |
-
update_option('gawd_credentials', $credentials);
|
589 |
-
}
|
590 |
-
$gawd_settings = get_option('gawd_settings');
|
591 |
-
if ($gawd_settings === false) {
|
592 |
-
self::gawd_settings_defaults();
|
593 |
-
} elseif ($gawd_settings && !isset($gawd_settings['show_report_page'])) {
|
594 |
-
$gawd_settings['show_report_page'] = 'on';
|
595 |
-
update_option('gawd_settings', $gawd_settings);
|
596 |
-
}
|
597 |
|
598 |
-
//logout issue
|
599 |
-
if(GAWD_VERSION == '1.1.2' || GAWD_VERSION == '5.1.2'){
|
600 |
|
601 |
-
if(get_option('gawd_user_data') == false){
|
602 |
-
delete_option('gawd_user_status');
|
603 |
-
delete_option('gawd_account_status');
|
604 |
-
}
|
605 |
|
606 |
-
}
|
607 |
-
self::add_dashboard_menu();
|
608 |
-
}
|
609 |
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
public static function deactivate()
|
614 |
-
{
|
615 |
}
|
616 |
|
617 |
-
|
618 |
-
* Enqueues the required styles and scripts, localizes some js variables.
|
619 |
-
*/
|
620 |
-
public function gawd_front_scripts()
|
621 |
-
{
|
622 |
-
if (is_user_logged_in()) {
|
623 |
-
wp_enqueue_style('admin_css', GAWD_URL . '/inc/css/gawd_admin.css', false, GAWD_VERSION);
|
624 |
-
wp_enqueue_script('gawd_front_js', GAWD_URL . '/inc/js/gawd_front.js', array('jquery'), GAWD_VERSION);
|
625 |
-
wp_localize_script('gawd_front_js', 'gawd_front', array(
|
626 |
-
'ajaxurl' => admin_url('admin-ajax.php'),
|
627 |
-
'ajaxnonce' => wp_create_nonce('gawd_admin_page_nonce'),
|
628 |
-
'gawd_plugin_url' => GAWD_URL,
|
629 |
-
'date_30' => date('Y-m-d', strtotime('-31 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
630 |
-
'date_7' => date('Y-m-d', strtotime('-8 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
631 |
-
'date_last_week' => date('Y-m-d', strtotime('last week -1day')) . '/-/' . date('Y-m-d', strtotime('last week +5day')),
|
632 |
-
'date_last_month' => date('Y-m-01', strtotime('last month')) . '/-/' . date('Y-m-t', strtotime('last month')),
|
633 |
-
'date_this_month' => date('Y-m-01') . '/-/' . date('Y-m-d'),
|
634 |
-
'date_today' => date('Y-m-d') . '/-/' . date('Y-m-d'),
|
635 |
-
'date_yesterday' => date('Y-m-d', strtotime('-1 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
636 |
-
'wp_admin_url' => admin_url(),
|
637 |
-
'exportUrl' => add_query_arg(array('action' => 'gawd_export'), admin_url('admin-ajax.php'))
|
638 |
-
));
|
639 |
-
}
|
640 |
-
}
|
641 |
|
642 |
-
public function gawd_enqueue_scripts()
|
643 |
-
{
|
644 |
-
$options = get_option('gawd_settings');
|
645 |
-
$show_report_page = (isset($options['show_report_page']) && $options['show_report_page'] != '') ? $options['show_report_page'] : 'on';
|
646 |
-
$default_date = (isset($options['default_date']) && $options['default_date'] != '') ? $options['default_date'] : 'last_30days';
|
647 |
-
$default_date_format = (isset($options['default_date_format']) && $options['default_date_format'] != '') ? $options['default_date_format'] : 'ymd_with_week';
|
648 |
-
$enable_hover_tooltip = (isset($options['enable_hover_tooltip']) && $options['enable_hover_tooltip'] != '') ? $options['enable_hover_tooltip'] : '';
|
649 |
-
$screen = get_current_screen();
|
650 |
-
|
651 |
-
$gawd_user_status = get_option('gawd_user_status');
|
652 |
-
$include_scripts_in_wp_admin_pages = ((strpos($screen->post_type, 'page') !== false || strpos($screen->post_type, 'post') !== false || strpos($screen->base, 'dashboard') !== false || strpos($screen->base, 'edit') !== false) && $gawd_user_status == '1');
|
653 |
-
if (strpos($screen->base, 'gawd') !== false || $include_scripts_in_wp_admin_pages) {
|
654 |
-
wp_enqueue_script('common');
|
655 |
-
/* wp_enqueue_script('wp-lists'); */
|
656 |
-
wp_enqueue_script('postbox');
|
657 |
-
wp_enqueue_script('jquery-ui-tooltip');
|
658 |
-
wp_enqueue_script('gawd_paging', GAWD_URL . '/inc/js/paging.js', false, GAWD_VERSION);
|
659 |
-
wp_enqueue_script('jquery.cookie', GAWD_URL . '/inc/js/jquery.cookie.js', false, GAWD_VERSION);
|
660 |
-
wp_enqueue_style('timepicker_css', GAWD_URL . '/inc/css/jquery.timepicker.css', false, GAWD_VERSION);
|
661 |
-
wp_enqueue_style('admin_css', GAWD_URL . '/inc/css/gawd_admin.css', false, GAWD_VERSION);
|
662 |
-
wp_enqueue_style('gawd_licensing', GAWD_URL . '/inc/css/gawd_licensing.css', false, GAWD_VERSION);
|
663 |
-
wp_enqueue_style('font-awesome', GAWD_URL . '/inc/css/font_awesome.css', false, GAWD_VERSION);
|
664 |
-
wp_enqueue_style('jquery-ui.css', GAWD_URL . '/inc/css/jquery-ui.css', false, GAWD_VERSION);
|
665 |
-
if(strpos( $screen->post_type, 'page' ) === false && strpos( $screen->post_type, 'post' ) === false && strpos( $screen->base, 'edit' ) === false ){
|
666 |
-
wp_enqueue_style( 'gawd_bootstrap', GAWD_URL . '/inc/css/bootstrap.css', false, GAWD_VERSION );
|
667 |
-
wp_enqueue_style( 'gawd_bootstrap-chosen', GAWD_URL . '/inc/css/bootstrap-chosen.css', false, GAWD_VERSION );
|
668 |
-
wp_enqueue_style( 'gawd_bootstrap-select', GAWD_URL . '/inc/css/bootstrap-select.css', false, GAWD_VERSION );
|
669 |
-
}
|
670 |
-
wp_enqueue_style('gawd_datepicker', GAWD_URL . '/inc/css/daterangepicker.css', false, GAWD_VERSION);
|
671 |
-
wp_enqueue_style('ui.jqgrid.css', GAWD_URL . '/inc/css/ui.jqgrid.css', false, GAWD_VERSION);
|
672 |
-
wp_enqueue_script('gawd_moment', GAWD_URL . '/inc/js/moment.min.js', false, GAWD_VERSION);
|
673 |
-
wp_enqueue_script('gawd_daterangepicker', GAWD_URL . '/inc/js/daterangepicker.js', false, GAWD_VERSION);
|
674 |
-
/*Map*/
|
675 |
-
//wp_enqueue_script('gawd_map_chart', GAWD_URL . '/inc/js/gawd_map_chart.js', false, GAWD_VERSION);
|
676 |
-
/*End Map*/
|
677 |
-
wp_enqueue_script('rgbcolor.js', GAWD_URL . '/inc/js/rgbcolor.js', array('jquery'), GAWD_VERSION);
|
678 |
-
wp_enqueue_script('StackBlur.js', GAWD_URL . '/inc/js/StackBlur.js', array('jquery'), GAWD_VERSION);
|
679 |
-
wp_enqueue_script('canvg.js', GAWD_URL . '/inc/js/canvg.js', array('jquery'), GAWD_VERSION);
|
680 |
-
wp_enqueue_script('gawd_tables', GAWD_URL . '/inc/js/loader.js', array('jquery'), GAWD_VERSION);
|
681 |
-
wp_enqueue_script('gawd_grid', GAWD_URL . '/inc/js/jquery.jqGrid.min.js', array('jquery'), GAWD_VERSION);
|
682 |
-
wp_enqueue_script('gawd_grid_locale', GAWD_URL . '/inc/js/grid.locale-en.js', array('jquery'), GAWD_VERSION);
|
683 |
-
wp_enqueue_script('timepicker_js', GAWD_URL . '/inc/js/jquery.timepicker.min.js', array('jquery'), GAWD_VERSION);
|
684 |
-
wp_enqueue_script('admin_js', GAWD_URL . '/inc/js/gawd_admin.js', array('jquery'), GAWD_VERSION);
|
685 |
-
wp_enqueue_script('chosen.jquery.js', GAWD_URL . '/inc/js/chosen.jquery.js', array('jquery'), GAWD_VERSION);
|
686 |
-
if(strpos( $screen->post_type, 'page' ) === false && strpos( $screen->post_type, 'post' ) === false && strpos( $screen->base, 'edit' ) === false ){
|
687 |
-
wp_enqueue_script('bootstrap_js', GAWD_URL . '/inc/js/bootstrap_js.js', array('jquery'), GAWD_VERSION);
|
688 |
-
wp_enqueue_script('bootstrap-select', GAWD_URL . '/inc/js/bootstrap-select.js', array('jquery'), GAWD_VERSION);
|
689 |
-
}
|
690 |
-
wp_enqueue_script('highlight_js', GAWD_URL . '/inc/js/js_highlight.js', array('jquery'), GAWD_VERSION);
|
691 |
-
wp_enqueue_script('settings_js', GAWD_URL . '/inc/js/gawd_settings.js', array('jquery'), GAWD_VERSION);
|
692 |
-
wp_enqueue_script('overview', GAWD_URL . '/inc/js/gawd_overview.js', array('jquery'), GAWD_VERSION);
|
693 |
-
wp_localize_script('overview', 'gawd_overview', array(
|
694 |
-
'ajaxurl' => admin_url('admin-ajax.php'),
|
695 |
-
'ajaxnonce' => wp_create_nonce('gawd_admin_page_nonce'),
|
696 |
-
'gawd_plugin_url' => GAWD_URL,
|
697 |
-
'default_date' => $default_date,
|
698 |
-
'enableHoverTooltip' => $enable_hover_tooltip,
|
699 |
-
'wp_admin_url' => admin_url()
|
700 |
-
));
|
701 |
-
wp_localize_script('admin_js', 'gawd_admin', array(
|
702 |
-
'ajaxurl' => admin_url('admin-ajax.php'),
|
703 |
-
'ajaxnonce' => wp_create_nonce('gawd_admin_page_nonce'),
|
704 |
-
'gawd_plugin_url' => GAWD_URL,
|
705 |
-
'wp_admin_url' => admin_url(),
|
706 |
-
'enableHoverTooltip' => $enable_hover_tooltip,
|
707 |
-
'default_date' => $default_date,
|
708 |
-
'default_date_format' => $default_date_format,
|
709 |
-
'date_30' => date('Y-m-d', strtotime('-31 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
710 |
-
'date_7' => date('Y-m-d', strtotime('-8 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
711 |
-
'date_last_week' => date('Y-m-d', strtotime('last week -1day')) . '/-/' . date('Y-m-d', strtotime('last week +5day')),
|
712 |
-
'date_last_month' => date('Y-m-01', strtotime('last month')) . '/-/' . date('Y-m-t', strtotime('last month')),
|
713 |
-
'date_this_month' => date('Y-m-01') . '/-/' . date('Y-m-d'),
|
714 |
-
'date_today' => date('Y-m-d') . '/-/' . date('Y-m-d'),
|
715 |
-
'date_yesterday' => date('Y-m-d', strtotime('-1 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
716 |
-
'exportUrl' => add_query_arg(array('action' => 'gawd_export'), admin_url('admin-ajax.php')),
|
717 |
-
'show_report_page' => $show_report_page
|
718 |
-
));
|
719 |
-
}
|
720 |
-
if(strpos($screen->base, 'gawd_uninstall') !== false) {
|
721 |
-
wp_enqueue_style('gawd_deactivate-css', GAWD_URL . '/wd/assets/css/deactivate_popup.css', array(), GAWD_VERSION);
|
722 |
-
wp_enqueue_script('gawd-deactivate-popup', GAWD_URL.'/wd/assets/js/deactivate_popup.js', array(), GAWD_VERSION, true );
|
723 |
-
$admin_data = wp_get_current_user();
|
724 |
-
|
725 |
-
wp_localize_script( 'gawd-deactivate-popup', 'gawdWDDeactivateVars', array(
|
726 |
-
"prefix" => "gawd" ,
|
727 |
-
"deactivate_class" => 'gawd_deactivate_link',
|
728 |
-
"email" => $admin_data->data->user_email,
|
729 |
-
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-google-maps-plugin.html",
|
730 |
-
));
|
731 |
-
}
|
732 |
-
}
|
733 |
|
734 |
-
|
735 |
-
|
736 |
-
*/
|
737 |
-
public function gawd_add_menu()
|
738 |
-
{
|
739 |
-
$gawd_settings = get_option('gawd_settings');
|
740 |
-
$gawd_permissions = isset($gawd_settings['gawd_permissions']) ? $gawd_settings['gawd_permissions'] : array();
|
741 |
-
if (empty($gawd_permissions)) {
|
742 |
-
$permission = 'manage_options';
|
743 |
-
} else {
|
744 |
-
if (in_array('manage_options', $gawd_permissions)) {
|
745 |
-
$permission = 'manage_options';
|
746 |
-
}
|
747 |
-
if (in_array('moderate_comments', $gawd_permissions)) {
|
748 |
-
$permission = 'moderate_comments';
|
749 |
-
}
|
750 |
-
if (in_array('publish_posts', $gawd_permissions)) {
|
751 |
-
$permission = 'publish_posts';
|
752 |
-
}
|
753 |
-
if (in_array('edit_posts', $gawd_permissions)) {
|
754 |
-
$permission = 'edit_posts';
|
755 |
-
}
|
756 |
-
if (in_array('read', $gawd_permissions)) {
|
757 |
-
$permission = 'read';
|
758 |
-
}
|
759 |
-
}
|
760 |
-
|
761 |
-
$parent_slug = null;
|
762 |
-
if( get_option( "gawd_subscribe_done" ) == 1 ){
|
763 |
-
$parent_slug = "gawd_analytics";
|
764 |
-
add_menu_page(
|
765 |
-
"Analytics",
|
766 |
-
"Analytics",
|
767 |
-
'manage_options',
|
768 |
-
$this->gawd_set_slug('gawd_analytics'), //$menu_slug
|
769 |
-
array($this, $this->gawd_set_display('gawd_display_overview_page')), //$function = '',
|
770 |
-
GAWD_URL . '/assets/main_icon.png', '25,13' );
|
771 |
-
}
|
772 |
-
add_submenu_page(
|
773 |
-
$parent_slug, //$parent_slug
|
774 |
-
__('Analytics Dashboard', 'gawd'), //$page_title
|
775 |
-
__('Analytics Dashboard', 'gawd'), //$menu_title
|
776 |
-
$permission, //$capability
|
777 |
-
$this->gawd_set_slug('gawd_analytics'), //$menu_slug
|
778 |
-
array($this, $this->gawd_set_display('gawd_display_overview_page')) //$function = '',
|
779 |
-
);
|
780 |
-
add_submenu_page(
|
781 |
-
null, //$parent_slug
|
782 |
-
__('Reports', 'gawd'), //$page_title
|
783 |
-
__('Reports', 'gawd'), //$menu_title
|
784 |
-
$permission, //$capability
|
785 |
-
$this->gawd_set_slug('gawd_reports'), //$menu_slug
|
786 |
-
array($this, $this->gawd_set_display('gawd_display_overview_page')) //$function = '',
|
787 |
-
);
|
788 |
-
add_submenu_page(
|
789 |
-
$parent_slug, //$parent_slug
|
790 |
-
__('Settings', 'gawd'), //$page_title
|
791 |
-
__('Settings', 'gawd'), //$menu_title
|
792 |
-
$permission, //$capability
|
793 |
-
'gawd_settings', //$menu_slug
|
794 |
-
array($this, 'gawd_display_settings_page') //$function = '',
|
795 |
-
);
|
796 |
-
add_submenu_page(
|
797 |
-
$parent_slug, //$parent_slug
|
798 |
-
__('Tracking', 'gawd'), //$page_title
|
799 |
-
__('Tracking', 'gawd'), //$menu_title
|
800 |
-
$permission, //$capability
|
801 |
-
$this->gawd_set_slug('gawd_tracking'), //$menu_slug
|
802 |
-
array($this, $this->gawd_set_display('gawd_display_tracking_page')) //$function = '',
|
803 |
-
);
|
804 |
-
add_submenu_page(
|
805 |
-
$parent_slug, //$parent_slug
|
806 |
-
__('Goal Management', 'gawd'), //$page_title
|
807 |
-
__('Goal Management', 'gawd'), //$menu_title
|
808 |
-
$permission, //$capability
|
809 |
-
$this->gawd_set_slug('gawd_goals'), //$menu_slug
|
810 |
-
array($this, $this->gawd_set_display('gawd_display_goals_page')) //$function = '',
|
811 |
-
);
|
812 |
-
add_submenu_page(
|
813 |
-
$parent_slug, //$parent_slug
|
814 |
-
__('Custom Reports', 'gawd'), //$page_title
|
815 |
-
__('Custom Reports', 'gawd'), //$menu_title
|
816 |
-
$permission, //$capability
|
817 |
-
$this->gawd_set_slug('gawd_custom_reports'), //$menu_slug
|
818 |
-
array($this, $this->gawd_set_display('gawd_display_custom_reports_page')) //$function = '',
|
819 |
-
);
|
820 |
-
add_submenu_page(
|
821 |
-
$parent_slug, //$parent_slug
|
822 |
-
__('Get Paid', 'gawd'), //$page_title
|
823 |
-
__('Get Paid', 'gawd'), //$menu_title
|
824 |
-
$permission, //$capability
|
825 |
-
'gawd_licensing', //$menu_slug
|
826 |
-
array($this, 'gawd_display_licensing_page') //$function = '',
|
827 |
-
);
|
828 |
-
add_submenu_page(
|
829 |
-
$parent_slug, //$parent_slug
|
830 |
-
__('Uninstall', 'gawd'), //$page_title
|
831 |
-
__('Uninstall', 'gawd'), //$menu_title
|
832 |
-
$permission, //$capability
|
833 |
-
'gawd_uninstall', //$menu_slug
|
834 |
-
array($this, 'gawd_display_uninstall_page') //$function = '',
|
835 |
-
);
|
836 |
-
}
|
837 |
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
} else {
|
844 |
-
return $slug;
|
845 |
-
}
|
846 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
847 |
|
848 |
-
|
849 |
-
{
|
850 |
-
global $gawd_redirect_to_settings;
|
851 |
-
if ($gawd_redirect_to_settings == 'yes') {
|
852 |
-
return 'gawd_display_settings_page';
|
853 |
-
} else {
|
854 |
-
return $slug;
|
855 |
-
}
|
856 |
-
}
|
857 |
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
|
|
|
|
|
|
|
|
862 |
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
</div>
|
874 |
-
|
875 |
-
<?php
|
876 |
-
}
|
877 |
-
} */
|
878 |
-
|
879 |
-
|
880 |
-
public function gawd_auth()
|
881 |
-
{
|
882 |
-
delete_option("gawd_user_data");
|
883 |
-
delete_option("gawd_user_status");
|
884 |
-
delete_option("gawd_management_accounts");
|
885 |
-
delete_option("widget_gawd_widget");
|
886 |
-
|
887 |
-
check_ajax_referer('gawd_admin_page_nonce', 'security');
|
888 |
-
$code = $_POST['token'];
|
889 |
-
if(isset($code) && $code != ''){
|
890 |
-
$status = GAWD_google_client::authenticate($code);
|
891 |
-
if($status==true){
|
892 |
-
update_option("gawd_user_status", "1");
|
893 |
-
}
|
894 |
|
895 |
-
|
896 |
-
$accounts = $gawd_client->get_management_accounts(true);
|
897 |
-
$account_status = true;
|
898 |
-
delete_transient("gawd_user_profiles");
|
899 |
-
if(empty($accounts)){
|
900 |
-
$account_status = false;
|
901 |
-
}
|
902 |
-
if ($status === true && !empty($accounts)) {
|
903 |
-
delete_option("gawd_account_status");
|
904 |
-
$res = array(
|
905 |
-
'message' => 'successfully saved',
|
906 |
-
'status' => $status,
|
907 |
-
'account_status' => $account_status,
|
908 |
-
);
|
909 |
-
} else {
|
910 |
-
update_option("gawd_account_status","no_account");
|
911 |
-
$res = array(
|
912 |
-
'message' => 'there is an error',
|
913 |
-
'status' => $status,
|
914 |
-
'account_status' => $account_status
|
915 |
-
);
|
916 |
}
|
917 |
-
header('content-type: application/json');
|
918 |
-
echo json_encode($res);
|
919 |
-
wp_die();
|
920 |
}
|
|
|
921 |
}
|
|
|
922 |
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
public function gawd_display_uninstall_page()
|
927 |
-
{
|
928 |
-
global $gawd_options;
|
929 |
-
if(!class_exists("DoradoWebConfig")){
|
930 |
-
include_once (GMWD_DIR . "/wd/config.php");
|
931 |
-
}
|
932 |
-
$config = new DoradoWebConfig();
|
933 |
-
|
934 |
-
$config->set_options( $gawd_options );
|
935 |
-
|
936 |
-
$deactivate_reasons = new DoradoWebDeactivate($config);
|
937 |
-
//$deactivate_reasons->add_deactivation_feedback_dialog_box();
|
938 |
-
$deactivate_reasons->submit_and_deactivate();
|
939 |
-
|
940 |
-
require_once('admin/pages/uninstall.php');
|
941 |
-
$gawd_uninstall = new GAWDUninstall();
|
942 |
-
$deactivate_url = wp_nonce_url('plugins.php?action=deactivate&plugin=' . GWD_NAME . '/google-analytics-wd.php', 'deactivate-plugin_' . GWD_NAME . '/google-analytics-wd.php');
|
943 |
-
$deactivate_url = str_replace('&', '&', $deactivate_url);
|
944 |
-
if (isset($_POST['gawd_submit_and_deactivate'])) {
|
945 |
-
check_admin_referer('gawd_save_form', 'gawd_save_form_fild');
|
946 |
-
delete_option('gawd_custom_reports');
|
947 |
-
delete_option('gawd_menu_for_user');
|
948 |
-
delete_option('gawd_all_metrics');
|
949 |
-
delete_option('gawd_all_dimensions');
|
950 |
-
delete_option('gawd_custom_dimensions');
|
951 |
-
delete_option('gawd_settings');
|
952 |
-
delete_option('gawd_user_data');
|
953 |
-
delete_option('gawd_credentials');
|
954 |
-
delete_option('gawd_menu_items');
|
955 |
-
delete_option('gawd_export_chart_data');
|
956 |
-
delete_option('gawd_email');
|
957 |
-
delete_option('gawd_custom_reports');
|
958 |
-
delete_option('gawd_alerts');
|
959 |
-
delete_option('gawd_pushovers');
|
960 |
-
delete_option('gawd_menu_for_users');
|
961 |
-
delete_option('gawd_own_project');
|
962 |
-
delete_option('gawd_zoom_message');
|
963 |
-
delete_option('gawd_subscribe_done');
|
964 |
-
delete_option('gawd_redirect_to_settings');
|
965 |
-
delete_option('gawd_admin_notice');
|
966 |
-
delete_option('gawd_user_status');
|
967 |
-
delete_option('gawd_account_status');
|
968 |
-
delete_option('gawd_management_accounts');
|
969 |
-
delete_transient('gawd_user_profiles');
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
// echo '<script>window.location.href="' . $deactivate_url . '";</script>';
|
974 |
-
}
|
975 |
-
if (get_option('gawd_credentials')) {
|
976 |
-
$gawd_uninstall->uninstall();
|
977 |
-
}
|
978 |
}
|
|
|
|
|
979 |
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
return;
|
985 |
-
}
|
986 |
-
$gawd_client = GAWD_google_client::get_instance();
|
987 |
-
if (!empty($_POST)) {
|
988 |
-
check_admin_referer('gawd_save_form', 'gawd_save_form_fild');
|
989 |
-
}
|
990 |
-
$gawd_goal_profile = isset($_POST['gawd_goal_profile']) ? sanitize_text_field($_POST['gawd_goal_profile']) : '';
|
991 |
-
$gawd_goal_name = isset($_POST['gawd_goal_name']) ? sanitize_text_field($_POST['gawd_goal_name']) : '';
|
992 |
-
$gawd_goal_type = isset($_POST['gawd_goal_type']) ? sanitize_text_field($_POST['gawd_goal_type']) : '';
|
993 |
-
$gawd_visit_hour = isset($_POST['gawd_visit_hour']) ? sanitize_text_field($_POST['gawd_visit_hour']) : '';
|
994 |
-
$gawd_visit_minute = isset($_POST['gawd_visit_minute']) ? sanitize_text_field($_POST['gawd_visit_minute']) : '';
|
995 |
-
$gawd_visit_second = isset($_POST['gawd_visit_second']) ? sanitize_text_field($_POST['gawd_visit_second']) : '';
|
996 |
-
$gawd_goal_duration_comparison = isset($_POST['gawd_goal_duration_comparison']) ? sanitize_text_field($_POST['gawd_goal_duration_comparison']) : '';
|
997 |
-
$gawd_goal_page_comparison = isset($_POST['gawd_goal_page_comparison']) ? sanitize_text_field($_POST['gawd_goal_page_comparison']) : '';
|
998 |
-
$gawd_page_sessions = isset($_POST['gawd_page_sessions']) ? sanitize_text_field($_POST['gawd_page_sessions']) : '';
|
999 |
-
$goal_max_id = isset($_POST['goal_max_id']) ? $_POST['goal_max_id'] + 1 : 1;
|
1000 |
-
$gawd_goal_page_destination_match = isset($_POST['gawd_goal_page_destination_match']) ? sanitize_text_field($_POST['gawd_goal_page_destination_match']) : '';
|
1001 |
-
$gawd_page_url = isset($_POST['gawd_page_url']) ? sanitize_text_field($_POST['gawd_page_url']) : '';
|
1002 |
-
$url_case_sensitve = isset($_POST['url_case_sensitve']) ? $_POST['url_case_sensitve'] : '';
|
1003 |
-
if ($gawd_goal_type == 'VISIT_TIME_ON_SITE') {
|
1004 |
-
if ($gawd_visit_hour != '' || $gawd_visit_minute != '' || $gawd_visit_second != '') {
|
1005 |
-
$value = 0;
|
1006 |
-
if ($gawd_visit_hour != '') {
|
1007 |
-
$value += $gawd_visit_hour * 60 * 60;
|
1008 |
-
}
|
1009 |
-
if ($gawd_visit_minute != '') {
|
1010 |
-
$value += $gawd_visit_minute * 60;
|
1011 |
-
}
|
1012 |
-
if ($gawd_visit_second != '') {
|
1013 |
-
$value += $gawd_visit_second;
|
1014 |
-
}
|
1015 |
-
}
|
1016 |
-
$gawd_client->add_goal($gawd_goal_profile, $goal_max_id, $gawd_goal_type, $gawd_goal_name, $gawd_goal_duration_comparison, $value);
|
1017 |
-
add_option("gawd_save_goal", 1);
|
1018 |
-
} elseif ($gawd_goal_type == 'VISIT_NUM_PAGES') {
|
1019 |
-
if ($gawd_page_sessions != '') {
|
1020 |
-
$gawd_client->add_goal($gawd_goal_profile, $goal_max_id, $gawd_goal_type, $gawd_goal_name, $gawd_goal_page_comparison, $gawd_page_sessions);
|
1021 |
-
}
|
1022 |
-
add_option("gawd_save_goal", 1);
|
1023 |
-
} elseif ($gawd_goal_type == 'URL_DESTINATION') {
|
1024 |
-
if ($gawd_page_url != '') {
|
1025 |
-
$gawd_client->add_goal($gawd_goal_profile, $goal_max_id, $gawd_goal_type, $gawd_goal_name, $gawd_goal_page_destination_match, $gawd_page_url, $url_case_sensitve);
|
1026 |
-
}
|
1027 |
-
add_option("gawd_save_goal", 1);
|
1028 |
-
} elseif ($gawd_goal_type == 'EVENT') {
|
1029 |
-
if ($gawd_page_url != '') {
|
1030 |
-
$gawd_client->add_goal($gawd_goal_profile, $goal_max_id, $gawd_goal_type, $gawd_goal_name, $gawd_goal_page_comparison, $gawd_page_url, $url_case_sensitve);
|
1031 |
-
}
|
1032 |
-
add_option("gawd_save_goal", 1);
|
1033 |
-
}
|
1034 |
-
if (get_option('gawd_save_goal') == 1) {
|
1035 |
-
$this->gawd_admin_notice('Goal successfully has been created.', 'success is-dismissible');
|
1036 |
-
}
|
1037 |
-
delete_option('gawd_save_goal');
|
1038 |
-
require_once('admin/pages/goals.php');
|
1039 |
-
}
|
1040 |
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
if (!empty($_POST)) {
|
1045 |
-
check_admin_referer('gawd_save_form', 'gawd_save_form_fild');
|
1046 |
-
}
|
1047 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1048 |
-
$gawd_remove_custom_report = isset($_POST['gawd_remove_custom_report']) ? sanitize_text_field($_POST['gawd_remove_custom_report']) : '';
|
1049 |
-
if ($gawd_remove_custom_report) {
|
1050 |
-
$all_reports = get_option("gawd_custom_reports");
|
1051 |
-
if ($all_reports) {
|
1052 |
-
unset($all_reports[$gawd_remove_custom_report]);
|
1053 |
-
update_option('gawd_custom_reports', $all_reports);
|
1054 |
-
self::add_dashboard_menu();
|
1055 |
-
}
|
1056 |
-
}
|
1057 |
-
if (isset($_POST['gawd_add_custom_report'])) {
|
1058 |
-
$gawd_custom_report_name = isset($_POST['gawd_custom_report_name']) ? sanitize_text_field($_POST['gawd_custom_report_name']) : '';
|
1059 |
-
$gawd_custom_report_metric = isset($_POST['gawd_custom_report_metric']) ? sanitize_text_field($_POST['gawd_custom_report_metric']) : '';
|
1060 |
-
$gawd_custom_report_dimension = isset($_POST['gawd_custom_report_dimension']) ? sanitize_text_field($_POST['gawd_custom_report_dimension']) : '';
|
1061 |
-
if ($gawd_custom_report_name != '' && $gawd_custom_report_metric != '' && $gawd_custom_report_dimension != '') {
|
1062 |
-
$saved_custom_reports = get_option("gawd_custom_reports");
|
1063 |
-
if (!isset($saved_custom_reports[$gawd_custom_report_name])) {
|
1064 |
-
if ($saved_custom_reports) {
|
1065 |
-
$custom_reports = array(
|
1066 |
-
'metric' => $gawd_custom_report_metric,
|
1067 |
-
'dimension' => $gawd_custom_report_dimension,
|
1068 |
-
'id' => count($saved_custom_reports) + 1
|
1069 |
-
);
|
1070 |
-
$saved_custom_reports[$gawd_custom_report_name] = $custom_reports;
|
1071 |
-
update_option('gawd_custom_reports', $saved_custom_reports);
|
1072 |
-
} else {
|
1073 |
-
$custom_reports = array(
|
1074 |
-
$gawd_custom_report_name => array(
|
1075 |
-
'metric' => $gawd_custom_report_metric,
|
1076 |
-
'dimension' => $gawd_custom_report_dimension,
|
1077 |
-
'id' => 1
|
1078 |
-
)
|
1079 |
-
);
|
1080 |
-
update_option('gawd_custom_reports', $custom_reports);
|
1081 |
-
}
|
1082 |
-
}
|
1083 |
-
}
|
1084 |
-
self::add_dashboard_menu();
|
1085 |
-
}
|
1086 |
-
require_once('admin/pages/custom_reports.php');
|
1087 |
-
}
|
1088 |
|
1089 |
-
|
1090 |
-
{
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
$gawd_user_data['webPropertyId'] = $profile['webPropertyId'];
|
1102 |
-
$gawd_user_data['accountId'] = $profile['accountId'];
|
1103 |
-
}
|
1104 |
-
}
|
1105 |
-
}
|
1106 |
-
$gawd_user_data['web_property_name'] = isset($_POST['web_property_name']) ? $_POST['web_property_name'] : '';
|
1107 |
-
update_option('gawd_user_data', $gawd_user_data);
|
1108 |
-
}
|
1109 |
-
require_once('admin/pages/overview.php');
|
1110 |
}
|
1111 |
|
1112 |
-
|
1113 |
-
|
1114 |
-
global $gawd_client, $gawd_user_data;
|
1115 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1116 |
-
$profiles = $gawd_client->get_profiles();
|
1117 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1118 |
-
$gawd_settings = get_option('gawd_settings');
|
1119 |
-
if (isset($_POST['gawd_id'])) {
|
1120 |
-
$gawd_user_data['gawd_id'] = isset($_POST['gawd_id']) ? $_POST['gawd_id'] : '';
|
1121 |
-
foreach ($gawd_user_data['gawd_profiles'] as $web_property_name => $web_property) {
|
1122 |
-
foreach ($web_property as $profile) {
|
1123 |
-
if ($profile['id'] == $gawd_user_data['gawd_id']) {
|
1124 |
-
$gawd_user_data['web_property_name'] = $web_property_name;
|
1125 |
-
$gawd_user_data['webPropertyId'] = $profile['webPropertyId'];
|
1126 |
-
$gawd_user_data['accountId'] = $profile['accountId'];
|
1127 |
-
}
|
1128 |
-
}
|
1129 |
-
}
|
1130 |
-
$gawd_user_data['web_property_name'] = isset($_POST['web_property_name']) ? $_POST['web_property_name'] : '';
|
1131 |
-
update_option('gawd_user_data', $gawd_user_data);
|
1132 |
-
}
|
1133 |
-
require_once('admin/pages/dashboard.php');
|
1134 |
-
}
|
1135 |
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
$emails = get_option('gawd_email');
|
1141 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1142 |
-
$data = '';
|
1143 |
-
foreach ($emails as $email) {
|
1144 |
-
if (isset($email['period']) && $email['period'] == 'daily') {
|
1145 |
-
//pls send email if ....
|
1146 |
-
$date = date('Y-m-d', strtotime('yesterday'));
|
1147 |
-
$email_subject = preg_match('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', $email['email_subject']) ? preg_replace('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', '(' . $date . ' - ' . $date . ')', $email['email_subject']) : $email['email_subject'] . ' (' . $date . ' - ' . $date . ')';
|
1148 |
-
$data = $this->show_data(array(
|
1149 |
-
'metric' => 'ga:' . $email['metric'],
|
1150 |
-
'dimension' => $email['dimension'],
|
1151 |
-
'start_date' => $date,
|
1152 |
-
'end_date' => $date
|
1153 |
-
));
|
1154 |
-
if ($email['export_type'] == 'pdf') {
|
1155 |
-
$filedir = $this->create_pdf_file(false, $data, $email['dimension'], $date, $date, $email['metric_compare'], $email['metric']);
|
1156 |
-
} else {
|
1157 |
-
$filedir = $this->create_csv_file(false, $data, $email['dimension'], $date, $date, $email['metric_compare'], $email['metric']);
|
1158 |
-
}
|
1159 |
-
//$attachment = gawd_export_data($data, $export_type, 'email', $email['dimension'], $email['metric'], $email['metric_compare'], $email['img'], $email['tab_name'], $start_date, $end_date, $gawd_user_data['web_property_name'],$filter_type);
|
1160 |
-
$attachment = $filedir;
|
1161 |
-
$headers = 'From: <' . $email['email_from'] . '>';
|
1162 |
-
wp_mail($email['emails'], $email_subject, $email['email_body'], $headers, $attachment);
|
1163 |
-
}
|
1164 |
-
}
|
1165 |
}
|
1166 |
|
1167 |
-
|
1168 |
-
|
1169 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
1170 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1171 |
-
$emails = get_option('gawd_email');
|
1172 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1173 |
-
$data = '';
|
1174 |
-
foreach ($emails as $email) {
|
1175 |
-
if (isset($email['period']) && $email['period'] == 'gawd_weekly') {
|
1176 |
-
//pls send email if ....
|
1177 |
-
/*$start_date = date('Y-m-d', strtotime('last' . $email['period_day']));
|
1178 |
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
'end_date' => $end_date
|
1188 |
-
));
|
1189 |
-
if ($email['export_type'] == 'pdf') {
|
1190 |
-
$filedir = $this->create_pdf_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
1191 |
-
} else {
|
1192 |
-
$filedir = $this->create_csv_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
1193 |
-
}
|
1194 |
-
//$attachment = gawd_export_data($data, $export_type, 'email', $email['dimension'], $email['metric'], $email['metric_compare'], $email['img'], $email['tab_name'], $start_date, $end_date, $gawd_user_data['web_property_name'],$filter_type);
|
1195 |
-
$attachment = $filedir;
|
1196 |
-
$headers = 'From: <' . $email['email_from'] . '>';
|
1197 |
-
wp_mail($email['emails'], $email_subject, $email['email_body'], $headers, $attachment);
|
1198 |
-
}
|
1199 |
-
}
|
1200 |
-
}
|
1201 |
|
1202 |
-
|
1203 |
-
{
|
1204 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
1205 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1206 |
-
$emails = get_option('gawd_email');
|
1207 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1208 |
-
$data = '';
|
1209 |
-
foreach ($emails as $email) {
|
1210 |
-
if (isset($email['period']) && $email['period'] == 'gawd_monthly') {
|
1211 |
-
//pls send email if ....
|
1212 |
-
$end_date = date('Y-m-d', strtotime(date('Y-' . date('m') . '-1') . '-1 day'));
|
1213 |
-
$start_date = date('Y-m-d', strtotime($end_date . '- 1 month'));
|
1214 |
-
$data = $this->show_data(array(
|
1215 |
-
'metric' => 'ga:' . $email['metric'],
|
1216 |
-
'dimension' => $email['dimension'],
|
1217 |
-
'start_date' => $start_date,
|
1218 |
-
'end_date' => $end_date
|
1219 |
-
));
|
1220 |
-
$email_subject = preg_match('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', $email['email_subject']) ? preg_replace('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', '(' . $start_date . ' - ' . $end_date . ')', $email['email_subject']) : $email['email_subject'] . ' (' . $start_date . ' - ' . $end_date . ')';
|
1221 |
-
if ($email['export_type'] == 'pdf') {
|
1222 |
-
$filedir = $this->create_pdf_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
1223 |
-
} else {
|
1224 |
-
$filedir = $this->create_csv_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
1225 |
-
}
|
1226 |
-
//$attachment = gawd_export_data($data, $export_type, 'email', $email['dimension'], $email['metric'], $email['metric_compare'], $email['img'], $email['tab_name'], $start_date, $end_date, $gawd_user_data['web_property_name'],$filter_type);
|
1227 |
-
$attachment = $filedir;
|
1228 |
-
$headers = 'From: <' . $email['email_from'] . '>';
|
1229 |
-
wp_mail($email['emails'], $email_subject, $email['email_body'], $headers, $attachment);
|
1230 |
-
}
|
1231 |
-
}
|
1232 |
-
}
|
1233 |
|
1234 |
-
/**
|
1235 |
-
* Prepares the settings to be displayed then displays the settings page.
|
1236 |
-
*/
|
1237 |
-
public static function gawd_settings_defaults()
|
1238 |
-
{
|
1239 |
-
$settings = get_option('gawd_settings');
|
1240 |
-
$settings['gawd_tracking_enable'] = 'on';
|
1241 |
-
$settings['gawd_custom_dimension_Logged_in'] = 'on';
|
1242 |
-
$settings['gawd_custom_dimension_Post_type'] = 'on';
|
1243 |
-
$settings['gawd_custom_dimension_Author'] = 'on';
|
1244 |
-
$settings['gawd_custom_dimension_Category'] = 'on';
|
1245 |
-
$settings['gawd_custom_dimension_Published_Month'] = 'on';
|
1246 |
-
$settings['gawd_custom_dimension_Published_Year'] = 'on';
|
1247 |
-
$settings['gawd_custom_dimension_Tags'] = 'on';
|
1248 |
-
$settings['enable_hover_tooltip'] = 'on';
|
1249 |
-
$settings['gawd_show_in_dashboard'] = 'on';
|
1250 |
-
$settings['post_page_chart'] = 'on';
|
1251 |
-
$settings['show_report_page'] = 'off';
|
1252 |
-
update_option('gawd_settings', $settings);
|
1253 |
-
}
|
1254 |
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1259 |
-
if (isset($gawd_user_data['default_webPropertyId']) && $gawd_user_data['default_webPropertyId']) {
|
1260 |
-
return 'done';
|
1261 |
-
} else {
|
1262 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1263 |
-
$property = $gawd_client->property_exists();
|
1264 |
-
if ($property == 'no_matches') {
|
1265 |
-
//$this->gawd_admin_notice("<p class='gawd_notice'>You don't have any web-properties with current site url, go with <a href='" . admin_url('admin.php?page=gawd_tracking') . "'>this</a> link to add.</p>", 'error');
|
1266 |
-
// show notice that you don't have property with current site url
|
1267 |
-
// add account or property to an existing account
|
1268 |
-
} elseif (count($property) == 1) {
|
1269 |
-
$property = $property[0];
|
1270 |
-
$gawd_user_data['webPropertyId'] = $property['id'];
|
1271 |
-
$gawd_user_data['default_webPropertyId'] = $property['id'];
|
1272 |
-
$gawd_user_data['accountId'] = $property['accountId'];
|
1273 |
-
$gawd_user_data['default_accountId'] = $property['accountId'];
|
1274 |
-
$gawd_user_data['gawd_id'] = $property['defaultProfileId'];
|
1275 |
-
update_option('gawd_user_data', $gawd_user_data);
|
1276 |
-
$this->gawd_admin_notice("In order to enable tracking for your website, you have to go with
|
1277 |
-
|
1278 |
-
<a href='" . admin_url('admin.php?page=gawd_tracking') . "'>this</a> link and turn the option on.", 'warning is-dismissible');
|
1279 |
-
// show notice that you have to enable tracking code, link to tracking submenu
|
1280 |
-
} else {
|
1281 |
-
$this->gawd_admin_notice("You have two or more web-properties configured with current site url. Please go with
|
1282 |
|
1283 |
-
<a href='" . admin_url('admin.php?page=gawd_tracking') . "'>this</a> link to select the proper one.", 'error');
|
1284 |
-
// show notice that you have >=2 properties with current site url
|
1285 |
-
// select property from same url properties
|
1286 |
-
}
|
1287 |
-
}
|
1288 |
}
|
1289 |
|
1290 |
-
|
1291 |
-
|
1292 |
-
global $gawd_user_data;
|
1293 |
-
if (isset($gawd_user_data['default_webPropertyId']) && $gawd_user_data['default_webPropertyId']) {
|
1294 |
-
return 'done';
|
1295 |
-
} else {
|
1296 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1297 |
-
$property = $gawd_client->property_exists();
|
1298 |
-
if ($property == 'no_matches') {
|
1299 |
-
$accounts = $gawd_client->get_management_accounts();
|
1300 |
-
if (!empty($accounts)) {
|
1301 |
-
echo "<h3 style='margin-top:10px' class='gawd_page_titles'>Tracking</h3>
|
1302 |
-
|
1303 |
-
<p class='gawd_notice notice'>Create <b>web property</b> on your Google Analytics account to enable tracking of this website. After creating a <b>web property</b> Google Analytics tracking code automatically will be added to your website.</p></br>
|
1304 |
-
|
1305 |
-
<form method='post' id='gawd_property_add'>
|
1306 |
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
<span class='gawd_goal_input'>
|
1314 |
-
|
1315 |
-
<select name='gawd_account_select' class='gawd_account_select' style='padding: 2px;width: 96%;line-height: 30px;height: 30px !important;'>";
|
1316 |
-
foreach ($accounts as $account) {
|
1317 |
-
echo "<option value='" . $account['id'] . "'>" . $account['name'] . "</option>";
|
1318 |
-
}
|
1319 |
-
echo "</select>
|
1320 |
-
|
1321 |
-
</span>
|
1322 |
-
|
1323 |
-
<div class='gawd_info' title='Choose the Google Analytics account to connect this property to.'></div>
|
1324 |
-
|
1325 |
-
<div class='clear'></div>
|
1326 |
-
|
1327 |
-
</div>
|
1328 |
-
|
1329 |
-
<div class='gawd_goal_row'>
|
1330 |
-
|
1331 |
-
<span class='gawd_goal_label'>Name</span>
|
1332 |
-
|
1333 |
-
<span class='gawd_goal_input'>
|
1334 |
-
|
1335 |
-
<input id='gawd_property_name' name='gawd_property_name' type='text'>
|
1336 |
-
|
1337 |
-
</span>
|
1338 |
-
|
1339 |
-
<div class='gawd_info' title='Provide a name for the property.'></div>
|
1340 |
-
|
1341 |
-
<div class='clear'></div>
|
1342 |
-
|
1343 |
-
</div>
|
1344 |
-
|
1345 |
-
</div>
|
1346 |
-
|
1347 |
-
<div class='gawd_add_prop gawd_submit'>
|
1348 |
-
|
1349 |
-
<a href='" . admin_url() . "admin.php?page=gawd_analytics' class='gawd_later button_gawd'>Later</a>
|
1350 |
-
|
1351 |
-
<input type='button' id='gawd_add_property' class='button_gawd' value='Add'/>
|
1352 |
-
|
1353 |
-
<input type='hidden' id='add_property' name='add_property'/>
|
1354 |
-
|
1355 |
-
</div>
|
1356 |
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1374 |
} else {
|
1375 |
-
|
1376 |
-
|
1377 |
-
<br/>
|
1378 |
-
|
1379 |
-
<form method='post' id='gawd_property_select'>
|
1380 |
-
|
1381 |
-
<div class='gawd_settings_wrapper'>
|
1382 |
-
|
1383 |
-
<div class='gawd_goal_row'>
|
1384 |
-
|
1385 |
-
<span class='gawd_goal_label'>Web-property</span>
|
1386 |
-
|
1387 |
-
<span class='gawd_goal_input'>
|
1388 |
-
|
1389 |
-
<select name='gawd_property_select' class='gawd_property_select' style='padding: 2px;width: 96%;line-height: 30px;height: 30px !important;'>";
|
1390 |
-
foreach ($property as $select_property) {
|
1391 |
-
echo "<option value='" . $select_property['id'] . "'>" . $select_property['name'] . " (" . $select_property['id'] . ")</option>";
|
1392 |
-
}
|
1393 |
-
echo "</select>
|
1394 |
-
|
1395 |
-
</span>
|
1396 |
-
|
1397 |
-
<div class='gawd_info' title=''></div>
|
1398 |
-
|
1399 |
-
<div class='clear'></div>
|
1400 |
-
|
1401 |
-
</div>
|
1402 |
-
|
1403 |
-
</div>
|
1404 |
-
|
1405 |
-
<div class='gawd_submit'><input type='submit' name='lock_property' class='button_gawd' value='SAVE'/></div>
|
1406 |
-
|
1407 |
-
</form>";
|
1408 |
-
// web property select to select from properties with same site url
|
1409 |
-
// wp_die();
|
1410 |
-
}
|
1411 |
-
}
|
1412 |
-
}
|
1413 |
-
|
1414 |
-
public function gawd_admin_notice($message, $type)
|
1415 |
-
{
|
1416 |
-
$class = 'notice notice-' . $type;
|
1417 |
-
echo '<div class="' . $class . '"><p>' . $message . '</p></div>';
|
1418 |
-
}
|
1419 |
-
|
1420 |
-
public function gawd_display_settings_page()
|
1421 |
-
{
|
1422 |
-
global $gawd_user_data;
|
1423 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1424 |
-
$accounts = $gawd_client->get_management_accounts(true);
|
1425 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1426 |
-
if (isset($_GET['defaultExist']) && $_GET['defaultExist'] == 1) {
|
1427 |
-
$redirect_url = admin_url() . 'admin.php?page=gawd_tracking';
|
1428 |
-
echo '<script>window.location.href="' . $redirect_url . '";</script>';
|
1429 |
-
}
|
1430 |
-
if (isset($_POST['gawd_settings_logout']) && $_POST['gawd_settings_logout'] == 1) {
|
1431 |
-
delete_option('gawd_user_data');
|
1432 |
-
delete_option('gawd_user_status');
|
1433 |
-
delete_option('gawd_account_status');
|
1434 |
-
$redirect_url = admin_url() . 'admin.php?page=gawd_settings';
|
1435 |
-
echo '<script>window.location.href="' . $redirect_url . '";</script>';
|
1436 |
-
}
|
1437 |
-
if (isset($_POST['web_property_name']) && $_POST['web_property_name'] != '') {
|
1438 |
-
$gawd_user_data['gawd_id'] = isset($_POST['gawd_id']) ? $_POST['gawd_id'] : '';
|
1439 |
-
foreach ($gawd_user_data['gawd_profiles'] as $web_property_name => $web_property) {
|
1440 |
-
foreach ($web_property as $profile) {
|
1441 |
-
if ($profile['id'] == $gawd_user_data['gawd_id']) {
|
1442 |
-
$gawd_user_data['web_property_name'] = $web_property_name;
|
1443 |
-
$gawd_user_data['webPropertyId'] = $profile['webPropertyId'];
|
1444 |
-
$gawd_user_data['accountId'] = $profile['accountId'];
|
1445 |
-
}
|
1446 |
-
}
|
1447 |
}
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
$gawd_user_data['accountId'] = isset($_POST['gawd_id']) ? $_POST['gawd_id'] : '';
|
1456 |
-
|
1457 |
-
foreach ($gawd_user_data['gawd_profiles'] as $web_property_name => $web_property) {
|
1458 |
-
|
1459 |
-
foreach ($web_property as $profile) {
|
1460 |
-
|
1461 |
-
if ($profile['accountId'] == $gawd_user_data['accountId']) {
|
1462 |
-
|
1463 |
-
$gawd_user_data['web_property_name'] = $web_property_name;
|
1464 |
-
|
1465 |
-
$gawd_user_data['webPropertyId'] = $profile['webPropertyId'];
|
1466 |
-
|
1467 |
-
$gawd_user_data['accountId'] = $profile['accountId'];
|
1468 |
-
|
1469 |
-
}
|
1470 |
-
|
1471 |
-
}
|
1472 |
-
|
1473 |
}
|
|
|
|
|
1474 |
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
$
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1499 |
}
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1517 |
|
1518 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1519 |
|
1520 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1521 |
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
|
|
|
|
|
|
|
|
|
|
1525 |
|
1526 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1527 |
|
1528 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1529 |
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
// return;
|
1534 |
-
}
|
1535 |
-
try {
|
1536 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1537 |
-
$gawd_client->get_profiles();
|
1538 |
-
} catch (Google_Service_Exception $e) {
|
1539 |
-
$errors = $e->getErrors();
|
1540 |
-
return $errors[0]["message"];
|
1541 |
-
} catch (Exception $e) {
|
1542 |
-
$myFile = GAWD_UPLOAD_DIR."/logfile.txt"; ;
|
1543 |
-
$fh = fopen($myFile, 'a');
|
1544 |
-
fwrite($fh, $e->getMessage(). "----gawd_display_settings_page function".PHP_EOL);
|
1545 |
-
fclose($fh);
|
1546 |
-
return $e->getMessage();
|
1547 |
-
}
|
1548 |
-
$gawd_alert_remove = isset($_POST['gawd_alert_remove']) ? intval($_POST['gawd_alert_remove']) : false;
|
1549 |
-
$gawd_menu_remove = isset($_POST['gawd_menu_remove']) ? intval($_POST['gawd_menu_remove']) : false;
|
1550 |
-
$gawd_pushover_remove = isset($_POST['gawd_pushover_remove']) ? intval($_POST['gawd_pushover_remove']) : false;
|
1551 |
-
$gawd_email_remove = isset($_POST['gawd_email_remove']) ? intval($_POST['gawd_email_remove']) : false;
|
1552 |
-
$gawd_filter_remove = isset($_POST['gawd_filter_remove']) ? intval($_POST['gawd_filter_remove']) : false;
|
1553 |
-
if ($gawd_alert_remove) {
|
1554 |
-
$all_alerts = get_option('gawd_alerts');
|
1555 |
-
if ($all_alerts) {
|
1556 |
-
foreach ($all_alerts as $alert) {
|
1557 |
-
wp_unschedule_event(wp_next_scheduled('gawd_alert_' . $alert['period']), 'gawd_alert_' . $alert['period']);
|
1558 |
-
}
|
1559 |
-
unset($all_alerts[$gawd_alert_remove - 1]);
|
1560 |
-
update_option('gawd_alerts', $all_alerts);
|
1561 |
-
}
|
1562 |
-
}
|
1563 |
-
if ($gawd_menu_remove) {
|
1564 |
-
$all_menues = get_option('gawd_menu_for_user');
|
1565 |
-
if ($all_menues) {
|
1566 |
-
unset($all_menues[$gawd_menu_remove]);
|
1567 |
-
update_option('gawd_menu_for_user', $all_menues);
|
1568 |
-
}
|
1569 |
-
}
|
1570 |
-
if ($gawd_email_remove) {
|
1571 |
-
$all_emails = get_option('gawd_email');
|
1572 |
-
if ($all_emails) {
|
1573 |
-
foreach ($all_emails as $email) {
|
1574 |
-
wp_unschedule_event(wp_next_scheduled('gawd_email_' . $email['period']), 'gawd_email_' . $email['period']);
|
1575 |
-
}
|
1576 |
-
unset($all_emails[$gawd_email_remove - 1]);
|
1577 |
-
update_option('gawd_email', $all_emails);
|
1578 |
-
}
|
1579 |
-
}
|
1580 |
-
if ($gawd_filter_remove) {
|
1581 |
-
$analytics = $gawd_client->analytics_member;
|
1582 |
-
$accountId = $gawd_client->get_profile_accountId();
|
1583 |
-
try {
|
1584 |
-
$analytics->management_filters->delete($accountId, $gawd_filter_remove);
|
1585 |
-
} catch (apiServiceException $e) {
|
1586 |
-
print 'There was an Analytics API service error '
|
1587 |
-
. $e->getCode() . ':' . $e->getMessage();
|
1588 |
-
} catch (apiException $e) {
|
1589 |
-
print 'There was a general API error '
|
1590 |
-
. $e->getCode() . ':' . $e->getMessage();
|
1591 |
-
} catch (Exception $e) {
|
1592 |
-
$myFile = GAWD_UPLOAD_DIR."/logfile.txt"; ;
|
1593 |
-
$fh = fopen($myFile, 'a');
|
1594 |
-
fwrite($fh, $e->getMessage(). "----check_property_delete function get_profile_accountId".PHP_EOL);
|
1595 |
-
fclose($fh);
|
1596 |
-
echo '<script>window.location.href="' . admin_url() . 'admin.php?page=gawd_settings&errorMsg=1#gawd_filters_tab";</script>';
|
1597 |
-
}
|
1598 |
-
}
|
1599 |
-
$gawd_pushover_remove = isset($_POST['gawd_pushover_remove']) ? $_POST['gawd_pushover_remove'] : false;
|
1600 |
-
if ($gawd_pushover_remove) {
|
1601 |
-
$all_pushovers = get_option('gawd_pushovers');
|
1602 |
-
if ($all_pushovers) {
|
1603 |
-
foreach ($all_pushovers as $pushover) {
|
1604 |
-
wp_unschedule_event(wp_next_scheduled('gawd_pushover_' . $pushover['period']), 'gawd_pushover_' . $pushover['period']);
|
1605 |
-
}
|
1606 |
-
unset($all_pushovers[$gawd_pushover_remove - 1]);
|
1607 |
-
update_option('gawd_pushovers', $all_pushovers);
|
1608 |
-
}
|
1609 |
-
}
|
1610 |
-
if (isset($_POST['settings_submit'])) {
|
1611 |
-
check_admin_referer('gawd_save_form', 'gawd_save_form_fild');
|
1612 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1613 |
-
$gawd_alert_name = isset($_POST['gawd_alert_name']) ? sanitize_text_field($_POST['gawd_alert_name']) : '';
|
1614 |
-
$gawd_alert_period = isset($_POST['gawd_alert_name']) ? sanitize_text_field($_POST['gawd_alert_period']) : '';
|
1615 |
-
$gawd_alert_metric = isset($_POST['gawd_alert_metric']) ? sanitize_text_field($_POST['gawd_alert_metric']) : '';
|
1616 |
-
$gawd_alert_condition = isset($_POST['gawd_alert_condition']) ? sanitize_text_field($_POST['gawd_alert_condition']) : '';
|
1617 |
-
$gawd_alert_value = isset($_POST['gawd_alert_value']) ? sanitize_text_field($_POST['gawd_alert_value']) : '';
|
1618 |
-
$gawd_alert_emails = isset($_POST['gawd_alert_emails']) ? sanitize_email($_POST['gawd_alert_emails']) : '';
|
1619 |
-
$gawd_alert_view = isset($_POST['gawd_alert_view']) ? sanitize_text_field($_POST['gawd_alert_view']) : '';
|
1620 |
-
$alert_view_name = isset($_POST['alert_view_name']) ? sanitize_text_field($_POST['alert_view_name']) : '';
|
1621 |
-
if ($gawd_alert_name != '' && $gawd_alert_period != '' && $gawd_alert_metric != '' && $gawd_alert_condition != '' && $gawd_alert_value != '' && $gawd_alert_emails != '') {
|
1622 |
-
$saved_alerts = get_option('gawd_alerts');
|
1623 |
-
if ($saved_alerts) {
|
1624 |
-
$gawd_alert_options = array(
|
1625 |
-
'name' => $gawd_alert_name,
|
1626 |
-
'period' => $gawd_alert_period,
|
1627 |
-
'metric' => $gawd_alert_metric,
|
1628 |
-
'condition' => $gawd_alert_condition,
|
1629 |
-
'value' => $gawd_alert_value,
|
1630 |
-
'creation_date' => date('Y-m-d'),
|
1631 |
-
'emails' => $gawd_alert_emails,
|
1632 |
-
'alert_view' => $gawd_alert_view,
|
1633 |
-
'alert_view_name' => $alert_view_name
|
1634 |
-
);
|
1635 |
-
$saved_alerts[] = $gawd_alert_options;
|
1636 |
-
update_option('gawd_alerts', $saved_alerts);
|
1637 |
-
} else {
|
1638 |
-
$gawd_alert_options = array(
|
1639 |
-
0 => array(
|
1640 |
-
'name' => $gawd_alert_name,
|
1641 |
-
'period' => $gawd_alert_period,
|
1642 |
-
'metric' => $gawd_alert_metric,
|
1643 |
-
'condition' => $gawd_alert_condition,
|
1644 |
-
'value' => $gawd_alert_value,
|
1645 |
-
'creation_date' => date('Y-m-d'),
|
1646 |
-
'emails' => $gawd_alert_emails,
|
1647 |
-
'alert_view' => $gawd_alert_view,
|
1648 |
-
'alert_view_name' => $alert_view_name
|
1649 |
-
)
|
1650 |
-
);
|
1651 |
-
update_option('gawd_alerts', $gawd_alert_options);
|
1652 |
-
}
|
1653 |
-
$saved_alerts = get_option('gawd_alerts');
|
1654 |
-
if ($saved_alerts) {
|
1655 |
-
foreach ($saved_alerts as $alert) {
|
1656 |
-
if (!wp_next_scheduled('gawd_alert_' . $alert['period'])) {
|
1657 |
-
wp_schedule_event(time(), $alert['period'], 'gawd_alert_' . $alert['period']);
|
1658 |
-
}
|
1659 |
-
}
|
1660 |
-
}
|
1661 |
-
}
|
1662 |
-
$gawd_pushover_name = isset($_POST['gawd_pushover_name']) ? sanitize_text_field($_POST['gawd_pushover_name']) : '';
|
1663 |
-
$gawd_pushover_period = isset($_POST['gawd_pushover_period']) ? sanitize_text_field($_POST['gawd_pushover_period']) : '';
|
1664 |
-
$gawd_pushover_metric = isset($_POST['gawd_pushover_metric']) ? sanitize_text_field($_POST['gawd_pushover_metric']) : '';
|
1665 |
-
$gawd_pushover_condition = isset($_POST['gawd_pushover_condition']) ? sanitize_text_field($_POST['gawd_pushover_condition']) : '';
|
1666 |
-
$gawd_pushover_value = isset($_POST['gawd_pushover_value']) ? intval($_POST['gawd_pushover_value']) : '';
|
1667 |
-
$gawd_pushover_user_keys = isset($_POST['gawd_pushover_user_keys']) ? sanitize_text_field($_POST['gawd_pushover_user_keys']) : '';
|
1668 |
-
$gawd_pushover_view = isset($_POST['gawd_pushover_view']) ? sanitize_text_field($_POST['gawd_pushover_view']) : '';
|
1669 |
-
$pushover_view_name = isset($_POST['pushover_view_name']) ? sanitize_text_field($_POST['pushover_view_name']) : '';
|
1670 |
-
if ($gawd_pushover_name != '' && $gawd_pushover_period != '' && $gawd_pushover_metric != '' && $gawd_pushover_condition != '' && $gawd_pushover_value !== '' && $gawd_pushover_user_keys != '') {
|
1671 |
-
$saved_pushovers = get_option('gawd_pushovers');
|
1672 |
-
if ($saved_pushovers) {
|
1673 |
-
$gawd_pushover_options = array(
|
1674 |
-
'name' => $gawd_pushover_name,
|
1675 |
-
'period' => $gawd_pushover_period,
|
1676 |
-
'metric' => $gawd_pushover_metric,
|
1677 |
-
'condition' => $gawd_pushover_condition,
|
1678 |
-
'value' => $gawd_pushover_value,
|
1679 |
-
'creation_date' => date('Y-m-d'),
|
1680 |
-
'user_key' => $gawd_pushover_user_keys,
|
1681 |
-
'pushover_view' => $gawd_pushover_view,
|
1682 |
-
'pushover_view_name' => $pushover_view_name
|
1683 |
-
);
|
1684 |
-
$saved_pushovers[] = $gawd_pushover_options;
|
1685 |
-
update_option('gawd_pushovers', $saved_pushovers);
|
1686 |
-
} else {
|
1687 |
-
$gawd_pushover_options = array(
|
1688 |
-
0 => array(
|
1689 |
-
'name' => $gawd_pushover_name,
|
1690 |
-
'period' => $gawd_pushover_period,
|
1691 |
-
'metric' => $gawd_pushover_metric,
|
1692 |
-
'condition' => $gawd_pushover_condition,
|
1693 |
-
'value' => $gawd_pushover_value,
|
1694 |
-
'creation_date' => date('Y-m-d'),
|
1695 |
-
'user_key' => $gawd_pushover_user_keys,
|
1696 |
-
'pushover_view' => $gawd_pushover_view,
|
1697 |
-
'pushover_view_name' => $pushover_view_name
|
1698 |
-
)
|
1699 |
-
);
|
1700 |
-
update_option('gawd_pushovers', $gawd_pushover_options);
|
1701 |
-
}
|
1702 |
-
$saved_pushovers = get_option('gawd_pushovers');
|
1703 |
-
if ($saved_pushovers) {
|
1704 |
-
foreach ($saved_pushovers as $pushover) {
|
1705 |
-
$this->gawd_pushover_api($pushover['user_key'], $pushover['metric'], $pushover['condition'], $pushover['value']);
|
1706 |
-
if (!wp_next_scheduled('gawd_pushover_' . $pushover['period'])) {
|
1707 |
-
wp_schedule_event(time(), $pushover['period'], 'gawd_pushover_' . $pushover['period']);
|
1708 |
-
}
|
1709 |
-
}
|
1710 |
-
}
|
1711 |
-
}
|
1712 |
-
$gawd_show_in_dashboard = isset($_POST['gawd_show_in_dashboard']) ? sanitize_text_field($_POST['gawd_show_in_dashboard']) : '';
|
1713 |
-
$gawd_permissions = isset($_POST['gawd_permissions']) ? explode(',', $_POST['gawd_permissions']) : array('manage_options');
|
1714 |
-
$gawd_own_project = isset($_POST['gawd_own_project']) ? sanitize_text_field($_POST['gawd_own_project']) : '';
|
1715 |
-
$site_speed_rate = isset($_POST['site_speed_rate']) ? intval($_POST['site_speed_rate']) : '1';
|
1716 |
-
$post_page_chart = isset($_POST['post_page_chart']) ? sanitize_text_field($_POST['post_page_chart']) : '';
|
1717 |
-
$enable_cross_domain = isset($_POST['enable_cross_domain']) ? sanitize_text_field($_POST['enable_cross_domain']) : '';
|
1718 |
-
$cross_domains = isset($_POST['cross_domains']) ? sanitize_text_field($_POST['cross_domains']) : '';
|
1719 |
-
$default_date = isset($_POST['default_date']) ? $_POST['default_date'] : 'last_7_days';
|
1720 |
-
$default_date_format = isset($_POST['default_date_format']) ? $_POST['default_date_format'] : 'ymd_with_week';
|
1721 |
-
$enable_hover_tooltip = isset($_POST['enable_hover_tooltip']) ? $_POST['enable_hover_tooltip'] : '';
|
1722 |
-
$gawd_backend_roles = isset($_POST['gawd_backend_roles']) ? explode(',', $_POST['gawd_backend_roles']) : array('administrator');
|
1723 |
-
$gawd_frontend_roles = isset($_POST['gawd_frontend_roles']) ? explode(',', $_POST['gawd_frontend_roles']) : array('administrator');
|
1724 |
-
$gawd_post_page_roles = isset($_POST['gawd_post_page_roles']) ? explode(',', $_POST['gawd_post_page_roles']) : array('administrator');
|
1725 |
-
$exclude_events = isset($_POST['exclude_events']) ? sanitize_text_field($_POST['exclude_events']) : array();
|
1726 |
-
$gawd_settings_exist = get_option('gawd_settings');
|
1727 |
-
$gawd_settings_exist['gawd_show_in_dashboard'] = $gawd_show_in_dashboard;
|
1728 |
-
$gawd_settings_exist['site_speed_rate'] = $site_speed_rate;
|
1729 |
-
$gawd_settings_exist['post_page_chart'] = $post_page_chart;
|
1730 |
-
$gawd_settings_exist['enable_cross_domain'] = $enable_cross_domain;
|
1731 |
-
$gawd_settings_exist['cross_domains'] = $cross_domains;
|
1732 |
-
$gawd_settings_exist['gawd_backend_roles'] = $gawd_backend_roles;
|
1733 |
-
$gawd_settings_exist['gawd_frontend_roles'] = $gawd_frontend_roles;
|
1734 |
-
$gawd_settings_exist['gawd_post_page_roles'] = $gawd_post_page_roles;
|
1735 |
-
$gawd_settings_exist['default_date'] = $default_date;
|
1736 |
-
$gawd_settings_exist['default_date_format'] = $default_date_format;
|
1737 |
-
$gawd_settings_exist['enable_hover_tooltip'] = $enable_hover_tooltip;
|
1738 |
-
$gawd_settings_exist['exclude_events'] = $exclude_events;
|
1739 |
-
$gawd_settings_exist['gawd_permissions'] = $gawd_permissions;
|
1740 |
-
update_option('gawd_settings', $gawd_settings_exist);
|
1741 |
-
$gawd_filter_name = isset($_POST['gawd_filter_name']) ? sanitize_text_field($_POST['gawd_filter_name']) : '';
|
1742 |
-
$gawd_filter_type = isset($_POST['gawd_filter_type']) ? sanitize_text_field($_POST['gawd_filter_type']) : '';
|
1743 |
-
$gawd_filter_value = isset($_POST['gawd_filter_value']) ? $gawd_filter_type == 'GEO_IP_ADDRESS' ? ($_POST['gawd_filter_value']) : sanitize_text_field($_POST['gawd_filter_value']) : '';
|
1744 |
-
if ($gawd_filter_name != '' && $gawd_filter_type != '' && $gawd_filter_value != '') {
|
1745 |
-
$gawd_client->add_filter($gawd_filter_name, $gawd_filter_type, $gawd_filter_value);
|
1746 |
-
}
|
1747 |
-
add_option("gawd_save_settings", 1);
|
1748 |
-
}
|
1749 |
-
if (get_option('gawd_save_settings') == 1) {
|
1750 |
-
$this->gawd_admin_notice('Your changes have been saved successfully.', 'success is-dismissible');
|
1751 |
-
}
|
1752 |
-
delete_option('gawd_save_settings');
|
1753 |
-
require_once('admin/pages/settings.php');
|
1754 |
-
}
|
1755 |
}
|
|
|
1756 |
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
$credentials['project_secret'] = 'wtNiu3c_bA_g7res6chV0Trt';
|
1762 |
-
update_option('gawd_credentials', $credentials);
|
1763 |
-
delete_option('gawd_own_project');
|
1764 |
-
delete_option('gawd_user_data');
|
1765 |
-
}
|
1766 |
|
1767 |
-
|
1768 |
-
{
|
1769 |
-
global $gawd_client, $gawd_user_data;
|
1770 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1771 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1772 |
-
$add_dimension_value = isset($_POST['add_dimension_value']) ? $_POST['add_dimension_value'] : '';
|
1773 |
-
if (isset($_GET['errorMsg'])) {
|
1774 |
-
self::error_message('error', 'User does not have sufficient permissions for this account');
|
1775 |
-
}
|
1776 |
-
if (isset($_POST['add_property'])) {
|
1777 |
-
$gawd_account_select = isset($_POST['gawd_account_select']) ? $_POST['gawd_account_select'] : '';
|
1778 |
-
$gawd_property_name = isset($_POST['gawd_property_name']) ? $_POST['gawd_property_name'] : '';
|
1779 |
-
if ($gawd_account_select && $gawd_property_name) {
|
1780 |
-
$err_msg = $gawd_client->add_webproperty($gawd_account_select, $gawd_property_name);
|
1781 |
-
$redirect_url = admin_url() . 'admin.php?page=gawd_tracking&enableTracking=1';
|
1782 |
-
$gawd_client->get_management_accounts(true);
|
1783 |
-
if ($err_msg) {
|
1784 |
-
$redirect_url .= '&errorMsg=1';
|
1785 |
-
}
|
1786 |
-
echo '<script>window.location.href="' . $redirect_url . '";</script>';
|
1787 |
-
}
|
1788 |
-
}
|
1789 |
-
if (isset($_POST['lock_property'])) {
|
1790 |
-
$property = $gawd_client->property_exists();
|
1791 |
-
$gawd_property_select = $_POST['gawd_property_select'];
|
1792 |
-
foreach ($property as $property_select) {
|
1793 |
-
if ($property_select['id'] == $gawd_property_select) {
|
1794 |
-
$property = $property_select;
|
1795 |
-
break;
|
1796 |
-
}
|
1797 |
-
}
|
1798 |
-
$gawd_user_data['webPropertyId'] = $property['id'];
|
1799 |
-
$gawd_user_data['default_webPropertyId'] = $property['id'];
|
1800 |
-
$gawd_user_data['accountId'] = $property['accountId'];
|
1801 |
-
$gawd_user_data['default_accountId'] = $property['accountId'];
|
1802 |
-
$gawd_user_data['gawd_id'] = $property['defaultProfileId'];
|
1803 |
-
update_option('gawd_user_data', $gawd_user_data);
|
1804 |
-
}
|
1805 |
-
if ($this->manage_ua_code_selection_tracking() != 'done') {
|
1806 |
-
$redirect_url = admin_url() . 'admin.php?page=gawd_tracking';
|
1807 |
-
//echo '<script>window.location.href="'.$redirect_url.'";</script>';
|
1808 |
-
return;
|
1809 |
-
}
|
1810 |
-
$gawd_settings = get_option('gawd_settings');
|
1811 |
-
if ($add_dimension_value == 'add_dimension_Logged_in') {
|
1812 |
-
$id = isset($_POST['gawd_custom_dimension_id']) ? ($_POST['gawd_custom_dimension_id'] + 1) : 1;
|
1813 |
-
$gawd_client->add_custom_dimension('Logged in', $id);
|
1814 |
-
$settings = get_option('gawd_settings');
|
1815 |
-
$optname = 'gawd_custom_dimension_Logged_in';
|
1816 |
-
$settings[$optname] = isset($_POST['gawd_tracking_enable']) ? $_POST['gawd_tracking_enable'] : '';
|
1817 |
-
update_option('gawd_settings', $settings);
|
1818 |
-
}
|
1819 |
-
if ($add_dimension_value == 'add_dimension_Post_type') {
|
1820 |
-
$id = isset($_POST['gawd_custom_dimension_id']) ? ($_POST['gawd_custom_dimension_id'] + 1) : 1;
|
1821 |
-
$gawd_client->add_custom_dimension('Post type', $id);
|
1822 |
-
$settings = get_option('gawd_settings');
|
1823 |
-
$optname = 'gawd_custom_dimension_Post_type';
|
1824 |
-
$settings[$optname] = isset($_POST['gawd_tracking_enable']) ? $_POST['gawd_tracking_enable'] : '';
|
1825 |
-
update_option('gawd_settings', $settings);
|
1826 |
-
}
|
1827 |
-
if ($add_dimension_value == 'add_dimension_Author') {
|
1828 |
-
$id = isset($_POST['gawd_custom_dimension_id']) ? ($_POST['gawd_custom_dimension_id'] + 1) : 1;
|
1829 |
-
$gawd_client->add_custom_dimension('Author', $id);
|
1830 |
-
$settings = get_option('gawd_settings');
|
1831 |
-
$optname = 'gawd_custom_dimension_Author';
|
1832 |
-
$settings[$optname] = isset($_POST['gawd_tracking_enable']) ? $_POST['gawd_tracking_enable'] : '';
|
1833 |
-
update_option('gawd_settings', $settings);
|
1834 |
-
}
|
1835 |
-
if ($add_dimension_value == 'add_dimension_Category') {
|
1836 |
-
$id = isset($_POST['gawd_custom_dimension_id']) ? ($_POST['gawd_custom_dimension_id'] + 1) : 1;
|
1837 |
-
$gawd_client->add_custom_dimension('Category', $id);
|
1838 |
-
$settings = get_option('gawd_settings');
|
1839 |
-
$optname = 'gawd_custom_dimension_Category';
|
1840 |
-
$settings[$optname] = isset($_POST['gawd_tracking_enable']) ? $_POST['gawd_tracking_enable'] : '';
|
1841 |
-
update_option('gawd_settings', $settings);
|
1842 |
-
}
|
1843 |
-
if ($add_dimension_value == 'add_dimension_Published_Month') {
|
1844 |
-
$id = isset($_POST['gawd_custom_dimension_id']) ? ($_POST['gawd_custom_dimension_id'] + 1) : 1;
|
1845 |
-
$gawd_client->add_custom_dimension('Published Month', $id);
|
1846 |
-
$settings = get_option('gawd_settings');
|
1847 |
-
$optname = 'gawd_custom_dimension_Published_Month';
|
1848 |
-
$settings[$optname] = isset($_POST['gawd_tracking_enable']) ? $_POST['gawd_tracking_enable'] : '';
|
1849 |
-
update_option('gawd_settings', $settings);
|
1850 |
-
}
|
1851 |
-
if ($add_dimension_value == 'add_dimension_Published_Year') {
|
1852 |
-
$id = isset($_POST['gawd_custom_dimension_id']) ? ($_POST['gawd_custom_dimension_id'] + 1) : 1;
|
1853 |
-
$gawd_client->add_custom_dimension('Published Year', $id);
|
1854 |
-
$settings = get_option('gawd_settings');
|
1855 |
-
$optname = 'gawd_custom_dimension_Published_Year';
|
1856 |
-
$settings[$optname] = isset($_POST['gawd_tracking_enable']) ? $_POST['gawd_tracking_enable'] : '';
|
1857 |
-
update_option('gawd_settings', $settings);
|
1858 |
-
}
|
1859 |
-
if ($add_dimension_value == 'add_dimension_Tags') {
|
1860 |
-
$id = isset($_POST['gawd_custom_dimension_id']) ? ($_POST['gawd_custom_dimension_id'] + 1) : 1;
|
1861 |
-
$gawd_client->add_custom_dimension('Tags', $id);
|
1862 |
-
$settings = get_option('gawd_settings');
|
1863 |
-
$optname = 'gawd_custom_dimension_Tags';
|
1864 |
-
$settings[$optname] = isset($_POST['gawd_tracking_enable']) ? $_POST['gawd_tracking_enable'] : '';
|
1865 |
-
update_option('gawd_settings', $settings);
|
1866 |
-
}
|
1867 |
-
if (isset($_POST['settings_submit'])) {
|
1868 |
-
check_admin_referer('gawd_save_form', 'gawd_save_form_fild');
|
1869 |
-
$gawd_user_data = get_option('gawd_user_data');
|
1870 |
-
$gawd_file_formats = isset($_POST['gawd_file_formats']) ? sanitize_text_field($_POST['gawd_file_formats']) : '';
|
1871 |
-
$gawd_anonymize = isset($_POST['gawd_anonymize']) ? sanitize_text_field($_POST['gawd_anonymize']) : '';
|
1872 |
-
$gawd_tracking_enable = isset($_POST['gawd_tracking_enable']) ? sanitize_text_field($_POST['gawd_tracking_enable']) : '';
|
1873 |
-
$gawd_outbound = isset($_POST['gawd_outbound']) ? sanitize_text_field($_POST['gawd_outbound']) : '';
|
1874 |
-
$gawd_enhanced = isset($_POST['gawd_enhanced']) ? sanitize_text_field($_POST['gawd_enhanced']) : '';
|
1875 |
-
$enable_custom_code = isset($_POST['enable_custom_code']) ? $_POST['enable_custom_code'] : '';
|
1876 |
-
$custom_code = isset($_POST['gawd_custom_code']) ? stripslashes($_POST['gawd_custom_code']) : '';
|
1877 |
-
if ($add_dimension_value == '') {
|
1878 |
-
$gawd_cd_Logged_in = isset($_POST['gawd_custom_dimension_Logged_in']) ? sanitize_text_field($_POST['gawd_custom_dimension_Logged_in']) : '';
|
1879 |
-
$gawd_cd_Post_type = isset($_POST['gawd_custom_dimension_Post_type']) ? sanitize_text_field($_POST['gawd_custom_dimension_Post_type']) : '';
|
1880 |
-
$gawd_cd_Author = isset($_POST['gawd_custom_dimension_Author']) ? sanitize_text_field($_POST['gawd_custom_dimension_Author']) : '';
|
1881 |
-
$gawd_cd_Category = isset($_POST['gawd_custom_dimension_Category']) ? sanitize_text_field($_POST['gawd_custom_dimension_Category']) : '';
|
1882 |
-
$gawd_cd_Published_Month = isset($_POST['gawd_custom_dimension_Published_Month']) ? sanitize_text_field($_POST['gawd_custom_dimension_Published_Month']) : '';
|
1883 |
-
$gawd_cd_Published_Year = isset($_POST['gawd_custom_dimension_Published_Year']) ? sanitize_text_field($_POST['gawd_custom_dimension_Published_Year']) : '';
|
1884 |
-
$gawd_cd_Tags = isset($_POST['gawd_custom_dimension_Tags']) ? sanitize_text_field($_POST['gawd_custom_dimension_Tags']) : '';
|
1885 |
-
$gawd_settings['gawd_custom_dimension_Logged_in'] = $gawd_cd_Logged_in;
|
1886 |
-
$gawd_settings['gawd_custom_dimension_Post_type'] = $gawd_cd_Post_type;
|
1887 |
-
$gawd_settings['gawd_custom_dimension_Author'] = $gawd_cd_Author;
|
1888 |
-
$gawd_settings['gawd_custom_dimension_Category'] = $gawd_cd_Category;
|
1889 |
-
$gawd_settings['gawd_custom_dimension_Published_Month'] = $gawd_cd_Published_Month;
|
1890 |
-
$gawd_settings['gawd_custom_dimension_Published_Year'] = $gawd_cd_Published_Year;
|
1891 |
-
$gawd_settings['gawd_custom_dimension_Tags'] = $gawd_cd_Tags;
|
1892 |
-
}
|
1893 |
-
$gawd_excluded_roles = isset($_POST['gawd_excluded_roles']) ? $_POST['gawd_excluded_roles'] : array();
|
1894 |
-
$gawd_excluded_users = isset($_POST['gawd_excluded_users']) ? $_POST['gawd_excluded_users'] : array();
|
1895 |
-
$gawd_settings['gawd_file_formats'] = $gawd_file_formats;
|
1896 |
-
$gawd_settings['gawd_anonymize'] = $gawd_anonymize;
|
1897 |
-
$gawd_settings['gawd_file_formats'] = $gawd_file_formats;
|
1898 |
-
$gawd_settings['gawd_tracking_enable'] = $gawd_tracking_enable;
|
1899 |
-
$gawd_settings['gawd_outbound'] = $gawd_outbound;
|
1900 |
-
$gawd_settings['gawd_enhanced'] = $gawd_enhanced;
|
1901 |
-
$gawd_settings['gawd_excluded_roles'] = $gawd_excluded_roles;
|
1902 |
-
$gawd_settings['gawd_excluded_users'] = $gawd_excluded_users;
|
1903 |
-
$gawd_settings['enable_custom_code'] = $enable_custom_code;
|
1904 |
-
$gawd_settings['gawd_custom_code'] = $custom_code;
|
1905 |
-
update_option('gawd_settings', $gawd_settings);
|
1906 |
-
add_option("gawd_save_tracking", 1);
|
1907 |
-
}
|
1908 |
-
if (get_option('gawd_save_tracking') == 1) {
|
1909 |
-
$this->gawd_admin_notice('Your changes have been saved successfully.', 'success is-dismissible');
|
1910 |
-
}
|
1911 |
-
delete_option('gawd_save_tracking');
|
1912 |
-
if ($add_dimension_value != '') {
|
1913 |
-
$redirect_url = admin_url() . 'admin.php?page=gawd_tracking';
|
1914 |
-
echo '<script>window.location.href="' . $redirect_url . '";</script>';
|
1915 |
-
}
|
1916 |
-
require_once('admin/pages/tracking.php');
|
1917 |
-
}
|
1918 |
|
1919 |
-
|
1920 |
-
|
1921 |
-
|
1922 |
-
|
1923 |
-
|
1924 |
-
);
|
1925 |
-
$schedules['gawd_monthly'] = array(
|
1926 |
-
'interval' => 18748800,
|
1927 |
-
'display' => __('Every month')
|
1928 |
-
);
|
1929 |
-
return $schedules;
|
1930 |
-
}
|
1931 |
|
1932 |
-
|
1933 |
-
|
1934 |
-
$ch = curl_init();
|
1935 |
-
curl_setopt($ch, CURLOPT_URL, "https://api.pushover.net/1/messages.json");
|
1936 |
-
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
|
1937 |
-
"token" => "aJBDhTfhR87EaTzs7wpx1MMKwboBjB",
|
1938 |
-
"user" => $user_key,
|
1939 |
-
"message" => 'The ' . $metric . ' less ' . $value
|
1940 |
-
));
|
1941 |
-
// curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);
|
1942 |
-
curl_exec($ch);
|
1943 |
-
curl_close($ch);
|
1944 |
-
}
|
1945 |
|
1946 |
-
|
1947 |
-
|
1948 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
1949 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1950 |
-
$pushovers = get_option('gawd_pushovers');
|
1951 |
-
$data = '';
|
1952 |
-
$condition = '';
|
1953 |
-
foreach ($pushovers as $pushover) {
|
1954 |
-
if (isset($pushover['period']) && $pushover['period'] == 'daily') {
|
1955 |
-
//pls send email if ....
|
1956 |
-
$date = date('Y-m-d', strtotime('yesterday'));
|
1957 |
-
$data = $gawd_client->get_data_alert('ga:' . $pushover['metric'], 'date', $date, $date, $pushover['pushover_view']);
|
1958 |
-
$pushover_condition = $pushover['condition'] == 'greater' ? '>' : '<';
|
1959 |
-
if (!eval($data . $pushover_condition . $pushover['value'] . ';')) {
|
1960 |
-
$cond = ' ' . $pushover['condition'] . ' than';
|
1961 |
-
$this->gawd_pushover_api($pushover['user_key'], $pushover['metric'], $pushover['condition'], $pushover['value']);
|
1962 |
-
}
|
1963 |
-
}
|
1964 |
-
}
|
1965 |
-
}
|
1966 |
|
1967 |
-
|
1968 |
-
|
1969 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
1970 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1971 |
-
$pushovers = get_option('gawd_pushovers');
|
1972 |
-
$data = '';
|
1973 |
-
$condition = '';
|
1974 |
-
foreach ($pushovers as $pushover) {
|
1975 |
-
if (isset($pushover['period']) && $pushover['period'] == 'gawd_weekly') {
|
1976 |
-
//pls send email if ....
|
1977 |
-
$start_date = date('Y-m-d', strtotime('last week -1 day'));
|
1978 |
-
$end_date = date('l') != 'Sunday' ? date('Y-m-d', strtotime('last sunday -1 day')) : date('Y-m-d', strtotime('-1 day'));
|
1979 |
-
$data = $gawd_client->get_data_alert('ga:' . $pushover['metric'], 'date', $start_date, $end_date, $pushover['pushover_view']);
|
1980 |
-
$pushover_condition = $pushover['condition'] == 'greater' ? '>' : '<';
|
1981 |
-
if (!eval($data . $pushover_condition . $pushover['value'] . ';')) {
|
1982 |
-
$cond = ' ' . $pushover['condition'] . ' than';
|
1983 |
-
$this->gawd_pushover_api($pushover['user_key'], $pushover['metric'], $pushover['condition'], $pushover['value']);
|
1984 |
-
}
|
1985 |
-
}
|
1986 |
-
}
|
1987 |
-
}
|
1988 |
|
1989 |
-
public function gawd_pushover_monthly()
|
1990 |
-
{
|
1991 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
1992 |
-
$gawd_client = GAWD_google_client::get_instance();
|
1993 |
-
$pushovers = get_option('gawd_pushovers');
|
1994 |
-
$data = '';
|
1995 |
-
$condition = '';
|
1996 |
-
foreach ($pushovers as $pushover) {
|
1997 |
-
if (isset($pushover['period']) && $pushover['period'] == 'gawd_monthly') {
|
1998 |
-
//pls send email if ....
|
1999 |
-
$end_date = date('Y-m-t', strtotime('last month'));
|
2000 |
-
$start_date = date('Y-m-01', strtotime('last month'));
|
2001 |
-
$data = $gawd_client->get_data_alert('ga:' . $pushover['metric'], 'date', $start_date, $end_date, $pushover['pushover_view']);
|
2002 |
-
$pushover_condition = $pushover['condition'] == 'greater' ? '>' : '<';
|
2003 |
-
if (!eval($data . $pushover_condition . $pushover['value'] . ';')) {
|
2004 |
-
$cond = ' ' . $pushover['condition'] . ' than';
|
2005 |
-
$this->gawd_pushover_api($pushover['user_key'], $pushover['metric'], $pushover['condition'], $pushover['value']);
|
2006 |
-
}
|
2007 |
-
}
|
2008 |
-
}
|
2009 |
}
|
2010 |
|
2011 |
-
|
2012 |
-
{
|
2013 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
2014 |
-
$gawd_client = GAWD_google_client::get_instance();
|
2015 |
-
$alerts = get_option('gawd_alerts');
|
2016 |
-
$data = '';
|
2017 |
-
$condition = '';
|
2018 |
-
$email_from = get_option('admin_email');
|
2019 |
-
foreach ($alerts as $alert) {
|
2020 |
-
if (isset($alert['period']) && $alert['period'] == 'daily') {
|
2021 |
-
//pls send email if ....
|
2022 |
-
$date = date('Y-m-d', strtotime('yesterday'));
|
2023 |
-
$data = $gawd_client->get_data_alert('ga:' . $alert['metric'], 'date', $date, $date, $alert['alert_view']);
|
2024 |
-
$alert_condition = $alert['condition'] == 'greater' ? '>' : '<';
|
2025 |
-
$color_condition = $alert['condition'] == 'greater' ? 'rgb(157, 207, 172)' : 'rgb(251, 133, 131)';
|
2026 |
-
if (!eval($data . $alert_condition . $alert['value'] . ';')) {
|
2027 |
-
$cond = ' ' . $alert['condition'] . ' than';
|
2028 |
-
$headers = array();
|
2029 |
-
$headers[] = 'From: <' . $email_from . '>';
|
2030 |
-
$headers[] = 'Content-Type: text/html';
|
2031 |
-
$content = '<div style="font-family: sans-serif;width:100%;height:50px;background-color:#FB8583;font-size:20px;color:#fff;margin-bottom:20px;text-align:center;line-height:50px">Google Analytics WD Alert!</div><p style="color:#808080;text-align: center;font-size: 26px;font-family: sans-serif;">' . preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $alert['metric'])))) . ' in <a style="text-decoration:none;color:rgba(124,181,216,1);font-family: sans-serif;" href="' . $alert["alert_view_name"] . '" target="_blank">' . $alert["alert_view_name"] . '</a> are <span style="color:' . $color_condition . '">' . $cond . '</span></p><p style="color:rgba(124,181,216,1);font-size: 26px;font-family: sans-serif; text-align: center;">' . $alert['value'] . '</p>';
|
2032 |
-
wp_mail($alert['emails'], 'Analytics Alert', $content, $headers);
|
2033 |
-
}
|
2034 |
-
}
|
2035 |
-
}
|
2036 |
-
}
|
2037 |
|
2038 |
-
|
2039 |
-
|
2040 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
2041 |
-
$gawd_client = GAWD_google_client::get_instance();
|
2042 |
-
$alerts = get_option('gawd_alerts');
|
2043 |
-
$data = '';
|
2044 |
-
$condition = '';
|
2045 |
-
$email_from = get_option('admin_email');
|
2046 |
-
foreach ($alerts as $alert) {
|
2047 |
-
if (isset($alert['period']) && $alert['period'] == 'gawd_weekly') {
|
2048 |
-
//pls send email if ....
|
2049 |
-
$start_date = date('Y-m-d', strtotime('last week -1 day'));
|
2050 |
-
$end_date = date('l') != 'Sunday' ? date('Y-m-d', strtotime('last sunday -1 day')) : date('Y-m-d', strtotime('-1 day'));
|
2051 |
-
$data = $gawd_client->get_data_alert('ga:' . $alert['metric'], 'date', $start_date, $end_date, $alert['alert_view']);
|
2052 |
-
$alert_condition = $alert['condition'] == 'greater' ? '>' : '<';
|
2053 |
-
if (!eval($data . $alert_condition . $alert['value'] . ';')) {
|
2054 |
-
$cond = ' ' . $alert['condition'] . ' than';
|
2055 |
-
$headers = array();
|
2056 |
-
$headers[] = 'From: <' . $email_from . '>';
|
2057 |
-
$headers[] = 'Content-Type: text/html';
|
2058 |
-
$content = '<div style="font-family: sans-serif;width:100%;height:50px;background-color:#FB8583;font-size:20px;color:#fff;margin-bottom:20px;text-align:center;line-height:50px">Google Analytics WD Alert!</div><p style="color:#808080;text-align: center;font-size: 26px;font-family: sans-serif;">' . preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $alert['metric'])))) . ' in <a style="text-decoration:none;color:rgba(124,181,216,1);font-family: sans-serif;" href="' . $alert["alert_view_name"] . '" target="_blank">' . $alert["alert_view_name"] . '</a> are <span style="color:' . $color_condition . '">' . $cond . '</span></p><p style="color:rgba(124,181,216,1);font-size: 26px;font-family: sans-serif; text-align: center;">' . $alert['value'] . '</p>';
|
2059 |
-
wp_mail($alert['emails'], 'Analytics Alert', $content, $headers);
|
2060 |
-
}
|
2061 |
-
}
|
2062 |
-
}
|
2063 |
-
}
|
2064 |
|
2065 |
-
public function gawd_alert_monthly()
|
2066 |
-
{
|
2067 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
2068 |
-
$gawd_client = GAWD_google_client::get_instance();
|
2069 |
-
$alerts = get_option('gawd_alerts');
|
2070 |
-
$data = '';
|
2071 |
-
$email_from = get_option('admin_email');
|
2072 |
-
foreach ($alerts as $alert) {
|
2073 |
-
if (isset($alert['period']) && $alert['period'] == 'gawd_monthly') {
|
2074 |
-
//pls send email if ....
|
2075 |
-
$end_date = date('Y-m-t', strtotime('last month'));
|
2076 |
-
$start_date = date('Y-m-01', strtotime('last month'));
|
2077 |
-
$data = $gawd_client->get_data_alert('ga:' . $alert['metric'], 'date', $start_date, $end_date, $alert['alert_view']);
|
2078 |
-
$alert_condition = $alert['condition'] == 'greater' ? '>' : '<';
|
2079 |
-
if (!eval($data . $alert_condition . $alert['value'] . ';')) {
|
2080 |
-
$cond = ' ' . $alert['condition'] . ' than';
|
2081 |
-
$headers = array();
|
2082 |
-
$headers[] = 'From: <' . $email_from . '>';
|
2083 |
-
$headers[] = 'Content-Type: text/html';
|
2084 |
-
$content = '<div style="font-family: sans-serif;width:100%;height:50px;background-color:#FB8583;font-size:20px;color:#fff;margin-bottom:20px;text-align:center;line-height:50px">Google Analytics WD Alert!</div><p style="color:#808080;text-align: center;font-size: 26px;font-family: sans-serif;">' . preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $alert['metric'])))) . ' in <a style="text-decoration:none;color:rgba(124,181,216,1);font-family: sans-serif;" href="' . $alert["alert_view_name"] . '" target="_blank">' . $alert["alert_view_name"] . '</a> are <span style="color:' . $color_condition . '">' . $cond . '</span></p><p style="color:rgba(124,181,216,1);font-size: 26px;font-family: sans-serif; text-align: center;">' . $alert['value'] . '</p>';
|
2085 |
-
wp_mail($alert['emails'], 'Analytics Alert', $content, $headers);
|
2086 |
-
}
|
2087 |
-
}
|
2088 |
-
}
|
2089 |
}
|
|
|
2090 |
|
2091 |
-
|
2092 |
-
|
2093 |
-
global $gawd_client, $gawd_user_data;
|
2094 |
-
$gawd_client = GAWD_google_client::get_instance();
|
2095 |
-
$profiles = $gawd_client->get_profiles();
|
2096 |
-
$gawd_user_data = get_option('gawd_user_data');
|
2097 |
-
if (isset($_POST['gawd_id'])) {
|
2098 |
-
$gawd_user_data['gawd_id'] = isset($_POST['gawd_id']) ? $_POST['gawd_id'] : '';
|
2099 |
-
foreach ($gawd_user_data['gawd_profiles'] as $web_property_name => $web_property) {
|
2100 |
-
foreach ($web_property as $profile) {
|
2101 |
-
if ($profile['id'] == $gawd_user_data['gawd_id']) {
|
2102 |
-
$gawd_user_data['web_property_name'] = $web_property_name;
|
2103 |
-
$gawd_user_data['webPropertyId'] = $profile['webPropertyId'];
|
2104 |
-
$gawd_user_data['accountId'] = $profile['accountId'];
|
2105 |
-
}
|
2106 |
-
}
|
2107 |
-
}
|
2108 |
-
$gawd_user_data['web_property_name'] = isset($_POST['web_property_name']) ? $_POST['web_property_name'] : '';
|
2109 |
-
update_option('gawd_user_data', $gawd_user_data);
|
2110 |
-
}
|
2111 |
-
require_once('admin/pages/dashboard_widget.php');
|
2112 |
-
}
|
2113 |
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
wp_add_dashboard_widget('wd_dashboard_widget', 'WD Google Analytics', array(
|
2122 |
-
$this,
|
2123 |
-
'wd_dashboard_widget'
|
2124 |
-
));
|
2125 |
-
}
|
2126 |
-
}
|
2127 |
}
|
2128 |
|
2129 |
-
|
2130 |
-
|
2131 |
-
|
2132 |
|
2133 |
-
|
|
|
2134 |
|
2135 |
-
|
|
|
|
|
|
|
2136 |
|
2137 |
-
|
|
|
|
|
|
|
|
|
|
|
2138 |
|
2139 |
-
|
2140 |
-
|
2141 |
-
|
2142 |
-
|
2143 |
-
|
2144 |
-
|
2145 |
-
}
|
2146 |
-
$gawd_client = GAWD_google_client::get_instance();
|
2147 |
-
$start_date = isset($params["start_date"]) && $params["start_date"] != '' ? $params["start_date"] : date('Y-m-d', strtotime('-7 days'));
|
2148 |
-
$end_date = isset($params["end_date"]) && $params["end_date"] != '' ? $params["end_date"] : date('Y-m-d');
|
2149 |
-
$metric = isset($params["metric"]) ? $params["metric"] : 'ga:sessions';
|
2150 |
-
$metric = is_array($metric) ? count($metric) > 1 ? implode(",", $metric) : $metric[0] : $metric;
|
2151 |
-
$dimension = isset($params["dimension"]) ? $params["dimension"] : 'date';
|
2152 |
-
$country_filter = isset($params["country_filter"]) ? $params["country_filter"] : '';
|
2153 |
-
$geo_type = isset($params["geo_type"]) ? $params["geo_type"] : '';
|
2154 |
-
$filter_type = isset($params["filter_type"]) && $params["filter_type"] != '' ? $params["filter_type"] : '';
|
2155 |
-
$custom = isset($params["custom"]) && $params["custom"] != '' ? $params["custom"] : '';
|
2156 |
-
$same_dimension = $dimension;
|
2157 |
-
$dimension = $filter_type != '' && $dimension == 'date' ? $filter_type : $dimension;
|
2158 |
-
if ($dimension == 'week' || $dimension == 'month') {
|
2159 |
-
$same_dimension = $dimension;
|
2160 |
-
}
|
2161 |
-
$timezone = isset($params["timezone"]) && $params["timezone"] != '' ? $params["timezone"] : 0;
|
2162 |
-
if ($dimension == 'pagePath' || $dimension == 'PagePath' || $dimension == 'landingPagePath' || $dimension == 'LandingPagePath') {
|
2163 |
-
if (get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date)) {
|
2164 |
-
$grid_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
2165 |
-
} else {
|
2166 |
-
$grid_data = $gawd_client->get_page_data($dimension, $start_date, $end_date, $timezone);
|
2167 |
-
}
|
2168 |
-
if ($return) {
|
2169 |
-
return $grid_data;
|
2170 |
-
}
|
2171 |
-
echo $grid_data;
|
2172 |
-
die();
|
2173 |
-
} elseif ($dimension == 'goals') {
|
2174 |
-
if (get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date)) {
|
2175 |
-
$goal_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
2176 |
-
} else {
|
2177 |
-
$goal_data = $gawd_client->get_goal_data('date', $start_date, $end_date, $timezone, $same_dimension);
|
2178 |
-
}
|
2179 |
-
if ($return) {
|
2180 |
-
return $goal_data;
|
2181 |
-
}
|
2182 |
-
echo $goal_data;
|
2183 |
-
die();
|
2184 |
-
} elseif ( $custom == '' && (( $dimension == 'region' || $dimension == 'city' ) || ( $dimension == 'Region' || $dimension == 'City' )) ) {
|
2185 |
-
if (get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $country_filter . '-' . $start_date . '-' . $end_date)) {
|
2186 |
-
$chart_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $country_filter . '-' . $start_date . '-' . $end_date);
|
2187 |
-
} else {
|
2188 |
-
$chart_data = $gawd_client->get_country_data($metric, $dimension, $start_date, $end_date, $country_filter, $geo_type, $timezone);
|
2189 |
-
}
|
2190 |
-
if ($return) {
|
2191 |
-
return $chart_data;
|
2192 |
-
}
|
2193 |
-
echo $chart_data;
|
2194 |
-
die();
|
2195 |
-
} else {
|
2196 |
-
if ($custom != '') {
|
2197 |
-
$chart_data = $gawd_client->get_data($metric, $dimension, $start_date, $end_date, $filter_type, $timezone, $same_dimension);
|
2198 |
-
if ( $return ) {
|
2199 |
-
return $chart_data;
|
2200 |
-
}
|
2201 |
-
} else {
|
2202 |
-
if ($dimension == 'siteSpeed') {
|
2203 |
-
if (get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $same_dimension . '_' . $filter_type . '-' . $start_date . '-' . $end_date)) {
|
2204 |
-
$chart_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
2205 |
-
} else {
|
2206 |
-
$chart_data = $gawd_client->get_data($metric, $dimension, $start_date, $end_date, $filter_type, $timezone, $same_dimension);
|
2207 |
-
}
|
2208 |
-
if ($return) {
|
2209 |
-
return $chart_data;
|
2210 |
-
}
|
2211 |
-
} else {
|
2212 |
-
/* if (get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date)) {
|
2213 |
-
|
2214 |
-
$chart_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
2215 |
-
|
2216 |
-
} */
|
2217 |
-
//else {
|
2218 |
-
$chart_data = $gawd_client->get_data($metric, $dimension, $start_date, $end_date, $filter_type, $timezone, $same_dimension);
|
2219 |
-
//}
|
2220 |
-
if ($return) {
|
2221 |
-
return $chart_data;
|
2222 |
-
}
|
2223 |
-
}
|
2224 |
-
}
|
2225 |
-
echo $chart_data;
|
2226 |
-
die();
|
2227 |
-
}
|
2228 |
-
}
|
2229 |
|
2230 |
-
|
2231 |
-
|
2232 |
-
|
2233 |
-
|
2234 |
-
|
2235 |
-
$
|
2236 |
-
$
|
2237 |
-
$
|
2238 |
-
|
2239 |
-
|
2240 |
-
|
2241 |
-
|
2242 |
-
|
|
|
|
|
2243 |
} else {
|
2244 |
-
|
2245 |
-
}
|
2246 |
-
|
2247 |
-
|
2248 |
-
|
2249 |
-
|
2250 |
-
|
2251 |
-
|
2252 |
-
|
2253 |
-
|
2254 |
-
|
2255 |
-
|
2256 |
-
|
2257 |
-
|
2258 |
-
|
2259 |
-
|
2260 |
-
|
2261 |
-
|
2262 |
-
|
2263 |
-
|
2264 |
-
|
2265 |
-
|
2266 |
-
|
2267 |
-
|
2268 |
-
|
2269 |
-
|
2270 |
-
|
2271 |
-
|
2272 |
-
}
|
2273 |
-
else {
|
2274 |
-
$filter = substr($_POST["filter"], 1);
|
2275 |
-
}
|
2276 |
-
}
|
2277 |
-
else {
|
2278 |
-
$filter = '';
|
2279 |
-
}
|
2280 |
-
$chart = isset($_POST["chart"]) ? $_POST["chart"] : '';
|
2281 |
-
$chart_data = get_transient('gawd-page-post-' . $gawd_client->get_profile_id() . '-' . $filter . '-' . '-' . $dimension . '-' . $start_date . '-' . $end_date . '-' . $chart);
|
2282 |
-
if (!$chart_data) {
|
2283 |
-
$chart_data = $gawd_client->get_post_page_data($metric, $dimension, $start_date, $end_date, $filter, $timezone, $chart);
|
2284 |
-
}
|
2285 |
-
echo $chart_data;
|
2286 |
-
die();
|
2287 |
-
}
|
2288 |
-
|
2289 |
-
public function get_realtime()
|
2290 |
-
{
|
2291 |
-
check_ajax_referer('gawd_admin_page_nonce', 'security');
|
2292 |
-
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
2293 |
-
$gawd_client = GAWD_google_client::get_instance();
|
2294 |
-
$chart_data = get_transient('gawd-real' . $gawd_client->get_profile_id());
|
2295 |
-
if (!$chart_data) {
|
2296 |
-
$chart_data = $gawd_client->gawd_realtime_data();
|
2297 |
-
}
|
2298 |
-
return $chart_data;
|
2299 |
-
}
|
2300 |
-
|
2301 |
-
public static function add_dashboard_menu()
|
2302 |
-
{
|
2303 |
-
$get_custom_reports = get_option('gawd_custom_reports');
|
2304 |
-
if (!$get_custom_reports) {
|
2305 |
-
$custom_report = array();
|
2306 |
} else {
|
2307 |
-
|
2308 |
-
|
2309 |
-
|
2310 |
-
|
2311 |
-
|
2312 |
-
|
2313 |
-
|
2314 |
-
|
2315 |
-
|
2316 |
-
|
2317 |
-
|
2318 |
-
|
2319 |
-
|
2320 |
-
|
2321 |
-
|
2322 |
-
|
2323 |
-
|
2324 |
-
|
2325 |
-
|
2326 |
-
|
2327 |
-
|
2328 |
-
|
2329 |
-
|
2330 |
-
|
2331 |
-
|
2332 |
-
|
2333 |
-
|
2334 |
-
|
2335 |
-
|
2336 |
-
|
2337 |
-
|
2338 |
-
|
2339 |
-
|
2340 |
-
|
2341 |
-
|
2342 |
-
|
2343 |
-
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
|
2348 |
-
|
2349 |
-
|
2350 |
-
|
2351 |
-
|
2352 |
-
|
2353 |
-
|
2354 |
-
|
2355 |
-
|
2356 |
-
|
2357 |
-
|
2358 |
-
|
2359 |
-
|
2360 |
-
|
2361 |
-
|
2362 |
-
|
2363 |
-
|
2364 |
-
|
2365 |
-
|
2366 |
-
|
2367 |
-
|
2368 |
-
|
2369 |
-
|
2370 |
-
|
2371 |
-
|
2372 |
-
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
|
2377 |
-
|
2378 |
-
|
2379 |
-
|
2380 |
-
|
2381 |
-
|
2382 |
-
|
2383 |
-
|
2384 |
-
|
2385 |
-
|
2386 |
-
|
2387 |
-
|
2388 |
-
|
2389 |
-
|
2390 |
-
|
2391 |
-
|
2392 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2393 |
"title" => __("Pages", "gawd"),
|
2394 |
-
|
2395 |
"childs" => array(),
|
2396 |
-
|
2397 |
"desc" => "Pages report table will provide you information about Bounces, Entrances, Pageviews, Unique Pageviews, time spent on pages, Exits and Average page loading time."
|
2398 |
-
|
2399 |
), */
|
2400 |
-
|
2401 |
-
|
2402 |
-
|
2403 |
-
|
2404 |
-
|
2405 |
-
|
2406 |
-
|
2407 |
-
|
2408 |
-
|
2409 |
-
|
2410 |
-
|
2411 |
-
|
2412 |
-
|
2413 |
-
|
2414 |
-
|
2415 |
-
|
2416 |
-
|
2417 |
-
|
2418 |
-
|
2419 |
-
|
2420 |
-
|
2421 |
-
|
2422 |
-
|
2423 |
-
|
2424 |
-
|
2425 |
-
|
2426 |
-
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
2430 |
-
|
2431 |
-
|
2432 |
-
|
2433 |
-
|
2434 |
-
|
2435 |
-
|
2436 |
-
|
2437 |
-
|
2438 |
-
|
2439 |
-
|
2440 |
-
|
2441 |
-
|
2442 |
-
|
2443 |
-
|
2444 |
-
|
2445 |
-
|
2446 |
-
|
2447 |
-
|
2448 |
-
|
2449 |
-
|
2450 |
-
|
2451 |
-
|
2452 |
-
|
2453 |
-
|
2454 |
-
|
2455 |
-
|
2456 |
-
|
2457 |
-
|
2458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2459 |
}
|
2460 |
-
|
|
|
|
|
2461 |
|
2462 |
-
|
2463 |
-
|
2464 |
-
|
2465 |
-
<p><?php _e( 'ERROR: Google Analytics WD cannot make insecure requests to Google API. Please enable PHP OpenSSL extension', 'gawd' ); ?></p>
|
2466 |
-
</div>
|
2467 |
-
<?php
|
2468 |
}
|
2469 |
|
|
|
|
|
|
|
2470 |
|
2471 |
-
|
2472 |
-
|
2473 |
-
$gawd_client = GAWD_google_client::get_instance();
|
2474 |
-
$accountId = $gawd_client->get_default_accountId();
|
2475 |
-
$webPropertyId = $gawd_client->get_default_webPropertyId();
|
2476 |
-
$gawd_user_data = get_option('gawd_user_data');
|
2477 |
-
$screen = get_current_screen();
|
2478 |
-
$accounts = $gawd_client->get_management_accounts();
|
2479 |
-
if ($webPropertyId == null && strpos($screen->base, 'gawd') !== false && !empty($accounts)) {
|
2480 |
-
echo "<div class='notice notice-error'><p>Google Analytics WD: You haven't created a web-property with current site URL, or it has been deleted. Please <a href='" . admin_url() . "admin.php?page=gawd_tracking'>create </a> one.</p></div>";
|
2481 |
-
}
|
2482 |
-
if (strpos($screen->base, 'gawd') !== false && $accountId != null && $webPropertyId != null && $gawd_client->analytics_member->management_webproperties != null ) {
|
2483 |
-
try {
|
2484 |
-
$deleted = $gawd_client->analytics_member->management_webproperties->get($accountId, $webPropertyId);
|
2485 |
-
}
|
2486 |
-
catch (Exception $e) {
|
2487 |
-
$gawd_user_data['webPropertyId'] = null;
|
2488 |
-
$gawd_user_data['default_webPropertyId'] = null;
|
2489 |
-
$gawd_user_data['gawd_id'] = null;
|
2490 |
-
update_option('gawd_user_data', $gawd_user_data);
|
2491 |
-
$myFile = GAWD_UPLOAD_DIR."/logfile.txt";
|
2492 |
-
$fh = fopen($myFile, 'a');
|
2493 |
-
fwrite($fh, $e->getMessage(). "----check_property_delete function".PHP_EOL);
|
2494 |
-
fclose($fh);
|
2495 |
-
if (strpos($e->getMessage(), 'not found.') !== false) {
|
2496 |
-
echo "<div class='notice notice-error'><p>Google Analytics WD: You haven't created a web-property with current site URL, or it has been deleted. Please <a href='" . admin_url() . "admin.php?page=gawd_settings'>authenticate</a>.</p></div>";
|
2497 |
-
}
|
2498 |
-
}
|
2499 |
-
}
|
2500 |
-
}
|
2501 |
|
2502 |
-
|
2503 |
-
|
2504 |
-
|
2505 |
-
|
2506 |
-
|
2507 |
-
|
2508 |
-
{
|
2509 |
-
if (isset($_SERVER['HTTPS'])) {
|
2510 |
-
if ('on' == strtolower($_SERVER['HTTPS'])) {
|
2511 |
-
return true;
|
2512 |
-
}
|
2513 |
-
if ('1' == $_SERVER['HTTPS']) {
|
2514 |
-
return true;
|
2515 |
-
}
|
2516 |
-
} elseif (isset($_SERVER['SERVER_PORT']) && ('443' == $_SERVER['SERVER_PORT'])) {
|
2517 |
-
return true;
|
2518 |
-
}
|
2519 |
-
return false;
|
2520 |
-
}
|
2521 |
|
2522 |
-
|
2523 |
-
* Returns the Singleton instance of this class.
|
2524 |
-
*
|
2525 |
-
* @return GAWD The Singleton instance.
|
2526 |
-
*/
|
2527 |
-
public static function get_instance()
|
2528 |
-
{
|
2529 |
-
if (null === self::$instance) {
|
2530 |
-
self::$instance = new self();
|
2531 |
-
}
|
2532 |
-
return self::$instance;
|
2533 |
-
}
|
2534 |
|
2535 |
-
|
2536 |
-
|
2537 |
-
|
2538 |
-
|
2539 |
-
|
2540 |
-
|
2541 |
-
|
2542 |
-
|
2543 |
}
|
2544 |
|
2545 |
-
|
2546 |
-
|
2547 |
-
|
2548 |
-
*
|
2549 |
-
* @return void
|
2550 |
-
*/
|
2551 |
-
private function __wakeup()
|
2552 |
-
{
|
2553 |
-
}
|
2554 |
}
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
class GAWD {
|
4 |
|
5 |
+
/**
|
6 |
+
* @var GAWD The reference to Singleton instance of this class
|
7 |
+
*/
|
8 |
+
private static $instance;
|
9 |
+
private $gawd_pages = array();
|
10 |
+
private $view_permission = false;
|
11 |
+
private $settings_permission = false;
|
12 |
+
public $redirect_uri = "urn:ietf:wg:oauth:2.0:oob";
|
13 |
|
14 |
+
/**
|
15 |
+
* Protected constructor to prevent creating a new instance of the
|
16 |
+
* Singleton via the `new` operator from outside of this class.
|
17 |
+
*/
|
18 |
+
protected function __construct(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
+
if(get_site_transient('gawd_uninstall') === '1'){
|
21 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
+
if(!extension_loaded('openssl')) {
|
25 |
+
add_action('admin_notices', array($this, 'nossl_message'), 1);
|
26 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
+
if(!is_dir(GAWD_UPLOAD_DIR)) {
|
30 |
+
mkdir(GAWD_UPLOAD_DIR, 0777);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
+
if(get_option('gawd_version') !== GAWD_VERSION){
|
34 |
+
self::activate();
|
|
|
35 |
}
|
36 |
|
37 |
+
add_action('init', array($this, 'register_hooks'), 1);
|
|
|
|
|
|
|
38 |
|
39 |
+
add_action('wp_head', array($this, 'gawd_tracking_code'), 99);
|
40 |
+
$gawd_settings = GAWD_helper::get_settings();
|
41 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
42 |
+
$gawd_user_status = GAWD_helper::get_user_status();
|
43 |
|
44 |
+
if(
|
45 |
+
isset($gawd_user_data['refresh_token']) &&
|
46 |
+
($gawd_user_data['refresh_token'] != '') &&
|
47 |
+
(isset($gawd_settings['gawd_tracking_enable']) &&
|
48 |
+
$gawd_settings['gawd_tracking_enable'] == 'on')
|
49 |
+
) {
|
50 |
+
require_once(GAWD_DIR . '/widgets.php');
|
51 |
}
|
52 |
|
53 |
+
$gawd_post_page_roles = isset($gawd_settings['gawd_post_page_roles']) ? $gawd_settings['gawd_post_page_roles'] : array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
+
if(
|
56 |
+
GAWD_helper::gawd_is_ready() &&
|
57 |
+
(isset($gawd_settings['gawd_tracking_enable']) && $gawd_settings['gawd_tracking_enable'] == 'on') &&
|
58 |
+
(isset($gawd_settings['post_page_chart']) && $gawd_settings['post_page_chart'] != '') &&
|
59 |
+
GAWD_helper::check_permission($gawd_post_page_roles) &&
|
60 |
+
(isset($gawd_user_data['refresh_token']) && ($gawd_user_data['refresh_token'] != ''))
|
61 |
+
&& !empty($gawd_user_data['property_id'])) {
|
62 |
|
63 |
+
add_filter('manage_posts_columns', array($this, 'gawd_add_columns'));
|
64 |
+
// Populate custom column in Posts List
|
65 |
+
add_action('manage_posts_custom_column', array($this, 'gawd_add_icons'), 10, 2);
|
66 |
+
// Add custom column in Pages List
|
67 |
+
add_filter('manage_pages_columns', array($this, 'gawd_add_columns'));
|
68 |
+
// Populate custom column in Pages List
|
69 |
+
add_action('manage_pages_custom_column', array($this, 'gawd_add_icons'), 10, 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
+
$gawd_frontend_roles = isset($gawd_settings['gawd_frontend_roles']) ? $gawd_settings['gawd_frontend_roles'] : array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
+
if(
|
75 |
+
GAWD_helper::gawd_is_ready() &&
|
76 |
+
(isset($gawd_settings['gawd_tracking_enable']) && $gawd_settings['gawd_tracking_enable'] == 'on') &&
|
77 |
+
GAWD_helper::check_permission($gawd_frontend_roles) &&
|
78 |
+
(isset($gawd_user_data['refresh_token']) && ($gawd_user_data['refresh_token'] != '')) &&
|
79 |
+
GAWD_helper::get_user_status() &&
|
80 |
+
!empty($gawd_user_data['property_id'])
|
81 |
+
) {
|
82 |
+
add_action('wp_enqueue_scripts', array($this, 'gawd_front_scripts'));
|
83 |
+
add_action('admin_bar_menu', array($this, 'report_adminbar'), 999);
|
84 |
}
|
85 |
|
86 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
+
public function admin_notices(){
|
89 |
+
$notices = GAWD_helper::get_notices();
|
|
|
|
|
90 |
|
91 |
+
foreach($notices as $notice) {
|
92 |
+
$this->gawd_admin_notice($notice['msg'], $notice['status'], $notice['class']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
+
$user_data = GAWD_helper::get_user_data();
|
97 |
+
$web_property_id = (isset($user_data['property_id'])) ? $user_data['property_id'] : "";
|
98 |
+
$screen = get_current_screen();
|
99 |
+
$accounts = GAWD_helper::get_management_accounts();
|
100 |
+
$gawd_props = GAWD_helper::get_current_site_properties();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
+
if(count($gawd_props) === 0 && empty($web_property_id) && strpos($screen->base, 'gawd') !== false && !empty($accounts)) {
|
103 |
+
$msg = "Google Analytics WD: You haven't created a web-property with current site URL, or it has been deleted. Please <a href='" . admin_url() . "admin.php?page=gawd_settings#gawd_tracking_tab'>create </a> one.";
|
104 |
+
$this->gawd_admin_notice($msg, "error", 'gawd_tracking_notice_link');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
+
}
|
107 |
|
108 |
+
function get_current_user_role(){
|
109 |
+
global $wp_roles;
|
110 |
+
if(is_user_logged_in()) {
|
111 |
+
$current_user = wp_get_current_user();
|
112 |
+
$roles = $current_user->roles;
|
113 |
+
$role = array_shift($roles);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
|
115 |
+
return $role;
|
116 |
+
} else {
|
117 |
+
return "";
|
|
|
|
|
118 |
}
|
119 |
+
}
|
120 |
|
121 |
+
function report_adminbar($wp_admin_bar){
|
122 |
+
/* @formatter:off */
|
123 |
+
$gawd_settings = get_option('gawd_settings');
|
124 |
+
$gawd_frontend_roles = isset($gawd_settings['gawd_frontend_roles']) ? $gawd_settings['gawd_frontend_roles'] : array();
|
125 |
+
$roles = $this->get_current_user_role();
|
126 |
+
$id = intval(get_the_ID());
|
127 |
+
if(((in_array($roles, $gawd_frontend_roles) || current_user_can('manage_options')) && !is_admin()) && $gawd_settings['post_page_chart'] != '' && $id > 0) {
|
128 |
|
129 |
+
$uri_parts = get_post($id);
|
130 |
+
$uri = '/' . $uri_parts->post_name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
+
$filter = rawurlencode(rawurldecode($uri));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
+
$args = array(
|
135 |
+
'id' => 'gawd',
|
136 |
+
'title' => '<span data-url="' . $filter . '" class="ab-icon"></span><span class="">' . __("Analytics WD", 'gawd') . '</span>',
|
137 |
+
//'href' => '#1',
|
138 |
+
);
|
139 |
+
/* @formatter:on */
|
140 |
+
$wp_admin_bar->add_node($args);
|
141 |
}
|
142 |
+
}
|
143 |
|
144 |
+
function register_hooks(){
|
|
|
|
|
|
|
145 |
|
146 |
+
if(is_admin() && get_option('gawd_upgrade_plugin') === '1'){
|
147 |
+
add_action('admin_footer', array($this,'upgrade_plugin'));
|
|
|
148 |
}
|
149 |
|
150 |
+
$this->gawd_last_viewed_profile();
|
|
|
|
|
|
|
151 |
|
152 |
+
$gawd_settings = GAWD_helper::get_settings();
|
|
|
|
|
|
|
153 |
|
154 |
+
$gawd_permissions = isset($gawd_settings['gawd_permissions']) ? $gawd_settings['gawd_permissions'] : array();
|
155 |
+
$gawd_overview_permissions = isset($gawd_settings['gawd_backend_roles']) ? $gawd_settings['gawd_backend_roles'] : array();
|
156 |
+
$this->view_permission = GAWD_helper::check_permission($gawd_overview_permissions);
|
157 |
+
$this->settings_permission = GAWD_helper::check_permission($gawd_permissions);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
|
|
|
|
159 |
|
|
|
|
|
|
|
|
|
160 |
|
|
|
|
|
|
|
161 |
|
162 |
+
if($this->view_permission || $this->settings_permission) {
|
163 |
+
add_action('admin_menu', array($this, 'gawd_add_menu'), 9);
|
164 |
+
add_action('admin_menu', array($this, 'remove_first_menu'), 10);
|
|
|
|
|
165 |
}
|
166 |
|
167 |
+
add_action('admin_enqueue_scripts', array($this, 'gawd_enqueue_scripts'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
|
170 |
+
//todo add_action('wp_ajax_create_pdf_file', array($this, 'create_pdf_file'));
|
171 |
+
//todo add_action('wp_ajax_create_csv_file', array($this, 'create_csv_file'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
+
add_action('wp_ajax_show_data', array($this, 'show_data'));
|
174 |
+
add_action('wp_ajax_remove_zoom_message', array($this, 'remove_zoom_message'));
|
175 |
+
add_action('wp_ajax_show_data_compact', array($this, 'show_data_compact'));
|
176 |
+
if(GAWD_helper::gawd_is_ready()){
|
177 |
+
add_action('wp_dashboard_setup', array($this, 'google_analytics_wd_dashboard_widget'));
|
|
|
|
|
|
|
178 |
}
|
179 |
+
add_action('admin_menu', array($this, 'overview_date_meta'));
|
180 |
+
//add_filter('cron_schedules', array($this, 'gawd_my_schedule'));
|
181 |
+
//todo add_action('admin_init', array($this, 'gawd_export'));
|
182 |
+
// add_action( 'gawd_pushover_daily', array( $this, 'gawd_pushover_daily' ) );
|
183 |
+
// add_action( 'gawd_pushover_gawd_weekly', array( $this, 'gawd_pushover_weekly' ) );
|
184 |
+
// add_action( 'gawd_pushover_gawd_monthly', array( $this, 'gawd_pushover_monthly' ) );
|
185 |
+
// add_action('gawd_alert_daily', array($this, 'gawd_alert_daily'));
|
186 |
+
// add_action('gawd_alert_gawd_monthly', array($this, 'gawd_alert_monthly'));
|
187 |
+
// add_action('gawd_alert_gawd_weekly', array($this, 'gawd_alert_weekly'));
|
188 |
+
// add_action('gawd_email_daily', array($this, 'gawd_daily_email'), 0);
|
189 |
+
// add_action('gawd_email_gawd_weekly', array($this, 'gawd_weekly_email'));
|
190 |
+
// add_action('gawd_email_gawd_monthly', array($this, 'gawd_monthly_email'));
|
191 |
+
add_action('admin_notices', array($this, 'admin_notices'), 9999);
|
192 |
|
193 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
|
195 |
+
public function gawd_last_viewed_profile(){
|
196 |
+
$gawd_profile_data = array();
|
197 |
+
if(isset($_POST['gawd_id'])) {
|
198 |
+
$profiles = GAWD_helper::get_profiles();
|
199 |
+
if(is_array($profiles)) {
|
200 |
+
foreach($profiles as $profile) {
|
201 |
+
if(!empty($profile)) {
|
202 |
+
foreach($profile as $item) {
|
203 |
|
204 |
+
if($item["id"] === $_POST['gawd_id']) {
|
205 |
+
$gawd_profile_data['profile_id'] = isset($_POST['gawd_id']) ? $_POST['gawd_id'] : '';
|
206 |
+
$gawd_profile_data['web_property_name'] = isset($_POST['web_property_name']) ? $_POST['web_property_name'] : '';
|
207 |
+
$gawd_profile_data['web_property_id'] = isset($item["webPropertyId"]) ? $item["webPropertyId"] : '';
|
208 |
+
$gawd_profile_data['account_id'] = isset($item["accountId"]) ? $item["accountId"] : '';
|
209 |
+
update_option('gawd_last_viewed_profile', $gawd_profile_data);
|
210 |
+
break;
|
211 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
}
|
|
|
|
|
|
|
215 |
}
|
216 |
+
}
|
217 |
}
|
218 |
+
}
|
219 |
|
220 |
+
public function gawd_add_icons($column, $id){
|
221 |
+
if($column != 'gawd_stats') {
|
222 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
+
$uri_parts = get_post($id);
|
225 |
+
$uri = '/' . $uri_parts->post_name;
|
226 |
|
227 |
+
$filter = rawurlencode(rawurldecode($uri));
|
228 |
+
$permalink = get_permalink($id, false);
|
229 |
+
echo '<a id="gawd-' . $id . '" class="gawd_page_post_stats" title="' . get_the_title($id) . '" href="#' . $filter . '" data-permalink="' . $permalink . '"><img src="' . GAWD_URL . '/assets/back_logo.png"</a>';
|
230 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
|
232 |
+
public function gawd_add_columns($columns){
|
233 |
+
return array_merge($columns, array('gawd_stats' => __('Analytics WD', 'gawd')));
|
234 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
|
236 |
+
public static function gawd_roles($access_level, $tracking = false){
|
237 |
+
if(is_user_logged_in() && isset($access_level)) {
|
238 |
+
$current_user = wp_get_current_user();
|
239 |
+
$roles = (array)$current_user->roles;
|
240 |
+
if((current_user_can('manage_options')) && !$tracking) {
|
241 |
+
return true;
|
242 |
+
}
|
243 |
+
if(count(array_intersect($roles, $access_level)) > 0) {
|
244 |
+
return true;
|
245 |
+
} else {
|
246 |
+
return false;
|
247 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
}
|
249 |
|
250 |
+
return false;
|
251 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
|
253 |
+
public function gawd_tracking_code(){
|
254 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
255 |
+
if(empty($gawd_user_data['property_id'])) {
|
256 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
}
|
258 |
|
259 |
+
require_once(GAWD_DIR . '/admin/tracking.php');
|
260 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
|
262 |
+
public function create_pdf_file($ajax = true, $data = null, $dimension = null, $start_date = null, $end_date = null, $metric_compare_recc = null, $metric_recc = null){
|
263 |
+
$first_data = isset($_REQUEST["first_data"]) ? sanitize_text_field($_REQUEST["first_data"]) : '';
|
264 |
+
$_data_compare = isset($_REQUEST["_data_compare"]) ? ($_REQUEST["_data_compare"]) : '';
|
265 |
+
if($ajax == true) {
|
266 |
+
$export_type = isset($_REQUEST["export_type"]) ? sanitize_text_field($_REQUEST["export_type"]) : '';
|
267 |
+
if($export_type != 'pdf') {
|
268 |
+
return;
|
269 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
|
271 |
+
$report_type = isset($_REQUEST["report_type"]) ? sanitize_text_field($_REQUEST["report_type"]) : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
+
if($report_type !== 'alert') {
|
275 |
+
return;
|
276 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
|
|
|
|
|
|
|
|
|
|
|
278 |
}
|
279 |
|
280 |
+
include_once GAWD_DIR . '/include/gawd_pdf_file.php';
|
281 |
+
$file = new GAWD_PDF_FILE();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
|
283 |
+
/*
|
284 |
+
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
285 |
+
$this->gawd_google_client = GAWD_google_client::get_instance();
|
286 |
+
*/
|
287 |
+
$file->get_request_data($this, $ajax, $data, $dimension, $start_date, $end_date, $metric_compare_recc, $metric_recc);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
|
289 |
+
$file->sort_data();
|
290 |
+
if($first_data != '') {
|
291 |
+
$file->create_file('pages');
|
292 |
+
} elseif(($_data_compare) != '') {
|
293 |
+
$file->create_file('compare');
|
294 |
+
} else {
|
295 |
+
$file->create_file(true);
|
296 |
+
}
|
297 |
+
if($ajax == true) {
|
298 |
+
die();
|
299 |
+
} else {
|
300 |
+
return $file->file_dir;
|
301 |
+
}
|
302 |
+
}
|
303 |
+
|
304 |
+
public function create_csv_file($ajax = true, $data = null, $dimension = null, $start_date = null, $end_date = null, $metric_compare_recc = null, $metric_recc = null){
|
305 |
+
if($ajax == true) {
|
306 |
+
$export_type = isset($_REQUEST["export_type"]) ? sanitize_text_field($_REQUEST["export_type"]) : '';
|
307 |
+
if($export_type != 'csv') {
|
308 |
+
return;
|
309 |
+
}
|
310 |
+
$report_type = isset($_REQUEST["report_type"]) ? sanitize_text_field($_REQUEST["report_type"]) : '';
|
311 |
+
if($report_type !== 'alert') {
|
312 |
+
return;
|
313 |
+
}
|
314 |
+
}
|
315 |
+
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
316 |
+
$this->gawd_google_client = GAWD_google_client::get_instance();
|
317 |
+
|
318 |
+
$first_data = isset($_REQUEST["first_data"]) ? sanitize_text_field($_REQUEST["first_data"]) : '';
|
319 |
+
|
320 |
+
|
321 |
+
include_once GAWD_DIR . '/include/gawd_csv_file.php';
|
322 |
+
|
323 |
+
$file = new GAWD_CSV_FILE();
|
324 |
+
$file->get_request_data($this, $ajax, $data, $dimension, $start_date, $end_date, $metric_compare_recc, $metric_recc);
|
325 |
+
|
326 |
+
$file->sort_data();
|
327 |
+
|
328 |
+
//$file->get_request_data($this);
|
329 |
+
|
330 |
+
$file->sort_data();
|
331 |
+
if($first_data != '') {
|
332 |
+
$file->create_file(false);
|
333 |
+
} else {
|
334 |
+
$file->create_file();
|
335 |
+
}
|
336 |
+
if($ajax == true) {
|
337 |
+
die();
|
338 |
+
} else {
|
339 |
+
return $file->file_dir;
|
340 |
+
}
|
341 |
+
}
|
342 |
+
|
343 |
+
public static function get_domain($domain){
|
344 |
+
$root = explode('/', $domain);
|
345 |
+
$ret_domain = str_ireplace('www', '', isset($root[2]) ? $root[2] : $domain);
|
346 |
+
|
347 |
+
return $ret_domain;
|
348 |
+
}
|
349 |
+
|
350 |
+
public static function error_message($type, $message){
|
351 |
+
echo '<div style="width:99%"><div class="' . $type . '"><p><strong>' . $message . '</strong></p></div></div>';
|
352 |
+
}
|
353 |
+
|
354 |
+
public function gawd_export(){
|
355 |
+
if(!isset($_REQUEST['action']) || (isset($_REQUEST['action']) && $_REQUEST['action'] !== 'gawd_export')) {
|
356 |
+
return;
|
357 |
+
}
|
358 |
+
|
359 |
+
$export_type = isset($_REQUEST["export_type"]) ? sanitize_text_field($_REQUEST["export_type"]) : '';
|
360 |
+
if($export_type != 'pdf' && $export_type != 'csv') {
|
361 |
+
return;
|
362 |
+
}
|
363 |
+
|
364 |
+
$report_type = isset($_REQUEST["report_type"]) ? sanitize_text_field($_REQUEST["report_type"]) : '';
|
365 |
+
|
366 |
+
require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
367 |
+
$this->gawd_google_client = GAWD_google_client::get_instance();
|
368 |
+
|
369 |
+
if($export_type == 'pdf') {
|
370 |
+
include_once GAWD_DIR . '/include/gawd_pdf_file.php';
|
371 |
+
$file = new GAWD_PDF_FILE();
|
372 |
+
} else {
|
373 |
+
include_once GAWD_DIR . '/include/gawd_csv_file.php';
|
374 |
+
$file = new GAWD_CSV_FILE();
|
375 |
+
}
|
376 |
+
|
377 |
+
if($report_type == 'alert') {
|
378 |
+
if($export_type == 'pdf') {
|
379 |
+
$file->export_file();
|
380 |
+
} else {
|
381 |
+
$file->export_file();
|
382 |
+
}
|
383 |
+
} else {
|
384 |
+
$metric = isset($_REQUEST["gawd_metric"]) ? sanitize_text_field($_REQUEST["gawd_metric"]) : '';
|
385 |
+
$_data_compare = isset($_REQUEST["_data_compare"]) ? ($_REQUEST["_data_compare"]) : '';
|
386 |
+
$first_data = isset($_REQUEST["first_data"]) ? ($_REQUEST["first_data"]) : '';
|
387 |
+
$view_id = isset($_REQUEST["view_id"]) ? sanitize_text_field($_REQUEST["view_id"]) : '';
|
388 |
+
$metric_compare = isset($_REQUEST["gawd_metric_compare"]) ? sanitize_text_field($_REQUEST["gawd_metric_compare"]) : '';
|
389 |
+
$dimension = isset($_REQUEST["gawd_dimension"]) ? sanitize_text_field($_REQUEST["gawd_dimension"]) : '';
|
390 |
+
$tab_name = isset($_REQUEST["tab_name"]) ? sanitize_text_field($_REQUEST["tab_name"]) : '';
|
391 |
+
$img = isset($_REQUEST["img"]) ? sanitize_text_field($_REQUEST["img"]) : '';
|
392 |
+
$gawd_email_subject = isset($_REQUEST["gawd_email_subject"]) ? sanitize_text_field($_REQUEST["gawd_email_subject"]) : '';
|
393 |
+
$gawd_email_body = isset($_REQUEST["gawd_email_body"]) && $_REQUEST["gawd_email_body"] != '' ? sanitize_text_field($_REQUEST["gawd_email_body"]) : ' ';
|
394 |
+
$email_from = isset($_REQUEST["gawd_email_from"]) ? sanitize_email($_REQUEST["gawd_email_from"]) : '';
|
395 |
+
$email_to = isset($_REQUEST["gawd_email_to"]) ? sanitize_email($_REQUEST["gawd_email_to"]) : '';
|
396 |
+
$email_period = isset($_REQUEST["gawd_email_period"]) ? sanitize_text_field($_REQUEST["gawd_email_period"]) : '';
|
397 |
+
$week_day = isset($_REQUEST["gawd_email_week_day"]) ? sanitize_text_field($_REQUEST["gawd_email_week_day"]) : '';
|
398 |
+
$month_day = isset($_REQUEST["gawd_email_month_day"]) ? sanitize_text_field($_REQUEST["gawd_email_month_day"]) : '';
|
399 |
+
$email_time = isset($_REQUEST["email_time"]) ? sanitize_text_field($_REQUEST["email_time"]) : '';
|
400 |
+
$emails = array();
|
401 |
+
$invalid_email = false;
|
402 |
+
$email_to = explode(',', $email_to);
|
403 |
+
foreach($email_to as $email) {
|
404 |
+
if(is_email($email) == false) {
|
405 |
+
$emails = $email;
|
406 |
+
}
|
407 |
+
}
|
408 |
+
if(count($emails) > 0) {
|
409 |
+
$invalid_email = true;
|
410 |
+
}
|
411 |
+
if(($invalid_email != true) && is_email($email_from) && $gawd_email_subject != '') {
|
412 |
+
if($email_period == "once") {
|
413 |
+
$file->get_request_data($this);
|
414 |
+
$file->sort_data();
|
415 |
+
if($export_type == 'csv') {
|
416 |
+
if($first_data != '') {
|
417 |
+
$file->create_file(false);
|
418 |
} else {
|
419 |
+
$file->create_file();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
}
|
421 |
+
} else {
|
422 |
+
if($first_data != '') {
|
423 |
+
$file->create_file('pages');
|
424 |
+
} elseif(($_data_compare) != '') {
|
425 |
+
$file->create_file('compare');
|
426 |
+
} else {
|
427 |
+
$file->create_file(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
}
|
429 |
+
}
|
430 |
+
$attachment = $file->file_dir;
|
431 |
|
432 |
+
if($report_type == 'email') {
|
433 |
+
$headers = 'From: <' . $email_from . '>';
|
434 |
+
wp_mail($email_to, $gawd_email_subject, $gawd_email_body, $headers, $attachment);
|
435 |
+
}
|
436 |
+
echo json_encode(array('status' => 'success', 'msg' => 'Email successfuly sent'));
|
437 |
+
} else {
|
438 |
+
if($email_period == 'gawd_weekly') {
|
439 |
+
$period_day = $week_day;
|
440 |
+
$timestamp = strtotime('this ' . $period_day . ' ' . $email_time);
|
441 |
+
} elseif($email_period == 'gawd_monthly') {
|
442 |
+
$period_day = $month_day;
|
443 |
+
$timestamp = strtotime(date('Y-m-' . $period_day . ' ' . $email_time));
|
444 |
+
} else {
|
445 |
+
$period_day = '';
|
446 |
+
$timestamp = strtotime(date('Y-m-d ' . $email_time));
|
447 |
+
}
|
448 |
+
$saved_email = get_option('gawd_email');
|
449 |
+
if($saved_email) {
|
450 |
+
$gawd_email_options = array(
|
451 |
+
'name' => $gawd_email_subject,
|
452 |
+
'period' => $email_period,
|
453 |
+
'metric' => $metric,
|
454 |
+
'metric_compare' => $metric_compare,
|
455 |
+
'dimension' => $dimension,
|
456 |
+
'creation_date' => date('Y-m-d') . ' ' . $email_time,
|
457 |
+
'emails' => $email_to,
|
458 |
+
'email_from' => $email_from,
|
459 |
+
'email_subject' => $gawd_email_subject,
|
460 |
+
'email_body' => $gawd_email_body,
|
461 |
+
'period_day' => $period_day,
|
462 |
+
'period_time' => $email_time,
|
463 |
+
'img' => $img,
|
464 |
+
'tab_name' => $tab_name,
|
465 |
+
'view_id' => $view_id,
|
466 |
+
'export_type' => $export_type
|
467 |
+
);
|
468 |
+
$saved_email[] = $gawd_email_options;
|
469 |
+
update_option('gawd_email', $saved_email);
|
470 |
+
} else {
|
471 |
+
$gawd_email_options = array(
|
472 |
+
0 => array(
|
473 |
+
'name' => $gawd_email_subject,
|
474 |
+
'period' => $email_period,
|
475 |
+
'metric' => $metric,
|
476 |
+
'metric_compare' => $metric_compare,
|
477 |
+
'dimension' => $dimension,
|
478 |
+
'creation_date' => date('Y-m-d') . ' ' . $email_time,
|
479 |
+
'emails' => $email_to,
|
480 |
+
'email_from' => $email_from,
|
481 |
+
'email_subject' => $gawd_email_subject,
|
482 |
+
'email_body' => $gawd_email_body,
|
483 |
+
'period_day' => $period_day,
|
484 |
+
'period_time' => $email_time,
|
485 |
+
'img' => $img,
|
486 |
+
'tab_name' => $tab_name,
|
487 |
+
'view_id' => $view_id,
|
488 |
+
'export_type' => $export_type
|
489 |
+
)
|
490 |
+
);
|
491 |
+
update_option('gawd_email', $gawd_email_options);
|
492 |
+
}
|
493 |
+
$saved_email = get_option('gawd_email');
|
494 |
+
if($saved_email) {
|
495 |
+
foreach($saved_email as $email) {
|
496 |
+
if(!wp_next_scheduled('gawd_email_' . $email['period'])) {
|
497 |
+
wp_schedule_event($timestamp, $email['period'], 'gawd_email_' . $email['period']);
|
498 |
+
}
|
499 |
}
|
500 |
+
}
|
501 |
+
$success_message = 'Email successfuly Scheduled </br> Go to <a href="' . admin_url() . 'admin.php?page=gawd_settings#gawd_emails_tab">Settings page</a> to delete scheduled e-mails.';
|
502 |
+
echo json_encode(array('status' => 'success', 'msg' => $success_message));
|
503 |
+
}
|
504 |
+
|
505 |
+
die;
|
506 |
+
} else {
|
507 |
+
if($invalid_email == true) {
|
508 |
+
echo json_encode('Invalid email');
|
509 |
+
die;
|
510 |
+
} else if($gawd_email_subject == '') {
|
511 |
+
echo json_encode("Can't send email with empty subject");
|
512 |
+
die;
|
513 |
+
}
|
514 |
+
}
|
515 |
+
}
|
516 |
+
}
|
517 |
+
|
518 |
+
public function overview_date_meta($screen = null, $context = 'advanced'){
|
519 |
+
//righ side wide meta..
|
520 |
+
$orintation = wp_is_mobile() ? 'side' : 'normal';
|
521 |
+
add_meta_box('gawd-real-time', __('Real Time', 'gawd'), array(
|
522 |
+
$this,
|
523 |
+
'gawd_real_time'
|
524 |
+
), 'gawd_analytics', 'side', 'high');
|
525 |
+
add_meta_box('gawd-date-meta', __('Audience', 'gawd'), array(
|
526 |
+
$this,
|
527 |
+
'gawd_date_box'
|
528 |
+
), 'gawd_analytics', $orintation, null);
|
529 |
+
add_meta_box('gawd-country-box', __('Location', 'gawd'), array(
|
530 |
+
$this,
|
531 |
+
'gawd_country_box'
|
532 |
+
), 'gawd_analytics', $orintation, null);
|
533 |
+
//left side thin meta.
|
534 |
+
add_meta_box('gawd-visitors-meta', __('Visitors', 'gawd'), array(
|
535 |
+
$this,
|
536 |
+
'gawd_visitors'
|
537 |
+
), 'gawd_analytics', 'side', null);
|
538 |
+
add_meta_box('gawd-browser-meta', __('Browsers', 'gawd'), array(
|
539 |
+
$this,
|
540 |
+
'gawd_browser'
|
541 |
+
), 'gawd_analytics', 'side', null);
|
542 |
+
}
|
543 |
+
|
544 |
+
public function gawd_date_box(){
|
545 |
+
require_once('admin/pages/date.php');
|
546 |
+
}
|
547 |
+
|
548 |
+
public function gawd_country_box(){
|
549 |
+
require_once('admin/pages/location.php');
|
550 |
+
}
|
551 |
+
|
552 |
+
public function gawd_real_time(){
|
553 |
+
require_once('admin/pages/real_time.php');
|
554 |
+
}
|
555 |
+
|
556 |
+
public function gawd_visitors(){
|
557 |
+
require_once('admin/pages/visitors.php');
|
558 |
+
}
|
559 |
+
|
560 |
+
public function gawd_browser(){
|
561 |
+
require_once('admin/pages/browser.php');
|
562 |
+
}
|
563 |
+
|
564 |
+
|
565 |
+
/**
|
566 |
+
* Enqueues the required styles and scripts, localizes some js variables.
|
567 |
+
*/
|
568 |
+
public function gawd_front_scripts(){
|
569 |
+
wp_enqueue_style('admin_css', GAWD_URL . '/inc/css/gawd_admin.css', false, GAWD_VERSION);
|
570 |
+
/*wp_enqueue_script( 'date-js', GAWD_URL . '/inc/js/date.js', array( 'jquery' ), GAWD_VERSION );*/
|
571 |
+
wp_enqueue_script('gawd_front_js', GAWD_URL . '/inc/js/gawd_front.js', array('jquery'), GAWD_VERSION);
|
572 |
+
|
573 |
+
wp_enqueue_script('gawd_charts', GAWD_URL . '/inc/js/gawd_charts.js', array('gawd_plotly_basic'), GAWD_VERSION);
|
574 |
+
wp_enqueue_script('gawd_plotly_basic', GAWD_URL . '/inc/js/plotly-basic.min.js', array('jquery'), GAWD_VERSION);
|
575 |
+
|
576 |
+
wp_localize_script('gawd_front_js', 'gawd_front', array(
|
577 |
+
'ajaxurl' => admin_url('admin-ajax.php'),
|
578 |
+
'ajaxnonce' => wp_create_nonce('gawd_admin_page_nonce'),
|
579 |
+
'gawd_plugin_url' => GAWD_URL,
|
580 |
+
'date_30' => date('Y-m-d', strtotime('-31 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
581 |
+
'date_7' => date('Y-m-d', strtotime('-8 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
582 |
+
'date_last_week' => date('Y-m-d', strtotime('last week -1day')) . '/-/' . date('Y-m-d', strtotime('last week +5day')),
|
583 |
+
'date_last_month' => date('Y-m-01', strtotime('last month')) . '/-/' . date('Y-m-t', strtotime('last month')),
|
584 |
+
'date_this_month' => date('Y-m-01') . '/-/' . date('Y-m-d'),
|
585 |
+
'date_today' => date('Y-m-d') . '/-/' . date('Y-m-d'),
|
586 |
+
'date_yesterday' => date('Y-m-d', strtotime('-1 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
587 |
+
'wp_admin_url' => admin_url(),
|
588 |
+
'gawd_custom_ajax_nonce' => wp_create_nonce('gawd_custom_ajax'),
|
589 |
+
'gawd_custom_ajax_nonce_data' => array(
|
590 |
+
'action' => 'gawd_ajax_front',
|
591 |
+
'nonce' => wp_create_nonce('gawd_ajax_front'),
|
592 |
+
),
|
593 |
+
'exportUrl' => add_query_arg(array('action' => 'gawd_export'), admin_url('admin-ajax.php'))
|
594 |
+
));
|
595 |
+
}
|
596 |
+
|
597 |
+
public function gawd_enqueue_scripts(){
|
598 |
+
$options = get_option('gawd_settings');
|
599 |
+
$default_date = (isset($options['default_date']) && $options['default_date'] != '') ? $options['default_date'] : 'last_30days';
|
600 |
+
$default_date_format = (isset($options['default_date_format']) && $options['default_date_format'] != '') ? $options['default_date_format'] : 'ymd_with_week';
|
601 |
+
$enable_hover_tooltip = (isset($options['enable_hover_tooltip']) && $options['enable_hover_tooltip'] != '') ? $options['enable_hover_tooltip'] : '';
|
602 |
+
$screen = get_current_screen();
|
603 |
+
|
604 |
+
$gawd_user_status = get_option('gawd_user_status');
|
605 |
+
|
606 |
+
$is_gawd_page = in_array($screen->id, $this->gawd_pages);
|
607 |
+
$is_dashboard = (strpos($screen->id, 'dashboard') !== false);
|
608 |
+
$is_post_page = ($screen->base === "edit" && !empty($screen->post_type));
|
609 |
+
$include_scripts_in_wp_admin_pages = (($is_post_page || strpos($screen->base, 'dashboard') !== false || strpos($screen->base, 'edit') !== false) && $gawd_user_status == '1');
|
610 |
+
|
611 |
+
if(strpos($screen->base, 'gawd') !== false || $include_scripts_in_wp_admin_pages) {
|
612 |
+
|
613 |
+
|
614 |
+
wp_enqueue_script('jquery');
|
615 |
+
wp_enqueue_script('jquery-ui-widget');
|
616 |
+
|
617 |
+
wp_enqueue_script('common');
|
618 |
+
wp_enqueue_script('wp-lists');
|
619 |
+
wp_enqueue_script('postbox');
|
620 |
+
wp_enqueue_script('jquery-ui-tooltip');
|
621 |
+
wp_enqueue_script('gawd_paging', GAWD_URL . '/inc/js/paging.js', array('jquery-ui-widget'), GAWD_VERSION);
|
622 |
+
wp_enqueue_script('jquery.cookie', GAWD_URL . '/inc/js/jquery.cookie.js', false, GAWD_VERSION);
|
623 |
+
wp_enqueue_style('timepicker_css', GAWD_URL . '/inc/css/jquery.timepicker.css', false, GAWD_VERSION);
|
624 |
+
wp_enqueue_style('admin_css', GAWD_URL . '/inc/css/gawd_admin.css', false, GAWD_VERSION);
|
625 |
+
wp_enqueue_style('gawd_dataTables_responsive_css', GAWD_URL . '/inc/css/responsive.dataTables.min.css', false, GAWD_VERSION);
|
626 |
+
wp_enqueue_style('gawd_dataTables_ui_css', GAWD_URL . '/inc/css/dataTables.jqueryui.min.css', false, GAWD_VERSION);
|
627 |
+
wp_enqueue_style('gawd_dataTables_base_ui_css', GAWD_URL . '/inc/css/dataTables-jquery-ui-base.css', false, GAWD_VERSION);
|
628 |
+
wp_enqueue_style('font-awesome', GAWD_URL . '/inc/css/font_awesome.css', false, GAWD_VERSION);
|
629 |
+
//wp_enqueue_style('jquery-ui.css', GAWD_URL . '/inc/css/jquery-ui.css', false, GAWD_VERSION);
|
630 |
+
if(strpos($screen->post_type, 'page') === false && strpos($screen->post_type, 'post') === false && strpos($screen->base, 'edit') === false) {
|
631 |
+
wp_enqueue_style('gawd_bootstrap', GAWD_URL . '/inc/css/bootstrap.css', false, GAWD_VERSION);
|
632 |
+
wp_enqueue_style('gawd_bootstrap-chosen', GAWD_URL . '/inc/css/bootstrap-chosen.css', false, GAWD_VERSION);
|
633 |
+
wp_enqueue_style('gawd_bootstrap-select', GAWD_URL . '/inc/css/bootstrap-select.css', false, GAWD_VERSION);
|
634 |
+
}
|
635 |
+
wp_enqueue_style('gawd_datepicker', GAWD_URL . '/inc/css/daterangepicker.css', false, GAWD_VERSION);
|
636 |
+
wp_enqueue_script('gawd_moment', GAWD_URL . '/inc/js/moment.min.js', false, GAWD_VERSION);
|
637 |
+
wp_enqueue_script('gawd_daterangepicker', GAWD_URL . '/inc/js/daterangepicker.js', false, GAWD_VERSION);
|
638 |
+
/*Map*/
|
639 |
+
wp_enqueue_script('gawd_map_chart', GAWD_URL . '/inc/js/gawd_map_chart.js', false, GAWD_VERSION);
|
640 |
+
/*End Map*/
|
641 |
+
wp_enqueue_script('rgbcolor.js', GAWD_URL . '/inc/js/rgbcolor.js', array('jquery'), GAWD_VERSION);
|
642 |
+
wp_enqueue_script('StackBlur.js', GAWD_URL . '/inc/js/StackBlur.js', array('jquery'), GAWD_VERSION);
|
643 |
+
wp_enqueue_script('canvg.js', GAWD_URL . '/inc/js/canvg.js', array('jquery'), GAWD_VERSION);
|
644 |
+
wp_enqueue_script('gawd_tables', GAWD_URL . '/inc/js/loader.js', array('jquery'), GAWD_VERSION);
|
645 |
+
wp_enqueue_script('date-js', GAWD_URL . '/inc/js/date.js', array('jquery'), GAWD_VERSION);
|
646 |
+
wp_enqueue_script('timepicker_js', GAWD_URL . '/inc/js/jquery.timepicker.min.js', array('jquery'), GAWD_VERSION);
|
647 |
+
wp_enqueue_script('admin_js', GAWD_URL . '/inc/js/gawd_admin.js', array('jquery','gawd_charts'), GAWD_VERSION);
|
648 |
+
wp_enqueue_script('gawd_datatables_js', GAWD_URL . '/inc/js/jquery.dataTables.min.js', array('jquery','gawd_charts'), GAWD_VERSION);
|
649 |
+
wp_enqueue_script('chosen.jquery.js', GAWD_URL . '/inc/js/chosen.jquery.js', array('jquery'), GAWD_VERSION);
|
650 |
+
wp_enqueue_script('gawd_datatables_responsive_js', GAWD_URL . '/inc/js/dataTables.responsive.min.js', array('jquery','gawd_charts'), GAWD_VERSION);
|
651 |
+
wp_enqueue_script('gawd_datatables_ui_js', GAWD_URL . '/inc/js/dataTables.jqueryui.min.js', array('jquery','gawd_charts'), GAWD_VERSION);
|
652 |
+
|
653 |
+
if(strpos($screen->post_type, 'page') === false && strpos($screen->post_type, 'post') === false && strpos($screen->base, 'edit') === false) {
|
654 |
+
wp_enqueue_script('bootstrap_js', GAWD_URL . '/inc/js/bootstrap_js.js', array('jquery'), GAWD_VERSION);
|
655 |
+
wp_enqueue_script('bootstrap-select', GAWD_URL . '/inc/js/bootstrap-select.js', array('jquery'), GAWD_VERSION);
|
656 |
+
}
|
657 |
+
wp_enqueue_script('highlight_js', GAWD_URL . '/inc/js/js_highlight.js', array('jquery'), GAWD_VERSION);
|
658 |
+
wp_enqueue_script('settings_js', GAWD_URL . '/inc/js/gawd_settings.js', array('jquery'), GAWD_VERSION);
|
659 |
+
wp_enqueue_script('overview', GAWD_URL . '/inc/js/gawd_overview.js', array('jquery'), GAWD_VERSION);
|
660 |
+
wp_localize_script('overview', 'gawd_overview', array(
|
661 |
+
'ajaxurl' => admin_url('admin-ajax.php'),
|
662 |
+
'ajaxnonce' => wp_create_nonce('gawd_admin_page_nonce'),
|
663 |
+
'gawd_plugin_url' => GAWD_URL,
|
664 |
+
'default_date' => $default_date,
|
665 |
+
'enableHoverTooltip' => $enable_hover_tooltip,
|
666 |
+
'wp_admin_url' => admin_url()
|
667 |
+
));
|
668 |
+
|
669 |
+
if($is_gawd_page){
|
670 |
+
$gawd_custom_ajax_nonce_data = array(
|
671 |
+
'action' => 'gawd_analytics_pages',
|
672 |
+
'nonce' => wp_create_nonce('gawd_analytics_pages'),
|
673 |
+
);
|
674 |
+
}else if($is_post_page){
|
675 |
+
$gawd_custom_ajax_nonce_data = array(
|
676 |
+
'action' => 'gawd_post_pages',
|
677 |
+
'nonce' => wp_create_nonce('gawd_post_pages'),
|
678 |
+
);
|
679 |
+
}else if($is_dashboard){
|
680 |
+
$gawd_custom_ajax_nonce_data = array(
|
681 |
+
'action' => 'gawd_dashboard',
|
682 |
+
'nonce' => wp_create_nonce('gawd_dashboard'),
|
683 |
+
);
|
684 |
+
}else{
|
685 |
+
$gawd_custom_ajax_nonce_data = array(
|
686 |
+
'action' => '',
|
687 |
+
'nonce' => ''
|
688 |
+
);
|
689 |
+
}
|
690 |
+
|
691 |
+
|
692 |
+
wp_localize_script('admin_js', 'gawd_admin', array(
|
693 |
+
'ajaxurl' => admin_url('admin-ajax.php'),
|
694 |
+
'ajaxnonce' => wp_create_nonce('gawd_admin_page_nonce'),
|
695 |
+
'gawd_plugin_url' => GAWD_URL,
|
696 |
+
'wp_admin_url' => admin_url(),
|
697 |
+
'enableHoverTooltip' => $enable_hover_tooltip,
|
698 |
+
'default_date' => $default_date,
|
699 |
+
'default_date_format' => $default_date_format,
|
700 |
+
'date_30' => date('Y-m-d', strtotime('-31 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
701 |
+
'date_7' => date('Y-m-d', strtotime('-8 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
702 |
+
'date_last_week' => date('Y-m-d', strtotime('last week -1day')) . '/-/' . date('Y-m-d', strtotime('last week +5day')),
|
703 |
+
'date_last_month' => date('Y-m-01', strtotime('last month')) . '/-/' . date('Y-m-t', strtotime('last month')),
|
704 |
+
'date_this_month' => date('Y-m-01') . '/-/' . date('Y-m-d'),
|
705 |
+
'date_today' => date('Y-m-d') . '/-/' . date('Y-m-d'),
|
706 |
+
'date_yesterday' => date('Y-m-d', strtotime('-1 day')) . '/-/' . date('Y-m-d', strtotime('-1 day')),
|
707 |
+
'exportUrl' => add_query_arg(array('action' => 'gawd_export'), admin_url('admin-ajax.php')),
|
708 |
+
'gawd_custom_ajax_nonce' => wp_create_nonce('gawd_custom_ajax'),
|
709 |
+
'gawd_custom_ajax_nonce_data' => $gawd_custom_ajax_nonce_data,
|
710 |
+
'gawd_has_property' => (GAWD_helper::gawd_has_property() ? '1' : '0'),
|
711 |
+
));
|
712 |
+
}
|
713 |
+
if(strpos($screen->base, 'gawd_uninstall') !== false) {
|
714 |
+
wp_enqueue_style('gawd_deactivate-css', GAWD_URL . '/wd/assets/css/deactivate_popup.css', array(), GAWD_VERSION);
|
715 |
+
wp_enqueue_script('gawd-deactivate-popup', GAWD_URL . '/wd/assets/js/deactivate_popup.js', array(), GAWD_VERSION, true);
|
716 |
+
$admin_data = wp_get_current_user();
|
717 |
+
|
718 |
+
wp_localize_script('gawd-deactivate-popup', 'gawdWDDeactivateVars', array(
|
719 |
+
"prefix" => "gawd",
|
720 |
+
"deactivate_class" => 'gawd_deactivate_link',
|
721 |
+
"email" => $admin_data->data->user_email,
|
722 |
+
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-google-maps-plugin.html",
|
723 |
+
));
|
724 |
+
}
|
725 |
+
wp_enqueue_script('gawd_common_js', GAWD_URL . '/inc/js/gawd_common.js', array('jquery'), GAWD_VERSION);
|
726 |
+
|
727 |
+
wp_enqueue_script('gawd_charts', GAWD_URL . '/inc/js/gawd_charts.js', array('gawd_plotly_basic'), GAWD_VERSION);
|
728 |
+
wp_enqueue_script('gawd_plotly_basic', GAWD_URL . '/inc/js/plotly-basic.min.js', array('jquery'), GAWD_VERSION);
|
729 |
+
}
|
730 |
+
|
731 |
+
/**
|
732 |
+
* Adds the menu page with its submenus.
|
733 |
+
*/
|
734 |
+
public function gawd_add_menu(){
|
735 |
+
$permission = 'read';
|
736 |
+
$parent_slug = "gawd_analytics";
|
737 |
+
|
738 |
+
/*Free*/
|
739 |
+
if(get_option("gawd_subscribe_done") !== '1') {
|
740 |
+
return;
|
741 |
+
}
|
742 |
+
|
743 |
+
if(GAWD_helper::gawd_is_ready()) {
|
744 |
+
|
745 |
+
$this->gawd_pages[] = add_menu_page(
|
746 |
+
__('Analytics', 'gawd'), //$page_title
|
747 |
+
__('Analytics', 'gawd'), //$menu_title
|
748 |
+
$permission, //$capability
|
749 |
+
$parent_slug, //$menu_slug
|
750 |
+
array($this, ($this->view_permission) ? 'gawd_display_overview_page' : 'gawd_display_settings_page'), //$function = '',
|
751 |
+
GAWD_URL . '/assets/main_icon.png', "25");
|
752 |
+
|
753 |
+
if($this->view_permission === true) {
|
754 |
+
$this->gawd_pages[] = add_submenu_page(
|
755 |
+
$parent_slug, //$parent_slug
|
756 |
+
__('Analytics Dashboard', 'gawd'), //$page_title
|
757 |
+
__('Analytics Dashboard', 'gawd'), //$menu_title
|
758 |
+
$permission, //$capability
|
759 |
+
'gawd_analytics', //$menu_slug
|
760 |
+
array($this, 'gawd_display_overview_page') //$function = '',
|
761 |
+
);
|
762 |
|
763 |
+
$this->gawd_pages[] = add_submenu_page(
|
764 |
+
$parent_slug, //$parent_slug
|
765 |
+
__('Reports', 'gawd'), //$page_title
|
766 |
+
__('Reports', 'gawd'), //$menu_title
|
767 |
+
$permission, //$capability
|
768 |
+
'gawd_reports', //$menu_slug
|
769 |
+
array($this, 'gawd_display_reports_page') //$function = '',
|
770 |
+
);
|
771 |
+
}
|
772 |
+
|
773 |
+
if($this->settings_permission === true) {
|
774 |
+
$this->gawd_pages[] = add_submenu_page(
|
775 |
+
$parent_slug, //$parent_slug
|
776 |
+
__('Settings', 'gawd'), //$page_title
|
777 |
+
__('Settings', 'gawd'), //$menu_title
|
778 |
+
$permission, //$capability
|
779 |
+
($this->view_permission) ? 'gawd_settings' : 'gawd_analytics', //$menu_slug
|
780 |
+
array($this, 'gawd_display_settings_page') //$function = '',
|
781 |
+
);
|
782 |
|
783 |
+
$this->gawd_pages[] = add_submenu_page(
|
784 |
+
$parent_slug, //$parent_slug
|
785 |
+
__('Goal Management', 'gawd'), //$page_title
|
786 |
+
__('Goal Management', 'gawd'), //$menu_title
|
787 |
+
$permission, //$capability
|
788 |
+
'gawd_goals', //$menu_slug
|
789 |
+
array($this, 'gawd_display_goals_page') //$function = '',
|
790 |
+
);
|
791 |
|
792 |
+
$this->gawd_pages[] = add_submenu_page(
|
793 |
+
$parent_slug, //$parent_slug
|
794 |
+
__('Custom Reports', 'gawd'), //$page_title
|
795 |
+
__('Custom Reports', 'gawd'), //$menu_title
|
796 |
+
$permission, //$capability
|
797 |
+
'gawd_custom_reports', //$menu_slug
|
798 |
+
array($this, 'gawd_display_custom_reports_page') //$function = '',
|
799 |
+
);
|
800 |
|
801 |
+
// $this->gawd_pages[] = add_submenu_page(
|
802 |
+
// $parent_slug, //$parent_slug
|
803 |
+
// __('Get Paid', 'gawd'), //$page_title
|
804 |
+
// __('Get Paid', 'gawd'), //$menu_title
|
805 |
+
// $permission, //$capability
|
806 |
+
// 'gawd_licensing', //$menu_slug
|
807 |
+
// array($this, 'gawd_display_licensing_page') //$function = '',
|
808 |
+
// );
|
809 |
+
|
810 |
+
$this->gawd_pages[] = add_submenu_page(
|
811 |
+
$parent_slug, //$parent_slug
|
812 |
+
__('Uninstall', 'gawd'), //$page_title
|
813 |
+
__('Uninstall', 'gawd'), //$menu_title
|
814 |
+
$permission, //$capability
|
815 |
+
'gawd_uninstall', //$menu_slug
|
816 |
+
array($this, 'gawd_display_uninstall_page') //$function = '',
|
817 |
+
);
|
818 |
+
}
|
819 |
+
} else {
|
820 |
+
|
821 |
+
if($this->settings_permission) {
|
822 |
+
$this->gawd_pages[] = add_menu_page(
|
823 |
+
__('Analytics', 'gawd'), //$page_title
|
824 |
+
__('Analytics', 'gawd'), //$menu_title
|
825 |
+
$permission, //$capability
|
826 |
+
$parent_slug, //$menu_slug
|
827 |
+
array($this, 'gawd_display_settings_page_for_auth'), //$function = '',
|
828 |
+
GAWD_URL . '/assets/main_icon.png', "25");
|
829 |
+
|
830 |
+
$this->gawd_pages[] = add_submenu_page(
|
831 |
+
$parent_slug, //$parent_slug
|
832 |
+
__('Settings', 'gawd'), //$page_title
|
833 |
+
__('Settings', 'gawd'), //$menu_title
|
834 |
+
$permission, //$capability
|
835 |
+
'gawd_settings', //$menu_slug
|
836 |
+
array($this, 'gawd_display_settings_page_for_auth') //$function = '',
|
837 |
+
);
|
838 |
+
}
|
839 |
+
}
|
840 |
|
841 |
+
$this->gawd_pages[] = add_submenu_page(
|
842 |
+
null, //$parent_slug
|
843 |
+
__('Logs', 'gawd'), //$page_title
|
844 |
+
__('Logs', 'gawd'), //$menu_title
|
845 |
+
$permission, //$capability
|
846 |
+
'gawd_logs', //$menu_slug
|
847 |
+
array("GAWD_logs", "print_logs") //$function = '',
|
848 |
+
);
|
849 |
+
}
|
850 |
|
851 |
+
public function remove_first_menu(){
|
852 |
+
if(!GAWD_helper::gawd_is_ready()) {
|
853 |
+
remove_submenu_page('gawd_analytics', 'gawd_analytics');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
854 |
}
|
855 |
+
}
|
856 |
|
857 |
+
public function gawd_display_licensing_page(){
|
858 |
+
wp_enqueue_style('gawd_licensing', GAWD_URL . '/inc/css/gawd_licensing.css', false, GAWD_VERSION);
|
859 |
+
require_once(GAWD_DIR . '/admin/pages/licensing.php');
|
860 |
+
}
|
|
|
|
|
|
|
|
|
|
|
861 |
|
862 |
+
public function gawd_display_uninstall_page(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
863 |
|
864 |
+
require_once('admin/pages/uninstall.php');
|
865 |
+
if(
|
866 |
+
(isset($_POST['unistall_gawd']) && $_POST['unistall_gawd'] === 'yes') &&
|
867 |
+
check_admin_referer('gawd_save_form', 'gawd_save_form_field') !== false
|
868 |
+
) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
869 |
|
870 |
+
$deactivate_url = wp_nonce_url('plugins.php?action=deactivate&plugin=' . GWD_NAME . '/google-analytics-wd.php', 'deactivate-plugin_' . GWD_NAME . '/google-analytics-wd.php');
|
871 |
+
$deactivate_url = str_replace('&', '&', $deactivate_url);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
872 |
|
873 |
+
$gawd_uninstall = new GAWDUninstall();
|
874 |
+
$gawd_uninstall->delete_options();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
875 |
|
876 |
+
echo '<script>window.location.href="' . $deactivate_url . '";</script>';
|
877 |
+
die;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
878 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
879 |
}
|
880 |
|
881 |
+
if(get_option('gawd_credentials')) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
882 |
|
883 |
+
$gawd_uninstall = new GAWDUninstall();
|
884 |
+
$gawd_uninstall->uninstall();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
885 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
886 |
}
|
887 |
+
}
|
888 |
|
889 |
+
public function gawd_display_goals_page(){
|
890 |
+
$this->premium_bar('gawd_goals');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
891 |
|
892 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
893 |
+
$property_id = $gawd_user_data['property_id'];
|
894 |
+
$profiles = GAWD_helper::get_property_profiles($property_id);
|
895 |
+
$property = GAWD_helper::get_property($property_id);
|
896 |
+
$goals = get_option('gawd_goals_data');
|
897 |
+
if(!is_array($goals)) {
|
898 |
+
$goals = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
899 |
}
|
900 |
|
901 |
+
$next_goals_id = GAWD_helper::get_next_goal_id($goals);
|
902 |
+
$refresh_user_info_transient = get_site_transient('gawd_refresh_user_info');
|
903 |
+
$display_goals_page = (!empty($gawd_user_data['property_id']));
|
904 |
|
905 |
+
require_once('admin/pages/goals.php');
|
906 |
+
}
|
907 |
|
908 |
+
public function gawd_display_custom_reports_page(){
|
909 |
+
$this->premium_bar('gawd_custom_reports');
|
910 |
+
require_once('admin/pages/custom_reports.php');
|
911 |
+
}
|
912 |
|
913 |
+
public function gawd_display_overview_page(){
|
914 |
+
$this->premium_bar('gawd_analytics');
|
915 |
+
$profiles = GAWD_helper::get_profiles();
|
916 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
917 |
+
require_once('admin/pages/overview.php');
|
918 |
+
}
|
919 |
|
920 |
+
public function gawd_display_reports_page(){
|
921 |
+
$this->premium_bar('gawd_reports');
|
922 |
+
$profiles = GAWD_helper::get_profiles();
|
923 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
924 |
+
require_once('admin/pages/dashboard.php');
|
925 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
926 |
|
927 |
+
public function gawd_daily_email(){
|
928 |
+
$emails = get_option('gawd_email');
|
929 |
+
foreach($emails as $email) {
|
930 |
+
if(isset($email['period']) && $email['period'] == 'daily') {
|
931 |
+
//pls send email if ....
|
932 |
+
$date = date('Y-m-d', strtotime('yesterday'));
|
933 |
+
$email_subject = preg_match('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', $email['email_subject']) ? preg_replace('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', '(' . $date . ' - ' . $date . ')', $email['email_subject']) : $email['email_subject'] . ' (' . $date . ' - ' . $date . ')';
|
934 |
+
$data = $this->show_data(array(
|
935 |
+
'metric' => 'ga:' . $email['metric'],
|
936 |
+
'dimension' => $email['dimension'],
|
937 |
+
'start_date' => $date,
|
938 |
+
'end_date' => $date
|
939 |
+
));
|
940 |
+
if($email['export_type'] == 'pdf') {
|
941 |
+
$filedir = $this->create_pdf_file(false, $data, $email['dimension'], $date, $date, $email['metric_compare'], $email['metric']);
|
942 |
} else {
|
943 |
+
$filedir = $this->create_csv_file(false, $data, $email['dimension'], $date, $date, $email['metric_compare'], $email['metric']);
|
944 |
+
}
|
945 |
+
//$attachment = gawd_export_data($data, $export_type, 'email', $email['dimension'], $email['metric'], $email['metric_compare'], $email['img'], $email['tab_name'], $start_date, $end_date, $gawd_user_data['web_property_name'],$filter_type);
|
946 |
+
$attachment = $filedir;
|
947 |
+
$headers = 'From: <' . $email['email_from'] . '>';
|
948 |
+
wp_mail($email['emails'], $email_subject, $email['email_body'], $headers, $attachment);
|
949 |
+
}
|
950 |
+
}
|
951 |
+
}
|
952 |
+
|
953 |
+
public function gawd_weekly_email(){
|
954 |
+
$emails = get_option('gawd_email');
|
955 |
+
foreach($emails as $email) {
|
956 |
+
if(isset($email['period']) && $email['period'] == 'gawd_weekly') {
|
957 |
+
//pls send email if ....
|
958 |
+
/*$start_date = date('Y-m-d', strtotime('last' . $email['period_day']));
|
959 |
+
$end_date = date('Y-m-d', strtotime('this' . $email['period_day']));*/
|
960 |
+
$start_date = date('Y-m-d', strtotime('last week -1 day'));
|
961 |
+
$end_date = date('l') != 'Sunday' ? date('Y-m-d', strtotime('last sunday -1 day')) : date('Y-m-d', strtotime('-1 day'));
|
962 |
+
$email_subject = preg_match('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', $email['email_subject']) ? preg_replace('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', '(' . $start_date . ' - ' . $end_date . ')', $email['email_subject']) : $email['email_subject'] . ' (' . $start_date . ' - ' . $end_date . ')';
|
963 |
+
$data = $this->show_data(array(
|
964 |
+
'metric' => 'ga:' . $email['metric'],
|
965 |
+
'dimension' => $email['dimension'],
|
966 |
+
'start_date' => $start_date,
|
967 |
+
'end_date' => $end_date
|
968 |
+
));
|
969 |
+
if($email['export_type'] == 'pdf') {
|
970 |
+
$filedir = $this->create_pdf_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
971 |
} else {
|
972 |
+
$filedir = $this->create_csv_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
973 |
+
}
|
974 |
+
//$attachment = gawd_export_data($data, $export_type, 'email', $email['dimension'], $email['metric'], $email['metric_compare'], $email['img'], $email['tab_name'], $start_date, $end_date, $gawd_user_data['web_property_name'],$filter_type);
|
975 |
+
$attachment = $filedir;
|
976 |
+
|
977 |
+
$headers = 'From: <' . $email['email_from'] . '>';
|
978 |
+
wp_mail($email['emails'], $email_subject, $email['email_body'], $headers, $attachment);
|
979 |
+
}
|
980 |
+
}
|
981 |
+
}
|
982 |
+
|
983 |
+
public function gawd_monthly_email(){
|
984 |
+
$emails = get_option('gawd_email');
|
985 |
+
foreach($emails as $email) {
|
986 |
+
if(isset($email['period']) && $email['period'] == 'gawd_monthly') {
|
987 |
+
//pls send email if ....
|
988 |
+
$end_date = date('Y-m-d', strtotime(date('Y-' . date('m') . '-1') . '-1 day'));
|
989 |
+
$start_date = date('Y-m-d', strtotime($end_date . '- 1 month'));
|
990 |
+
$data = $this->show_data(array(
|
991 |
+
'metric' => 'ga:' . $email['metric'],
|
992 |
+
'dimension' => $email['dimension'],
|
993 |
+
'start_date' => $start_date,
|
994 |
+
'end_date' => $end_date
|
995 |
+
));
|
996 |
+
$email_subject = preg_match('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', $email['email_subject']) ? preg_replace('/\(([0-9]{4}-[0-1][0-9]-[0-3][0-9] \- [0-9]{4}-[0-1][0-9]-[0-3][0-9])\)/', '(' . $start_date . ' - ' . $end_date . ')', $email['email_subject']) : $email['email_subject'] . ' (' . $start_date . ' - ' . $end_date . ')';
|
997 |
+
if($email['export_type'] == 'pdf') {
|
998 |
+
$filedir = $this->create_pdf_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
999 |
+
} else {
|
1000 |
+
$filedir = $this->create_csv_file(false, $data, $email['dimension'], $start_date, $end_date, $email['metric_compare'], $email['metric']);
|
1001 |
+
}
|
1002 |
+
//$attachment = gawd_export_data($data, $export_type, 'email', $email['dimension'], $email['metric'], $email['metric_compare'], $email['img'], $email['tab_name'], $start_date, $end_date, $gawd_user_data['web_property_name'],$filter_type);
|
1003 |
+
$attachment = $filedir;
|
1004 |
+
$headers = 'From: <' . $email['email_from'] . '>';
|
1005 |
+
wp_mail($email['emails'], $email_subject, $email['email_body'], $headers, $attachment);
|
1006 |
+
}
|
1007 |
+
}
|
1008 |
+
}
|
1009 |
+
|
1010 |
+
/**
|
1011 |
+
* Prepares the settings to be displayed then displays the settings page.
|
1012 |
+
*/
|
1013 |
+
public static function gawd_settings_defaults(){
|
1014 |
+
$settings = get_option('gawd_settings');
|
1015 |
+
$settings['gawd_tracking_enable'] = 'on';
|
1016 |
+
$settings['gawd_custom_dimension_Logged_in'] = 'on';
|
1017 |
+
$settings['gawd_custom_dimension_Post_type'] = 'on';
|
1018 |
+
$settings['gawd_custom_dimension_Author'] = 'on';
|
1019 |
+
$settings['gawd_custom_dimension_Category'] = 'on';
|
1020 |
+
$settings['gawd_custom_dimension_Published_Month'] = 'on';
|
1021 |
+
$settings['gawd_custom_dimension_Published_Year'] = 'on';
|
1022 |
+
$settings['gawd_custom_dimension_Tags'] = 'on';
|
1023 |
+
$settings['enable_hover_tooltip'] = 'on';
|
1024 |
+
$settings['gawd_show_in_dashboard'] = 'on';
|
1025 |
+
$settings['post_page_chart'] = 'on';
|
1026 |
+
$settings['gawd_anonymize'] = 'on';
|
1027 |
+
update_option('gawd_settings', $settings);
|
1028 |
+
}
|
1029 |
+
|
1030 |
+
public function gawd_admin_notice($message, $type, $class = ""){
|
1031 |
+
$class = 'notice notice-' . $type . ' ' . $class;
|
1032 |
+
echo '<div class="' . $class . '"><p>' . $message . '</p></div>';
|
1033 |
+
}
|
1034 |
+
|
1035 |
+
public function gawd_display_settings_page(){
|
1036 |
+
|
1037 |
+
$this->premium_bar('gawd_settings');
|
1038 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
1039 |
+
|
1040 |
+
if(isset($_POST['gawd_settings_logout']) && $_POST['gawd_settings_logout'] == 1) {
|
1041 |
+
check_admin_referer('gawd_save_form', 'gawd_save_form_fild');
|
1042 |
+
GAWD_helper::delete_user_data();
|
1043 |
+
$redirect_url = admin_url() . 'admin.php?page=gawd_settings';
|
1044 |
+
echo '<script>window.location.href="' . $redirect_url . '";</script>';
|
1045 |
+
die;
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
$selected_account_data = $gawd_user_data;
|
1049 |
+
if(!empty($_POST['web_property_name']) && !empty($_POST['gawd_profile_id'])) {
|
1050 |
+
$selected_account_data['profile_id'] = $_POST['gawd_profile_id'];
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
if(isset($_POST['web_property_name']) && $_POST['web_property_name'] != '') {
|
1054 |
+
|
1055 |
+
//todo filters
|
1056 |
+
// $gawd_user_data['gawd_id'] = isset($_POST['gawd_id']) ? $_POST['gawd_id'] : '';
|
1057 |
+
//
|
1058 |
+
// foreach($gawd_user_data['gawd_profiles'] as $web_property_name => $web_property) {
|
1059 |
+
// foreach($web_property as $profile) {
|
1060 |
+
// if($profile['id'] == $gawd_user_data['gawd_id']) {
|
1061 |
+
// $gawd_user_data['web_property_name'] = $web_property_name;
|
1062 |
+
// $gawd_user_data['webPropertyId'] = $profile['webPropertyId'];
|
1063 |
+
// $gawd_user_data['accountId'] = $profile['accountId'];
|
1064 |
+
// }
|
1065 |
+
// }
|
1066 |
+
// }
|
1067 |
+
// $gawd_user_data['web_property_name'] = isset($_POST['web_property_name']) ? $_POST['web_property_name'] : '';
|
1068 |
+
// update_option('gawd_user_data', $gawd_user_data);
|
1069 |
+
// $redirect_url = admin_url() . 'admin.php?page=gawd_settings';
|
1070 |
+
//echo '<script>window.location.href="'.$redirect_url.'";</script>';
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
|
1074 |
+
if(empty($gawd_user_data['property_id']) && count(GAWD_helper::get_current_site_properties()) > 1) {
|
1075 |
+
$this->gawd_admin_notice(
|
1076 |
+
"You have two or more web-properties configured with current site url. Please go with <a class='gawd_tracking_notice_link' href='" . admin_url('admin.php?page=gawd_settings#gawd_tracking_tab') . "'>this</a> link to select the proper one.",
|
1077 |
+
'error');
|
1078 |
+
}
|
1079 |
+
|
1080 |
+
require_once('admin/pages/settings.php');
|
1081 |
+
}
|
1082 |
+
|
1083 |
+
public function gawd_display_settings_page_for_auth(){
|
1084 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
1085 |
+
$gawd_credentials = GAWD_helper::get_project_credentials();
|
1086 |
+
|
1087 |
+
if(GAWD_helper::get_user_status() === "1") {
|
1088 |
+
$hide_auth = "gawd_hidden";
|
1089 |
+
$hide_refresh_accounts = "";
|
1090 |
+
} else {
|
1091 |
+
$hide_auth = "";
|
1092 |
+
$hide_refresh_accounts = "gawd_hidden";
|
1093 |
+
}
|
1094 |
+
|
1095 |
+
require_once('admin/pages/authentication.php');
|
1096 |
+
}
|
1097 |
+
|
1098 |
+
public function gawd_my_schedule($schedules){
|
1099 |
+
$schedules['gawd_weekly'] = array(
|
1100 |
+
'interval' => 604800,
|
1101 |
+
'display' => __('Every week')
|
1102 |
+
);
|
1103 |
+
$schedules['gawd_monthly'] = array(
|
1104 |
+
'interval' => 18748800,
|
1105 |
+
'display' => __('Every month')
|
1106 |
+
);
|
1107 |
+
|
1108 |
+
return $schedules;
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
public function gawd_pushover_api($user_key, $metric, $condition, $value){
|
1112 |
+
$ch = curl_init();
|
1113 |
+
curl_setopt($ch, CURLOPT_URL, "https://api.pushover.net/1/messages.json");
|
1114 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
|
1115 |
+
"token" => "aJBDhTfhR87EaTzs7wpx1MMKwboBjB",
|
1116 |
+
"user" => $user_key,
|
1117 |
+
"message" => 'The ' . $metric . ' less ' . $value
|
1118 |
+
));
|
1119 |
+
// curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true);
|
1120 |
+
curl_exec($ch);
|
1121 |
+
curl_close($ch);
|
1122 |
+
}
|
1123 |
+
|
1124 |
+
public function gawd_pushover_daily(){
|
1125 |
+
return;//todo
|
1126 |
+
$pushovers = get_option('gawd_pushovers');
|
1127 |
+
$data = '';
|
1128 |
+
$condition = '';
|
1129 |
+
|
1130 |
+
foreach($pushovers as $pushover) {
|
1131 |
+
if(isset($pushover['period']) && $pushover['period'] == 'daily') {
|
1132 |
+
//pls send email if ....
|
1133 |
+
$date = date('Y-m-d', strtotime('yesterday'));
|
1134 |
+
//todo get $data from wp options
|
1135 |
+
// $data = $gawd_client->get_data_alert('ga:' . $pushover['metric'], 'date', $date, $date, $pushover['pushover_view']);
|
1136 |
+
$pushover_condition = $pushover['condition'] == 'greater' ? '>' : '<';
|
1137 |
+
if(!eval($data . $pushover_condition . $pushover['value'] . ';')) {
|
1138 |
+
$cond = ' ' . $pushover['condition'] . ' than';
|
1139 |
+
$this->gawd_pushover_api($pushover['user_key'], $pushover['metric'], $pushover['condition'], $pushover['value']);
|
1140 |
+
}
|
1141 |
+
}
|
1142 |
+
}
|
1143 |
+
}
|
1144 |
+
|
1145 |
+
public function gawd_pushover_weekly(){
|
1146 |
+
return;//todo
|
1147 |
+
$pushovers = get_option('gawd_pushovers');
|
1148 |
+
$data = '';
|
1149 |
+
$condition = '';
|
1150 |
+
foreach($pushovers as $pushover) {
|
1151 |
+
if(isset($pushover['period']) && $pushover['period'] == 'gawd_weekly') {
|
1152 |
+
//pls send email if ....
|
1153 |
+
$start_date = date('Y-m-d', strtotime('last week -1 day'));
|
1154 |
+
$end_date = date('l') != 'Sunday' ? date('Y-m-d', strtotime('last sunday -1 day')) : date('Y-m-d', strtotime('-1 day'));
|
1155 |
+
//todo get $data from wp options
|
1156 |
+
// $data = $gawd_client->get_data_alert('ga:' . $pushover['metric'], 'date', $start_date, $end_date, $pushover['pushover_view']);
|
1157 |
+
$pushover_condition = $pushover['condition'] == 'greater' ? '>' : '<';
|
1158 |
+
if(!eval($data . $pushover_condition . $pushover['value'] . ';')) {
|
1159 |
+
$cond = ' ' . $pushover['condition'] . ' than';
|
1160 |
+
$this->gawd_pushover_api($pushover['user_key'], $pushover['metric'], $pushover['condition'], $pushover['value']);
|
1161 |
+
}
|
1162 |
+
}
|
1163 |
+
}
|
1164 |
+
}
|
1165 |
+
|
1166 |
+
public function gawd_pushover_monthly(){
|
1167 |
+
return;//todo
|
1168 |
+
$pushovers = get_option('gawd_pushovers');
|
1169 |
+
$data = '';
|
1170 |
+
$condition = '';
|
1171 |
+
foreach($pushovers as $pushover) {
|
1172 |
+
if(isset($pushover['period']) && $pushover['period'] == 'gawd_monthly') {
|
1173 |
+
//pls send email if ....
|
1174 |
+
$end_date = date('Y-m-t', strtotime('last month'));
|
1175 |
+
$start_date = date('Y-m-01', strtotime('last month'));
|
1176 |
+
//todo get $data from wp options
|
1177 |
+
// $data = $gawd_client->get_data_alert('ga:' . $pushover['metric'], 'date', $start_date, $end_date, $pushover['pushover_view']);
|
1178 |
+
$pushover_condition = $pushover['condition'] == 'greater' ? '>' : '<';
|
1179 |
+
if(!eval($data . $pushover_condition . $pushover['value'] . ';')) {
|
1180 |
+
$cond = ' ' . $pushover['condition'] . ' than';
|
1181 |
+
$this->gawd_pushover_api($pushover['user_key'], $pushover['metric'], $pushover['condition'], $pushover['value']);
|
1182 |
+
}
|
1183 |
+
}
|
1184 |
+
}
|
1185 |
+
}
|
1186 |
+
|
1187 |
+
public function gawd_alert_daily(){
|
1188 |
+
return;//todo
|
1189 |
+
$alerts = get_option('gawd_alerts');
|
1190 |
+
$data = '';
|
1191 |
+
$condition = '';
|
1192 |
+
$email_from = get_option('admin_email');
|
1193 |
+
foreach($alerts as $alert) {
|
1194 |
+
if(isset($alert['period']) && $alert['period'] == 'daily') {
|
1195 |
+
//pls send email if ....
|
1196 |
+
$date = date('Y-m-d', strtotime('yesterday'));
|
1197 |
+
//todo get $data from wp options
|
1198 |
+
// $data = $gawd_client->get_data_alert('ga:' . $alert['metric'], 'date', $date, $date, $alert['alert_view']);
|
1199 |
+
$alert_condition = $alert['condition'] == 'greater' ? '>' : '<';
|
1200 |
+
$color_condition = $alert['condition'] == 'greater' ? 'rgb(157, 207, 172)' : 'rgb(251, 133, 131)';
|
1201 |
+
if(!eval($data . $alert_condition . $alert['value'] . ';')) {
|
1202 |
+
$cond = ' ' . $alert['condition'] . ' than';
|
1203 |
+
$headers = array();
|
1204 |
+
$headers[] = 'From: <' . $email_from . '>';
|
1205 |
+
$headers[] = 'Content-Type: text/html';
|
1206 |
+
$content = '<div style="font-family: sans-serif;width:100%;height:50px;background-color:#FB8583;font-size:20px;color:#fff;margin-bottom:20px;text-align:center;line-height:50px">WD Google Analytics Alert!</div><p style="color:#808080;text-align: center;font-size: 26px;font-family: sans-serif;">' . preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $alert['metric'])))) . ' in <a style="text-decoration:none;color:rgba(124,181,216,1);font-family: sans-serif;" href="' . $alert["alert_view_name"] . '" target="_blank">' . $alert["alert_view_name"] . '</a> are <span style="color:' . $color_condition . '">' . $cond . '</span></p><p style="color:rgba(124,181,216,1);font-size: 26px;font-family: sans-serif; text-align: center;">' . $alert['value'] . '</p>';
|
1207 |
+
wp_mail($alert['emails'], 'Analytics Alert', $content, $headers);
|
1208 |
+
}
|
1209 |
+
}
|
1210 |
+
}
|
1211 |
+
}
|
1212 |
+
|
1213 |
+
public function gawd_alert_weekly(){
|
1214 |
+
return;//todo
|
1215 |
+
$alerts = get_option('gawd_alerts');
|
1216 |
+
$data = '';
|
1217 |
+
$condition = '';
|
1218 |
+
$email_from = get_option('admin_email');
|
1219 |
+
foreach($alerts as $alert) {
|
1220 |
+
if(isset($alert['period']) && $alert['period'] == 'gawd_weekly') {
|
1221 |
+
//pls send email if ....
|
1222 |
+
$start_date = date('Y-m-d', strtotime('last week -1 day'));
|
1223 |
+
$end_date = date('l') != 'Sunday' ? date('Y-m-d', strtotime('last sunday -1 day')) : date('Y-m-d', strtotime('-1 day'));
|
1224 |
+
//todo get $data
|
1225 |
+
//$data = $gawd_client->get_data_alert('ga:' . $alert['metric'], 'date', $start_date, $end_date, $alert['alert_view']);
|
1226 |
+
$alert_condition = $alert['condition'] == 'greater' ? '>' : '<';
|
1227 |
+
if(!eval($data . $alert_condition . $alert['value'] . ';')) {
|
1228 |
+
$cond = ' ' . $alert['condition'] . ' than';
|
1229 |
+
$headers = array();
|
1230 |
+
$headers[] = 'From: <' . $email_from . '>';
|
1231 |
+
$headers[] = 'Content-Type: text/html';
|
1232 |
+
$content = '<div style="font-family: sans-serif;width:100%;height:50px;background-color:#FB8583;font-size:20px;color:#fff;margin-bottom:20px;text-align:center;line-height:50px">WD Google Analytics Alert!</div><p style="color:#808080;text-align: center;font-size: 26px;font-family: sans-serif;">' . preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $alert['metric'])))) . ' in <a style="text-decoration:none;color:rgba(124,181,216,1);font-family: sans-serif;" href="' . $alert["alert_view_name"] . '" target="_blank">' . $alert["alert_view_name"] . '</a> are <span style="color:' . $color_condition . '">' . $cond . '</span></p><p style="color:rgba(124,181,216,1);font-size: 26px;font-family: sans-serif; text-align: center;">' . $alert['value'] . '</p>';
|
1233 |
+
wp_mail($alert['emails'], 'Analytics Alert', $content, $headers);
|
1234 |
+
}
|
1235 |
+
}
|
1236 |
+
}
|
1237 |
+
}
|
1238 |
+
|
1239 |
+
public function gawd_alert_monthly(){
|
1240 |
+
return;
|
1241 |
+
$alerts = get_option('gawd_alerts');
|
1242 |
+
$data = '';
|
1243 |
+
$email_from = get_option('admin_email');
|
1244 |
+
foreach($alerts as $alert) {
|
1245 |
+
if(isset($alert['period']) && $alert['period'] == 'gawd_monthly') {
|
1246 |
+
//pls send email if ....
|
1247 |
+
$end_date = date('Y-m-t', strtotime('last month'));
|
1248 |
+
$start_date = date('Y-m-01', strtotime('last month'));
|
1249 |
+
//todo get $data
|
1250 |
+
//$data = $gawd_client->get_data_alert('ga:' . $alert['metric'], 'date', $start_date, $end_date, $alert['alert_view']);
|
1251 |
+
$alert_condition = $alert['condition'] == 'greater' ? '>' : '<';
|
1252 |
+
if(!eval($data . $alert_condition . $alert['value'] . ';')) {
|
1253 |
+
$cond = ' ' . $alert['condition'] . ' than';
|
1254 |
+
$headers = array();
|
1255 |
+
$headers[] = 'From: <' . $email_from . '>';
|
1256 |
+
$headers[] = 'Content-Type: text/html';
|
1257 |
+
$content = '<div style="font-family: sans-serif;width:100%;height:50px;background-color:#FB8583;font-size:20px;color:#fff;margin-bottom:20px;text-align:center;line-height:50px">WD Google Analytics Alert!</div><p style="color:#808080;text-align: center;font-size: 26px;font-family: sans-serif;">' . preg_replace('!\s+!', ' ', trim(ucfirst(preg_replace('/([A-Z])/', ' $1', $alert['metric'])))) . ' in <a style="text-decoration:none;color:rgba(124,181,216,1);font-family: sans-serif;" href="' . $alert["alert_view_name"] . '" target="_blank">' . $alert["alert_view_name"] . '</a> are <span style="color:' . $color_condition . '">' . $cond . '</span></p><p style="color:rgba(124,181,216,1);font-size: 26px;font-family: sans-serif; text-align: center;">' . $alert['value'] . '</p>';
|
1258 |
+
wp_mail($alert['emails'], 'Analytics Alert', $content, $headers);
|
1259 |
+
}
|
1260 |
+
}
|
1261 |
+
}
|
1262 |
+
}
|
1263 |
+
|
1264 |
+
public function wd_dashboard_widget(){
|
1265 |
+
$profiles = get_option('gawd_user_profiles');
|
1266 |
+
$gawd_user_data = GAWD_helper::get_user_data();
|
1267 |
+
$gawd_last_viewed_profile = GAWD_helper::get_last_viewed_profile();
|
1268 |
+
require_once('admin/pages/dashboard_widget.php');
|
1269 |
+
}
|
1270 |
+
|
1271 |
+
public function google_analytics_wd_dashboard_widget(){
|
1272 |
+
$gawd_settings = GAWD_helper::get_settings();
|
1273 |
+
$gawd_backend_roles = isset($gawd_settings['gawd_backend_roles']) ? $gawd_settings['gawd_backend_roles'] : array();
|
1274 |
+
|
1275 |
+
if(
|
1276 |
+
isset($gawd_settings['gawd_show_in_dashboard']) &&
|
1277 |
+
$gawd_settings['gawd_show_in_dashboard'] == 'on' &&
|
1278 |
+
GAWD_helper::check_permission($gawd_backend_roles)
|
1279 |
+
) {
|
1280 |
+
|
1281 |
+
wp_add_dashboard_widget('wd_dashboard_widget', 'WD Google Analytics', array(
|
1282 |
+
$this,
|
1283 |
+
'wd_dashboard_widget'
|
1284 |
+
));
|
1285 |
+
}
|
1286 |
+
}
|
1287 |
+
|
1288 |
+
public function show_data($params = array()){
|
1289 |
+
// require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
1290 |
+
// $return = true;
|
1291 |
+
// if($params == '') {
|
1292 |
+
// $params = $_POST;
|
1293 |
+
// $return = false;
|
1294 |
+
// }
|
1295 |
+
// $gawd_client = GAWD_google_client::get_instance();
|
1296 |
+
// $start_date = isset($params["start_date"]) && $params["start_date"] != '' ? $params["start_date"] : date('Y-m-d', strtotime('-7 days'));
|
1297 |
+
// $end_date = isset($params["end_date"]) && $params["end_date"] != '' ? $params["end_date"] : date('Y-m-d');
|
1298 |
+
// $metric = isset($params["metric"]) ? $params["metric"] : 'ga:sessions';
|
1299 |
+
// $metric = is_array($metric) ? count($metric) > 1 ? implode(",", $metric) : $metric[0] : $metric;
|
1300 |
+
// $dimension = isset($params["dimension"]) ? $params["dimension"] : 'date';
|
1301 |
+
//
|
1302 |
+
// $country_filter = isset($params["country_filter"]) ? $params["country_filter"] : '';
|
1303 |
+
// $geo_type = isset($params["geo_type"]) ? $params["geo_type"] : '';
|
1304 |
+
// $filter_type = isset($params["filter_type"]) && $params["filter_type"] != '' ? $params["filter_type"] : '';
|
1305 |
+
// $custom = isset($params["custom"]) && $params["custom"] != '' ? $params["custom"] : '';
|
1306 |
+
// $same_dimension = $dimension;
|
1307 |
+
// $dimension = $filter_type != '' && $dimension == 'date' ? $filter_type : $dimension;
|
1308 |
+
// if($dimension == 'week' || $dimension == 'month') {
|
1309 |
+
// $same_dimension = $dimension;
|
1310 |
+
// }
|
1311 |
+
//
|
1312 |
+
//
|
1313 |
+
// $timezone = isset($params["timezone"]) && $params["timezone"] != '' ? $params["timezone"] : 0;
|
1314 |
+
// if($dimension == 'pagePath' || $dimension == 'PagePath' || $dimension == 'landingPagePath' || $dimension == 'LandingPagePath') {
|
1315 |
+
// if(get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date)) {
|
1316 |
+
// $grid_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
1317 |
+
// } else {
|
1318 |
+
// $grid_data = $gawd_client->get_page_data($dimension, $start_date, $end_date, $timezone);
|
1319 |
+
// }
|
1320 |
+
// if($return) {
|
1321 |
+
// return $grid_data;
|
1322 |
+
// }
|
1323 |
+
// echo $grid_data;
|
1324 |
+
// die();
|
1325 |
+
// } elseif($dimension == 'goals') {
|
1326 |
+
// if(get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date)) {
|
1327 |
+
// $goal_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
1328 |
+
// } else {
|
1329 |
+
// $goal_data = $gawd_client->get_goal_data('date', $start_date, $end_date, $timezone, $same_dimension);
|
1330 |
+
// }
|
1331 |
+
// if($return) {
|
1332 |
+
// return $goal_data;
|
1333 |
+
// }
|
1334 |
+
// echo $goal_data;
|
1335 |
+
// die();
|
1336 |
+
// } elseif($custom == '' && (($dimension == 'region' || $dimension == 'city') || ($dimension == 'Region' || $dimension == 'City'))) {
|
1337 |
+
// if(get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $country_filter . '-' . $start_date . '-' . $end_date)) {
|
1338 |
+
// $chart_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $country_filter . '-' . $start_date . '-' . $end_date);
|
1339 |
+
// } else {
|
1340 |
+
//
|
1341 |
+
// $chart_data = $gawd_client->get_country_data($metric, $dimension, $start_date, $end_date, $country_filter, $geo_type, $timezone);
|
1342 |
+
// }
|
1343 |
+
// if($return) {
|
1344 |
+
// return $chart_data;
|
1345 |
+
// }
|
1346 |
+
// echo $chart_data;
|
1347 |
+
// die();
|
1348 |
+
// } else {
|
1349 |
+
//
|
1350 |
+
// if($custom != '') {
|
1351 |
+
// $chart_data = $gawd_client->get_data($metric, $dimension, $start_date, $end_date, $filter_type, $timezone, $same_dimension);
|
1352 |
+
// if($return) {
|
1353 |
+
// return $chart_data;
|
1354 |
+
// }
|
1355 |
+
// } else {
|
1356 |
+
// if($dimension == 'siteSpeed') {
|
1357 |
+
// if(get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $same_dimension . '_' . $filter_type . '-' . $start_date . '-' . $end_date)) {
|
1358 |
+
// $chart_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
1359 |
+
// } else {
|
1360 |
+
// $chart_data = $gawd_client->get_data($metric, $dimension, $start_date, $end_date, $filter_type, $timezone, $same_dimension);
|
1361 |
+
// }
|
1362 |
+
// if($return) {
|
1363 |
+
// return $chart_data;
|
1364 |
+
// }
|
1365 |
+
// } else {
|
1366 |
+
//
|
1367 |
+
// /* if (get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date)) {
|
1368 |
+
// $chart_data = get_transient('gawd-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
1369 |
+
// } */
|
1370 |
+
// //else {
|
1371 |
+
//
|
1372 |
+
// $chart_data = $gawd_client->get_data($metric, $dimension, $start_date, $end_date, $filter_type, $timezone, $same_dimension);
|
1373 |
+
// //}
|
1374 |
+
// if($return) {
|
1375 |
+
// return $chart_data;
|
1376 |
+
// }
|
1377 |
+
// }
|
1378 |
+
// }
|
1379 |
+
// echo $chart_data;
|
1380 |
+
// die();
|
1381 |
+
// }
|
1382 |
+
}
|
1383 |
+
|
1384 |
+
public function show_data_compact(){
|
1385 |
+
// require_once(GAWD_DIR . '/admin/gawd_google_class.php');
|
1386 |
+
// $gawd_client = GAWD_google_client::get_instance();
|
1387 |
+
// $start_date = isset($_POST["start_date"]) && $_POST["start_date"] != '' ? $_POST["start_date"] : date('Y-m-d', strtotime('-30 days'));
|
1388 |
+
// $end_date = isset($_POST["end_date"]) && $_POST["end_date"] != '' ? $_POST["end_date"] : date('Y-m-d');
|
1389 |
+
// $metric = isset($_POST["metric"]) ? $_POST["metric"] : 'sessions';
|
1390 |
+
// $metric = is_array($metric) ? count($metric) > 1 ? implode(",", $metric) : $metric[0] : 'ga:' . $metric;
|
1391 |
+
// $dimension = isset($_POST["dimension"]) ? $_POST["dimension"] : 'date';
|
1392 |
+
// $timezone = isset($_POST["timezone"]) ? $_POST["timezone"] : 0;
|
1393 |
+
// if(get_transient('gawd-compact-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date)) {
|
1394 |
+
// $chart_data = get_transient('gawd-compact-' . $gawd_client->get_profile_id() . '-' . $dimension . '-' . $start_date . '-' . $end_date);
|
1395 |
+
// } else {
|
1396 |
+
// $chart_data = $gawd_client->get_data_compact($metric, $dimension, $start_date, $end_date, $timezone);
|
1397 |
+
// }
|
1398 |
+
// echo $chart_data;
|
1399 |
+
// die();
|
1400 |
+
}
|
1401 |
+
|
1402 |
+
public static function add_dashboard_menu(){
|
1403 |
+
$get_custom_reports = get_option('gawd_custom_reports');
|
1404 |
+
if(!$get_custom_reports) {
|
1405 |
+
$custom_report = array();
|
1406 |
+
} else {
|
1407 |
+
foreach($get_custom_reports as $name => $report) {
|
1408 |
+
$custom_report['custom_report_' . $name] = __($name, "gawd");
|
1409 |
+
}
|
1410 |
+
}
|
1411 |
+
$tabs = array(
|
1412 |
+
"general" => array(
|
1413 |
+
"title" => __("Audience", "gawd"),
|
1414 |
+
"childs" => array(),
|
1415 |
+
"desc" => "Report of your website audience. Provides details about new and returning users of your website, sessions, bounces, pageviews and session durations."
|
1416 |
+
),
|
1417 |
+
"realtime" => array(
|
1418 |
+
"title" => __("Real Time", "gawd"),
|
1419 |
+
"childs" => array(),
|
1420 |
+
"desc" => "Real Time statistics show the number of active users currently visiting your website pages."
|
1421 |
+
),
|
1422 |
+
/** FREE **/
|
1423 |
+
"Pro" => array(
|
1424 |
+
"title" => __("Available in premium", "gawd"),
|
1425 |
+
"childs" => array(),
|
1426 |
+
"desc" => ""
|
1427 |
+
),
|
1428 |
+
/** END FREE **/
|
1429 |
+
"demographics" => array(
|
1430 |
+
"title" => __("Demographics", "gawd"),
|
1431 |
+
"childs" => array(
|
1432 |
+
"userGender" => __("User Gender", "gawd"),
|
1433 |
+
"userAge" => __("User Age", "gawd")
|
1434 |
+
),
|
1435 |
+
"desc" => "Demographics display tracking statistics of your website users based on their age and gender. "
|
1436 |
+
|
1437 |
+
),
|
1438 |
+
"interests" => array(
|
1439 |
+
"title" => __("Interests", "gawd"),
|
1440 |
+
"childs" => array(
|
1441 |
+
"inMarket" => __("In-Market Segment", "gawd"),
|
1442 |
+
"affinityCategory" => __("Affinity Category", "gawd"),
|
1443 |
+
"otherCategory" => __("Other Category", "gawd")
|
1444 |
+
),
|
1445 |
+
"desc" => "Provides tracking information about site users depending on Affinity Categories (e.g. Music Lovers or Mobile Enthusiasts), In-Market Segments (based on online product purchase interests) and Other Categories (most specific identification, for example, tennis lovers among Sports Fans)."
|
1446 |
+
),
|
1447 |
+
"geo" => array(
|
1448 |
+
"title" => __("GEO", "gawd"),
|
1449 |
+
"childs" => array(
|
1450 |
+
"location" => __("Location", "gawd"),
|
1451 |
+
"language" => __("Language", "gawd")
|
1452 |
+
),
|
1453 |
+
"desc" => "Geo-identifier report is built from interactions of location (countries, cities) and language of your website users."
|
1454 |
+
),
|
1455 |
+
"behavior" => array(
|
1456 |
+
"title" => __("Behavior", "gawd"),
|
1457 |
+
"childs" => array(
|
1458 |
+
"behaviour" => __("New vs Returning", "gawd"),
|
1459 |
+
"engagement" => __("Engagement", "gawd")
|
1460 |
+
),
|
1461 |
+
"desc" => "Compares number of New visitors and Returning users of your website in percents. You can check the duration of sessions with Engagement report."
|
1462 |
+
),
|
1463 |
+
"technology" => array(
|
1464 |
+
"title" => __("Technology", "gawd"),
|
1465 |
+
"childs" => array(
|
1466 |
+
"os" => __("OS", "gawd"),
|
1467 |
+
"browser" => __("Browser", "gawd")
|
1468 |
+
),
|
1469 |
+
"desc" => "Identifies tracking of the site based on operating systems and browsers visitors use."
|
1470 |
+
),
|
1471 |
+
"mobile" => array(
|
1472 |
+
"title" => __("Mobile", "gawd"),
|
1473 |
+
"childs" => array(
|
1474 |
+
"device_overview" => __("Overview", "gawd"),
|
1475 |
+
"devices" => __("Devices", "gawd")
|
1476 |
+
),
|
1477 |
+
"desc" => "Shows statistics of mobile and desktop devices visitors have used while interacting with your website."
|
1478 |
+
),
|
1479 |
+
"custom" => array(
|
1480 |
+
"title" => __("Custom Dimensions", "gawd"),
|
1481 |
+
"childs" => array(),
|
1482 |
+
"desc" => "Set up Custom Dimensions based on Users, Post type, Author, Category, Publication date and Tags in Custom Dimensions page, and view their report in this tab."
|
1483 |
+
),
|
1484 |
+
"trafficSource" => array(
|
1485 |
+
"title" => __("Traffic Source", "gawd"),
|
1486 |
+
"childs" => array(),
|
1487 |
+
"desc" => "Displays overall graph of traffic sources directing to your website."
|
1488 |
+
),
|
1489 |
+
"adWords" => array(
|
1490 |
+
"title" => __("AdWords", "gawd"),
|
1491 |
+
"childs" => array(),
|
1492 |
+
"desc" => "If your website is registered on Google AdWords, you can link its Google Analytics to AdWords, and gather relevant tracking information with this report."
|
1493 |
+
),
|
1494 |
+
/* "pagePath" => array(
|
1495 |
"title" => __("Pages", "gawd"),
|
|
|
1496 |
"childs" => array(),
|
|
|
1497 |
"desc" => "Pages report table will provide you information about Bounces, Entrances, Pageviews, Unique Pageviews, time spent on pages, Exits and Average page loading time."
|
|
|
1498 |
), */
|
1499 |
+
"siteContent" => array(
|
1500 |
+
"title" => __("Site Content", "gawd"),
|
1501 |
+
"childs" => array(
|
1502 |
+
"pagePath" => __("All Pages", "gawd"),
|
1503 |
+
"landingPagePath" => __("Landing Pages", "gawd"),
|
1504 |
+
),
|
1505 |
+
"desc" => "Pages report table will provide you information about Bounces, Entrances, Pageviews, Unique Pageviews, time spent on pages, Exits and Average page loading time."
|
1506 |
+
),
|
1507 |
+
"siteSpeed" => array(
|
1508 |
+
"title" => __("Site Speed", "gawd"),
|
1509 |
+
"childs" => array(),
|
1510 |
+
"desc" => "Shows the average load time of your website users experienced during specified date range."
|
1511 |
+
),
|
1512 |
+
"events" => array(
|
1513 |
+
"title" => __("Events", "gawd"),
|
1514 |
+
"childs" => array(
|
1515 |
+
"eventsLabel" => __("Events by Label", "gawd"),
|
1516 |
+
"eventsAction" => __("Events by Action", "gawd"),
|
1517 |
+
"eventsCategory" => __("Events by Category", "gawd")
|
1518 |
+
),
|
1519 |
+
"desc" => "Displays the report based on Events you set up on Google Analytics of your website. Graphs are built based on Event Labels, Categories and Actions."
|
1520 |
+
),
|
1521 |
+
"goals" => array(
|
1522 |
+
"title" => __("Goals", "gawd"),
|
1523 |
+
"childs" => array(),
|
1524 |
+
"desc" => "Set Goals from Goal Management and review their Google Analytics reports under this tab."
|
1525 |
+
),
|
1526 |
+
"ecommerce" => array(
|
1527 |
+
"title" => __("Ecommerce", "gawd"),
|
1528 |
+
"childs" => array(
|
1529 |
+
"daysToTransaction" => __("TIme to Purchase", "gawd"),
|
1530 |
+
"transactionId" => __("Transaction ID", "gawd"),
|
1531 |
+
"sales_performance" => __("Sales Performance", "gawd"),
|
1532 |
+
"productSku" => __("Product Sku", "gawd"),
|
1533 |
+
"productCategory" => __("Product Category ", "gawd"),
|
1534 |
+
"productName" => __("Product Name", "gawd"),
|
1535 |
+
),
|
1536 |
+
"desc" => "Check sales statistics of your website identified by revenues, transactions, products and performance."
|
1537 |
+
),
|
1538 |
+
"adsense" => array(
|
1539 |
+
"title" => __("AdSense", "gawd"),
|
1540 |
+
"childs" => array(),
|
1541 |
+
"desc" => "Link your Google Analytics and AdSense accounts from Google Analytics Admin setting and keep track of AdSense tracking under this report."
|
1542 |
+
),
|
1543 |
+
"customReport" => array(
|
1544 |
+
"title" => __("Custom Report", "gawd"),
|
1545 |
+
"childs" => $custom_report,
|
1546 |
+
"desc" => "Add Custom Reports from any metric and dimension in Custom Reports page, and view relevant Google Analytics tracking information in this tab."
|
1547 |
+
),
|
1548 |
+
);
|
1549 |
+
update_option('gawd_menu_items', $tabs);
|
1550 |
+
}
|
1551 |
+
|
1552 |
+
public function remove_zoom_message(){
|
1553 |
+
check_ajax_referer('gawd_admin_page_nonce', 'security');
|
1554 |
+
$got_it = isset($_REQUEST["got_it"]) ? sanitize_text_field($_REQUEST["got_it"]) : '';
|
1555 |
+
if($got_it != '') {
|
1556 |
+
add_option('gawd_zoom_message', $got_it);
|
1557 |
+
}
|
1558 |
+
}
|
1559 |
+
|
1560 |
+
public function nossl_message(){
|
1561 |
+
$this->gawd_admin_notice(
|
1562 |
+
__('ERROR: Google Analytics WD cannot make insecure requests to Google API. Please enable PHP OpenSSL extension', 'gawd'),
|
1563 |
+
'error'
|
1564 |
+
);
|
1565 |
+
}
|
1566 |
+
|
1567 |
+
protected function premium_bar($page){
|
1568 |
+
$text = 'See advanced and custom reports, ecommerce reports and customize tracking settings.';
|
1569 |
+
|
1570 |
+
switch($page) {
|
1571 |
+
case 'gawd_analytics':
|
1572 |
+
$manual_link = 'https://web-dorado.com/wordpress-google-analytics/quick-start/overview.html';
|
1573 |
+
break;
|
1574 |
+
case 'gawd_reports':
|
1575 |
+
$manual_link = 'https://web-dorado.com/wordpress-google-analytics/reports.html';
|
1576 |
+
break;
|
1577 |
+
case 'gawd_settings':
|
1578 |
+
$manual_link = 'https://web-dorado.com/wordpress-google-analytics/settings.html';
|
1579 |
+
break;
|
1580 |
+
case 'gawd_goals':
|
1581 |
+
$manual_link = 'https://web-dorado.com/wordpress-google-analytics/goal-management.html';
|
1582 |
+
break;
|
1583 |
+
case 'gawd_custom_reports':
|
1584 |
+
$manual_link = 'https://web-dorado.com/wordpress-google-analytics/custom-reports.html';
|
1585 |
+
break;
|
1586 |
+
}
|
1587 |
+
?>
|
1588 |
+
<div class="gawd-topbar-container">
|
1589 |
+
<div class="gawd-topbar gawd-topbar-content">
|
1590 |
+
<div class="gawd-topbar-content-container">
|
1591 |
+
<div class="gawd-topbar-content-title">
|
1592 |
+
Google Analytics Premium
|
1593 |
+
</div>
|
1594 |
+
<div class="gawd-topbar-content-body"><?php echo $text; ?></div>
|
1595 |
+
</div>
|
1596 |
+
<div class="gawd-topbar-content-button-container">
|
1597 |
+
<a href="https://web-dorado.com/products/wordpress-google-analytics-plugin.html" target="_blank"
|
1598 |
+
class="gawd-topbar-upgrade-button">Upgrade</a>
|
1599 |
+
</div>
|
1600 |
+
</div>
|
1601 |
+
<div class="gawd-topbar gawd-topbar-links">
|
1602 |
+
<div class="gawd-topbar-links-container">
|
1603 |
+
<a href="<?php echo $manual_link; ?>"
|
1604 |
+
target="_blank">
|
1605 |
+
<div class="gawd-topbar-links-item">User Manual</div>
|
1606 |
+
</a>
|
1607 |
+
<span class="gawd-topbar-separator"></span>
|
1608 |
+
<a href="https://wordpress.org/support/plugin/wd-google-analytics" target="_blank">
|
1609 |
+
<div class="gawd-topbar-links-item">Support Forum</div>
|
1610 |
+
</a>
|
1611 |
+
</div>
|
1612 |
+
</div>
|
1613 |
+
</div>
|
1614 |
+
<?php
|
1615 |
+
}
|
1616 |
+
|
1617 |
+
|
1618 |
+
/************STATIC METHODS************/
|
1619 |
+
|
1620 |
+
public static function deactivate(){
|
1621 |
+
delete_site_transient('gawd_uninstall');
|
1622 |
+
}
|
1623 |
+
|
1624 |
+
/**
|
1625 |
+
* Activation function needed for the activation hook.
|
1626 |
+
*/
|
1627 |
+
public static function global_activate($networkwide){
|
1628 |
+
|
1629 |
+
if(function_exists('is_multisite') && is_multisite()) {
|
1630 |
+
// Check if it is a network activation - if so, run the activation function for each blog id.
|
1631 |
+
if($networkwide) {
|
1632 |
+
global $wpdb;
|
1633 |
+
// Get all blog ids.
|
1634 |
+
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
|
1635 |
+
foreach($blogids as $blog_id) {
|
1636 |
+
switch_to_blog($blog_id);
|
1637 |
+
self::activate();
|
1638 |
+
restore_current_blog();
|
1639 |
+
}
|
1640 |
+
return;
|
1641 |
+
}
|
1642 |
+
}
|
1643 |
+
self::activate();
|
1644 |
+
}
|
1645 |
+
|
1646 |
+
public static function activate(){
|
1647 |
+
|
1648 |
+
delete_site_transient('gawd_uninstall');
|
1649 |
+
if(empty(get_option('gawd_credentials'))) {
|
1650 |
+
update_option('gawd_credentials', GAWD_helper::get_project_default_credentials());
|
1651 |
+
}
|
1652 |
+
|
1653 |
+
|
1654 |
+
$gawd_settings = get_option('gawd_settings');
|
1655 |
+
if($gawd_settings === false) {
|
1656 |
+
self::gawd_settings_defaults();
|
1657 |
+
}
|
1658 |
+
|
1659 |
+
//logout issue
|
1660 |
+
if(GAWD_VERSION == '1.1.2' || GAWD_VERSION == '5.1.2') {
|
1661 |
+
|
1662 |
+
if(get_option('gawd_user_data') == false) {
|
1663 |
+
delete_option('gawd_user_status');
|
1664 |
+
delete_option('gawd_account_status');
|
1665 |
+
}
|
1666 |
+
|
1667 |
+
}
|
1668 |
+
|
1669 |
+
self::add_dashboard_menu();
|
1670 |
+
|
1671 |
+
$old_version = get_option('gawd_version');
|
1672 |
+
$settings = get_option('gawd_settings');
|
1673 |
+
if($old_version === false){
|
1674 |
+
$old_version = 'x.1.6';
|
1675 |
+
}
|
1676 |
+
|
1677 |
+
$old_version_for_compare = substr($old_version, 2);
|
1678 |
+
$new_version_for_compare = substr(GAWD_VERSION, 2);
|
1679 |
+
|
1680 |
+
if($old_version === false || version_compare($old_version_for_compare, '1.9','<')) {
|
1681 |
+
if(!empty($settings['gawd_permissions'])) {
|
1682 |
+
$new_permissions = array();
|
1683 |
+
$permissions = $settings['gawd_permissions'];
|
1684 |
+
$roles = new WP_Roles();
|
1685 |
+
foreach($roles->roles as $key => $role) {
|
1686 |
+
foreach($permissions as $permission) {
|
1687 |
+
if(isset($role['capabilities'][$permission]) && $role['capabilities'][$permission]) {
|
1688 |
+
$new_permissions[] = $key;
|
1689 |
+
break;
|
1690 |
+
}
|
1691 |
+
}
|
1692 |
}
|
1693 |
+
$new_permissions = array_unique($new_permissions);
|
1694 |
+
$settings['gawd_permissions'] = $new_permissions;
|
1695 |
+
}
|
1696 |
|
1697 |
+
if(get_option('gawd_user_data') !== false){
|
1698 |
+
update_option('gawd_upgrade_plugin', '1');
|
1699 |
+
}
|
|
|
|
|
|
|
1700 |
}
|
1701 |
|
1702 |
+
update_option('gawd_settings', $settings);
|
1703 |
+
update_option('gawd_version', GAWD_VERSION);
|
1704 |
+
}
|
1705 |
|
1706 |
+
public function upgrade_plugin(){
|
1707 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1708 |
|
1709 |
+
<script>
|
1710 |
+
gawd_upgrade_plugin(
|
1711 |
+
"<?php echo admin_url('admin-ajax.php'); ?>",
|
1712 |
+
"<?php echo wp_create_nonce('gawd_custom_ajax'); ?>",
|
1713 |
+
);
|
1714 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1715 |
|
1716 |
+
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1717 |
|
1718 |
+
/**
|
1719 |
+
* Returns the Singleton instance of this class.
|
1720 |
+
*
|
1721 |
+
* @return GAWD The Singleton instance.
|
1722 |
+
*/
|
1723 |
+
public static function get_instance(){
|
1724 |
+
if(null === self::$instance) {
|
1725 |
+
self::$instance = new self();
|
1726 |
}
|
1727 |
|
1728 |
+
return self::$instance;
|
1729 |
+
}
|
1730 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
1731 |
}
|
google-analytics-wd.php
CHANGED
@@ -1,295 +1,290 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
-
* Plugin Name:
|
5 |
-
* Plugin URI:
|
6 |
-
* Description:
|
7 |
-
* Version: 1.0
|
8 |
* Author: WebDorado
|
9 |
-
* Author URI: https://web-dorado.com
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
*/
|
12 |
-
if (!defined('GAWD_DIR')) {
|
13 |
-
define('GAWD_DIR', dirname(__FILE__));
|
14 |
-
}
|
15 |
|
16 |
-
|
17 |
-
define('GWD_NAME', plugin_basename(dirname(__FILE__)));
|
18 |
-
}
|
19 |
|
20 |
-
if
|
21 |
-
define('GAWD_URL', plugins_url(plugin_basename(dirname(__FILE__))));
|
22 |
-
}
|
23 |
|
24 |
-
if (!defined('GAWD_INC')) {
|
25 |
-
define('GAWD_INC', GAWD_URL . '/inc');
|
26 |
-
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
}
|
31 |
|
32 |
|
|
|
33 |
|
34 |
-
$
|
35 |
-
if (!is_dir($upload_dir['basedir'] . '/' . plugin_basename(dirname(__FILE__)))) {
|
36 |
-
mkdir($upload_dir['basedir'] . '/' . plugin_basename(dirname(__FILE__)), 0777);
|
37 |
-
}
|
38 |
-
$GAWD_UPLOAD_DIR = $upload_dir['basedir'] . '/' . plugin_basename(dirname(__FILE__));
|
39 |
|
|
|
|
|
|
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
}
|
44 |
|
|
|
|
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
-
|
49 |
-
|
|
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
"plugin_title" => "Google Analytics WD",
|
60 |
-
"plugin_wordpress_slug" => "wd-google-analytics",
|
61 |
-
"plugin_dir" => GAWD_DIR,
|
62 |
-
"plugin_main_file" => __FILE__,
|
63 |
-
"description" => __('Analytics WD WordPress plugin - a certified member of Google Analytics Technology Partners Program.
|
64 |
With a large number of detailed and user-friendly reports, Google Analytics WD plugin is just the right choice for you!', 'gawd'),
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
if (version_compare(PHP_VERSION, '5.4.0') >= 0) {
|
210 |
-
require_once('gawd_class.php');
|
211 |
-
add_action('plugins_loaded', array('GAWD', 'get_instance'));
|
212 |
-
|
213 |
-
register_activation_hook(__FILE__, array('GAWD', 'global_activate'));
|
214 |
-
register_deactivation_hook(__FILE__, array('GAWD', 'deactivate'));
|
215 |
}
|
216 |
-
|
217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
}
|
219 |
|
220 |
-
|
221 |
-
?>
|
222 |
-
<div class="notice notice-error">
|
223 |
-
<h3>Google Analytics WD</h3>
|
224 |
-
<p><?php _e( 'This version of the plugin uses the latest Google library requiring PHP 5.4.0 or higher.', 'gawd' ); ?></p>
|
225 |
-
<p><?php _e( 'We recommend you to update PHP or ask your hosting provider to do that. ', 'gawd' );
|
226 |
-
printf(__( 'If it is not possible and you previously had Google Analytics free version installed, please download it again and do not update anymore. %s', 'gawd' ),
|
227 |
-
'<a href="https://downloads.wordpress.org/plugin/wd-google-analytics.1.0.21.zip" target="_blank">Download from WordPress repository.</a>'
|
228 |
-
); ?></p>
|
229 |
|
230 |
-
|
231 |
-
|
|
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
-
}
|
235 |
-
if (!function_exists('gawd_wd_bp_install_notice')) {
|
236 |
-
|
237 |
-
if(get_option('wds_bk_notice_status')==='' || get_option('wds_bk_notice_status')==='1'){
|
238 |
-
return;
|
239 |
-
}
|
240 |
-
|
241 |
-
|
242 |
-
function gawd_wd_bp_script_style() {
|
243 |
-
$wd_bp_plugin_url = GAWD_URL;
|
244 |
-
|
245 |
-
$get_current = get_current_screen();
|
246 |
-
$current_screen_id = array(
|
247 |
-
'toplevel_page_gawd_analytics',
|
248 |
-
'analytics_page_gawd_reports',
|
249 |
-
'analytics_page_gawd_settings',
|
250 |
-
'analytics_page_gawd_tracking',
|
251 |
-
'analytics_page_gawd_goals',
|
252 |
-
'analytics_page_gawd_custom_reports',
|
253 |
-
'analytics_page_gawd_uninstall',
|
254 |
-
'analytics_page_overview_gawd',
|
255 |
-
'analytics_page_gawd_updates',
|
256 |
-
);
|
257 |
-
|
258 |
-
if(in_array($get_current->id, $current_screen_id)) {
|
259 |
-
wp_enqueue_script('wd_bck_install', $wd_bp_plugin_url . '/inc/js/wd_bp_install.js', array('jquery'));
|
260 |
-
wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/inc/css/wd_bp_install.css');
|
261 |
-
}
|
262 |
-
|
263 |
-
}
|
264 |
add_action('admin_enqueue_scripts', 'gawd_wd_bp_script_style');
|
265 |
|
266 |
/**
|
267 |
* Show notice to install backup plugin
|
268 |
*/
|
269 |
-
function gawd_wd_bp_install_notice()
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
287 |
|
288 |
-
|
289 |
-
return;
|
290 |
-
}
|
291 |
|
292 |
-
$prefix = 'gawd';
|
293 |
$meta_value = get_option('wd_seo_notice_status');
|
294 |
if ($meta_value === '' || $meta_value === false) {
|
295 |
ob_start();
|
@@ -310,12 +305,13 @@ if (!function_exists('gawd_wd_bp_install_notice')) {
|
|
310 |
</button>
|
311 |
</div>
|
312 |
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_seo_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
|
|
|
313 |
<?php
|
314 |
echo ob_get_clean();
|
315 |
}
|
316 |
}
|
317 |
|
318 |
-
|
319 |
add_action('admin_notices', 'gawd_wd_bp_install_notice');
|
320 |
}
|
321 |
|
@@ -325,38 +321,10 @@ if (!function_exists('gawd_wd_bp_install_notice')) {
|
|
325 |
* empty: notice,
|
326 |
* 1 : never show again
|
327 |
*/
|
|
|
328 |
function gawd_wd_bp_install_notice_status() {
|
329 |
update_option('wd_seo_notice_status', '1', 'no');
|
330 |
}
|
331 |
add_action('wp_ajax_wd_seo_dismiss', 'gawd_wd_bp_install_notice_status');
|
332 |
-
}
|
333 |
|
334 |
-
|
335 |
-
add_filter("plugin_row_meta", 'gawd_add_plugin_meta_links', 10, 2);
|
336 |
-
|
337 |
-
function gawd_add_plugin_meta_links($meta_fields, $file){
|
338 |
-
|
339 |
-
if(plugin_basename(__FILE__) == $file) {
|
340 |
-
|
341 |
-
$meta_fields[] = "<a href='https://wordpress.org/support/plugin/wd-google-analytics/' target='_blank'>Support Forum</a>";
|
342 |
-
$meta_fields[] = "<a href='https://wordpress.org/support/plugin/wd-google-analytics/reviews#new-post' target='_blank' title='Rate'>
|
343 |
-
<i class='gawd-rate-stars'>"
|
344 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
345 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
346 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
347 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
348 |
-
. "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
|
349 |
-
. "</i></a>";
|
350 |
-
|
351 |
-
$stars_color = "#ffb900";
|
352 |
-
|
353 |
-
echo "<style>"
|
354 |
-
. ".gawd-rate-stars{display:inline-block;color:" . $stars_color . ";position:relative;top:3px;}"
|
355 |
-
. ".gawd-rate-stars svg{fill:" . $stars_color . ";}"
|
356 |
-
. ".gawd-rate-stars svg:hover{fill:" . $stars_color . "}"
|
357 |
-
. ".gawd-rate-stars svg:hover ~ svg{fill:none;}"
|
358 |
-
. "</style>";
|
359 |
-
}
|
360 |
-
|
361 |
-
return $meta_fields;
|
362 |
-
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
+
* Plugin Name: Google Analytics
|
4 |
+
* Plugin URI: https://web-dorado.com/products/wordpress-google-analytics-plugin.html
|
5 |
+
* Description: Google Analytics WD is a user-friendly all in one plugin, which allows to manage and monitor your website analytics from WordPress dashboard.
|
6 |
+
* Version: 1.2.0
|
7 |
* Author: WebDorado
|
8 |
+
* Author URI: https://web-dorado.com
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
*/
|
|
|
|
|
|
|
11 |
|
12 |
+
require_once "config.php";
|
|
|
|
|
13 |
|
14 |
+
if(version_compare(PHP_VERSION, '5.4.0') >= 0) {
|
|
|
|
|
15 |
|
|
|
|
|
|
|
16 |
|
17 |
+
require_once 'library/gawd-logs.php';
|
18 |
+
require_once 'library/gawd-helper-class.php';
|
|
|
19 |
|
20 |
|
21 |
+
add_action('pre_update_option_gawd_user_data', array('GAWD_helper', 'gawd_user_data_updated'), 3, 10);
|
22 |
|
23 |
+
if(isset($_REQUEST['gawd_ajax']) && $_REQUEST['gawd_ajax'] === '1') {
|
|
|
|
|
|
|
|
|
24 |
|
25 |
+
require_once('library/gawd-custom-ajax-class.php');
|
26 |
+
require_once('library/gawd-exception-handler.php');
|
27 |
+
$gawd_ajax = new GAWD_custom_ajax_class();
|
28 |
|
29 |
+
} else {
|
30 |
+
add_action("init", "gawd_dorado_web_init", 9);
|
|
|
31 |
|
32 |
+
require_once('gawd_class.php');
|
33 |
+
add_action('plugins_loaded', array('GAWD', 'get_instance'));
|
34 |
|
35 |
+
register_activation_hook(__FILE__, array('GAWD', 'global_activate'));
|
36 |
+
register_deactivation_hook(__FILE__, array('GAWD', 'deactivate'));
|
37 |
+
}
|
38 |
+
} else {
|
39 |
+
add_action('admin_notices', 'gawd_php_version_admin_notice');
|
40 |
+
}
|
41 |
|
42 |
+
function gawd_php_version_admin_notice(){
|
43 |
+
?>
|
44 |
+
<div class="notice notice-error">
|
45 |
+
<h3>Google Analytics WD</h3>
|
46 |
+
<p><?php _e('This version of the plugin uses the latest Google library requiring PHP 5.4.0 or higher.', 'gawd'); ?></p>
|
47 |
+
<p><?php _e('We recommend you to update PHP or ask your hosting provider to do that. ', 'gawd');
|
48 |
+
printf(__('If it is not possible and you previously had Google Analytics WD paid version installed, please ask Web-Dorado to send you an older version of the plugin supporting PHP 5.3 %s', 'gawd'),
|
49 |
+
'<a href="https://web-dorado.com/support/contact-us.html" target="_blank">https://web-dorado.com/support/contact-us.html</a>'
|
50 |
+
); ?></p>
|
51 |
+
|
52 |
+
</div>
|
53 |
+
<?php
|
54 |
+
}
|
55 |
+
|
56 |
+
function gawd_dorado_web_init(){
|
57 |
+
global $gawd_options;
|
58 |
|
59 |
+
if(!class_exists("DoradoWeb")) {
|
60 |
+
require_once(GAWD_DIR . '/wd/start.php');
|
61 |
+
}
|
62 |
|
63 |
+
$gawd_options = array(
|
64 |
+
"prefix" => "gawd",
|
65 |
+
"wd_plugin_id" => 158,
|
66 |
+
"plugin_title" => "Google Analytics WD",
|
67 |
+
"plugin_wordpress_slug" => "wd-google-analytics",
|
68 |
+
"plugin_dir" => GAWD_DIR,
|
69 |
+
"plugin_main_file" => __FILE__,
|
70 |
+
"description" => __('Analytics WD WordPress plugin - a certified member of Google Analytics Technology Partners Program.
|
|
|
|
|
|
|
|
|
|
|
71 |
With a large number of detailed and user-friendly reports, Google Analytics WD plugin is just the right choice for you!', 'gawd'),
|
72 |
+
"addons" => null,
|
73 |
+
// from web-dorado.com
|
74 |
+
"plugin_features" => array(
|
75 |
+
0 => array(
|
76 |
+
"title" => __("Tracking Code and Options", "gawd"),
|
77 |
+
"description" => __("You can add Google Analytics tracking to your website using this plugin. Various options let you configure desired tracking settings. You can also exclude traffic from certain users, role types, IP address, country, city or region.", "gawd"),
|
78 |
+
),
|
79 |
+
1 => array(
|
80 |
+
"title" => __("All Analytics Reports", "gawd"),
|
81 |
+
"description" => __("Google Analytics WD provides various reports, including Age, Gender, Demographics and Interests, Behavior and Technology, as well as Ecommerce tracking, Custom Dimensions and Custom Reports. Just as in Google Analytics, you can compare tracking reports of two metrics with elegantly designed Line, Pie and Column charts.", "gawd"),
|
82 |
+
),
|
83 |
+
2 => array(
|
84 |
+
"title" => __("Page and Post Reports", "gawd"),
|
85 |
+
"description" => __("Each of your publications can have their own reports of Google Analytics. This lets authors to keep track of sessions on their posts and pages, giving full information about user activities.", "gawd"),
|
86 |
+
),
|
87 |
+
3 => array(
|
88 |
+
"title" => __("Frontend Reports", "gawd"),
|
89 |
+
"description" => __("Permit Editors, Authors or other user roles to check page or post statistics, while reviewing content from the frontend of your website. A quick report will provide key information about activities within that particular post.", "gawd"),
|
90 |
+
),
|
91 |
+
4 => array(
|
92 |
+
"title" => __("Ecommerce Tracking", "gawd"),
|
93 |
+
"description" => __("You can check revenues and performance of sales of your online shop. The plugin lets you keep up with product or category tracking, as well as product SKU and transaction IDs.", "gawd"),
|
94 |
+
)
|
95 |
+
),
|
96 |
+
// user guide from web-dorado.com
|
97 |
+
"user_guide" => array(
|
98 |
+
0 => array(
|
99 |
+
"main_title" => __("Installing Google Analytics WD", "gawd"),
|
100 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/installation.html",
|
101 |
+
"titles" => array()
|
102 |
+
),
|
103 |
+
1 => array(
|
104 |
+
"main_title" => __("Quick Start", "gawd"),
|
105 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/quick-start.html",
|
106 |
+
"titles" => array(
|
107 |
+
array(
|
108 |
+
"title" => __("Overview", "gawd"),
|
109 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/quick-start/overview.html"
|
110 |
+
)
|
111 |
+
)
|
112 |
+
),
|
113 |
+
2 => array(
|
114 |
+
"main_title" => __("Report Types", "gawd"),
|
115 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/reports.html",
|
116 |
+
"titles" => array()
|
117 |
+
),
|
118 |
+
3 => array(
|
119 |
+
"main_title" => __("Global description", "gawd"),
|
120 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/global-description.html",
|
121 |
+
"titles" => array(
|
122 |
+
array(
|
123 |
+
"title" => __("Metrics", "gawd"),
|
124 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/global-description/metrics.html",
|
125 |
+
),
|
126 |
+
array(
|
127 |
+
"title" => __("Charts", "gawd"),
|
128 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/global-description/charts.html",
|
129 |
+
),
|
130 |
+
array(
|
131 |
+
"title" => __("Date range", "gawd"),
|
132 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/global-description/date-range.html",
|
133 |
+
),
|
134 |
+
array(
|
135 |
+
"title" => __("Compare Date", "gawd"),
|
136 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/global-description/compare-date.html",
|
137 |
+
),
|
138 |
+
array(
|
139 |
+
"title" => __("Export and Email", "gawd"),
|
140 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/global-description/export-email.html",
|
141 |
+
),
|
142 |
+
)
|
143 |
+
),
|
144 |
+
4 => array(
|
145 |
+
"main_title" => __("Settings", "gawd"),
|
146 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/settings/authenticate.html",
|
147 |
+
"titles" => array(
|
148 |
+
array(
|
149 |
+
"title" => __("Use your own project", "gawd"),
|
150 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/settings/use-your-own-project.html",
|
151 |
+
),
|
152 |
+
array(
|
153 |
+
"title" => __("Alerts & Pushover", "gawd"),
|
154 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/settings/alerts-pushover.html",
|
155 |
+
),
|
156 |
+
array(
|
157 |
+
"title" => __("Filters", "gawd"),
|
158 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/settings/filters.html",
|
159 |
+
),
|
160 |
+
array(
|
161 |
+
"title" => __("Emails", "gawd"),
|
162 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/settings/emails.html",
|
163 |
+
),
|
164 |
+
array(
|
165 |
+
"title" => __("Advanced", "gawd"),
|
166 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/settings/advanced.html",
|
167 |
+
),
|
168 |
+
array(
|
169 |
+
"title" => __("AdSense and AdWords account linking", "gawd"),
|
170 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/settings/adsense-and-adwords-account-linking.html",
|
171 |
+
),
|
172 |
+
)
|
173 |
+
),
|
174 |
+
5 => array(
|
175 |
+
"main_title" => __("Tracking", "gawd"),
|
176 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/tracking.html",
|
177 |
+
"titles" => array(
|
178 |
+
array(
|
179 |
+
"title" => __("Custom Dimensions", "gawd"),
|
180 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/tracking/custom-dimensions.html",
|
181 |
+
),
|
182 |
+
array(
|
183 |
+
"title" => __("Exclude", "gawd"),
|
184 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/tracking/exclude.html",
|
185 |
+
)
|
186 |
+
)
|
187 |
+
),
|
188 |
+
6 => array(
|
189 |
+
"main_title" => __("Goal Management", "gawd"),
|
190 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/goal-management.html",
|
191 |
+
"titles" => array()
|
192 |
+
),
|
193 |
+
7 => array(
|
194 |
+
"main_title" => __("Custom Reports", "gawd"),
|
195 |
+
"url" => "https://web-dorado.com/wordpress-google-analytics/custom-reports.html",
|
196 |
+
"titles" => array()
|
197 |
+
)
|
198 |
+
),
|
199 |
+
"video_youtube_id" => "n1f7ECVFNPI", // e.g. https://www.youtube.com/watch?v=acaexefeP7o youtube id is the acaexefeP7o
|
200 |
+
"plugin_wd_url" => "https://web-dorado.com/products/wordpress-google-analytics-plugin.html",
|
201 |
+
"plugin_wd_demo_link" => "http://wpdemo.web-dorado.com/wp-admin/admin.php?page=gawd_analytics&_ga=1.36699296.1878035738.1463981341",
|
202 |
+
"plugin_wd_forum_link" => "https://web-dorado.com/forum/google-analytics-wd.html",
|
203 |
+
"plugin_wd_addons_link" => "",
|
204 |
+
"plugin_wizard_link" => null,
|
205 |
+
"after_subscribe" => "admin.php?page=overview_gawd", // this can be plagin overview page or set up page
|
206 |
+
"plugin_menu_title" => "Analytics",
|
207 |
+
"plugin_menu_icon" => GAWD_URL . '/assets/main_icon.png',
|
208 |
+
"menu_position" => "25, 13",
|
209 |
+
"custom_post" => "gawd_analytics", // if true => edit.php?post_type=contact
|
210 |
+
"menu_capability" => "read",
|
211 |
+
"deactivate" => true,
|
212 |
+
"subscribe" => true,
|
213 |
+
);
|
214 |
+
|
215 |
+
dorado_web_init($gawd_options);
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
}
|
217 |
+
|
218 |
+
add_filter('wp_get_default_privacy_policy_content', 'gawd_privacy_policy');
|
219 |
+
function gawd_privacy_policy($content){
|
220 |
+
$title = __('Google Analytics WD', "gawd");
|
221 |
+
|
222 |
+
$pp_link = '<a target="_blank" href="https://policies.google.com/privacy">' . __('Privacy Policy', "gawd") . '</a>';
|
223 |
+
$text = sprintf(__('If you enable tracking code, explain that your site uses Google Analytics. Whether it will send any personal data to Google, depends on how you set up your website. For example, do not expose emails or other personally identifiable information to Google via URLs. Do not send form submissions via analytics to Google. By default, all the IPs of visitors are anonymized. If you change that setting, you must inform your website visitors on that. Personal data processing by Google is explained in their %s.', "gawd"), $pp_link);
|
224 |
+
$text .= "<br/>";
|
225 |
+
$text .= __('Web-Dorado Disclaimer: The above text is for informational purposes only and is not a legal advice. You must not rely on it as an alternative to legal advice. You should contact your legal counsel to obtain advice with respect to your particular case.', "gawd");
|
226 |
+
$pp_text = '<h3>' . $title . '</h3>' . '<p class="wp-policy-help">' . $text . '</p>';
|
227 |
+
|
228 |
+
$content .= $pp_text;
|
229 |
+
return $content;
|
230 |
}
|
231 |
|
232 |
+
if(!function_exists('gawd_wd_bp_install_notice')) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
+
if(get_option('wds_bk_notice_status') === '' || get_option('wds_bk_notice_status') === '1') {
|
235 |
+
return;
|
236 |
+
}
|
237 |
|
238 |
+
function gawd_wd_bp_script_style(){
|
239 |
+
$wd_bp_plugin_url = GAWD_URL;
|
240 |
+
|
241 |
+
$get_current = get_current_screen();
|
242 |
+
$current_screen_id = array(
|
243 |
+
'toplevel_page_gawd_analytics',
|
244 |
+
'analytics_page_gawd_reports',
|
245 |
+
'analytics_page_gawd_settings',
|
246 |
+
'analytics_page_gawd_tracking',
|
247 |
+
'analytics_page_gawd_goals',
|
248 |
+
'analytics_page_gawd_custom_reports',
|
249 |
+
'analytics_page_gawd_uninstall',
|
250 |
+
'analytics_page_overview_gawd',
|
251 |
+
'analytics_page_gawd_updates',
|
252 |
+
);
|
253 |
+
|
254 |
+
if(in_array($get_current->id, $current_screen_id)) {
|
255 |
+
wp_enqueue_script('wd_bck_install', $wd_bp_plugin_url . '/inc/js/wd_bp_install.js', array('jquery'));
|
256 |
+
wp_enqueue_style('wd_bck_install', $wd_bp_plugin_url . '/inc/css/wd_bp_install.css');
|
257 |
+
}
|
258 |
+
|
259 |
+
}
|
260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
add_action('admin_enqueue_scripts', 'gawd_wd_bp_script_style');
|
262 |
|
263 |
/**
|
264 |
* Show notice to install backup plugin
|
265 |
*/
|
266 |
+
function gawd_wd_bp_install_notice(){
|
267 |
+
$wd_bp_plugin_url = GAWD_URL;
|
268 |
+
|
269 |
+
$get_current = get_current_screen();
|
270 |
+
$current_screen_id = array(
|
271 |
+
'toplevel_page_gawd_analytics',
|
272 |
+
'analytics_page_gawd_reports',
|
273 |
+
'analytics_page_gawd_settings',
|
274 |
+
'analytics_page_gawd_tracking',
|
275 |
+
'analytics_page_gawd_goals',
|
276 |
+
'analytics_page_gawd_custom_reports',
|
277 |
+
'analytics_page_gawd_uninstall',
|
278 |
+
'analytics_page_overview_gawd',
|
279 |
+
'analytics_page_gawd_updates',
|
280 |
+
);
|
281 |
+
|
282 |
+
if(!in_array($get_current->id, $current_screen_id)) {
|
283 |
+
return;
|
284 |
+
}
|
285 |
|
286 |
+
$prefix = 'gawd';
|
|
|
|
|
287 |
|
|
|
288 |
$meta_value = get_option('wd_seo_notice_status');
|
289 |
if ($meta_value === '' || $meta_value === false) {
|
290 |
ob_start();
|
305 |
</button>
|
306 |
</div>
|
307 |
<script>wd_bp_url = '<?php echo add_query_arg(array('action' => 'wd_seo_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
|
308 |
+
|
309 |
<?php
|
310 |
echo ob_get_clean();
|
311 |
}
|
312 |
}
|
313 |
|
314 |
+
if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'seo-by-10web')) {
|
315 |
add_action('admin_notices', 'gawd_wd_bp_install_notice');
|
316 |
}
|
317 |
|
321 |
* empty: notice,
|
322 |
* 1 : never show again
|
323 |
*/
|
324 |
+
|
325 |
function gawd_wd_bp_install_notice_status() {
|
326 |
update_option('wd_seo_notice_status', '1', 'no');
|
327 |
}
|
328 |
add_action('wp_ajax_wd_seo_dismiss', 'gawd_wd_bp_install_notice_status');
|
|
|
329 |
|
330 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/src/Google/AccessToken/Verify.php
CHANGED
@@ -17,6 +17,7 @@
|
|
17 |
*/
|
18 |
|
19 |
use Firebase\JWT\ExpiredException as ExpiredExceptionV3;
|
|
|
20 |
use GuzzleHttp\Client;
|
21 |
use GuzzleHttp\ClientInterface;
|
22 |
use Psr\Cache\CacheItemPoolInterface;
|
@@ -120,6 +121,8 @@ class Google_AccessToken_Verify
|
|
120 |
return false;
|
121 |
} catch (ExpiredExceptionV3 $e) {
|
122 |
return false;
|
|
|
|
|
123 |
} catch (DomainException $e) {
|
124 |
// continue
|
125 |
}
|
17 |
*/
|
18 |
|
19 |
use Firebase\JWT\ExpiredException as ExpiredExceptionV3;
|
20 |
+
use Firebase\JWT\SignatureInvalidException;
|
21 |
use GuzzleHttp\Client;
|
22 |
use GuzzleHttp\ClientInterface;
|
23 |
use Psr\Cache\CacheItemPoolInterface;
|
121 |
return false;
|
122 |
} catch (ExpiredExceptionV3 $e) {
|
123 |
return false;
|
124 |
+
} catch (SignatureInvalidException $e) {
|
125 |
+
// continue
|
126 |
} catch (DomainException $e) {
|
127 |
// continue
|
128 |
}
|
google/src/Google/Client.php
CHANGED
@@ -39,7 +39,7 @@ use Monolog\Handler\SyslogHandler as MonologSyslogHandler;
|
|
39 |
*/
|
40 |
class Google_Client
|
41 |
{
|
42 |
-
const LIBVER = "2.2.
|
43 |
const USER_AGENT_SUFFIX = "google-api-php-client/";
|
44 |
const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
|
45 |
const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token';
|
39 |
*/
|
40 |
class Google_Client
|
41 |
{
|
42 |
+
const LIBVER = "2.2.1";
|
43 |
const USER_AGENT_SUFFIX = "google-api-php-client/";
|
44 |
const OAUTH2_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke';
|
45 |
const OAUTH2_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token';
|
google/src/Google/Collection.php
CHANGED
@@ -91,11 +91,10 @@ class Google_Collection extends Google_Model implements Iterator, Countable
|
|
91 |
|
92 |
private function coerceType($offset)
|
93 |
{
|
94 |
-
$
|
95 |
-
if (
|
96 |
-
$type = $this->$typeKey;
|
97 |
$this->{$this->collection_key}[$offset] =
|
98 |
-
new $
|
99 |
}
|
100 |
}
|
101 |
}
|
91 |
|
92 |
private function coerceType($offset)
|
93 |
{
|
94 |
+
$keyType = $this->keyType($this->collection_key);
|
95 |
+
if ($keyType && !is_object($this->{$this->collection_key}[$offset])) {
|
|
|
96 |
$this->{$this->collection_key}[$offset] =
|
97 |
+
new $keyType($this->{$this->collection_key}[$offset]);
|
98 |
}
|
99 |
}
|
100 |
}
|
google/src/Google/Model.php
CHANGED
@@ -53,32 +53,30 @@ class Google_Model implements ArrayAccess
|
|
53 |
*/
|
54 |
public function __get($key)
|
55 |
{
|
56 |
-
$
|
57 |
$keyDataType = $this->dataType($key);
|
58 |
-
if (
|
59 |
if (isset($this->modelData[$key])) {
|
60 |
$val = $this->modelData[$key];
|
61 |
-
}
|
62 |
-
($this->$keyDataType == 'array' || $this->$keyDataType == 'map')) {
|
63 |
$val = array();
|
64 |
} else {
|
65 |
$val = null;
|
66 |
}
|
67 |
|
68 |
if ($this->isAssociativeArray($val)) {
|
69 |
-
if (
|
70 |
foreach ($val as $arrayKey => $arrayItem) {
|
71 |
$this->modelData[$key][$arrayKey] =
|
72 |
-
$
|
73 |
}
|
74 |
} else {
|
75 |
-
$this->modelData[$key] = $
|
76 |
}
|
77 |
} else if (is_array($val)) {
|
78 |
$arrayObject = array();
|
79 |
foreach ($val as $arrayIndex => $arrayItem) {
|
80 |
-
$arrayObject[$arrayIndex] =
|
81 |
-
$this->createObjectFromName($keyTypeName, $arrayItem);
|
82 |
}
|
83 |
$this->modelData[$key] = $arrayObject;
|
84 |
}
|
@@ -98,22 +96,21 @@ class Google_Model implements ArrayAccess
|
|
98 |
{
|
99 |
// Hard initialise simple types, lazy load more complex ones.
|
100 |
foreach ($array as $key => $val) {
|
101 |
-
if (
|
102 |
-
$
|
103 |
-
$dataType = $this->{$this->dataType($key)};
|
104 |
if ($dataType == 'array' || $dataType == 'map') {
|
105 |
$this->$key = array();
|
106 |
foreach ($val as $itemKey => $itemVal) {
|
107 |
-
if ($itemVal instanceof $
|
108 |
$this->{$key}[$itemKey] = $itemVal;
|
109 |
} else {
|
110 |
-
$this->{$key}[$itemKey] = new $
|
111 |
}
|
112 |
}
|
113 |
-
} elseif ($val instanceof $
|
114 |
$this->$key = $val;
|
115 |
} else {
|
116 |
-
$this->$key = new $
|
117 |
}
|
118 |
unset($array[$key]);
|
119 |
} elseif (property_exists($this, $key)) {
|
@@ -234,19 +231,6 @@ class Google_Model implements ArrayAccess
|
|
234 |
return false;
|
235 |
}
|
236 |
|
237 |
-
/**
|
238 |
-
* Given a variable name, discover its type.
|
239 |
-
*
|
240 |
-
* @param $name
|
241 |
-
* @param $item
|
242 |
-
* @return object The object from the item.
|
243 |
-
*/
|
244 |
-
private function createObjectFromName($name, $item)
|
245 |
-
{
|
246 |
-
$type = $this->$name;
|
247 |
-
return new $type($item);
|
248 |
-
}
|
249 |
-
|
250 |
/**
|
251 |
* Verify if $obj is an array.
|
252 |
* @throws Google_Exception Thrown if $obj isn't an array.
|
@@ -291,12 +275,21 @@ class Google_Model implements ArrayAccess
|
|
291 |
|
292 |
protected function keyType($key)
|
293 |
{
|
294 |
-
|
|
|
|
|
|
|
|
|
|
|
295 |
}
|
296 |
|
297 |
protected function dataType($key)
|
298 |
{
|
299 |
-
|
|
|
|
|
|
|
|
|
300 |
}
|
301 |
|
302 |
public function __isset($key)
|
53 |
*/
|
54 |
public function __get($key)
|
55 |
{
|
56 |
+
$keyType = $this->keyType($key);
|
57 |
$keyDataType = $this->dataType($key);
|
58 |
+
if ($keyType && !isset($this->processed[$key])) {
|
59 |
if (isset($this->modelData[$key])) {
|
60 |
$val = $this->modelData[$key];
|
61 |
+
} elseif ($keyDataType == 'array' || $keyDataType == 'map') {
|
|
|
62 |
$val = array();
|
63 |
} else {
|
64 |
$val = null;
|
65 |
}
|
66 |
|
67 |
if ($this->isAssociativeArray($val)) {
|
68 |
+
if ($keyDataType && 'map' == $keyDataType) {
|
69 |
foreach ($val as $arrayKey => $arrayItem) {
|
70 |
$this->modelData[$key][$arrayKey] =
|
71 |
+
new $keyType($arrayItem);
|
72 |
}
|
73 |
} else {
|
74 |
+
$this->modelData[$key] = new $keyType($val);
|
75 |
}
|
76 |
} else if (is_array($val)) {
|
77 |
$arrayObject = array();
|
78 |
foreach ($val as $arrayIndex => $arrayItem) {
|
79 |
+
$arrayObject[$arrayIndex] = new $keyType($arrayItem);
|
|
|
80 |
}
|
81 |
$this->modelData[$key] = $arrayObject;
|
82 |
}
|
96 |
{
|
97 |
// Hard initialise simple types, lazy load more complex ones.
|
98 |
foreach ($array as $key => $val) {
|
99 |
+
if ($keyType = $this->keyType($key)) {
|
100 |
+
$dataType = $this->dataType($key);
|
|
|
101 |
if ($dataType == 'array' || $dataType == 'map') {
|
102 |
$this->$key = array();
|
103 |
foreach ($val as $itemKey => $itemVal) {
|
104 |
+
if ($itemVal instanceof $keyType) {
|
105 |
$this->{$key}[$itemKey] = $itemVal;
|
106 |
} else {
|
107 |
+
$this->{$key}[$itemKey] = new $keyType($itemVal);
|
108 |
}
|
109 |
}
|
110 |
+
} elseif ($val instanceof $keyType) {
|
111 |
$this->$key = $val;
|
112 |
} else {
|
113 |
+
$this->$key = new $keyType($val);
|
114 |
}
|
115 |
unset($array[$key]);
|
116 |
} elseif (property_exists($this, $key)) {
|
231 |
return false;
|
232 |
}
|
233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
/**
|
235 |
* Verify if $obj is an array.
|
236 |
* @throws Google_Exception Thrown if $obj isn't an array.
|
275 |
|
276 |
protected function keyType($key)
|
277 |
{
|
278 |
+
$keyType = $key . "Type";
|
279 |
+
|
280 |
+
// ensure keyType is a valid class
|
281 |
+
if (property_exists($this, $keyType) && class_exists($this->$keyType)) {
|
282 |
+
return $this->$keyType;
|
283 |
+
}
|
284 |
}
|
285 |
|
286 |
protected function dataType($key)
|
287 |
{
|
288 |
+
$dataType = $key . "DataType";
|
289 |
+
|
290 |
+
if (property_exists($this, $dataType)) {
|
291 |
+
return $this->$dataType;
|
292 |
+
}
|
293 |
}
|
294 |
|
295 |
public function __isset($key)
|
google/src/Google/Service/Resource.php
CHANGED
@@ -272,7 +272,7 @@ class Google_Service_Resource
|
|
272 |
if ($paramSpec['location'] == 'path') {
|
273 |
$uriTemplateVars[$paramName] = $paramSpec['value'];
|
274 |
} else if ($paramSpec['location'] == 'query') {
|
275 |
-
if (
|
276 |
foreach ($paramSpec['value'] as $value) {
|
277 |
$queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value));
|
278 |
}
|
272 |
if ($paramSpec['location'] == 'path') {
|
273 |
$uriTemplateVars[$paramName] = $paramSpec['value'];
|
274 |
} else if ($paramSpec['location'] == 'query') {
|
275 |
+
if (is_array($paramSpec['value'])) {
|
276 |
foreach ($paramSpec['value'] as $value) {
|
277 |
$queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value));
|
278 |
}
|
google/vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit4bcd804d35cc650d1fb52c557725a2a1::getLoader();
|
google/vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitGAWD_414fe7d6bd384b75fb7b7a29cfd20ec4
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$includePaths = require __DIR__ . '/include_paths.php';
|
27 |
array_push($includePaths, get_include_path());
|
@@ -31,7 +31,7 @@ class ComposerAutoloaderInitGAWD_414fe7d6bd384b75fb7b7a29cfd20ec4
|
|
31 |
if ($useStaticLoader) {
|
32 |
require_once __DIR__ . '/autoload_static.php';
|
33 |
|
34 |
-
call_user_func(\Composer\Autoload\
|
35 |
} else {
|
36 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
37 |
foreach ($map as $namespace => $path) {
|
@@ -52,19 +52,19 @@ class ComposerAutoloaderInitGAWD_414fe7d6bd384b75fb7b7a29cfd20ec4
|
|
52 |
$loader->register(true);
|
53 |
|
54 |
if ($useStaticLoader) {
|
55 |
-
$includeFiles = Composer\Autoload\
|
56 |
} else {
|
57 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
58 |
}
|
59 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
60 |
-
|
61 |
}
|
62 |
|
63 |
return $loader;
|
64 |
}
|
65 |
}
|
66 |
|
67 |
-
function
|
68 |
{
|
69 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
70 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit4bcd804d35cc650d1fb52c557725a2a1
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit4bcd804d35cc650d1fb52c557725a2a1', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit4bcd804d35cc650d1fb52c557725a2a1', 'loadClassLoader'));
|
25 |
|
26 |
$includePaths = require __DIR__ . '/include_paths.php';
|
27 |
array_push($includePaths, get_include_path());
|
31 |
if ($useStaticLoader) {
|
32 |
require_once __DIR__ . '/autoload_static.php';
|
33 |
|
34 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit4bcd804d35cc650d1fb52c557725a2a1::getInitializer($loader));
|
35 |
} else {
|
36 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
37 |
foreach ($map as $namespace => $path) {
|
52 |
$loader->register(true);
|
53 |
|
54 |
if ($useStaticLoader) {
|
55 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit4bcd804d35cc650d1fb52c557725a2a1::$files;
|
56 |
} else {
|
57 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
58 |
}
|
59 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
60 |
+
composerRequire4bcd804d35cc650d1fb52c557725a2a1($fileIdentifier, $file);
|
61 |
}
|
62 |
|
63 |
return $loader;
|
64 |
}
|
65 |
}
|
66 |
|
67 |
+
function composerRequire4bcd804d35cc650d1fb52c557725a2a1($fileIdentifier, $file)
|
68 |
{
|
69 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
70 |
require $file;
|
google/vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'e7ef766f7bcc15ba09cd6308370a95d7' => __DIR__ . '/..' . '/react/promise/src/React/Promise/functions.php',
|
@@ -166,10 +166,10 @@ class ComposerStaticInitGAWD_414fe7d6bd384b75fb7b7a29cfd20ec4
|
|
166 |
public static function getInitializer(ClassLoader $loader)
|
167 |
{
|
168 |
return \Closure::bind(function () use ($loader) {
|
169 |
-
$loader->prefixLengthsPsr4 =
|
170 |
-
$loader->prefixDirsPsr4 =
|
171 |
-
$loader->prefixesPsr0 =
|
172 |
-
$loader->classMap =
|
173 |
|
174 |
}, null, ClassLoader::class);
|
175 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit4bcd804d35cc650d1fb52c557725a2a1
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'e7ef766f7bcc15ba09cd6308370a95d7' => __DIR__ . '/..' . '/react/promise/src/React/Promise/functions.php',
|
166 |
public static function getInitializer(ClassLoader $loader)
|
167 |
{
|
168 |
return \Closure::bind(function () use ($loader) {
|
169 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit4bcd804d35cc650d1fb52c557725a2a1::$prefixLengthsPsr4;
|
170 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit4bcd804d35cc650d1fb52c557725a2a1::$prefixDirsPsr4;
|
171 |
+
$loader->prefixesPsr0 = ComposerStaticInit4bcd804d35cc650d1fb52c557725a2a1::$prefixesPsr0;
|
172 |
+
$loader->classMap = ComposerStaticInit4bcd804d35cc650d1fb52c557725a2a1::$classMap;
|
173 |
|
174 |
}, null, ClassLoader::class);
|
175 |
}
|
google/vendor/composer/installed.json
CHANGED
@@ -1,162 +1,196 @@
|
|
1 |
[
|
2 |
{
|
3 |
-
"name": "
|
4 |
-
"version": "
|
5 |
"version_normalized": "1.0.0.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
-
"url": "https://github.com/
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
-
"
|
19 |
-
"guzzlehttp/guzzle": "~5.3.1|~6.0",
|
20 |
-
"guzzlehttp/psr7": "~1.2",
|
21 |
-
"php": ">=5.4",
|
22 |
-
"psr/cache": "^1.0",
|
23 |
-
"psr/http-message": "^1.0"
|
24 |
-
},
|
25 |
-
"require-dev": {
|
26 |
-
"friendsofphp/php-cs-fixer": "^1.11",
|
27 |
-
"phpunit/phpunit": "3.7.*"
|
28 |
},
|
29 |
-
"time": "
|
30 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
31 |
"installation-source": "dist",
|
32 |
"autoload": {
|
33 |
-
"classmap": [
|
34 |
-
"src/"
|
35 |
-
],
|
36 |
"psr-4": {
|
37 |
-
"
|
38 |
}
|
39 |
},
|
40 |
"notification-url": "https://packagist.org/downloads/",
|
41 |
"license": [
|
42 |
-
"
|
43 |
],
|
44 |
-
"
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
46 |
"keywords": [
|
47 |
-
"
|
48 |
-
"
|
49 |
-
"
|
50 |
]
|
51 |
},
|
52 |
{
|
53 |
-
"name": "
|
54 |
-
"version": "
|
55 |
-
"version_normalized": "0.
|
56 |
"source": {
|
57 |
"type": "git",
|
58 |
-
"url": "https://github.com/
|
59 |
-
"reference": "
|
60 |
},
|
61 |
"dist": {
|
62 |
"type": "zip",
|
63 |
-
"url": "https://api.github.com/repos/
|
64 |
-
"reference": "
|
65 |
"shasum": ""
|
66 |
},
|
67 |
"require": {
|
68 |
-
"php": ">=5.
|
69 |
-
},
|
70 |
-
"require-dev": {
|
71 |
-
"phpunit/phpunit": "~4.8"
|
72 |
},
|
73 |
-
"time": "
|
74 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
75 |
"installation-source": "dist",
|
76 |
"autoload": {
|
77 |
-
"psr-
|
78 |
-
"
|
79 |
}
|
80 |
},
|
81 |
"notification-url": "https://packagist.org/downloads/",
|
82 |
"license": [
|
83 |
-
"
|
84 |
],
|
85 |
-
"
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
87 |
"keywords": [
|
88 |
-
"
|
|
|
|
|
|
|
|
|
|
|
89 |
]
|
90 |
},
|
91 |
{
|
92 |
-
"name": "
|
93 |
-
"version": "2.0
|
94 |
-
"version_normalized": "2.0.0
|
95 |
-
"target-dir": "Firebase/PHP-JWT",
|
96 |
"source": {
|
97 |
"type": "git",
|
98 |
-
"url": "https://github.com/
|
99 |
-
"reference": "
|
100 |
},
|
101 |
"dist": {
|
102 |
"type": "zip",
|
103 |
-
"url": "https://api.github.com/repos/
|
104 |
-
"reference": "
|
105 |
"shasum": ""
|
106 |
},
|
107 |
"require": {
|
108 |
-
"php": ">=5.
|
|
|
109 |
},
|
110 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
112 |
"installation-source": "dist",
|
113 |
"autoload": {
|
114 |
-
"
|
115 |
-
"
|
116 |
-
|
|
|
|
|
117 |
]
|
118 |
},
|
119 |
"notification-url": "https://packagist.org/downloads/",
|
120 |
"license": [
|
121 |
-
"
|
122 |
],
|
123 |
"authors": [
|
124 |
{
|
125 |
-
"name": "
|
126 |
-
"email": "
|
127 |
-
"
|
128 |
-
},
|
129 |
-
{
|
130 |
-
"name": "Anant Narayanan",
|
131 |
-
"email": "anant@php.net",
|
132 |
-
"role": "Developer"
|
133 |
}
|
134 |
],
|
135 |
-
"description": "
|
136 |
-
"
|
|
|
|
|
|
|
|
|
|
|
137 |
},
|
138 |
{
|
139 |
-
"name": "
|
140 |
-
"version": "
|
141 |
-
"version_normalized": "
|
142 |
"source": {
|
143 |
"type": "git",
|
144 |
-
"url": "https://github.com/
|
145 |
-
"reference": "
|
146 |
},
|
147 |
"dist": {
|
148 |
"type": "zip",
|
149 |
-
"url": "https://api.github.com/repos/
|
150 |
-
"reference": "
|
151 |
"shasum": ""
|
152 |
},
|
153 |
-
"
|
|
|
|
|
|
|
154 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
155 |
"installation-source": "dist",
|
156 |
"autoload": {
|
157 |
"psr-0": {
|
158 |
-
"
|
159 |
-
}
|
|
|
|
|
|
|
160 |
},
|
161 |
"notification-url": "https://packagist.org/downloads/",
|
162 |
"license": [
|
@@ -164,74 +198,44 @@
|
|
164 |
],
|
165 |
"authors": [
|
166 |
{
|
167 |
-
"name": "
|
168 |
-
"
|
169 |
}
|
170 |
],
|
171 |
-
"description": "
|
172 |
-
"keywords": [
|
173 |
-
"log",
|
174 |
-
"psr",
|
175 |
-
"psr-3"
|
176 |
-
]
|
177 |
},
|
178 |
{
|
179 |
-
"name": "
|
180 |
-
"version": "
|
181 |
-
"version_normalized": "
|
182 |
"source": {
|
183 |
"type": "git",
|
184 |
-
"url": "https://github.com/
|
185 |
-
"reference": "
|
186 |
},
|
187 |
"dist": {
|
188 |
"type": "zip",
|
189 |
-
"url": "https://api.github.com/repos/
|
190 |
-
"reference": "
|
191 |
"shasum": ""
|
192 |
},
|
193 |
"require": {
|
194 |
-
"php": ">=5.
|
195 |
-
"psr/log": "~1.0"
|
196 |
-
},
|
197 |
-
"provide": {
|
198 |
-
"psr/log-implementation": "1.0.0"
|
199 |
},
|
200 |
"require-dev": {
|
201 |
-
"
|
202 |
-
"doctrine/couchdb": "~1.0@dev",
|
203 |
-
"graylog2/gelf-php": "~1.0",
|
204 |
-
"php-console/php-console": "^3.1.3",
|
205 |
-
"phpunit/phpunit": "~4.5",
|
206 |
-
"phpunit/phpunit-mock-objects": "2.3.0",
|
207 |
-
"raven/raven": "~0.11",
|
208 |
-
"ruflin/elastica": ">=0.90 <3.0",
|
209 |
-
"swiftmailer/swiftmailer": "~5.3",
|
210 |
-
"videlalvaro/php-amqplib": "~2.4"
|
211 |
-
},
|
212 |
-
"suggest": {
|
213 |
-
"aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
|
214 |
-
"doctrine/couchdb": "Allow sending log messages to a CouchDB server",
|
215 |
-
"ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
|
216 |
-
"ext-mongo": "Allow sending log messages to a MongoDB server",
|
217 |
-
"graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
|
218 |
-
"php-console/php-console": "Allow sending log messages to Google Chrome",
|
219 |
-
"raven/raven": "Allow sending log messages to a Sentry server",
|
220 |
-
"rollbar/rollbar": "Allow sending log messages to Rollbar",
|
221 |
-
"ruflin/elastica": "Allow sending log messages to an Elastic Search server",
|
222 |
-
"videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib"
|
223 |
},
|
224 |
-
"time": "
|
225 |
"type": "library",
|
226 |
"extra": {
|
227 |
"branch-alias": {
|
228 |
-
"dev-master": "
|
229 |
}
|
230 |
},
|
231 |
"installation-source": "dist",
|
232 |
"autoload": {
|
233 |
"psr-4": {
|
234 |
-
"
|
235 |
}
|
236 |
},
|
237 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -240,152 +244,101 @@
|
|
240 |
],
|
241 |
"authors": [
|
242 |
{
|
243 |
-
"name": "
|
244 |
-
"email": "
|
245 |
-
"homepage": "
|
246 |
-
}
|
247 |
],
|
248 |
-
"description": "
|
249 |
-
"homepage": "http://
|
250 |
"keywords": [
|
251 |
-
"
|
252 |
-
"
|
253 |
-
"psr-3"
|
254 |
]
|
255 |
},
|
256 |
{
|
257 |
-
"name": "
|
258 |
-
"version": "
|
259 |
-
"version_normalized": "
|
260 |
"source": {
|
261 |
"type": "git",
|
262 |
-
"url": "https://github.com/
|
263 |
-
"reference": "
|
264 |
},
|
265 |
"dist": {
|
266 |
"type": "zip",
|
267 |
-
"url": "https://api.github.com/repos/
|
268 |
-
"reference": "
|
269 |
"shasum": ""
|
270 |
},
|
271 |
"require": {
|
272 |
-
"
|
|
|
|
|
273 |
},
|
274 |
"require-dev": {
|
275 |
-
"
|
276 |
-
"phpunit/phpunit": "~4.0"
|
277 |
-
"sami/sami": "~2.0",
|
278 |
-
"squizlabs/php_codesniffer": "~1.5"
|
279 |
},
|
280 |
"suggest": {
|
281 |
-
"ext-
|
282 |
-
"ext-mcrypt": "Install the Mcrypt extension in order to speed up a wide variety of cryptographic operations.",
|
283 |
-
"pear-pear/PHP_Compat": "Install PHP_Compat to get phpseclib working on PHP < 4.3.3."
|
284 |
},
|
285 |
-
"time": "2015-
|
286 |
"type": "library",
|
287 |
"extra": {
|
288 |
"branch-alias": {
|
289 |
-
"dev-master": "
|
290 |
}
|
291 |
},
|
292 |
"installation-source": "dist",
|
293 |
"autoload": {
|
294 |
-
"psr-
|
295 |
-
"
|
296 |
-
|
297 |
-
"Math": "phpseclib/",
|
298 |
-
"Net": "phpseclib/",
|
299 |
-
"System": "phpseclib/"
|
300 |
-
},
|
301 |
-
"files": [
|
302 |
-
"phpseclib/Crypt/Random.php"
|
303 |
-
]
|
304 |
},
|
305 |
"notification-url": "https://packagist.org/downloads/",
|
306 |
-
"include-path": [
|
307 |
-
"phpseclib/"
|
308 |
-
],
|
309 |
"license": [
|
310 |
"MIT"
|
311 |
],
|
312 |
"authors": [
|
313 |
{
|
314 |
-
"name": "
|
315 |
-
"email": "
|
316 |
-
"
|
317 |
-
},
|
318 |
-
{
|
319 |
-
"name": "Patrick Monnerat",
|
320 |
-
"email": "pm@datasphere.ch",
|
321 |
-
"role": "Developer"
|
322 |
-
},
|
323 |
-
{
|
324 |
-
"name": "Andreas Fischer",
|
325 |
-
"email": "bantu@phpbb.com",
|
326 |
-
"role": "Developer"
|
327 |
-
},
|
328 |
-
{
|
329 |
-
"name": "Hans-Jürgen Petrich",
|
330 |
-
"email": "petrich@tronic-media.com",
|
331 |
-
"role": "Developer"
|
332 |
}
|
333 |
],
|
334 |
-
"description": "
|
335 |
-
"homepage": "http://phpseclib.sourceforge.net",
|
336 |
-
"keywords": [
|
337 |
-
"BigInteger",
|
338 |
-
"aes",
|
339 |
-
"asn.1",
|
340 |
-
"asn1",
|
341 |
-
"blowfish",
|
342 |
-
"crypto",
|
343 |
-
"cryptography",
|
344 |
-
"encryption",
|
345 |
-
"rsa",
|
346 |
-
"security",
|
347 |
-
"sftp",
|
348 |
-
"signature",
|
349 |
-
"signing",
|
350 |
-
"ssh",
|
351 |
-
"twofish",
|
352 |
-
"x.509",
|
353 |
-
"x509"
|
354 |
-
]
|
355 |
},
|
356 |
{
|
357 |
-
"name": "
|
358 |
-
"version": "
|
359 |
-
"version_normalized": "
|
360 |
"source": {
|
361 |
"type": "git",
|
362 |
-
"url": "https://github.com/
|
363 |
-
"reference": "
|
364 |
},
|
365 |
"dist": {
|
366 |
"type": "zip",
|
367 |
-
"url": "https://api.github.com/repos/
|
368 |
-
"reference": "
|
369 |
"shasum": ""
|
370 |
},
|
371 |
"require": {
|
|
|
372 |
"php": ">=5.4.0"
|
373 |
},
|
374 |
-
"
|
375 |
-
|
376 |
-
|
377 |
-
"branch-alias": {
|
378 |
-
"dev-master": "2.0-dev"
|
379 |
-
}
|
380 |
},
|
|
|
|
|
381 |
"installation-source": "dist",
|
382 |
"autoload": {
|
383 |
-
"psr-
|
384 |
-
"
|
385 |
-
}
|
386 |
-
"files": [
|
387 |
-
"src/React/Promise/functions.php"
|
388 |
-
]
|
389 |
},
|
390 |
"notification-url": "https://packagist.org/downloads/",
|
391 |
"license": [
|
@@ -393,200 +346,180 @@
|
|
393 |
],
|
394 |
"authors": [
|
395 |
{
|
396 |
-
"name": "
|
397 |
-
"email": "
|
|
|
398 |
}
|
399 |
],
|
400 |
-
"description": "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
},
|
402 |
{
|
403 |
-
"name": "
|
404 |
-
"version": "
|
405 |
-
"version_normalized": "
|
|
|
406 |
"source": {
|
407 |
"type": "git",
|
408 |
-
"url": "https://github.com/
|
409 |
-
"reference": "
|
410 |
},
|
411 |
"dist": {
|
412 |
"type": "zip",
|
413 |
-
"url": "https://api.github.com/repos/
|
414 |
-
"reference": "
|
415 |
"shasum": ""
|
416 |
},
|
417 |
"require": {
|
418 |
-
"php": ">=5.
|
419 |
-
},
|
420 |
-
"require-dev": {
|
421 |
-
"phpunit/phpunit": "~4.0"
|
422 |
},
|
423 |
-
"time": "
|
424 |
"type": "library",
|
425 |
-
"extra": {
|
426 |
-
"branch-alias": {
|
427 |
-
"dev-master": "3.0-dev"
|
428 |
-
}
|
429 |
-
},
|
430 |
"installation-source": "dist",
|
431 |
"autoload": {
|
432 |
-
"
|
433 |
-
"
|
434 |
-
|
|
|
435 |
},
|
436 |
"notification-url": "https://packagist.org/downloads/",
|
437 |
"license": [
|
438 |
-
"
|
439 |
],
|
440 |
"authors": [
|
441 |
{
|
442 |
-
"name": "
|
443 |
-
"email": "
|
444 |
-
"
|
|
|
|
|
|
|
|
|
|
|
445 |
}
|
446 |
],
|
447 |
-
"description": "
|
448 |
-
"homepage": "
|
449 |
-
"keywords": [
|
450 |
-
"Guzzle",
|
451 |
-
"stream"
|
452 |
-
]
|
453 |
},
|
454 |
{
|
455 |
-
"name": "
|
456 |
-
"version": "
|
457 |
-
"version_normalized": "1.
|
458 |
"source": {
|
459 |
"type": "git",
|
460 |
-
"url": "https://github.com/
|
461 |
-
"reference": "
|
462 |
},
|
463 |
"dist": {
|
464 |
"type": "zip",
|
465 |
-
"url": "https://api.github.com/repos/
|
466 |
-
"reference": "
|
467 |
"shasum": ""
|
468 |
},
|
469 |
"require": {
|
470 |
-
"
|
471 |
-
"
|
472 |
-
"
|
|
|
|
|
|
|
473 |
},
|
474 |
"require-dev": {
|
475 |
-
"
|
476 |
-
"phpunit/phpunit": "
|
477 |
-
},
|
478 |
-
"suggest": {
|
479 |
-
"ext-curl": "Guzzle will use specific adapters if cURL is present"
|
480 |
},
|
481 |
-
"time": "
|
482 |
"type": "library",
|
483 |
-
"extra": {
|
484 |
-
"branch-alias": {
|
485 |
-
"dev-master": "1.1-dev"
|
486 |
-
}
|
487 |
-
},
|
488 |
"installation-source": "dist",
|
489 |
"autoload": {
|
|
|
|
|
|
|
490 |
"psr-4": {
|
491 |
-
"
|
492 |
}
|
493 |
},
|
494 |
"notification-url": "https://packagist.org/downloads/",
|
495 |
"license": [
|
496 |
-
"
|
497 |
-
],
|
498 |
-
"authors": [
|
499 |
-
{
|
500 |
-
"name": "Michael Dowling",
|
501 |
-
"email": "mtdowling@gmail.com",
|
502 |
-
"homepage": "https://github.com/mtdowling"
|
503 |
-
}
|
504 |
],
|
505 |
-
"description": "
|
|
|
|
|
|
|
|
|
|
|
|
|
506 |
},
|
507 |
{
|
508 |
-
"name": "
|
509 |
-
"version": "
|
510 |
-
"version_normalized": "
|
511 |
"source": {
|
512 |
"type": "git",
|
513 |
-
"url": "https://github.com/
|
514 |
-
"reference": "
|
515 |
},
|
516 |
"dist": {
|
517 |
"type": "zip",
|
518 |
-
"url": "https://api.github.com/repos/
|
519 |
-
"reference": "
|
520 |
"shasum": ""
|
521 |
},
|
522 |
"require": {
|
523 |
-
"
|
524 |
-
"php": ">=5.4.0"
|
525 |
},
|
526 |
"require-dev": {
|
527 |
-
"
|
528 |
-
"phpunit/phpunit": "^4.0"
|
529 |
},
|
530 |
-
"time": "
|
531 |
"type": "library",
|
532 |
"installation-source": "dist",
|
533 |
"autoload": {
|
534 |
-
"psr-
|
535 |
-
"
|
536 |
}
|
537 |
},
|
538 |
"notification-url": "https://packagist.org/downloads/",
|
539 |
"license": [
|
540 |
-
"
|
541 |
-
],
|
542 |
-
"authors": [
|
543 |
-
{
|
544 |
-
"name": "Michael Dowling",
|
545 |
-
"email": "mtdowling@gmail.com",
|
546 |
-
"homepage": "https://github.com/mtdowling"
|
547 |
-
}
|
548 |
],
|
549 |
-
"description": "
|
550 |
-
"homepage": "http://
|
551 |
"keywords": [
|
552 |
-
"
|
553 |
-
"curl",
|
554 |
-
"framework",
|
555 |
-
"http",
|
556 |
-
"http client",
|
557 |
-
"rest",
|
558 |
-
"web service"
|
559 |
]
|
560 |
},
|
561 |
{
|
562 |
-
"name": "psr/
|
563 |
-
"version": "1.0",
|
564 |
"version_normalized": "1.0.0.0",
|
565 |
"source": {
|
566 |
"type": "git",
|
567 |
-
"url": "https://github.com/php-fig/
|
568 |
-
"reference": "
|
569 |
},
|
570 |
"dist": {
|
571 |
"type": "zip",
|
572 |
-
"url": "https://api.github.com/repos/php-fig/
|
573 |
-
"reference": "
|
574 |
"shasum": ""
|
575 |
},
|
576 |
-
"
|
577 |
-
"php": ">=5.3.0"
|
578 |
-
},
|
579 |
-
"time": "2015-05-04T20:22:00+00:00",
|
580 |
"type": "library",
|
581 |
-
"extra": {
|
582 |
-
"branch-alias": {
|
583 |
-
"dev-master": "1.0.x-dev"
|
584 |
-
}
|
585 |
-
},
|
586 |
"installation-source": "dist",
|
587 |
"autoload": {
|
588 |
-
"psr-
|
589 |
-
"Psr\\
|
590 |
}
|
591 |
},
|
592 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -599,56 +532,71 @@
|
|
599 |
"homepage": "http://www.php-fig.org/"
|
600 |
}
|
601 |
],
|
602 |
-
"description": "Common interface for
|
603 |
"keywords": [
|
604 |
-
"
|
605 |
-
"http-message",
|
606 |
"psr",
|
607 |
-
"psr-
|
608 |
-
"request",
|
609 |
-
"response"
|
610 |
]
|
611 |
},
|
612 |
{
|
613 |
-
"name": "
|
614 |
-
"version": "1.
|
615 |
-
"version_normalized": "1.
|
616 |
"source": {
|
617 |
"type": "git",
|
618 |
-
"url": "https://github.com/
|
619 |
-
"reference": "
|
620 |
},
|
621 |
"dist": {
|
622 |
"type": "zip",
|
623 |
-
"url": "https://api.github.com/repos/
|
624 |
-
"reference": "
|
625 |
"shasum": ""
|
626 |
},
|
627 |
"require": {
|
628 |
-
"php": ">=5.
|
629 |
-
"psr/
|
630 |
},
|
631 |
"provide": {
|
632 |
-
"psr/
|
633 |
},
|
634 |
"require-dev": {
|
635 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
636 |
},
|
637 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
638 |
"type": "library",
|
639 |
"extra": {
|
640 |
"branch-alias": {
|
641 |
-
"dev-master": "1.
|
642 |
}
|
643 |
},
|
644 |
"installation-source": "dist",
|
645 |
"autoload": {
|
646 |
"psr-4": {
|
647 |
-
"
|
648 |
-
}
|
649 |
-
"files": [
|
650 |
-
"src/functions_include.php"
|
651 |
-
]
|
652 |
},
|
653 |
"notification-url": "https://packagist.org/downloads/",
|
654 |
"license": [
|
@@ -656,65 +604,117 @@
|
|
656 |
],
|
657 |
"authors": [
|
658 |
{
|
659 |
-
"name": "
|
660 |
-
"email": "
|
661 |
-
"homepage": "
|
662 |
}
|
663 |
],
|
664 |
-
"description": "
|
|
|
665 |
"keywords": [
|
666 |
-
"
|
667 |
-
"
|
668 |
-
"
|
669 |
-
"uri"
|
670 |
]
|
671 |
},
|
672 |
{
|
673 |
-
"name": "
|
674 |
-
"version": "
|
675 |
-
"version_normalized": "
|
676 |
"source": {
|
677 |
"type": "git",
|
678 |
-
"url": "https://github.com/
|
679 |
-
"reference": "
|
680 |
},
|
681 |
"dist": {
|
682 |
"type": "zip",
|
683 |
-
"url": "https://api.github.com/repos/
|
684 |
-
"reference": "
|
685 |
"shasum": ""
|
686 |
},
|
687 |
"require": {
|
688 |
-
"php": ">=5.
|
689 |
},
|
690 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
691 |
"type": "library",
|
692 |
"extra": {
|
693 |
"branch-alias": {
|
694 |
-
"dev-master": "
|
695 |
}
|
696 |
},
|
697 |
"installation-source": "dist",
|
698 |
"autoload": {
|
699 |
-
"psr-
|
700 |
-
"
|
701 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
702 |
},
|
703 |
"notification-url": "https://packagist.org/downloads/",
|
|
|
|
|
|
|
704 |
"license": [
|
705 |
"MIT"
|
706 |
],
|
707 |
"authors": [
|
708 |
{
|
709 |
-
"name": "
|
710 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
711 |
}
|
712 |
],
|
713 |
-
"description": "
|
|
|
714 |
"keywords": [
|
715 |
-
"
|
716 |
-
"
|
717 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
718 |
]
|
719 |
}
|
720 |
]
|
1 |
[
|
2 |
{
|
3 |
+
"name": "psr/cache",
|
4 |
+
"version": "1.0.0",
|
5 |
"version_normalized": "1.0.0.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
+
"url": "https://github.com/php-fig/cache.git",
|
9 |
+
"reference": "9e66031f41fbbdda45ee11e93c45d480ccba3eb3"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/php-fig/cache/zipball/9e66031f41fbbdda45ee11e93c45d480ccba3eb3",
|
14 |
+
"reference": "9e66031f41fbbdda45ee11e93c45d480ccba3eb3",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
+
"php": ">=5.3.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
},
|
20 |
+
"time": "2015-12-11T02:52:07+00:00",
|
21 |
"type": "library",
|
22 |
+
"extra": {
|
23 |
+
"branch-alias": {
|
24 |
+
"dev-master": "1.0.x-dev"
|
25 |
+
}
|
26 |
+
},
|
27 |
"installation-source": "dist",
|
28 |
"autoload": {
|
|
|
|
|
|
|
29 |
"psr-4": {
|
30 |
+
"Psr\\Cache\\": "src/"
|
31 |
}
|
32 |
},
|
33 |
"notification-url": "https://packagist.org/downloads/",
|
34 |
"license": [
|
35 |
+
"MIT"
|
36 |
],
|
37 |
+
"authors": [
|
38 |
+
{
|
39 |
+
"name": "PHP-FIG",
|
40 |
+
"homepage": "http://www.php-fig.org/"
|
41 |
+
}
|
42 |
+
],
|
43 |
+
"description": "Common interface for caching libraries",
|
44 |
"keywords": [
|
45 |
+
"cache",
|
46 |
+
"psr",
|
47 |
+
"psr-6"
|
48 |
]
|
49 |
},
|
50 |
{
|
51 |
+
"name": "psr/http-message",
|
52 |
+
"version": "1.0",
|
53 |
+
"version_normalized": "1.0.0.0",
|
54 |
"source": {
|
55 |
"type": "git",
|
56 |
+
"url": "https://github.com/php-fig/http-message.git",
|
57 |
+
"reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298"
|
58 |
},
|
59 |
"dist": {
|
60 |
"type": "zip",
|
61 |
+
"url": "https://api.github.com/repos/php-fig/http-message/zipball/85d63699f0dbedb190bbd4b0d2b9dc707ea4c298",
|
62 |
+
"reference": "85d63699f0dbedb190bbd4b0d2b9dc707ea4c298",
|
63 |
"shasum": ""
|
64 |
},
|
65 |
"require": {
|
66 |
+
"php": ">=5.3.0"
|
|
|
|
|
|
|
67 |
},
|
68 |
+
"time": "2015-05-04T20:22:00+00:00",
|
69 |
"type": "library",
|
70 |
+
"extra": {
|
71 |
+
"branch-alias": {
|
72 |
+
"dev-master": "1.0.x-dev"
|
73 |
+
}
|
74 |
+
},
|
75 |
"installation-source": "dist",
|
76 |
"autoload": {
|
77 |
+
"psr-4": {
|
78 |
+
"Psr\\Http\\Message\\": "src/"
|
79 |
}
|
80 |
},
|
81 |
"notification-url": "https://packagist.org/downloads/",
|
82 |
"license": [
|
83 |
+
"MIT"
|
84 |
],
|
85 |
+
"authors": [
|
86 |
+
{
|
87 |
+
"name": "PHP-FIG",
|
88 |
+
"homepage": "http://www.php-fig.org/"
|
89 |
+
}
|
90 |
+
],
|
91 |
+
"description": "Common interface for HTTP messages",
|
92 |
"keywords": [
|
93 |
+
"http",
|
94 |
+
"http-message",
|
95 |
+
"psr",
|
96 |
+
"psr-7",
|
97 |
+
"request",
|
98 |
+
"response"
|
99 |
]
|
100 |
},
|
101 |
{
|
102 |
+
"name": "guzzlehttp/psr7",
|
103 |
+
"version": "1.2.0",
|
104 |
+
"version_normalized": "1.2.0.0",
|
|
|
105 |
"source": {
|
106 |
"type": "git",
|
107 |
+
"url": "https://github.com/guzzle/psr7.git",
|
108 |
+
"reference": "4ef919b0cf3b1989523138b60163bbcb7ba1ff7e"
|
109 |
},
|
110 |
"dist": {
|
111 |
"type": "zip",
|
112 |
+
"url": "https://api.github.com/repos/guzzle/psr7/zipball/4ef919b0cf3b1989523138b60163bbcb7ba1ff7e",
|
113 |
+
"reference": "4ef919b0cf3b1989523138b60163bbcb7ba1ff7e",
|
114 |
"shasum": ""
|
115 |
},
|
116 |
"require": {
|
117 |
+
"php": ">=5.4.0",
|
118 |
+
"psr/http-message": "~1.0"
|
119 |
},
|
120 |
+
"provide": {
|
121 |
+
"psr/http-message-implementation": "1.0"
|
122 |
+
},
|
123 |
+
"require-dev": {
|
124 |
+
"phpunit/phpunit": "~4.0"
|
125 |
+
},
|
126 |
+
"time": "2015-08-15T19:32:36+00:00",
|
127 |
"type": "library",
|
128 |
+
"extra": {
|
129 |
+
"branch-alias": {
|
130 |
+
"dev-master": "1.0-dev"
|
131 |
+
}
|
132 |
+
},
|
133 |
"installation-source": "dist",
|
134 |
"autoload": {
|
135 |
+
"psr-4": {
|
136 |
+
"GuzzleHttp\\Psr7\\": "src/"
|
137 |
+
},
|
138 |
+
"files": [
|
139 |
+
"src/functions_include.php"
|
140 |
]
|
141 |
},
|
142 |
"notification-url": "https://packagist.org/downloads/",
|
143 |
"license": [
|
144 |
+
"MIT"
|
145 |
],
|
146 |
"authors": [
|
147 |
{
|
148 |
+
"name": "Michael Dowling",
|
149 |
+
"email": "mtdowling@gmail.com",
|
150 |
+
"homepage": "https://github.com/mtdowling"
|
|
|
|
|
|
|
|
|
|
|
151 |
}
|
152 |
],
|
153 |
+
"description": "PSR-7 message implementation",
|
154 |
+
"keywords": [
|
155 |
+
"http",
|
156 |
+
"message",
|
157 |
+
"stream",
|
158 |
+
"uri"
|
159 |
+
]
|
160 |
},
|
161 |
{
|
162 |
+
"name": "react/promise",
|
163 |
+
"version": "v2.0.0",
|
164 |
+
"version_normalized": "2.0.0.0",
|
165 |
"source": {
|
166 |
"type": "git",
|
167 |
+
"url": "https://github.com/reactphp/promise.git",
|
168 |
+
"reference": "58129a9cb9da88f2055309a805e2696b06928bb0"
|
169 |
},
|
170 |
"dist": {
|
171 |
"type": "zip",
|
172 |
+
"url": "https://api.github.com/repos/reactphp/promise/zipball/58129a9cb9da88f2055309a805e2696b06928bb0",
|
173 |
+
"reference": "58129a9cb9da88f2055309a805e2696b06928bb0",
|
174 |
"shasum": ""
|
175 |
},
|
176 |
+
"require": {
|
177 |
+
"php": ">=5.4.0"
|
178 |
+
},
|
179 |
+
"time": "2013-12-10T15:40:36+00:00",
|
180 |
"type": "library",
|
181 |
+
"extra": {
|
182 |
+
"branch-alias": {
|
183 |
+
"dev-master": "2.0-dev"
|
184 |
+
}
|
185 |
+
},
|
186 |
"installation-source": "dist",
|
187 |
"autoload": {
|
188 |
"psr-0": {
|
189 |
+
"React\\Promise": "src/"
|
190 |
+
},
|
191 |
+
"files": [
|
192 |
+
"src/React/Promise/functions.php"
|
193 |
+
]
|
194 |
},
|
195 |
"notification-url": "https://packagist.org/downloads/",
|
196 |
"license": [
|
198 |
],
|
199 |
"authors": [
|
200 |
{
|
201 |
+
"name": "Jan Sorgalla",
|
202 |
+
"email": "jsorgalla@googlemail.com"
|
203 |
}
|
204 |
],
|
205 |
+
"description": "A lightweight implementation of CommonJS Promises/A for PHP"
|
|
|
|
|
|
|
|
|
|
|
206 |
},
|
207 |
{
|
208 |
+
"name": "guzzlehttp/streams",
|
209 |
+
"version": "3.0.0",
|
210 |
+
"version_normalized": "3.0.0.0",
|
211 |
"source": {
|
212 |
"type": "git",
|
213 |
+
"url": "https://github.com/guzzle/streams.git",
|
214 |
+
"reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5"
|
215 |
},
|
216 |
"dist": {
|
217 |
"type": "zip",
|
218 |
+
"url": "https://api.github.com/repos/guzzle/streams/zipball/47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5",
|
219 |
+
"reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5",
|
220 |
"shasum": ""
|
221 |
},
|
222 |
"require": {
|
223 |
+
"php": ">=5.4.0"
|
|
|
|
|
|
|
|
|
224 |
},
|
225 |
"require-dev": {
|
226 |
+
"phpunit/phpunit": "~4.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
},
|
228 |
+
"time": "2014-10-12T19:18:40+00:00",
|
229 |
"type": "library",
|
230 |
"extra": {
|
231 |
"branch-alias": {
|
232 |
+
"dev-master": "3.0-dev"
|
233 |
}
|
234 |
},
|
235 |
"installation-source": "dist",
|
236 |
"autoload": {
|
237 |
"psr-4": {
|
238 |
+
"GuzzleHttp\\Stream\\": "src/"
|
239 |
}
|
240 |
},
|
241 |
"notification-url": "https://packagist.org/downloads/",
|
244 |
],
|
245 |
"authors": [
|
246 |
{
|
247 |
+
"name": "Michael Dowling",
|
248 |
+
"email": "mtdowling@gmail.com",
|
249 |
+
"homepage": "https://github.com/mtdowling"
|
250 |
+
}
|
251 |
],
|
252 |
+
"description": "Provides a simple abstraction over streams of data",
|
253 |
+
"homepage": "http://guzzlephp.org/",
|
254 |
"keywords": [
|
255 |
+
"Guzzle",
|
256 |
+
"stream"
|
|
|
257 |
]
|
258 |
},
|
259 |
{
|
260 |
+
"name": "guzzlehttp/ringphp",
|
261 |
+
"version": "1.1.0",
|
262 |
+
"version_normalized": "1.1.0.0",
|
263 |
"source": {
|
264 |
"type": "git",
|
265 |
+
"url": "https://github.com/guzzle/RingPHP.git",
|
266 |
+
"reference": "dbbb91d7f6c191e5e405e900e3102ac7f261bc0b"
|
267 |
},
|
268 |
"dist": {
|
269 |
"type": "zip",
|
270 |
+
"url": "https://api.github.com/repos/guzzle/RingPHP/zipball/dbbb91d7f6c191e5e405e900e3102ac7f261bc0b",
|
271 |
+
"reference": "dbbb91d7f6c191e5e405e900e3102ac7f261bc0b",
|
272 |
"shasum": ""
|
273 |
},
|
274 |
"require": {
|
275 |
+
"guzzlehttp/streams": "~3.0",
|
276 |
+
"php": ">=5.4.0",
|
277 |
+
"react/promise": "~2.0"
|
278 |
},
|
279 |
"require-dev": {
|
280 |
+
"ext-curl": "*",
|
281 |
+
"phpunit/phpunit": "~4.0"
|
|
|
|
|
282 |
},
|
283 |
"suggest": {
|
284 |
+
"ext-curl": "Guzzle will use specific adapters if cURL is present"
|
|
|
|
|
285 |
},
|
286 |
+
"time": "2015-05-20T03:37:09+00:00",
|
287 |
"type": "library",
|
288 |
"extra": {
|
289 |
"branch-alias": {
|
290 |
+
"dev-master": "1.1-dev"
|
291 |
}
|
292 |
},
|
293 |
"installation-source": "dist",
|
294 |
"autoload": {
|
295 |
+
"psr-4": {
|
296 |
+
"GuzzleHttp\\Ring\\": "src/"
|
297 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
},
|
299 |
"notification-url": "https://packagist.org/downloads/",
|
|
|
|
|
|
|
300 |
"license": [
|
301 |
"MIT"
|
302 |
],
|
303 |
"authors": [
|
304 |
{
|
305 |
+
"name": "Michael Dowling",
|
306 |
+
"email": "mtdowling@gmail.com",
|
307 |
+
"homepage": "https://github.com/mtdowling"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
}
|
309 |
],
|
310 |
+
"description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
},
|
312 |
{
|
313 |
+
"name": "guzzlehttp/guzzle",
|
314 |
+
"version": "5.3.1",
|
315 |
+
"version_normalized": "5.3.1.0",
|
316 |
"source": {
|
317 |
"type": "git",
|
318 |
+
"url": "https://github.com/guzzle/guzzle.git",
|
319 |
+
"reference": "70f1fa53b71c4647bf2762c09068a95f77e12fb8"
|
320 |
},
|
321 |
"dist": {
|
322 |
"type": "zip",
|
323 |
+
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/70f1fa53b71c4647bf2762c09068a95f77e12fb8",
|
324 |
+
"reference": "70f1fa53b71c4647bf2762c09068a95f77e12fb8",
|
325 |
"shasum": ""
|
326 |
},
|
327 |
"require": {
|
328 |
+
"guzzlehttp/ringphp": "^1.1",
|
329 |
"php": ">=5.4.0"
|
330 |
},
|
331 |
+
"require-dev": {
|
332 |
+
"ext-curl": "*",
|
333 |
+
"phpunit/phpunit": "^4.0"
|
|
|
|
|
|
|
334 |
},
|
335 |
+
"time": "2016-07-15T19:28:39+00:00",
|
336 |
+
"type": "library",
|
337 |
"installation-source": "dist",
|
338 |
"autoload": {
|
339 |
+
"psr-4": {
|
340 |
+
"GuzzleHttp\\": "src/"
|
341 |
+
}
|
|
|
|
|
|
|
342 |
},
|
343 |
"notification-url": "https://packagist.org/downloads/",
|
344 |
"license": [
|
346 |
],
|
347 |
"authors": [
|
348 |
{
|
349 |
+
"name": "Michael Dowling",
|
350 |
+
"email": "mtdowling@gmail.com",
|
351 |
+
"homepage": "https://github.com/mtdowling"
|
352 |
}
|
353 |
],
|
354 |
+
"description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients",
|
355 |
+
"homepage": "http://guzzlephp.org/",
|
356 |
+
"keywords": [
|
357 |
+
"client",
|
358 |
+
"curl",
|
359 |
+
"framework",
|
360 |
+
"http",
|
361 |
+
"http client",
|
362 |
+
"rest",
|
363 |
+
"web service"
|
364 |
+
]
|
365 |
},
|
366 |
{
|
367 |
+
"name": "firebase/php-jwt",
|
368 |
+
"version": "2.0.0",
|
369 |
+
"version_normalized": "2.0.0.0",
|
370 |
+
"target-dir": "Firebase/PHP-JWT",
|
371 |
"source": {
|
372 |
"type": "git",
|
373 |
+
"url": "https://github.com/firebase/php-jwt.git",
|
374 |
+
"reference": "ffcfd888ce1e4f2d70cac2dc9b7301038332fe57"
|
375 |
},
|
376 |
"dist": {
|
377 |
"type": "zip",
|
378 |
+
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/ffcfd888ce1e4f2d70cac2dc9b7301038332fe57",
|
379 |
+
"reference": "ffcfd888ce1e4f2d70cac2dc9b7301038332fe57",
|
380 |
"shasum": ""
|
381 |
},
|
382 |
"require": {
|
383 |
+
"php": ">=5.2.0"
|
|
|
|
|
|
|
384 |
},
|
385 |
+
"time": "2015-04-01T18:46:38+00:00",
|
386 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
387 |
"installation-source": "dist",
|
388 |
"autoload": {
|
389 |
+
"classmap": [
|
390 |
+
"Authentication/",
|
391 |
+
"Exceptions/"
|
392 |
+
]
|
393 |
},
|
394 |
"notification-url": "https://packagist.org/downloads/",
|
395 |
"license": [
|
396 |
+
"BSD-3-Clause"
|
397 |
],
|
398 |
"authors": [
|
399 |
{
|
400 |
+
"name": "Neuman Vong",
|
401 |
+
"email": "neuman+pear@twilio.com",
|
402 |
+
"role": "Developer"
|
403 |
+
},
|
404 |
+
{
|
405 |
+
"name": "Anant Narayanan",
|
406 |
+
"email": "anant@php.net",
|
407 |
+
"role": "Developer"
|
408 |
}
|
409 |
],
|
410 |
+
"description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
|
411 |
+
"homepage": "https://github.com/firebase/php-jwt"
|
|
|
|
|
|
|
|
|
412 |
},
|
413 |
{
|
414 |
+
"name": "google/auth",
|
415 |
+
"version": "v1.0",
|
416 |
+
"version_normalized": "1.0.0.0",
|
417 |
"source": {
|
418 |
"type": "git",
|
419 |
+
"url": "https://github.com/google/google-auth-library-php.git",
|
420 |
+
"reference": "db77bd2de0bcc40bf50ebe851e9eed332aeaa4df"
|
421 |
},
|
422 |
"dist": {
|
423 |
"type": "zip",
|
424 |
+
"url": "https://api.github.com/repos/google/google-auth-library-php/zipball/db77bd2de0bcc40bf50ebe851e9eed332aeaa4df",
|
425 |
+
"reference": "db77bd2de0bcc40bf50ebe851e9eed332aeaa4df",
|
426 |
"shasum": ""
|
427 |
},
|
428 |
"require": {
|
429 |
+
"firebase/php-jwt": "~2.0|~3.0|~4.0",
|
430 |
+
"guzzlehttp/guzzle": "~5.3.1|~6.0",
|
431 |
+
"guzzlehttp/psr7": "~1.2",
|
432 |
+
"php": ">=5.4",
|
433 |
+
"psr/cache": "^1.0",
|
434 |
+
"psr/http-message": "^1.0"
|
435 |
},
|
436 |
"require-dev": {
|
437 |
+
"friendsofphp/php-cs-fixer": "^1.11",
|
438 |
+
"phpunit/phpunit": "3.7.*"
|
|
|
|
|
|
|
439 |
},
|
440 |
+
"time": "2017-06-13T18:00:07+00:00",
|
441 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
442 |
"installation-source": "dist",
|
443 |
"autoload": {
|
444 |
+
"classmap": [
|
445 |
+
"src/"
|
446 |
+
],
|
447 |
"psr-4": {
|
448 |
+
"Google\\Auth\\": "src"
|
449 |
}
|
450 |
},
|
451 |
"notification-url": "https://packagist.org/downloads/",
|
452 |
"license": [
|
453 |
+
"Apache-2.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
],
|
455 |
+
"description": "Google Auth Library for PHP",
|
456 |
+
"homepage": "http://github.com/google/google-auth-library-php",
|
457 |
+
"keywords": [
|
458 |
+
"Authentication",
|
459 |
+
"google",
|
460 |
+
"oauth2"
|
461 |
+
]
|
462 |
},
|
463 |
{
|
464 |
+
"name": "google/apiclient-services",
|
465 |
+
"version": "v0.13",
|
466 |
+
"version_normalized": "0.13.0.0",
|
467 |
"source": {
|
468 |
"type": "git",
|
469 |
+
"url": "https://github.com/google/google-api-php-client-services.git",
|
470 |
+
"reference": "0805897f3435f9eea73ce21da9d55f51c69c1171"
|
471 |
},
|
472 |
"dist": {
|
473 |
"type": "zip",
|
474 |
+
"url": "https://api.github.com/repos/google/google-api-php-client-services/zipball/0805897f3435f9eea73ce21da9d55f51c69c1171",
|
475 |
+
"reference": "0805897f3435f9eea73ce21da9d55f51c69c1171",
|
476 |
"shasum": ""
|
477 |
},
|
478 |
"require": {
|
479 |
+
"php": ">=5.4"
|
|
|
480 |
},
|
481 |
"require-dev": {
|
482 |
+
"phpunit/phpunit": "~4.8"
|
|
|
483 |
},
|
484 |
+
"time": "2017-07-07T16:01:27+00:00",
|
485 |
"type": "library",
|
486 |
"installation-source": "dist",
|
487 |
"autoload": {
|
488 |
+
"psr-0": {
|
489 |
+
"Google_Service_": "src"
|
490 |
}
|
491 |
},
|
492 |
"notification-url": "https://packagist.org/downloads/",
|
493 |
"license": [
|
494 |
+
"Apache-2.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
],
|
496 |
+
"description": "Client library for Google APIs",
|
497 |
+
"homepage": "http://developers.google.com/api-client-library/php",
|
498 |
"keywords": [
|
499 |
+
"google"
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
]
|
501 |
},
|
502 |
{
|
503 |
+
"name": "psr/log",
|
504 |
+
"version": "1.0.0",
|
505 |
"version_normalized": "1.0.0.0",
|
506 |
"source": {
|
507 |
"type": "git",
|
508 |
+
"url": "https://github.com/php-fig/log.git",
|
509 |
+
"reference": "fe0936ee26643249e916849d48e3a51d5f5e278b"
|
510 |
},
|
511 |
"dist": {
|
512 |
"type": "zip",
|
513 |
+
"url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b",
|
514 |
+
"reference": "fe0936ee26643249e916849d48e3a51d5f5e278b",
|
515 |
"shasum": ""
|
516 |
},
|
517 |
+
"time": "2012-12-21T11:40:51+00:00",
|
|
|
|
|
|
|
518 |
"type": "library",
|
|
|
|
|
|
|
|
|
|
|
519 |
"installation-source": "dist",
|
520 |
"autoload": {
|
521 |
+
"psr-0": {
|
522 |
+
"Psr\\Log\\": ""
|
523 |
}
|
524 |
},
|
525 |
"notification-url": "https://packagist.org/downloads/",
|
532 |
"homepage": "http://www.php-fig.org/"
|
533 |
}
|
534 |
],
|
535 |
+
"description": "Common interface for logging libraries",
|
536 |
"keywords": [
|
537 |
+
"log",
|
|
|
538 |
"psr",
|
539 |
+
"psr-3"
|
|
|
|
|
540 |
]
|
541 |
},
|
542 |
{
|
543 |
+
"name": "monolog/monolog",
|
544 |
+
"version": "1.17.0",
|
545 |
+
"version_normalized": "1.17.0.0",
|
546 |
"source": {
|
547 |
"type": "git",
|
548 |
+
"url": "https://github.com/Seldaek/monolog.git",
|
549 |
+
"reference": "877ae631713cc961952df713ae785735b90df682"
|
550 |
},
|
551 |
"dist": {
|
552 |
"type": "zip",
|
553 |
+
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/877ae631713cc961952df713ae785735b90df682",
|
554 |
+
"reference": "877ae631713cc961952df713ae785735b90df682",
|
555 |
"shasum": ""
|
556 |
},
|
557 |
"require": {
|
558 |
+
"php": ">=5.3.0",
|
559 |
+
"psr/log": "~1.0"
|
560 |
},
|
561 |
"provide": {
|
562 |
+
"psr/log-implementation": "1.0.0"
|
563 |
},
|
564 |
"require-dev": {
|
565 |
+
"aws/aws-sdk-php": "^2.4.9",
|
566 |
+
"doctrine/couchdb": "~1.0@dev",
|
567 |
+
"graylog2/gelf-php": "~1.0",
|
568 |
+
"php-console/php-console": "^3.1.3",
|
569 |
+
"phpunit/phpunit": "~4.5",
|
570 |
+
"phpunit/phpunit-mock-objects": "2.3.0",
|
571 |
+
"raven/raven": "~0.11",
|
572 |
+
"ruflin/elastica": ">=0.90 <3.0",
|
573 |
+
"swiftmailer/swiftmailer": "~5.3",
|
574 |
+
"videlalvaro/php-amqplib": "~2.4"
|
575 |
},
|
576 |
+
"suggest": {
|
577 |
+
"aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB",
|
578 |
+
"doctrine/couchdb": "Allow sending log messages to a CouchDB server",
|
579 |
+
"ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)",
|
580 |
+
"ext-mongo": "Allow sending log messages to a MongoDB server",
|
581 |
+
"graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server",
|
582 |
+
"php-console/php-console": "Allow sending log messages to Google Chrome",
|
583 |
+
"raven/raven": "Allow sending log messages to a Sentry server",
|
584 |
+
"rollbar/rollbar": "Allow sending log messages to Rollbar",
|
585 |
+
"ruflin/elastica": "Allow sending log messages to an Elastic Search server",
|
586 |
+
"videlalvaro/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib"
|
587 |
+
},
|
588 |
+
"time": "2015-08-30T11:40:25+00:00",
|
589 |
"type": "library",
|
590 |
"extra": {
|
591 |
"branch-alias": {
|
592 |
+
"dev-master": "1.16.x-dev"
|
593 |
}
|
594 |
},
|
595 |
"installation-source": "dist",
|
596 |
"autoload": {
|
597 |
"psr-4": {
|
598 |
+
"Monolog\\": "src/Monolog"
|
599 |
+
}
|
|
|
|
|
|
|
600 |
},
|
601 |
"notification-url": "https://packagist.org/downloads/",
|
602 |
"license": [
|
604 |
],
|
605 |
"authors": [
|
606 |
{
|
607 |
+
"name": "Jordi Boggiano",
|
608 |
+
"email": "j.boggiano@seld.be",
|
609 |
+
"homepage": "http://seld.be"
|
610 |
}
|
611 |
],
|
612 |
+
"description": "Sends your logs to files, sockets, inboxes, databases and various web services",
|
613 |
+
"homepage": "http://github.com/Seldaek/monolog",
|
614 |
"keywords": [
|
615 |
+
"log",
|
616 |
+
"logging",
|
617 |
+
"psr-3"
|
|
|
618 |
]
|
619 |
},
|
620 |
{
|
621 |
+
"name": "phpseclib/phpseclib",
|
622 |
+
"version": "0.3.10",
|
623 |
+
"version_normalized": "0.3.10.0",
|
624 |
"source": {
|
625 |
"type": "git",
|
626 |
+
"url": "https://github.com/phpseclib/phpseclib.git",
|
627 |
+
"reference": "d15bba1edcc7c89e09cc74c5d961317a8b947bf4"
|
628 |
},
|
629 |
"dist": {
|
630 |
"type": "zip",
|
631 |
+
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/d15bba1edcc7c89e09cc74c5d961317a8b947bf4",
|
632 |
+
"reference": "d15bba1edcc7c89e09cc74c5d961317a8b947bf4",
|
633 |
"shasum": ""
|
634 |
},
|
635 |
"require": {
|
636 |
+
"php": ">=5.0.0"
|
637 |
},
|
638 |
+
"require-dev": {
|
639 |
+
"phing/phing": "~2.7",
|
640 |
+
"phpunit/phpunit": "~4.0",
|
641 |
+
"sami/sami": "~2.0",
|
642 |
+
"squizlabs/php_codesniffer": "~1.5"
|
643 |
+
},
|
644 |
+
"suggest": {
|
645 |
+
"ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.",
|
646 |
+
"ext-mcrypt": "Install the Mcrypt extension in order to speed up a wide variety of cryptographic operations.",
|
647 |
+
"pear-pear/PHP_Compat": "Install PHP_Compat to get phpseclib working on PHP < 4.3.3."
|
648 |
+
},
|
649 |
+
"time": "2015-01-28T21:50:33+00:00",
|
650 |
"type": "library",
|
651 |
"extra": {
|
652 |
"branch-alias": {
|
653 |
+
"dev-master": "0.3-dev"
|
654 |
}
|
655 |
},
|
656 |
"installation-source": "dist",
|
657 |
"autoload": {
|
658 |
+
"psr-0": {
|
659 |
+
"Crypt": "phpseclib/",
|
660 |
+
"File": "phpseclib/",
|
661 |
+
"Math": "phpseclib/",
|
662 |
+
"Net": "phpseclib/",
|
663 |
+
"System": "phpseclib/"
|
664 |
+
},
|
665 |
+
"files": [
|
666 |
+
"phpseclib/Crypt/Random.php"
|
667 |
+
]
|
668 |
},
|
669 |
"notification-url": "https://packagist.org/downloads/",
|
670 |
+
"include-path": [
|
671 |
+
"phpseclib/"
|
672 |
+
],
|
673 |
"license": [
|
674 |
"MIT"
|
675 |
],
|
676 |
"authors": [
|
677 |
{
|
678 |
+
"name": "Jim Wigginton",
|
679 |
+
"email": "terrafrost@php.net",
|
680 |
+
"role": "Lead Developer"
|
681 |
+
},
|
682 |
+
{
|
683 |
+
"name": "Patrick Monnerat",
|
684 |
+
"email": "pm@datasphere.ch",
|
685 |
+
"role": "Developer"
|
686 |
+
},
|
687 |
+
{
|
688 |
+
"name": "Andreas Fischer",
|
689 |
+
"email": "bantu@phpbb.com",
|
690 |
+
"role": "Developer"
|
691 |
+
},
|
692 |
+
{
|
693 |
+
"name": "Hans-Jürgen Petrich",
|
694 |
+
"email": "petrich@tronic-media.com",
|
695 |
+
"role": "Developer"
|
696 |
}
|
697 |
],
|
698 |
+
"description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.",
|
699 |
+
"homepage": "http://phpseclib.sourceforge.net",
|
700 |
"keywords": [
|
701 |
+
"BigInteger",
|
702 |
+
"aes",
|
703 |
+
"asn.1",
|
704 |
+
"asn1",
|
705 |
+
"blowfish",
|
706 |
+
"crypto",
|
707 |
+
"cryptography",
|
708 |
+
"encryption",
|
709 |
+
"rsa",
|
710 |
+
"security",
|
711 |
+
"sftp",
|
712 |
+
"signature",
|
713 |
+
"signing",
|
714 |
+
"ssh",
|
715 |
+
"twofish",
|
716 |
+
"x.509",
|
717 |
+
"x509"
|
718 |
]
|
719 |
}
|
720 |
]
|
google/vendor/firebase/php-jwt/Firebase/PHP-JWT/tests/JWTTest.php
DELETED
@@ -1,150 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class JWTTest extends PHPUnit_Framework_TestCase
|
4 |
-
{
|
5 |
-
public function testEncodeDecode()
|
6 |
-
{
|
7 |
-
$msg = JWT::encode('abc', 'my_key');
|
8 |
-
$this->assertEquals(JWT::decode($msg, 'my_key', array('HS256')), 'abc');
|
9 |
-
}
|
10 |
-
|
11 |
-
public function testDecodeFromPython()
|
12 |
-
{
|
13 |
-
$msg = 'eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.Iio6aHR0cDovL2FwcGxpY2F0aW9uL2NsaWNreT9ibGFoPTEuMjMmZi5vbz00NTYgQUMwMDAgMTIzIg.E_U8X2YpMT5K1cEiT_3-IvBYfrdIFIeVYeOqre_Z5Cg';
|
14 |
-
$this->assertEquals(
|
15 |
-
JWT::decode($msg, 'my_key', array('HS256')),
|
16 |
-
'*:http://application/clicky?blah=1.23&f.oo=456 AC000 123'
|
17 |
-
);
|
18 |
-
}
|
19 |
-
|
20 |
-
public function testUrlSafeCharacters()
|
21 |
-
{
|
22 |
-
$encoded = JWT::encode('f?', 'a');
|
23 |
-
$this->assertEquals('f?', JWT::decode($encoded, 'a', array('HS256')));
|
24 |
-
}
|
25 |
-
|
26 |
-
public function testMalformedUtf8StringsFail()
|
27 |
-
{
|
28 |
-
$this->setExpectedException('DomainException');
|
29 |
-
JWT::encode(pack('c', 128), 'a');
|
30 |
-
}
|
31 |
-
|
32 |
-
public function testMalformedJsonThrowsException()
|
33 |
-
{
|
34 |
-
$this->setExpectedException('DomainException');
|
35 |
-
JWT::jsonDecode('this is not valid JSON string');
|
36 |
-
}
|
37 |
-
|
38 |
-
public function testExpiredToken()
|
39 |
-
{
|
40 |
-
$this->setExpectedException('ExpiredException');
|
41 |
-
$payload = array(
|
42 |
-
"message" => "abc",
|
43 |
-
"exp" => time() - 20); // time in the past
|
44 |
-
$encoded = JWT::encode($payload, 'my_key');
|
45 |
-
JWT::decode($encoded, 'my_key', array('HS256'));
|
46 |
-
}
|
47 |
-
|
48 |
-
public function testBeforeValidTokenWithNbf()
|
49 |
-
{
|
50 |
-
$this->setExpectedException('BeforeValidException');
|
51 |
-
$payload = array(
|
52 |
-
"message" => "abc",
|
53 |
-
"nbf" => time() + 20); // time in the future
|
54 |
-
$encoded = JWT::encode($payload, 'my_key');
|
55 |
-
JWT::decode($encoded, 'my_key', array('HS256'));
|
56 |
-
}
|
57 |
-
|
58 |
-
public function testBeforeValidTokenWithIat()
|
59 |
-
{
|
60 |
-
$this->setExpectedException('BeforeValidException');
|
61 |
-
$payload = array(
|
62 |
-
"message" => "abc",
|
63 |
-
"iat" => time() + 20); // time in the future
|
64 |
-
$encoded = JWT::encode($payload, 'my_key');
|
65 |
-
JWT::decode($encoded, 'my_key', array('HS256'));
|
66 |
-
}
|
67 |
-
|
68 |
-
public function testValidToken()
|
69 |
-
{
|
70 |
-
$payload = array(
|
71 |
-
"message" => "abc",
|
72 |
-
"exp" => time() + 20); // time in the future
|
73 |
-
$encoded = JWT::encode($payload, 'my_key');
|
74 |
-
$decoded = JWT::decode($encoded, 'my_key', array('HS256'));
|
75 |
-
$this->assertEquals($decoded->message, 'abc');
|
76 |
-
}
|
77 |
-
|
78 |
-
public function testValidTokenWithList()
|
79 |
-
{
|
80 |
-
$payload = array(
|
81 |
-
"message" => "abc",
|
82 |
-
"exp" => time() + 20); // time in the future
|
83 |
-
$encoded = JWT::encode($payload, 'my_key');
|
84 |
-
$decoded = JWT::decode($encoded, 'my_key', array('HS256', 'HS512'));
|
85 |
-
$this->assertEquals($decoded->message, 'abc');
|
86 |
-
}
|
87 |
-
|
88 |
-
public function testValidTokenWithNbf()
|
89 |
-
{
|
90 |
-
$payload = array(
|
91 |
-
"message" => "abc",
|
92 |
-
"iat" => time(),
|
93 |
-
"exp" => time() + 20, // time in the future
|
94 |
-
"nbf" => time() - 20);
|
95 |
-
$encoded = JWT::encode($payload, 'my_key');
|
96 |
-
$decoded = JWT::decode($encoded, 'my_key', array('HS256'));
|
97 |
-
$this->assertEquals($decoded->message, 'abc');
|
98 |
-
}
|
99 |
-
|
100 |
-
public function testInvalidToken()
|
101 |
-
{
|
102 |
-
$payload = array(
|
103 |
-
"message" => "abc",
|
104 |
-
"exp" => time() + 20); // time in the future
|
105 |
-
$encoded = JWT::encode($payload, 'my_key');
|
106 |
-
$this->setExpectedException('SignatureInvalidException');
|
107 |
-
$decoded = JWT::decode($encoded, 'my_key2', array('HS256'));
|
108 |
-
}
|
109 |
-
|
110 |
-
public function testRSEncodeDecode()
|
111 |
-
{
|
112 |
-
$privKey = openssl_pkey_new(array('digest_alg' => 'sha256',
|
113 |
-
'private_key_bits' => 1024,
|
114 |
-
'private_key_type' => OPENSSL_KEYTYPE_RSA));
|
115 |
-
$msg = JWT::encode('abc', $privKey, 'RS256');
|
116 |
-
$pubKey = openssl_pkey_get_details($privKey);
|
117 |
-
$pubKey = $pubKey['key'];
|
118 |
-
$decoded = JWT::decode($msg, $pubKey, array('RS256'));
|
119 |
-
$this->assertEquals($decoded, 'abc');
|
120 |
-
}
|
121 |
-
|
122 |
-
public function testKIDChooser()
|
123 |
-
{
|
124 |
-
$keys = array('1' => 'my_key', '2' => 'my_key2');
|
125 |
-
$msg = JWT::encode('abc', $keys['1'], 'HS256', '1');
|
126 |
-
$decoded = JWT::decode($msg, $keys, array('HS256'));
|
127 |
-
$this->assertEquals($decoded, 'abc');
|
128 |
-
}
|
129 |
-
|
130 |
-
public function testNoneAlgorithm()
|
131 |
-
{
|
132 |
-
$msg = JWT::encode('abc', 'my_key');
|
133 |
-
$this->setExpectedException('DomainException');
|
134 |
-
JWT::decode($msg, 'my_key', array('none'));
|
135 |
-
}
|
136 |
-
|
137 |
-
public function testIncorrectAlgorithm()
|
138 |
-
{
|
139 |
-
$msg = JWT::encode('abc', 'my_key');
|
140 |
-
$this->setExpectedException('DomainException');
|
141 |
-
JWT::decode($msg, 'my_key', array('RS256'));
|
142 |
-
}
|
143 |
-
|
144 |
-
public function testMissingAlgorithm()
|
145 |
-
{
|
146 |
-
$msg = JWT::encode('abc', 'my_key');
|
147 |
-
$this->setExpectedException('DomainException');
|
148 |
-
JWT::decode($msg, 'my_key');
|
149 |
-
}
|
150 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/firebase/php-jwt/Firebase/PHP-JWT/tests/autoload.php.dist
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// if the library is the project, try to use the composer's autoload for the tests
|
4 |
-
$composerAutoload = __DIR__ . '/../vendor/autoload.php';
|
5 |
-
|
6 |
-
if (is_file($composerAutoload)) {
|
7 |
-
include $composerAutoload;
|
8 |
-
} else {
|
9 |
-
die('Unable to find autoload.php file, please use composer to load dependencies:
|
10 |
-
|
11 |
-
wget http://getcomposer.org/composer.phar
|
12 |
-
php composer.phar install
|
13 |
-
|
14 |
-
Visit http://getcomposer.org/ for more information.
|
15 |
-
|
16 |
-
');
|
17 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/firebase/php-jwt/Firebase/PHP-JWT/tests/bootstrap.php
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if (file_exists($file = __DIR__ . '/autoload.php')) {
|
4 |
-
require_once $file;
|
5 |
-
} elseif (file_exists($file = __DIR__ . '/autoload.php.dist')) {
|
6 |
-
require_once $file;
|
7 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl.php
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Service definition for Acceleratedmobilepageurl (v1).
|
20 |
-
*
|
21 |
-
* <p>
|
22 |
-
* Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list
|
23 |
-
* of public URL(s).</p>
|
24 |
-
*
|
25 |
-
* <p>
|
26 |
-
* For more information about this service, see the API
|
27 |
-
* <a href="https://developers.google.com/amp/cache/" target="_blank">Documentation</a>
|
28 |
-
* </p>
|
29 |
-
*
|
30 |
-
* @author Google, Inc.
|
31 |
-
*/
|
32 |
-
class Google_Service_Acceleratedmobilepageurl extends Google_Service
|
33 |
-
{
|
34 |
-
|
35 |
-
|
36 |
-
public $ampUrls;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Constructs the internal representation of the Acceleratedmobilepageurl
|
40 |
-
* service.
|
41 |
-
*
|
42 |
-
* @param Google_Client $client
|
43 |
-
*/
|
44 |
-
public function __construct(Google_Client $client)
|
45 |
-
{
|
46 |
-
parent::__construct($client);
|
47 |
-
$this->rootUrl = 'https://acceleratedmobilepageurl.googleapis.com/';
|
48 |
-
$this->servicePath = '';
|
49 |
-
$this->version = 'v1';
|
50 |
-
$this->serviceName = 'acceleratedmobilepageurl';
|
51 |
-
|
52 |
-
$this->ampUrls = new Google_Service_Acceleratedmobilepageurl_Resource_AmpUrls(
|
53 |
-
$this,
|
54 |
-
$this->serviceName,
|
55 |
-
'ampUrls',
|
56 |
-
array(
|
57 |
-
'methods' => array(
|
58 |
-
'batchGet' => array(
|
59 |
-
'path' => 'v1/ampUrls:batchGet',
|
60 |
-
'httpMethod' => 'POST',
|
61 |
-
'parameters' => array(),
|
62 |
-
),
|
63 |
-
)
|
64 |
-
)
|
65 |
-
);
|
66 |
-
}
|
67 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrl.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_Acceleratedmobilepageurl_AmpUrl extends Google_Model
|
19 |
-
{
|
20 |
-
public $ampUrl;
|
21 |
-
public $cdnAmpUrl;
|
22 |
-
public $originalUrl;
|
23 |
-
|
24 |
-
public function setAmpUrl($ampUrl)
|
25 |
-
{
|
26 |
-
$this->ampUrl = $ampUrl;
|
27 |
-
}
|
28 |
-
public function getAmpUrl()
|
29 |
-
{
|
30 |
-
return $this->ampUrl;
|
31 |
-
}
|
32 |
-
public function setCdnAmpUrl($cdnAmpUrl)
|
33 |
-
{
|
34 |
-
$this->cdnAmpUrl = $cdnAmpUrl;
|
35 |
-
}
|
36 |
-
public function getCdnAmpUrl()
|
37 |
-
{
|
38 |
-
return $this->cdnAmpUrl;
|
39 |
-
}
|
40 |
-
public function setOriginalUrl($originalUrl)
|
41 |
-
{
|
42 |
-
$this->originalUrl = $originalUrl;
|
43 |
-
}
|
44 |
-
public function getOriginalUrl()
|
45 |
-
{
|
46 |
-
return $this->originalUrl;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/AmpUrlError.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_Acceleratedmobilepageurl_AmpUrlError extends Google_Model
|
19 |
-
{
|
20 |
-
public $errorCode;
|
21 |
-
public $errorMessage;
|
22 |
-
public $originalUrl;
|
23 |
-
|
24 |
-
public function setErrorCode($errorCode)
|
25 |
-
{
|
26 |
-
$this->errorCode = $errorCode;
|
27 |
-
}
|
28 |
-
public function getErrorCode()
|
29 |
-
{
|
30 |
-
return $this->errorCode;
|
31 |
-
}
|
32 |
-
public function setErrorMessage($errorMessage)
|
33 |
-
{
|
34 |
-
$this->errorMessage = $errorMessage;
|
35 |
-
}
|
36 |
-
public function getErrorMessage()
|
37 |
-
{
|
38 |
-
return $this->errorMessage;
|
39 |
-
}
|
40 |
-
public function setOriginalUrl($originalUrl)
|
41 |
-
{
|
42 |
-
$this->originalUrl = $originalUrl;
|
43 |
-
}
|
44 |
-
public function getOriginalUrl()
|
45 |
-
{
|
46 |
-
return $this->originalUrl;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsRequest.php
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'urls';
|
21 |
-
public $lookupStrategy;
|
22 |
-
public $urls;
|
23 |
-
|
24 |
-
public function setLookupStrategy($lookupStrategy)
|
25 |
-
{
|
26 |
-
$this->lookupStrategy = $lookupStrategy;
|
27 |
-
}
|
28 |
-
public function getLookupStrategy()
|
29 |
-
{
|
30 |
-
return $this->lookupStrategy;
|
31 |
-
}
|
32 |
-
public function setUrls($urls)
|
33 |
-
{
|
34 |
-
$this->urls = $urls;
|
35 |
-
}
|
36 |
-
public function getUrls()
|
37 |
-
{
|
38 |
-
return $this->urls;
|
39 |
-
}
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/BatchGetAmpUrlsResponse.php
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'urlErrors';
|
21 |
-
protected $ampUrlsType = 'Google_Service_Acceleratedmobilepageurl_AmpUrl';
|
22 |
-
protected $ampUrlsDataType = 'array';
|
23 |
-
protected $urlErrorsType = 'Google_Service_Acceleratedmobilepageurl_AmpUrlError';
|
24 |
-
protected $urlErrorsDataType = 'array';
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_Acceleratedmobilepageurl_AmpUrl
|
28 |
-
*/
|
29 |
-
public function setAmpUrls($ampUrls)
|
30 |
-
{
|
31 |
-
$this->ampUrls = $ampUrls;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_Acceleratedmobilepageurl_AmpUrl
|
35 |
-
*/
|
36 |
-
public function getAmpUrls()
|
37 |
-
{
|
38 |
-
return $this->ampUrls;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @param Google_Service_Acceleratedmobilepageurl_AmpUrlError
|
42 |
-
*/
|
43 |
-
public function setUrlErrors($urlErrors)
|
44 |
-
{
|
45 |
-
$this->urlErrors = $urlErrors;
|
46 |
-
}
|
47 |
-
/**
|
48 |
-
* @return Google_Service_Acceleratedmobilepageurl_AmpUrlError
|
49 |
-
*/
|
50 |
-
public function getUrlErrors()
|
51 |
-
{
|
52 |
-
return $this->urlErrors;
|
53 |
-
}
|
54 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/Acceleratedmobilepageurl/Resource/AmpUrls.php
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "ampUrls" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $acceleratedmobilepageurlService = new Google_Service_Acceleratedmobilepageurl(...);
|
23 |
-
* $ampUrls = $acceleratedmobilepageurlService->ampUrls;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_Acceleratedmobilepageurl_Resource_AmpUrls extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Returns AMP URL(s) and equivalent [AMP Cache URL(s)](/amp/cache/overview#amp-
|
30 |
-
* cache-url-format). (ampUrls.batchGet)
|
31 |
-
*
|
32 |
-
* @param Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsRequest $postBody
|
33 |
-
* @param array $optParams Optional parameters.
|
34 |
-
* @return Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsResponse
|
35 |
-
*/
|
36 |
-
public function batchGet(Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsRequest $postBody, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('postBody' => $postBody);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('batchGet', array($params), "Google_Service_Acceleratedmobilepageurl_BatchGetAmpUrlsResponse");
|
41 |
-
}
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer.php
DELETED
@@ -1,679 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Service definition for AdExchangeBuyer (v1.4).
|
20 |
-
*
|
21 |
-
* <p>
|
22 |
-
* Accesses your bidding-account information, submits creatives for validation,
|
23 |
-
* finds available direct deals, and retrieves performance reports.</p>
|
24 |
-
*
|
25 |
-
* <p>
|
26 |
-
* For more information about this service, see the API
|
27 |
-
* <a href="https://developers.google.com/ad-exchange/buyer-rest" target="_blank">Documentation</a>
|
28 |
-
* </p>
|
29 |
-
*
|
30 |
-
* @author Google, Inc.
|
31 |
-
*/
|
32 |
-
class Google_Service_AdExchangeBuyer extends Google_Service
|
33 |
-
{
|
34 |
-
/** Manage your Ad Exchange buyer account configuration. */
|
35 |
-
const ADEXCHANGE_BUYER =
|
36 |
-
"https://www.googleapis.com/auth/adexchange.buyer";
|
37 |
-
|
38 |
-
public $accounts;
|
39 |
-
public $billingInfo;
|
40 |
-
public $budget;
|
41 |
-
public $creatives;
|
42 |
-
public $marketplacedeals;
|
43 |
-
public $marketplacenotes;
|
44 |
-
public $marketplaceprivateauction;
|
45 |
-
public $performanceReport;
|
46 |
-
public $pretargetingConfig;
|
47 |
-
public $products;
|
48 |
-
public $proposals;
|
49 |
-
public $pubprofiles;
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Constructs the internal representation of the AdExchangeBuyer service.
|
53 |
-
*
|
54 |
-
* @param Google_Client $client
|
55 |
-
*/
|
56 |
-
public function __construct(Google_Client $client)
|
57 |
-
{
|
58 |
-
parent::__construct($client);
|
59 |
-
$this->rootUrl = 'https://www.googleapis.com/';
|
60 |
-
$this->servicePath = 'adexchangebuyer/v1.4/';
|
61 |
-
$this->version = 'v1.4';
|
62 |
-
$this->serviceName = 'adexchangebuyer';
|
63 |
-
|
64 |
-
$this->accounts = new Google_Service_AdExchangeBuyer_Resource_Accounts(
|
65 |
-
$this,
|
66 |
-
$this->serviceName,
|
67 |
-
'accounts',
|
68 |
-
array(
|
69 |
-
'methods' => array(
|
70 |
-
'get' => array(
|
71 |
-
'path' => 'accounts/{id}',
|
72 |
-
'httpMethod' => 'GET',
|
73 |
-
'parameters' => array(
|
74 |
-
'id' => array(
|
75 |
-
'location' => 'path',
|
76 |
-
'type' => 'integer',
|
77 |
-
'required' => true,
|
78 |
-
),
|
79 |
-
),
|
80 |
-
),'list' => array(
|
81 |
-
'path' => 'accounts',
|
82 |
-
'httpMethod' => 'GET',
|
83 |
-
'parameters' => array(),
|
84 |
-
),'patch' => array(
|
85 |
-
'path' => 'accounts/{id}',
|
86 |
-
'httpMethod' => 'PATCH',
|
87 |
-
'parameters' => array(
|
88 |
-
'id' => array(
|
89 |
-
'location' => 'path',
|
90 |
-
'type' => 'integer',
|
91 |
-
'required' => true,
|
92 |
-
),
|
93 |
-
'confirmUnsafeAccountChange' => array(
|
94 |
-
'location' => 'query',
|
95 |
-
'type' => 'boolean',
|
96 |
-
),
|
97 |
-
),
|
98 |
-
),'update' => array(
|
99 |
-
'path' => 'accounts/{id}',
|
100 |
-
'httpMethod' => 'PUT',
|
101 |
-
'parameters' => array(
|
102 |
-
'id' => array(
|
103 |
-
'location' => 'path',
|
104 |
-
'type' => 'integer',
|
105 |
-
'required' => true,
|
106 |
-
),
|
107 |
-
'confirmUnsafeAccountChange' => array(
|
108 |
-
'location' => 'query',
|
109 |
-
'type' => 'boolean',
|
110 |
-
),
|
111 |
-
),
|
112 |
-
),
|
113 |
-
)
|
114 |
-
)
|
115 |
-
);
|
116 |
-
$this->billingInfo = new Google_Service_AdExchangeBuyer_Resource_BillingInfo(
|
117 |
-
$this,
|
118 |
-
$this->serviceName,
|
119 |
-
'billingInfo',
|
120 |
-
array(
|
121 |
-
'methods' => array(
|
122 |
-
'get' => array(
|
123 |
-
'path' => 'billinginfo/{accountId}',
|
124 |
-
'httpMethod' => 'GET',
|
125 |
-
'parameters' => array(
|
126 |
-
'accountId' => array(
|
127 |
-
'location' => 'path',
|
128 |
-
'type' => 'integer',
|
129 |
-
'required' => true,
|
130 |
-
),
|
131 |
-
),
|
132 |
-
),'list' => array(
|
133 |
-
'path' => 'billinginfo',
|
134 |
-
'httpMethod' => 'GET',
|
135 |
-
'parameters' => array(),
|
136 |
-
),
|
137 |
-
)
|
138 |
-
)
|
139 |
-
);
|
140 |
-
$this->budget = new Google_Service_AdExchangeBuyer_Resource_Budget(
|
141 |
-
$this,
|
142 |
-
$this->serviceName,
|
143 |
-
'budget',
|
144 |
-
array(
|
145 |
-
'methods' => array(
|
146 |
-
'get' => array(
|
147 |
-
'path' => 'billinginfo/{accountId}/{billingId}',
|
148 |
-
'httpMethod' => 'GET',
|
149 |
-
'parameters' => array(
|
150 |
-
'accountId' => array(
|
151 |
-
'location' => 'path',
|
152 |
-
'type' => 'string',
|
153 |
-
'required' => true,
|
154 |
-
),
|
155 |
-
'billingId' => array(
|
156 |
-
'location' => 'path',
|
157 |
-
'type' => 'string',
|
158 |
-
'required' => true,
|
159 |
-
),
|
160 |
-
),
|
161 |
-
),'patch' => array(
|
162 |
-
'path' => 'billinginfo/{accountId}/{billingId}',
|
163 |
-
'httpMethod' => 'PATCH',
|
164 |
-
'parameters' => array(
|
165 |
-
'accountId' => array(
|
166 |
-
'location' => 'path',
|
167 |
-
'type' => 'string',
|
168 |
-
'required' => true,
|
169 |
-
),
|
170 |
-
'billingId' => array(
|
171 |
-
'location' => 'path',
|
172 |
-
'type' => 'string',
|
173 |
-
'required' => true,
|
174 |
-
),
|
175 |
-
),
|
176 |
-
),'update' => array(
|
177 |
-
'path' => 'billinginfo/{accountId}/{billingId}',
|
178 |
-
'httpMethod' => 'PUT',
|
179 |
-
'parameters' => array(
|
180 |
-
'accountId' => array(
|
181 |
-
'location' => 'path',
|
182 |
-
'type' => 'string',
|
183 |
-
'required' => true,
|
184 |
-
),
|
185 |
-
'billingId' => array(
|
186 |
-
'location' => 'path',
|
187 |
-
'type' => 'string',
|
188 |
-
'required' => true,
|
189 |
-
),
|
190 |
-
),
|
191 |
-
),
|
192 |
-
)
|
193 |
-
)
|
194 |
-
);
|
195 |
-
$this->creatives = new Google_Service_AdExchangeBuyer_Resource_Creatives(
|
196 |
-
$this,
|
197 |
-
$this->serviceName,
|
198 |
-
'creatives',
|
199 |
-
array(
|
200 |
-
'methods' => array(
|
201 |
-
'addDeal' => array(
|
202 |
-
'path' => 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}',
|
203 |
-
'httpMethod' => 'POST',
|
204 |
-
'parameters' => array(
|
205 |
-
'accountId' => array(
|
206 |
-
'location' => 'path',
|
207 |
-
'type' => 'integer',
|
208 |
-
'required' => true,
|
209 |
-
),
|
210 |
-
'buyerCreativeId' => array(
|
211 |
-
'location' => 'path',
|
212 |
-
'type' => 'string',
|
213 |
-
'required' => true,
|
214 |
-
),
|
215 |
-
'dealId' => array(
|
216 |
-
'location' => 'path',
|
217 |
-
'type' => 'string',
|
218 |
-
'required' => true,
|
219 |
-
),
|
220 |
-
),
|
221 |
-
),'get' => array(
|
222 |
-
'path' => 'creatives/{accountId}/{buyerCreativeId}',
|
223 |
-
'httpMethod' => 'GET',
|
224 |
-
'parameters' => array(
|
225 |
-
'accountId' => array(
|
226 |
-
'location' => 'path',
|
227 |
-
'type' => 'integer',
|
228 |
-
'required' => true,
|
229 |
-
),
|
230 |
-
'buyerCreativeId' => array(
|
231 |
-
'location' => 'path',
|
232 |
-
'type' => 'string',
|
233 |
-
'required' => true,
|
234 |
-
),
|
235 |
-
),
|
236 |
-
),'insert' => array(
|
237 |
-
'path' => 'creatives',
|
238 |
-
'httpMethod' => 'POST',
|
239 |
-
'parameters' => array(),
|
240 |
-
),'list' => array(
|
241 |
-
'path' => 'creatives',
|
242 |
-
'httpMethod' => 'GET',
|
243 |
-
'parameters' => array(
|
244 |
-
'accountId' => array(
|
245 |
-
'location' => 'query',
|
246 |
-
'type' => 'integer',
|
247 |
-
'repeated' => true,
|
248 |
-
),
|
249 |
-
'buyerCreativeId' => array(
|
250 |
-
'location' => 'query',
|
251 |
-
'type' => 'string',
|
252 |
-
'repeated' => true,
|
253 |
-
),
|
254 |
-
'dealsStatusFilter' => array(
|
255 |
-
'location' => 'query',
|
256 |
-
'type' => 'string',
|
257 |
-
),
|
258 |
-
'maxResults' => array(
|
259 |
-
'location' => 'query',
|
260 |
-
'type' => 'integer',
|
261 |
-
),
|
262 |
-
'openAuctionStatusFilter' => array(
|
263 |
-
'location' => 'query',
|
264 |
-
'type' => 'string',
|
265 |
-
),
|
266 |
-
'pageToken' => array(
|
267 |
-
'location' => 'query',
|
268 |
-
'type' => 'string',
|
269 |
-
),
|
270 |
-
),
|
271 |
-
),'listDeals' => array(
|
272 |
-
'path' => 'creatives/{accountId}/{buyerCreativeId}/listDeals',
|
273 |
-
'httpMethod' => 'GET',
|
274 |
-
'parameters' => array(
|
275 |
-
'accountId' => array(
|
276 |
-
'location' => 'path',
|
277 |
-
'type' => 'integer',
|
278 |
-
'required' => true,
|
279 |
-
),
|
280 |
-
'buyerCreativeId' => array(
|
281 |
-
'location' => 'path',
|
282 |
-
'type' => 'string',
|
283 |
-
'required' => true,
|
284 |
-
),
|
285 |
-
),
|
286 |
-
),'removeDeal' => array(
|
287 |
-
'path' => 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}',
|
288 |
-
'httpMethod' => 'POST',
|
289 |
-
'parameters' => array(
|
290 |
-
'accountId' => array(
|
291 |
-
'location' => 'path',
|
292 |
-
'type' => 'integer',
|
293 |
-
'required' => true,
|
294 |
-
),
|
295 |
-
'buyerCreativeId' => array(
|
296 |
-
'location' => 'path',
|
297 |
-
'type' => 'string',
|
298 |
-
'required' => true,
|
299 |
-
),
|
300 |
-
'dealId' => array(
|
301 |
-
'location' => 'path',
|
302 |
-
'type' => 'string',
|
303 |
-
'required' => true,
|
304 |
-
),
|
305 |
-
),
|
306 |
-
),
|
307 |
-
)
|
308 |
-
)
|
309 |
-
);
|
310 |
-
$this->marketplacedeals = new Google_Service_AdExchangeBuyer_Resource_Marketplacedeals(
|
311 |
-
$this,
|
312 |
-
$this->serviceName,
|
313 |
-
'marketplacedeals',
|
314 |
-
array(
|
315 |
-
'methods' => array(
|
316 |
-
'delete' => array(
|
317 |
-
'path' => 'proposals/{proposalId}/deals/delete',
|
318 |
-
'httpMethod' => 'POST',
|
319 |
-
'parameters' => array(
|
320 |
-
'proposalId' => array(
|
321 |
-
'location' => 'path',
|
322 |
-
'type' => 'string',
|
323 |
-
'required' => true,
|
324 |
-
),
|
325 |
-
),
|
326 |
-
),'insert' => array(
|
327 |
-
'path' => 'proposals/{proposalId}/deals/insert',
|
328 |
-
'httpMethod' => 'POST',
|
329 |
-
'parameters' => array(
|
330 |
-
'proposalId' => array(
|
331 |
-
'location' => 'path',
|
332 |
-
'type' => 'string',
|
333 |
-
'required' => true,
|
334 |
-
),
|
335 |
-
),
|
336 |
-
),'list' => array(
|
337 |
-
'path' => 'proposals/{proposalId}/deals',
|
338 |
-
'httpMethod' => 'GET',
|
339 |
-
'parameters' => array(
|
340 |
-
'proposalId' => array(
|
341 |
-
'location' => 'path',
|
342 |
-
'type' => 'string',
|
343 |
-
'required' => true,
|
344 |
-
),
|
345 |
-
'pqlQuery' => array(
|
346 |
-
'location' => 'query',
|
347 |
-
'type' => 'string',
|
348 |
-
),
|
349 |
-
),
|
350 |
-
),'update' => array(
|
351 |
-
'path' => 'proposals/{proposalId}/deals/update',
|
352 |
-
'httpMethod' => 'POST',
|
353 |
-
'parameters' => array(
|
354 |
-
'proposalId' => array(
|
355 |
-
'location' => 'path',
|
356 |
-
'type' => 'string',
|
357 |
-
'required' => true,
|
358 |
-
),
|
359 |
-
),
|
360 |
-
),
|
361 |
-
)
|
362 |
-
)
|
363 |
-
);
|
364 |
-
$this->marketplacenotes = new Google_Service_AdExchangeBuyer_Resource_Marketplacenotes(
|
365 |
-
$this,
|
366 |
-
$this->serviceName,
|
367 |
-
'marketplacenotes',
|
368 |
-
array(
|
369 |
-
'methods' => array(
|
370 |
-
'insert' => array(
|
371 |
-
'path' => 'proposals/{proposalId}/notes/insert',
|
372 |
-
'httpMethod' => 'POST',
|
373 |
-
'parameters' => array(
|
374 |
-
'proposalId' => array(
|
375 |
-
'location' => 'path',
|
376 |
-
'type' => 'string',
|
377 |
-
'required' => true,
|
378 |
-
),
|
379 |
-
),
|
380 |
-
),'list' => array(
|
381 |
-
'path' => 'proposals/{proposalId}/notes',
|
382 |
-
'httpMethod' => 'GET',
|
383 |
-
'parameters' => array(
|
384 |
-
'proposalId' => array(
|
385 |
-
'location' => 'path',
|
386 |
-
'type' => 'string',
|
387 |
-
'required' => true,
|
388 |
-
),
|
389 |
-
'pqlQuery' => array(
|
390 |
-
'location' => 'query',
|
391 |
-
'type' => 'string',
|
392 |
-
),
|
393 |
-
),
|
394 |
-
),
|
395 |
-
)
|
396 |
-
)
|
397 |
-
);
|
398 |
-
$this->marketplaceprivateauction = new Google_Service_AdExchangeBuyer_Resource_Marketplaceprivateauction(
|
399 |
-
$this,
|
400 |
-
$this->serviceName,
|
401 |
-
'marketplaceprivateauction',
|
402 |
-
array(
|
403 |
-
'methods' => array(
|
404 |
-
'updateproposal' => array(
|
405 |
-
'path' => 'privateauction/{privateAuctionId}/updateproposal',
|
406 |
-
'httpMethod' => 'POST',
|
407 |
-
'parameters' => array(
|
408 |
-
'privateAuctionId' => array(
|
409 |
-
'location' => 'path',
|
410 |
-
'type' => 'string',
|
411 |
-
'required' => true,
|
412 |
-
),
|
413 |
-
),
|
414 |
-
),
|
415 |
-
)
|
416 |
-
)
|
417 |
-
);
|
418 |
-
$this->performanceReport = new Google_Service_AdExchangeBuyer_Resource_PerformanceReport(
|
419 |
-
$this,
|
420 |
-
$this->serviceName,
|
421 |
-
'performanceReport',
|
422 |
-
array(
|
423 |
-
'methods' => array(
|
424 |
-
'list' => array(
|
425 |
-
'path' => 'performancereport',
|
426 |
-
'httpMethod' => 'GET',
|
427 |
-
'parameters' => array(
|
428 |
-
'accountId' => array(
|
429 |
-
'location' => 'query',
|
430 |
-
'type' => 'string',
|
431 |
-
'required' => true,
|
432 |
-
),
|
433 |
-
'endDateTime' => array(
|
434 |
-
'location' => 'query',
|
435 |
-
'type' => 'string',
|
436 |
-
'required' => true,
|
437 |
-
),
|
438 |
-
'startDateTime' => array(
|
439 |
-
'location' => 'query',
|
440 |
-
'type' => 'string',
|
441 |
-
'required' => true,
|
442 |
-
),
|
443 |
-
'maxResults' => array(
|
444 |
-
'location' => 'query',
|
445 |
-
'type' => 'integer',
|
446 |
-
),
|
447 |
-
'pageToken' => array(
|
448 |
-
'location' => 'query',
|
449 |
-
'type' => 'string',
|
450 |
-
),
|
451 |
-
),
|
452 |
-
),
|
453 |
-
)
|
454 |
-
)
|
455 |
-
);
|
456 |
-
$this->pretargetingConfig = new Google_Service_AdExchangeBuyer_Resource_PretargetingConfig(
|
457 |
-
$this,
|
458 |
-
$this->serviceName,
|
459 |
-
'pretargetingConfig',
|
460 |
-
array(
|
461 |
-
'methods' => array(
|
462 |
-
'delete' => array(
|
463 |
-
'path' => 'pretargetingconfigs/{accountId}/{configId}',
|
464 |
-
'httpMethod' => 'DELETE',
|
465 |
-
'parameters' => array(
|
466 |
-
'accountId' => array(
|
467 |
-
'location' => 'path',
|
468 |
-
'type' => 'string',
|
469 |
-
'required' => true,
|
470 |
-
),
|
471 |
-
'configId' => array(
|
472 |
-
'location' => 'path',
|
473 |
-
'type' => 'string',
|
474 |
-
'required' => true,
|
475 |
-
),
|
476 |
-
),
|
477 |
-
),'get' => array(
|
478 |
-
'path' => 'pretargetingconfigs/{accountId}/{configId}',
|
479 |
-
'httpMethod' => 'GET',
|
480 |
-
'parameters' => array(
|
481 |
-
'accountId' => array(
|
482 |
-
'location' => 'path',
|
483 |
-
'type' => 'string',
|
484 |
-
'required' => true,
|
485 |
-
),
|
486 |
-
'configId' => array(
|
487 |
-
'location' => 'path',
|
488 |
-
'type' => 'string',
|
489 |
-
'required' => true,
|
490 |
-
),
|
491 |
-
),
|
492 |
-
),'insert' => array(
|
493 |
-
'path' => 'pretargetingconfigs/{accountId}',
|
494 |
-
'httpMethod' => 'POST',
|
495 |
-
'parameters' => array(
|
496 |
-
'accountId' => array(
|
497 |
-
'location' => 'path',
|
498 |
-
'type' => 'string',
|
499 |
-
'required' => true,
|
500 |
-
),
|
501 |
-
),
|
502 |
-
),'list' => array(
|
503 |
-
'path' => 'pretargetingconfigs/{accountId}',
|
504 |
-
'httpMethod' => 'GET',
|
505 |
-
'parameters' => array(
|
506 |
-
'accountId' => array(
|
507 |
-
'location' => 'path',
|
508 |
-
'type' => 'string',
|
509 |
-
'required' => true,
|
510 |
-
),
|
511 |
-
),
|
512 |
-
),'patch' => array(
|
513 |
-
'path' => 'pretargetingconfigs/{accountId}/{configId}',
|
514 |
-
'httpMethod' => 'PATCH',
|
515 |
-
'parameters' => array(
|
516 |
-
'accountId' => array(
|
517 |
-
'location' => 'path',
|
518 |
-
'type' => 'string',
|
519 |
-
'required' => true,
|
520 |
-
),
|
521 |
-
'configId' => array(
|
522 |
-
'location' => 'path',
|
523 |
-
'type' => 'string',
|
524 |
-
'required' => true,
|
525 |
-
),
|
526 |
-
),
|
527 |
-
),'update' => array(
|
528 |
-
'path' => 'pretargetingconfigs/{accountId}/{configId}',
|
529 |
-
'httpMethod' => 'PUT',
|
530 |
-
'parameters' => array(
|
531 |
-
'accountId' => array(
|
532 |
-
'location' => 'path',
|
533 |
-
'type' => 'string',
|
534 |
-
'required' => true,
|
535 |
-
),
|
536 |
-
'configId' => array(
|
537 |
-
'location' => 'path',
|
538 |
-
'type' => 'string',
|
539 |
-
'required' => true,
|
540 |
-
),
|
541 |
-
),
|
542 |
-
),
|
543 |
-
)
|
544 |
-
)
|
545 |
-
);
|
546 |
-
$this->products = new Google_Service_AdExchangeBuyer_Resource_Products(
|
547 |
-
$this,
|
548 |
-
$this->serviceName,
|
549 |
-
'products',
|
550 |
-
array(
|
551 |
-
'methods' => array(
|
552 |
-
'get' => array(
|
553 |
-
'path' => 'products/{productId}',
|
554 |
-
'httpMethod' => 'GET',
|
555 |
-
'parameters' => array(
|
556 |
-
'productId' => array(
|
557 |
-
'location' => 'path',
|
558 |
-
'type' => 'string',
|
559 |
-
'required' => true,
|
560 |
-
),
|
561 |
-
),
|
562 |
-
),'search' => array(
|
563 |
-
'path' => 'products/search',
|
564 |
-
'httpMethod' => 'GET',
|
565 |
-
'parameters' => array(
|
566 |
-
'pqlQuery' => array(
|
567 |
-
'location' => 'query',
|
568 |
-
'type' => 'string',
|
569 |
-
),
|
570 |
-
),
|
571 |
-
),
|
572 |
-
)
|
573 |
-
)
|
574 |
-
);
|
575 |
-
$this->proposals = new Google_Service_AdExchangeBuyer_Resource_Proposals(
|
576 |
-
$this,
|
577 |
-
$this->serviceName,
|
578 |
-
'proposals',
|
579 |
-
array(
|
580 |
-
'methods' => array(
|
581 |
-
'get' => array(
|
582 |
-
'path' => 'proposals/{proposalId}',
|
583 |
-
'httpMethod' => 'GET',
|
584 |
-
'parameters' => array(
|
585 |
-
'proposalId' => array(
|
586 |
-
'location' => 'path',
|
587 |
-
'type' => 'string',
|
588 |
-
'required' => true,
|
589 |
-
),
|
590 |
-
),
|
591 |
-
),'insert' => array(
|
592 |
-
'path' => 'proposals/insert',
|
593 |
-
'httpMethod' => 'POST',
|
594 |
-
'parameters' => array(),
|
595 |
-
),'patch' => array(
|
596 |
-
'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}',
|
597 |
-
'httpMethod' => 'PATCH',
|
598 |
-
'parameters' => array(
|
599 |
-
'proposalId' => array(
|
600 |
-
'location' => 'path',
|
601 |
-
'type' => 'string',
|
602 |
-
'required' => true,
|
603 |
-
),
|
604 |
-
'revisionNumber' => array(
|
605 |
-
'location' => 'path',
|
606 |
-
'type' => 'string',
|
607 |
-
'required' => true,
|
608 |
-
),
|
609 |
-
'updateAction' => array(
|
610 |
-
'location' => 'path',
|
611 |
-
'type' => 'string',
|
612 |
-
'required' => true,
|
613 |
-
),
|
614 |
-
),
|
615 |
-
),'search' => array(
|
616 |
-
'path' => 'proposals/search',
|
617 |
-
'httpMethod' => 'GET',
|
618 |
-
'parameters' => array(
|
619 |
-
'pqlQuery' => array(
|
620 |
-
'location' => 'query',
|
621 |
-
'type' => 'string',
|
622 |
-
),
|
623 |
-
),
|
624 |
-
),'setupcomplete' => array(
|
625 |
-
'path' => 'proposals/{proposalId}/setupcomplete',
|
626 |
-
'httpMethod' => 'POST',
|
627 |
-
'parameters' => array(
|
628 |
-
'proposalId' => array(
|
629 |
-
'location' => 'path',
|
630 |
-
'type' => 'string',
|
631 |
-
'required' => true,
|
632 |
-
),
|
633 |
-
),
|
634 |
-
),'update' => array(
|
635 |
-
'path' => 'proposals/{proposalId}/{revisionNumber}/{updateAction}',
|
636 |
-
'httpMethod' => 'PUT',
|
637 |
-
'parameters' => array(
|
638 |
-
'proposalId' => array(
|
639 |
-
'location' => 'path',
|
640 |
-
'type' => 'string',
|
641 |
-
'required' => true,
|
642 |
-
),
|
643 |
-
'revisionNumber' => array(
|
644 |
-
'location' => 'path',
|
645 |
-
'type' => 'string',
|
646 |
-
'required' => true,
|
647 |
-
),
|
648 |
-
'updateAction' => array(
|
649 |
-
'location' => 'path',
|
650 |
-
'type' => 'string',
|
651 |
-
'required' => true,
|
652 |
-
),
|
653 |
-
),
|
654 |
-
),
|
655 |
-
)
|
656 |
-
)
|
657 |
-
);
|
658 |
-
$this->pubprofiles = new Google_Service_AdExchangeBuyer_Resource_Pubprofiles(
|
659 |
-
$this,
|
660 |
-
$this->serviceName,
|
661 |
-
'pubprofiles',
|
662 |
-
array(
|
663 |
-
'methods' => array(
|
664 |
-
'list' => array(
|
665 |
-
'path' => 'publisher/{accountId}/profiles',
|
666 |
-
'httpMethod' => 'GET',
|
667 |
-
'parameters' => array(
|
668 |
-
'accountId' => array(
|
669 |
-
'location' => 'path',
|
670 |
-
'type' => 'integer',
|
671 |
-
'required' => true,
|
672 |
-
),
|
673 |
-
),
|
674 |
-
),
|
675 |
-
)
|
676 |
-
)
|
677 |
-
);
|
678 |
-
}
|
679 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Account.php
DELETED
@@ -1,101 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Account extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'bidderLocation';
|
21 |
-
protected $bidderLocationType = 'Google_Service_AdExchangeBuyer_AccountBidderLocation';
|
22 |
-
protected $bidderLocationDataType = 'array';
|
23 |
-
public $cookieMatchingNid;
|
24 |
-
public $cookieMatchingUrl;
|
25 |
-
public $id;
|
26 |
-
public $kind;
|
27 |
-
public $maximumActiveCreatives;
|
28 |
-
public $maximumTotalQps;
|
29 |
-
public $numberActiveCreatives;
|
30 |
-
|
31 |
-
/**
|
32 |
-
* @param Google_Service_AdExchangeBuyer_AccountBidderLocation
|
33 |
-
*/
|
34 |
-
public function setBidderLocation($bidderLocation)
|
35 |
-
{
|
36 |
-
$this->bidderLocation = $bidderLocation;
|
37 |
-
}
|
38 |
-
/**
|
39 |
-
* @return Google_Service_AdExchangeBuyer_AccountBidderLocation
|
40 |
-
*/
|
41 |
-
public function getBidderLocation()
|
42 |
-
{
|
43 |
-
return $this->bidderLocation;
|
44 |
-
}
|
45 |
-
public function setCookieMatchingNid($cookieMatchingNid)
|
46 |
-
{
|
47 |
-
$this->cookieMatchingNid = $cookieMatchingNid;
|
48 |
-
}
|
49 |
-
public function getCookieMatchingNid()
|
50 |
-
{
|
51 |
-
return $this->cookieMatchingNid;
|
52 |
-
}
|
53 |
-
public function setCookieMatchingUrl($cookieMatchingUrl)
|
54 |
-
{
|
55 |
-
$this->cookieMatchingUrl = $cookieMatchingUrl;
|
56 |
-
}
|
57 |
-
public function getCookieMatchingUrl()
|
58 |
-
{
|
59 |
-
return $this->cookieMatchingUrl;
|
60 |
-
}
|
61 |
-
public function setId($id)
|
62 |
-
{
|
63 |
-
$this->id = $id;
|
64 |
-
}
|
65 |
-
public function getId()
|
66 |
-
{
|
67 |
-
return $this->id;
|
68 |
-
}
|
69 |
-
public function setKind($kind)
|
70 |
-
{
|
71 |
-
$this->kind = $kind;
|
72 |
-
}
|
73 |
-
public function getKind()
|
74 |
-
{
|
75 |
-
return $this->kind;
|
76 |
-
}
|
77 |
-
public function setMaximumActiveCreatives($maximumActiveCreatives)
|
78 |
-
{
|
79 |
-
$this->maximumActiveCreatives = $maximumActiveCreatives;
|
80 |
-
}
|
81 |
-
public function getMaximumActiveCreatives()
|
82 |
-
{
|
83 |
-
return $this->maximumActiveCreatives;
|
84 |
-
}
|
85 |
-
public function setMaximumTotalQps($maximumTotalQps)
|
86 |
-
{
|
87 |
-
$this->maximumTotalQps = $maximumTotalQps;
|
88 |
-
}
|
89 |
-
public function getMaximumTotalQps()
|
90 |
-
{
|
91 |
-
return $this->maximumTotalQps;
|
92 |
-
}
|
93 |
-
public function setNumberActiveCreatives($numberActiveCreatives)
|
94 |
-
{
|
95 |
-
$this->numberActiveCreatives = $numberActiveCreatives;
|
96 |
-
}
|
97 |
-
public function getNumberActiveCreatives()
|
98 |
-
{
|
99 |
-
return $this->numberActiveCreatives;
|
100 |
-
}
|
101 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountBidderLocation.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_AccountBidderLocation extends Google_Model
|
19 |
-
{
|
20 |
-
public $bidProtocol;
|
21 |
-
public $maximumQps;
|
22 |
-
public $region;
|
23 |
-
public $url;
|
24 |
-
|
25 |
-
public function setBidProtocol($bidProtocol)
|
26 |
-
{
|
27 |
-
$this->bidProtocol = $bidProtocol;
|
28 |
-
}
|
29 |
-
public function getBidProtocol()
|
30 |
-
{
|
31 |
-
return $this->bidProtocol;
|
32 |
-
}
|
33 |
-
public function setMaximumQps($maximumQps)
|
34 |
-
{
|
35 |
-
$this->maximumQps = $maximumQps;
|
36 |
-
}
|
37 |
-
public function getMaximumQps()
|
38 |
-
{
|
39 |
-
return $this->maximumQps;
|
40 |
-
}
|
41 |
-
public function setRegion($region)
|
42 |
-
{
|
43 |
-
$this->region = $region;
|
44 |
-
}
|
45 |
-
public function getRegion()
|
46 |
-
{
|
47 |
-
return $this->region;
|
48 |
-
}
|
49 |
-
public function setUrl($url)
|
50 |
-
{
|
51 |
-
$this->url = $url;
|
52 |
-
}
|
53 |
-
public function getUrl()
|
54 |
-
{
|
55 |
-
return $this->url;
|
56 |
-
}
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AccountsList.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_AccountsList extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'items';
|
21 |
-
protected $itemsType = 'Google_Service_AdExchangeBuyer_Account';
|
22 |
-
protected $itemsDataType = 'array';
|
23 |
-
public $kind;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_Account
|
27 |
-
*/
|
28 |
-
public function setItems($items)
|
29 |
-
{
|
30 |
-
$this->items = $items;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_Account
|
34 |
-
*/
|
35 |
-
public function getItems()
|
36 |
-
{
|
37 |
-
return $this->items;
|
38 |
-
}
|
39 |
-
public function setKind($kind)
|
40 |
-
{
|
41 |
-
$this->kind = $kind;
|
42 |
-
}
|
43 |
-
public function getKind()
|
44 |
-
{
|
45 |
-
return $this->kind;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsRequest.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_AddOrderDealsRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'deals';
|
21 |
-
protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
|
22 |
-
protected $dealsDataType = 'array';
|
23 |
-
public $proposalRevisionNumber;
|
24 |
-
public $updateAction;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceDeal
|
28 |
-
*/
|
29 |
-
public function setDeals($deals)
|
30 |
-
{
|
31 |
-
$this->deals = $deals;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceDeal
|
35 |
-
*/
|
36 |
-
public function getDeals()
|
37 |
-
{
|
38 |
-
return $this->deals;
|
39 |
-
}
|
40 |
-
public function setProposalRevisionNumber($proposalRevisionNumber)
|
41 |
-
{
|
42 |
-
$this->proposalRevisionNumber = $proposalRevisionNumber;
|
43 |
-
}
|
44 |
-
public function getProposalRevisionNumber()
|
45 |
-
{
|
46 |
-
return $this->proposalRevisionNumber;
|
47 |
-
}
|
48 |
-
public function setUpdateAction($updateAction)
|
49 |
-
{
|
50 |
-
$this->updateAction = $updateAction;
|
51 |
-
}
|
52 |
-
public function getUpdateAction()
|
53 |
-
{
|
54 |
-
return $this->updateAction;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderDealsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_AddOrderDealsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'deals';
|
21 |
-
protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
|
22 |
-
protected $dealsDataType = 'array';
|
23 |
-
public $proposalRevisionNumber;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceDeal
|
27 |
-
*/
|
28 |
-
public function setDeals($deals)
|
29 |
-
{
|
30 |
-
$this->deals = $deals;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceDeal
|
34 |
-
*/
|
35 |
-
public function getDeals()
|
36 |
-
{
|
37 |
-
return $this->deals;
|
38 |
-
}
|
39 |
-
public function setProposalRevisionNumber($proposalRevisionNumber)
|
40 |
-
{
|
41 |
-
$this->proposalRevisionNumber = $proposalRevisionNumber;
|
42 |
-
}
|
43 |
-
public function getProposalRevisionNumber()
|
44 |
-
{
|
45 |
-
return $this->proposalRevisionNumber;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesRequest.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_AddOrderNotesRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'notes';
|
21 |
-
protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
|
22 |
-
protected $notesDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceNote
|
26 |
-
*/
|
27 |
-
public function setNotes($notes)
|
28 |
-
{
|
29 |
-
$this->notes = $notes;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceNote
|
33 |
-
*/
|
34 |
-
public function getNotes()
|
35 |
-
{
|
36 |
-
return $this->notes;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/AddOrderNotesResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_AddOrderNotesResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'notes';
|
21 |
-
protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
|
22 |
-
protected $notesDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceNote
|
26 |
-
*/
|
27 |
-
public function setNotes($notes)
|
28 |
-
{
|
29 |
-
$this->notes = $notes;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceNote
|
33 |
-
*/
|
34 |
-
public function getNotes()
|
35 |
-
{
|
36 |
-
return $this->notes;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfo.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_BillingInfo extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'billingId';
|
21 |
-
public $accountId;
|
22 |
-
public $accountName;
|
23 |
-
public $billingId;
|
24 |
-
public $kind;
|
25 |
-
|
26 |
-
public function setAccountId($accountId)
|
27 |
-
{
|
28 |
-
$this->accountId = $accountId;
|
29 |
-
}
|
30 |
-
public function getAccountId()
|
31 |
-
{
|
32 |
-
return $this->accountId;
|
33 |
-
}
|
34 |
-
public function setAccountName($accountName)
|
35 |
-
{
|
36 |
-
$this->accountName = $accountName;
|
37 |
-
}
|
38 |
-
public function getAccountName()
|
39 |
-
{
|
40 |
-
return $this->accountName;
|
41 |
-
}
|
42 |
-
public function setBillingId($billingId)
|
43 |
-
{
|
44 |
-
$this->billingId = $billingId;
|
45 |
-
}
|
46 |
-
public function getBillingId()
|
47 |
-
{
|
48 |
-
return $this->billingId;
|
49 |
-
}
|
50 |
-
public function setKind($kind)
|
51 |
-
{
|
52 |
-
$this->kind = $kind;
|
53 |
-
}
|
54 |
-
public function getKind()
|
55 |
-
{
|
56 |
-
return $this->kind;
|
57 |
-
}
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/BillingInfoList.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_BillingInfoList extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'items';
|
21 |
-
protected $itemsType = 'Google_Service_AdExchangeBuyer_BillingInfo';
|
22 |
-
protected $itemsDataType = 'array';
|
23 |
-
public $kind;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_BillingInfo
|
27 |
-
*/
|
28 |
-
public function setItems($items)
|
29 |
-
{
|
30 |
-
$this->items = $items;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_BillingInfo
|
34 |
-
*/
|
35 |
-
public function getItems()
|
36 |
-
{
|
37 |
-
return $this->items;
|
38 |
-
}
|
39 |
-
public function setKind($kind)
|
40 |
-
{
|
41 |
-
$this->kind = $kind;
|
42 |
-
}
|
43 |
-
public function getKind()
|
44 |
-
{
|
45 |
-
return $this->kind;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Budget.php
DELETED
@@ -1,75 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Budget extends Google_Model
|
19 |
-
{
|
20 |
-
public $accountId;
|
21 |
-
public $billingId;
|
22 |
-
public $budgetAmount;
|
23 |
-
public $currencyCode;
|
24 |
-
public $id;
|
25 |
-
public $kind;
|
26 |
-
|
27 |
-
public function setAccountId($accountId)
|
28 |
-
{
|
29 |
-
$this->accountId = $accountId;
|
30 |
-
}
|
31 |
-
public function getAccountId()
|
32 |
-
{
|
33 |
-
return $this->accountId;
|
34 |
-
}
|
35 |
-
public function setBillingId($billingId)
|
36 |
-
{
|
37 |
-
$this->billingId = $billingId;
|
38 |
-
}
|
39 |
-
public function getBillingId()
|
40 |
-
{
|
41 |
-
return $this->billingId;
|
42 |
-
}
|
43 |
-
public function setBudgetAmount($budgetAmount)
|
44 |
-
{
|
45 |
-
$this->budgetAmount = $budgetAmount;
|
46 |
-
}
|
47 |
-
public function getBudgetAmount()
|
48 |
-
{
|
49 |
-
return $this->budgetAmount;
|
50 |
-
}
|
51 |
-
public function setCurrencyCode($currencyCode)
|
52 |
-
{
|
53 |
-
$this->currencyCode = $currencyCode;
|
54 |
-
}
|
55 |
-
public function getCurrencyCode()
|
56 |
-
{
|
57 |
-
return $this->currencyCode;
|
58 |
-
}
|
59 |
-
public function setId($id)
|
60 |
-
{
|
61 |
-
$this->id = $id;
|
62 |
-
}
|
63 |
-
public function getId()
|
64 |
-
{
|
65 |
-
return $this->id;
|
66 |
-
}
|
67 |
-
public function setKind($kind)
|
68 |
-
{
|
69 |
-
$this->kind = $kind;
|
70 |
-
}
|
71 |
-
public function getKind()
|
72 |
-
{
|
73 |
-
return $this->kind;
|
74 |
-
}
|
75 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Buyer.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Buyer extends Google_Model
|
19 |
-
{
|
20 |
-
public $accountId;
|
21 |
-
|
22 |
-
public function setAccountId($accountId)
|
23 |
-
{
|
24 |
-
$this->accountId = $accountId;
|
25 |
-
}
|
26 |
-
public function getAccountId()
|
27 |
-
{
|
28 |
-
return $this->accountId;
|
29 |
-
}
|
30 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/ContactInformation.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_ContactInformation extends Google_Model
|
19 |
-
{
|
20 |
-
public $email;
|
21 |
-
public $name;
|
22 |
-
|
23 |
-
public function setEmail($email)
|
24 |
-
{
|
25 |
-
$this->email = $email;
|
26 |
-
}
|
27 |
-
public function getEmail()
|
28 |
-
{
|
29 |
-
return $this->email;
|
30 |
-
}
|
31 |
-
public function setName($name)
|
32 |
-
{
|
33 |
-
$this->name = $name;
|
34 |
-
}
|
35 |
-
public function getName()
|
36 |
-
{
|
37 |
-
return $this->name;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersRequest.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreateOrdersRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'proposals';
|
21 |
-
protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal';
|
22 |
-
protected $proposalsDataType = 'array';
|
23 |
-
public $webPropertyCode;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_Proposal
|
27 |
-
*/
|
28 |
-
public function setProposals($proposals)
|
29 |
-
{
|
30 |
-
$this->proposals = $proposals;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_Proposal
|
34 |
-
*/
|
35 |
-
public function getProposals()
|
36 |
-
{
|
37 |
-
return $this->proposals;
|
38 |
-
}
|
39 |
-
public function setWebPropertyCode($webPropertyCode)
|
40 |
-
{
|
41 |
-
$this->webPropertyCode = $webPropertyCode;
|
42 |
-
}
|
43 |
-
public function getWebPropertyCode()
|
44 |
-
{
|
45 |
-
return $this->webPropertyCode;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreateOrdersResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreateOrdersResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'proposals';
|
21 |
-
protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal';
|
22 |
-
protected $proposalsDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_Proposal
|
26 |
-
*/
|
27 |
-
public function setProposals($proposals)
|
28 |
-
{
|
29 |
-
$this->proposals = $proposals;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_Proposal
|
33 |
-
*/
|
34 |
-
public function getProposals()
|
35 |
-
{
|
36 |
-
return $this->proposals;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Creative.php
DELETED
@@ -1,305 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Creative extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'vendorType';
|
21 |
-
protected $internal_gapi_mappings = array(
|
22 |
-
"hTMLSnippet" => "HTMLSnippet",
|
23 |
-
);
|
24 |
-
public $hTMLSnippet;
|
25 |
-
public $accountId;
|
26 |
-
public $adChoicesDestinationUrl;
|
27 |
-
public $advertiserId;
|
28 |
-
public $advertiserName;
|
29 |
-
public $agencyId;
|
30 |
-
public $apiUploadTimestamp;
|
31 |
-
public $attribute;
|
32 |
-
public $buyerCreativeId;
|
33 |
-
public $clickThroughUrl;
|
34 |
-
protected $correctionsType = 'Google_Service_AdExchangeBuyer_CreativeCorrections';
|
35 |
-
protected $correctionsDataType = 'array';
|
36 |
-
public $dealsStatus;
|
37 |
-
public $detectedDomains;
|
38 |
-
protected $filteringReasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasons';
|
39 |
-
protected $filteringReasonsDataType = '';
|
40 |
-
public $height;
|
41 |
-
public $impressionTrackingUrl;
|
42 |
-
public $kind;
|
43 |
-
public $languages;
|
44 |
-
protected $nativeAdType = 'Google_Service_AdExchangeBuyer_CreativeNativeAd';
|
45 |
-
protected $nativeAdDataType = '';
|
46 |
-
public $openAuctionStatus;
|
47 |
-
public $productCategories;
|
48 |
-
public $restrictedCategories;
|
49 |
-
public $sensitiveCategories;
|
50 |
-
protected $servingRestrictionsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictions';
|
51 |
-
protected $servingRestrictionsDataType = 'array';
|
52 |
-
public $vendorType;
|
53 |
-
public $version;
|
54 |
-
public $videoURL;
|
55 |
-
public $width;
|
56 |
-
|
57 |
-
public function setHTMLSnippet($hTMLSnippet)
|
58 |
-
{
|
59 |
-
$this->hTMLSnippet = $hTMLSnippet;
|
60 |
-
}
|
61 |
-
public function getHTMLSnippet()
|
62 |
-
{
|
63 |
-
return $this->hTMLSnippet;
|
64 |
-
}
|
65 |
-
public function setAccountId($accountId)
|
66 |
-
{
|
67 |
-
$this->accountId = $accountId;
|
68 |
-
}
|
69 |
-
public function getAccountId()
|
70 |
-
{
|
71 |
-
return $this->accountId;
|
72 |
-
}
|
73 |
-
public function setAdChoicesDestinationUrl($adChoicesDestinationUrl)
|
74 |
-
{
|
75 |
-
$this->adChoicesDestinationUrl = $adChoicesDestinationUrl;
|
76 |
-
}
|
77 |
-
public function getAdChoicesDestinationUrl()
|
78 |
-
{
|
79 |
-
return $this->adChoicesDestinationUrl;
|
80 |
-
}
|
81 |
-
public function setAdvertiserId($advertiserId)
|
82 |
-
{
|
83 |
-
$this->advertiserId = $advertiserId;
|
84 |
-
}
|
85 |
-
public function getAdvertiserId()
|
86 |
-
{
|
87 |
-
return $this->advertiserId;
|
88 |
-
}
|
89 |
-
public function setAdvertiserName($advertiserName)
|
90 |
-
{
|
91 |
-
$this->advertiserName = $advertiserName;
|
92 |
-
}
|
93 |
-
public function getAdvertiserName()
|
94 |
-
{
|
95 |
-
return $this->advertiserName;
|
96 |
-
}
|
97 |
-
public function setAgencyId($agencyId)
|
98 |
-
{
|
99 |
-
$this->agencyId = $agencyId;
|
100 |
-
}
|
101 |
-
public function getAgencyId()
|
102 |
-
{
|
103 |
-
return $this->agencyId;
|
104 |
-
}
|
105 |
-
public function setApiUploadTimestamp($apiUploadTimestamp)
|
106 |
-
{
|
107 |
-
$this->apiUploadTimestamp = $apiUploadTimestamp;
|
108 |
-
}
|
109 |
-
public function getApiUploadTimestamp()
|
110 |
-
{
|
111 |
-
return $this->apiUploadTimestamp;
|
112 |
-
}
|
113 |
-
public function setAttribute($attribute)
|
114 |
-
{
|
115 |
-
$this->attribute = $attribute;
|
116 |
-
}
|
117 |
-
public function getAttribute()
|
118 |
-
{
|
119 |
-
return $this->attribute;
|
120 |
-
}
|
121 |
-
public function setBuyerCreativeId($buyerCreativeId)
|
122 |
-
{
|
123 |
-
$this->buyerCreativeId = $buyerCreativeId;
|
124 |
-
}
|
125 |
-
public function getBuyerCreativeId()
|
126 |
-
{
|
127 |
-
return $this->buyerCreativeId;
|
128 |
-
}
|
129 |
-
public function setClickThroughUrl($clickThroughUrl)
|
130 |
-
{
|
131 |
-
$this->clickThroughUrl = $clickThroughUrl;
|
132 |
-
}
|
133 |
-
public function getClickThroughUrl()
|
134 |
-
{
|
135 |
-
return $this->clickThroughUrl;
|
136 |
-
}
|
137 |
-
/**
|
138 |
-
* @param Google_Service_AdExchangeBuyer_CreativeCorrections
|
139 |
-
*/
|
140 |
-
public function setCorrections($corrections)
|
141 |
-
{
|
142 |
-
$this->corrections = $corrections;
|
143 |
-
}
|
144 |
-
/**
|
145 |
-
* @return Google_Service_AdExchangeBuyer_CreativeCorrections
|
146 |
-
*/
|
147 |
-
public function getCorrections()
|
148 |
-
{
|
149 |
-
return $this->corrections;
|
150 |
-
}
|
151 |
-
public function setDealsStatus($dealsStatus)
|
152 |
-
{
|
153 |
-
$this->dealsStatus = $dealsStatus;
|
154 |
-
}
|
155 |
-
public function getDealsStatus()
|
156 |
-
{
|
157 |
-
return $this->dealsStatus;
|
158 |
-
}
|
159 |
-
public function setDetectedDomains($detectedDomains)
|
160 |
-
{
|
161 |
-
$this->detectedDomains = $detectedDomains;
|
162 |
-
}
|
163 |
-
public function getDetectedDomains()
|
164 |
-
{
|
165 |
-
return $this->detectedDomains;
|
166 |
-
}
|
167 |
-
/**
|
168 |
-
* @param Google_Service_AdExchangeBuyer_CreativeFilteringReasons
|
169 |
-
*/
|
170 |
-
public function setFilteringReasons(Google_Service_AdExchangeBuyer_CreativeFilteringReasons $filteringReasons)
|
171 |
-
{
|
172 |
-
$this->filteringReasons = $filteringReasons;
|
173 |
-
}
|
174 |
-
/**
|
175 |
-
* @return Google_Service_AdExchangeBuyer_CreativeFilteringReasons
|
176 |
-
*/
|
177 |
-
public function getFilteringReasons()
|
178 |
-
{
|
179 |
-
return $this->filteringReasons;
|
180 |
-
}
|
181 |
-
public function setHeight($height)
|
182 |
-
{
|
183 |
-
$this->height = $height;
|
184 |
-
}
|
185 |
-
public function getHeight()
|
186 |
-
{
|
187 |
-
return $this->height;
|
188 |
-
}
|
189 |
-
public function setImpressionTrackingUrl($impressionTrackingUrl)
|
190 |
-
{
|
191 |
-
$this->impressionTrackingUrl = $impressionTrackingUrl;
|
192 |
-
}
|
193 |
-
public function getImpressionTrackingUrl()
|
194 |
-
{
|
195 |
-
return $this->impressionTrackingUrl;
|
196 |
-
}
|
197 |
-
public function setKind($kind)
|
198 |
-
{
|
199 |
-
$this->kind = $kind;
|
200 |
-
}
|
201 |
-
public function getKind()
|
202 |
-
{
|
203 |
-
return $this->kind;
|
204 |
-
}
|
205 |
-
public function setLanguages($languages)
|
206 |
-
{
|
207 |
-
$this->languages = $languages;
|
208 |
-
}
|
209 |
-
public function getLanguages()
|
210 |
-
{
|
211 |
-
return $this->languages;
|
212 |
-
}
|
213 |
-
/**
|
214 |
-
* @param Google_Service_AdExchangeBuyer_CreativeNativeAd
|
215 |
-
*/
|
216 |
-
public function setNativeAd(Google_Service_AdExchangeBuyer_CreativeNativeAd $nativeAd)
|
217 |
-
{
|
218 |
-
$this->nativeAd = $nativeAd;
|
219 |
-
}
|
220 |
-
/**
|
221 |
-
* @return Google_Service_AdExchangeBuyer_CreativeNativeAd
|
222 |
-
*/
|
223 |
-
public function getNativeAd()
|
224 |
-
{
|
225 |
-
return $this->nativeAd;
|
226 |
-
}
|
227 |
-
public function setOpenAuctionStatus($openAuctionStatus)
|
228 |
-
{
|
229 |
-
$this->openAuctionStatus = $openAuctionStatus;
|
230 |
-
}
|
231 |
-
public function getOpenAuctionStatus()
|
232 |
-
{
|
233 |
-
return $this->openAuctionStatus;
|
234 |
-
}
|
235 |
-
public function setProductCategories($productCategories)
|
236 |
-
{
|
237 |
-
$this->productCategories = $productCategories;
|
238 |
-
}
|
239 |
-
public function getProductCategories()
|
240 |
-
{
|
241 |
-
return $this->productCategories;
|
242 |
-
}
|
243 |
-
public function setRestrictedCategories($restrictedCategories)
|
244 |
-
{
|
245 |
-
$this->restrictedCategories = $restrictedCategories;
|
246 |
-
}
|
247 |
-
public function getRestrictedCategories()
|
248 |
-
{
|
249 |
-
return $this->restrictedCategories;
|
250 |
-
}
|
251 |
-
public function setSensitiveCategories($sensitiveCategories)
|
252 |
-
{
|
253 |
-
$this->sensitiveCategories = $sensitiveCategories;
|
254 |
-
}
|
255 |
-
public function getSensitiveCategories()
|
256 |
-
{
|
257 |
-
return $this->sensitiveCategories;
|
258 |
-
}
|
259 |
-
/**
|
260 |
-
* @param Google_Service_AdExchangeBuyer_CreativeServingRestrictions
|
261 |
-
*/
|
262 |
-
public function setServingRestrictions($servingRestrictions)
|
263 |
-
{
|
264 |
-
$this->servingRestrictions = $servingRestrictions;
|
265 |
-
}
|
266 |
-
/**
|
267 |
-
* @return Google_Service_AdExchangeBuyer_CreativeServingRestrictions
|
268 |
-
*/
|
269 |
-
public function getServingRestrictions()
|
270 |
-
{
|
271 |
-
return $this->servingRestrictions;
|
272 |
-
}
|
273 |
-
public function setVendorType($vendorType)
|
274 |
-
{
|
275 |
-
$this->vendorType = $vendorType;
|
276 |
-
}
|
277 |
-
public function getVendorType()
|
278 |
-
{
|
279 |
-
return $this->vendorType;
|
280 |
-
}
|
281 |
-
public function setVersion($version)
|
282 |
-
{
|
283 |
-
$this->version = $version;
|
284 |
-
}
|
285 |
-
public function getVersion()
|
286 |
-
{
|
287 |
-
return $this->version;
|
288 |
-
}
|
289 |
-
public function setVideoURL($videoURL)
|
290 |
-
{
|
291 |
-
$this->videoURL = $videoURL;
|
292 |
-
}
|
293 |
-
public function getVideoURL()
|
294 |
-
{
|
295 |
-
return $this->videoURL;
|
296 |
-
}
|
297 |
-
public function setWidth($width)
|
298 |
-
{
|
299 |
-
$this->width = $width;
|
300 |
-
}
|
301 |
-
public function getWidth()
|
302 |
-
{
|
303 |
-
return $this->width;
|
304 |
-
}
|
305 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrections.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeCorrections extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'details';
|
21 |
-
protected $contextsType = 'Google_Service_AdExchangeBuyer_CreativeCorrectionsContexts';
|
22 |
-
protected $contextsDataType = 'array';
|
23 |
-
public $details;
|
24 |
-
public $reason;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyer_CreativeCorrectionsContexts
|
28 |
-
*/
|
29 |
-
public function setContexts($contexts)
|
30 |
-
{
|
31 |
-
$this->contexts = $contexts;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyer_CreativeCorrectionsContexts
|
35 |
-
*/
|
36 |
-
public function getContexts()
|
37 |
-
{
|
38 |
-
return $this->contexts;
|
39 |
-
}
|
40 |
-
public function setDetails($details)
|
41 |
-
{
|
42 |
-
$this->details = $details;
|
43 |
-
}
|
44 |
-
public function getDetails()
|
45 |
-
{
|
46 |
-
return $this->details;
|
47 |
-
}
|
48 |
-
public function setReason($reason)
|
49 |
-
{
|
50 |
-
$this->reason = $reason;
|
51 |
-
}
|
52 |
-
public function getReason()
|
53 |
-
{
|
54 |
-
return $this->reason;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeCorrectionsContexts.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeCorrectionsContexts extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'platform';
|
21 |
-
public $auctionType;
|
22 |
-
public $contextType;
|
23 |
-
public $geoCriteriaId;
|
24 |
-
public $platform;
|
25 |
-
|
26 |
-
public function setAuctionType($auctionType)
|
27 |
-
{
|
28 |
-
$this->auctionType = $auctionType;
|
29 |
-
}
|
30 |
-
public function getAuctionType()
|
31 |
-
{
|
32 |
-
return $this->auctionType;
|
33 |
-
}
|
34 |
-
public function setContextType($contextType)
|
35 |
-
{
|
36 |
-
$this->contextType = $contextType;
|
37 |
-
}
|
38 |
-
public function getContextType()
|
39 |
-
{
|
40 |
-
return $this->contextType;
|
41 |
-
}
|
42 |
-
public function setGeoCriteriaId($geoCriteriaId)
|
43 |
-
{
|
44 |
-
$this->geoCriteriaId = $geoCriteriaId;
|
45 |
-
}
|
46 |
-
public function getGeoCriteriaId()
|
47 |
-
{
|
48 |
-
return $this->geoCriteriaId;
|
49 |
-
}
|
50 |
-
public function setPlatform($platform)
|
51 |
-
{
|
52 |
-
$this->platform = $platform;
|
53 |
-
}
|
54 |
-
public function getPlatform()
|
55 |
-
{
|
56 |
-
return $this->platform;
|
57 |
-
}
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIds.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeDealIds extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'dealStatuses';
|
21 |
-
protected $dealStatusesType = 'Google_Service_AdExchangeBuyer_CreativeDealIdsDealStatuses';
|
22 |
-
protected $dealStatusesDataType = 'array';
|
23 |
-
public $kind;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_CreativeDealIdsDealStatuses
|
27 |
-
*/
|
28 |
-
public function setDealStatuses($dealStatuses)
|
29 |
-
{
|
30 |
-
$this->dealStatuses = $dealStatuses;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_CreativeDealIdsDealStatuses
|
34 |
-
*/
|
35 |
-
public function getDealStatuses()
|
36 |
-
{
|
37 |
-
return $this->dealStatuses;
|
38 |
-
}
|
39 |
-
public function setKind($kind)
|
40 |
-
{
|
41 |
-
$this->kind = $kind;
|
42 |
-
}
|
43 |
-
public function getKind()
|
44 |
-
{
|
45 |
-
return $this->kind;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeDealIdsDealStatuses.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeDealIdsDealStatuses extends Google_Model
|
19 |
-
{
|
20 |
-
public $arcStatus;
|
21 |
-
public $dealId;
|
22 |
-
public $webPropertyId;
|
23 |
-
|
24 |
-
public function setArcStatus($arcStatus)
|
25 |
-
{
|
26 |
-
$this->arcStatus = $arcStatus;
|
27 |
-
}
|
28 |
-
public function getArcStatus()
|
29 |
-
{
|
30 |
-
return $this->arcStatus;
|
31 |
-
}
|
32 |
-
public function setDealId($dealId)
|
33 |
-
{
|
34 |
-
$this->dealId = $dealId;
|
35 |
-
}
|
36 |
-
public function getDealId()
|
37 |
-
{
|
38 |
-
return $this->dealId;
|
39 |
-
}
|
40 |
-
public function setWebPropertyId($webPropertyId)
|
41 |
-
{
|
42 |
-
$this->webPropertyId = $webPropertyId;
|
43 |
-
}
|
44 |
-
public function getWebPropertyId()
|
45 |
-
{
|
46 |
-
return $this->webPropertyId;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasons.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeFilteringReasons extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'reasons';
|
21 |
-
public $date;
|
22 |
-
protected $reasonsType = 'Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons';
|
23 |
-
protected $reasonsDataType = 'array';
|
24 |
-
|
25 |
-
public function setDate($date)
|
26 |
-
{
|
27 |
-
$this->date = $date;
|
28 |
-
}
|
29 |
-
public function getDate()
|
30 |
-
{
|
31 |
-
return $this->date;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons
|
35 |
-
*/
|
36 |
-
public function setReasons($reasons)
|
37 |
-
{
|
38 |
-
$this->reasons = $reasons;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons
|
42 |
-
*/
|
43 |
-
public function getReasons()
|
44 |
-
{
|
45 |
-
return $this->reasons;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeFilteringReasonsReasons.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeFilteringReasonsReasons extends Google_Model
|
19 |
-
{
|
20 |
-
public $filteringCount;
|
21 |
-
public $filteringStatus;
|
22 |
-
|
23 |
-
public function setFilteringCount($filteringCount)
|
24 |
-
{
|
25 |
-
$this->filteringCount = $filteringCount;
|
26 |
-
}
|
27 |
-
public function getFilteringCount()
|
28 |
-
{
|
29 |
-
return $this->filteringCount;
|
30 |
-
}
|
31 |
-
public function setFilteringStatus($filteringStatus)
|
32 |
-
{
|
33 |
-
$this->filteringStatus = $filteringStatus;
|
34 |
-
}
|
35 |
-
public function getFilteringStatus()
|
36 |
-
{
|
37 |
-
return $this->filteringStatus;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAd.php
DELETED
@@ -1,169 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeNativeAd extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'impressionTrackingUrl';
|
21 |
-
public $advertiser;
|
22 |
-
protected $appIconType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon';
|
23 |
-
protected $appIconDataType = '';
|
24 |
-
public $body;
|
25 |
-
public $callToAction;
|
26 |
-
public $clickLinkUrl;
|
27 |
-
public $clickTrackingUrl;
|
28 |
-
public $headline;
|
29 |
-
protected $imageType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdImage';
|
30 |
-
protected $imageDataType = '';
|
31 |
-
public $impressionTrackingUrl;
|
32 |
-
protected $logoType = 'Google_Service_AdExchangeBuyer_CreativeNativeAdLogo';
|
33 |
-
protected $logoDataType = '';
|
34 |
-
public $price;
|
35 |
-
public $starRating;
|
36 |
-
public $store;
|
37 |
-
public $videoURL;
|
38 |
-
|
39 |
-
public function setAdvertiser($advertiser)
|
40 |
-
{
|
41 |
-
$this->advertiser = $advertiser;
|
42 |
-
}
|
43 |
-
public function getAdvertiser()
|
44 |
-
{
|
45 |
-
return $this->advertiser;
|
46 |
-
}
|
47 |
-
/**
|
48 |
-
* @param Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon
|
49 |
-
*/
|
50 |
-
public function setAppIcon(Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon $appIcon)
|
51 |
-
{
|
52 |
-
$this->appIcon = $appIcon;
|
53 |
-
}
|
54 |
-
/**
|
55 |
-
* @return Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon
|
56 |
-
*/
|
57 |
-
public function getAppIcon()
|
58 |
-
{
|
59 |
-
return $this->appIcon;
|
60 |
-
}
|
61 |
-
public function setBody($body)
|
62 |
-
{
|
63 |
-
$this->body = $body;
|
64 |
-
}
|
65 |
-
public function getBody()
|
66 |
-
{
|
67 |
-
return $this->body;
|
68 |
-
}
|
69 |
-
public function setCallToAction($callToAction)
|
70 |
-
{
|
71 |
-
$this->callToAction = $callToAction;
|
72 |
-
}
|
73 |
-
public function getCallToAction()
|
74 |
-
{
|
75 |
-
return $this->callToAction;
|
76 |
-
}
|
77 |
-
public function setClickLinkUrl($clickLinkUrl)
|
78 |
-
{
|
79 |
-
$this->clickLinkUrl = $clickLinkUrl;
|
80 |
-
}
|
81 |
-
public function getClickLinkUrl()
|
82 |
-
{
|
83 |
-
return $this->clickLinkUrl;
|
84 |
-
}
|
85 |
-
public function setClickTrackingUrl($clickTrackingUrl)
|
86 |
-
{
|
87 |
-
$this->clickTrackingUrl = $clickTrackingUrl;
|
88 |
-
}
|
89 |
-
public function getClickTrackingUrl()
|
90 |
-
{
|
91 |
-
return $this->clickTrackingUrl;
|
92 |
-
}
|
93 |
-
public function setHeadline($headline)
|
94 |
-
{
|
95 |
-
$this->headline = $headline;
|
96 |
-
}
|
97 |
-
public function getHeadline()
|
98 |
-
{
|
99 |
-
return $this->headline;
|
100 |
-
}
|
101 |
-
/**
|
102 |
-
* @param Google_Service_AdExchangeBuyer_CreativeNativeAdImage
|
103 |
-
*/
|
104 |
-
public function setImage(Google_Service_AdExchangeBuyer_CreativeNativeAdImage $image)
|
105 |
-
{
|
106 |
-
$this->image = $image;
|
107 |
-
}
|
108 |
-
/**
|
109 |
-
* @return Google_Service_AdExchangeBuyer_CreativeNativeAdImage
|
110 |
-
*/
|
111 |
-
public function getImage()
|
112 |
-
{
|
113 |
-
return $this->image;
|
114 |
-
}
|
115 |
-
public function setImpressionTrackingUrl($impressionTrackingUrl)
|
116 |
-
{
|
117 |
-
$this->impressionTrackingUrl = $impressionTrackingUrl;
|
118 |
-
}
|
119 |
-
public function getImpressionTrackingUrl()
|
120 |
-
{
|
121 |
-
return $this->impressionTrackingUrl;
|
122 |
-
}
|
123 |
-
/**
|
124 |
-
* @param Google_Service_AdExchangeBuyer_CreativeNativeAdLogo
|
125 |
-
*/
|
126 |
-
public function setLogo(Google_Service_AdExchangeBuyer_CreativeNativeAdLogo $logo)
|
127 |
-
{
|
128 |
-
$this->logo = $logo;
|
129 |
-
}
|
130 |
-
/**
|
131 |
-
* @return Google_Service_AdExchangeBuyer_CreativeNativeAdLogo
|
132 |
-
*/
|
133 |
-
public function getLogo()
|
134 |
-
{
|
135 |
-
return $this->logo;
|
136 |
-
}
|
137 |
-
public function setPrice($price)
|
138 |
-
{
|
139 |
-
$this->price = $price;
|
140 |
-
}
|
141 |
-
public function getPrice()
|
142 |
-
{
|
143 |
-
return $this->price;
|
144 |
-
}
|
145 |
-
public function setStarRating($starRating)
|
146 |
-
{
|
147 |
-
$this->starRating = $starRating;
|
148 |
-
}
|
149 |
-
public function getStarRating()
|
150 |
-
{
|
151 |
-
return $this->starRating;
|
152 |
-
}
|
153 |
-
public function setStore($store)
|
154 |
-
{
|
155 |
-
$this->store = $store;
|
156 |
-
}
|
157 |
-
public function getStore()
|
158 |
-
{
|
159 |
-
return $this->store;
|
160 |
-
}
|
161 |
-
public function setVideoURL($videoURL)
|
162 |
-
{
|
163 |
-
$this->videoURL = $videoURL;
|
164 |
-
}
|
165 |
-
public function getVideoURL()
|
166 |
-
{
|
167 |
-
return $this->videoURL;
|
168 |
-
}
|
169 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdAppIcon.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeNativeAdAppIcon extends Google_Model
|
19 |
-
{
|
20 |
-
public $height;
|
21 |
-
public $url;
|
22 |
-
public $width;
|
23 |
-
|
24 |
-
public function setHeight($height)
|
25 |
-
{
|
26 |
-
$this->height = $height;
|
27 |
-
}
|
28 |
-
public function getHeight()
|
29 |
-
{
|
30 |
-
return $this->height;
|
31 |
-
}
|
32 |
-
public function setUrl($url)
|
33 |
-
{
|
34 |
-
$this->url = $url;
|
35 |
-
}
|
36 |
-
public function getUrl()
|
37 |
-
{
|
38 |
-
return $this->url;
|
39 |
-
}
|
40 |
-
public function setWidth($width)
|
41 |
-
{
|
42 |
-
$this->width = $width;
|
43 |
-
}
|
44 |
-
public function getWidth()
|
45 |
-
{
|
46 |
-
return $this->width;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdImage.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeNativeAdImage extends Google_Model
|
19 |
-
{
|
20 |
-
public $height;
|
21 |
-
public $url;
|
22 |
-
public $width;
|
23 |
-
|
24 |
-
public function setHeight($height)
|
25 |
-
{
|
26 |
-
$this->height = $height;
|
27 |
-
}
|
28 |
-
public function getHeight()
|
29 |
-
{
|
30 |
-
return $this->height;
|
31 |
-
}
|
32 |
-
public function setUrl($url)
|
33 |
-
{
|
34 |
-
$this->url = $url;
|
35 |
-
}
|
36 |
-
public function getUrl()
|
37 |
-
{
|
38 |
-
return $this->url;
|
39 |
-
}
|
40 |
-
public function setWidth($width)
|
41 |
-
{
|
42 |
-
$this->width = $width;
|
43 |
-
}
|
44 |
-
public function getWidth()
|
45 |
-
{
|
46 |
-
return $this->width;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdLogo.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeNativeAdLogo extends Google_Model
|
19 |
-
{
|
20 |
-
public $height;
|
21 |
-
public $url;
|
22 |
-
public $width;
|
23 |
-
|
24 |
-
public function setHeight($height)
|
25 |
-
{
|
26 |
-
$this->height = $height;
|
27 |
-
}
|
28 |
-
public function getHeight()
|
29 |
-
{
|
30 |
-
return $this->height;
|
31 |
-
}
|
32 |
-
public function setUrl($url)
|
33 |
-
{
|
34 |
-
$this->url = $url;
|
35 |
-
}
|
36 |
-
public function getUrl()
|
37 |
-
{
|
38 |
-
return $this->url;
|
39 |
-
}
|
40 |
-
public function setWidth($width)
|
41 |
-
{
|
42 |
-
$this->width = $width;
|
43 |
-
}
|
44 |
-
public function getWidth()
|
45 |
-
{
|
46 |
-
return $this->width;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictions.php
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeServingRestrictions extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'disapprovalReasons';
|
21 |
-
protected $contextsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts';
|
22 |
-
protected $contextsDataType = 'array';
|
23 |
-
protected $disapprovalReasonsType = 'Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons';
|
24 |
-
protected $disapprovalReasonsDataType = 'array';
|
25 |
-
public $reason;
|
26 |
-
|
27 |
-
/**
|
28 |
-
* @param Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts
|
29 |
-
*/
|
30 |
-
public function setContexts($contexts)
|
31 |
-
{
|
32 |
-
$this->contexts = $contexts;
|
33 |
-
}
|
34 |
-
/**
|
35 |
-
* @return Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts
|
36 |
-
*/
|
37 |
-
public function getContexts()
|
38 |
-
{
|
39 |
-
return $this->contexts;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @param Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons
|
43 |
-
*/
|
44 |
-
public function setDisapprovalReasons($disapprovalReasons)
|
45 |
-
{
|
46 |
-
$this->disapprovalReasons = $disapprovalReasons;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @return Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons
|
50 |
-
*/
|
51 |
-
public function getDisapprovalReasons()
|
52 |
-
{
|
53 |
-
return $this->disapprovalReasons;
|
54 |
-
}
|
55 |
-
public function setReason($reason)
|
56 |
-
{
|
57 |
-
$this->reason = $reason;
|
58 |
-
}
|
59 |
-
public function getReason()
|
60 |
-
{
|
61 |
-
return $this->reason;
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsContexts.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsContexts extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'platform';
|
21 |
-
public $auctionType;
|
22 |
-
public $contextType;
|
23 |
-
public $geoCriteriaId;
|
24 |
-
public $platform;
|
25 |
-
|
26 |
-
public function setAuctionType($auctionType)
|
27 |
-
{
|
28 |
-
$this->auctionType = $auctionType;
|
29 |
-
}
|
30 |
-
public function getAuctionType()
|
31 |
-
{
|
32 |
-
return $this->auctionType;
|
33 |
-
}
|
34 |
-
public function setContextType($contextType)
|
35 |
-
{
|
36 |
-
$this->contextType = $contextType;
|
37 |
-
}
|
38 |
-
public function getContextType()
|
39 |
-
{
|
40 |
-
return $this->contextType;
|
41 |
-
}
|
42 |
-
public function setGeoCriteriaId($geoCriteriaId)
|
43 |
-
{
|
44 |
-
$this->geoCriteriaId = $geoCriteriaId;
|
45 |
-
}
|
46 |
-
public function getGeoCriteriaId()
|
47 |
-
{
|
48 |
-
return $this->geoCriteriaId;
|
49 |
-
}
|
50 |
-
public function setPlatform($platform)
|
51 |
-
{
|
52 |
-
$this->platform = $platform;
|
53 |
-
}
|
54 |
-
public function getPlatform()
|
55 |
-
{
|
56 |
-
return $this->platform;
|
57 |
-
}
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeServingRestrictionsDisapprovalReasons.php
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativeServingRestrictionsDisapprovalReasons extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'details';
|
21 |
-
public $details;
|
22 |
-
public $reason;
|
23 |
-
|
24 |
-
public function setDetails($details)
|
25 |
-
{
|
26 |
-
$this->details = $details;
|
27 |
-
}
|
28 |
-
public function getDetails()
|
29 |
-
{
|
30 |
-
return $this->details;
|
31 |
-
}
|
32 |
-
public function setReason($reason)
|
33 |
-
{
|
34 |
-
$this->reason = $reason;
|
35 |
-
}
|
36 |
-
public function getReason()
|
37 |
-
{
|
38 |
-
return $this->reason;
|
39 |
-
}
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativesList.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_CreativesList extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'items';
|
21 |
-
protected $itemsType = 'Google_Service_AdExchangeBuyer_Creative';
|
22 |
-
protected $itemsDataType = 'array';
|
23 |
-
public $kind;
|
24 |
-
public $nextPageToken;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyer_Creative
|
28 |
-
*/
|
29 |
-
public function setItems($items)
|
30 |
-
{
|
31 |
-
$this->items = $items;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyer_Creative
|
35 |
-
*/
|
36 |
-
public function getItems()
|
37 |
-
{
|
38 |
-
return $this->items;
|
39 |
-
}
|
40 |
-
public function setKind($kind)
|
41 |
-
{
|
42 |
-
$this->kind = $kind;
|
43 |
-
}
|
44 |
-
public function getKind()
|
45 |
-
{
|
46 |
-
return $this->kind;
|
47 |
-
}
|
48 |
-
public function setNextPageToken($nextPageToken)
|
49 |
-
{
|
50 |
-
$this->nextPageToken = $nextPageToken;
|
51 |
-
}
|
52 |
-
public function getNextPageToken()
|
53 |
-
{
|
54 |
-
return $this->nextPageToken;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadata.php
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealServingMetadata extends Google_Model
|
19 |
-
{
|
20 |
-
public $alcoholAdsAllowed;
|
21 |
-
protected $dealPauseStatusType = 'Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus';
|
22 |
-
protected $dealPauseStatusDataType = '';
|
23 |
-
|
24 |
-
public function setAlcoholAdsAllowed($alcoholAdsAllowed)
|
25 |
-
{
|
26 |
-
$this->alcoholAdsAllowed = $alcoholAdsAllowed;
|
27 |
-
}
|
28 |
-
public function getAlcoholAdsAllowed()
|
29 |
-
{
|
30 |
-
return $this->alcoholAdsAllowed;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @param Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus
|
34 |
-
*/
|
35 |
-
public function setDealPauseStatus(Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus $dealPauseStatus)
|
36 |
-
{
|
37 |
-
$this->dealPauseStatus = $dealPauseStatus;
|
38 |
-
}
|
39 |
-
/**
|
40 |
-
* @return Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus
|
41 |
-
*/
|
42 |
-
public function getDealPauseStatus()
|
43 |
-
{
|
44 |
-
return $this->dealPauseStatus;
|
45 |
-
}
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealServingMetadataDealPauseStatus.php
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealServingMetadataDealPauseStatus extends Google_Model
|
19 |
-
{
|
20 |
-
public $buyerPauseReason;
|
21 |
-
public $firstPausedBy;
|
22 |
-
public $hasBuyerPaused;
|
23 |
-
public $hasSellerPaused;
|
24 |
-
public $sellerPauseReason;
|
25 |
-
|
26 |
-
public function setBuyerPauseReason($buyerPauseReason)
|
27 |
-
{
|
28 |
-
$this->buyerPauseReason = $buyerPauseReason;
|
29 |
-
}
|
30 |
-
public function getBuyerPauseReason()
|
31 |
-
{
|
32 |
-
return $this->buyerPauseReason;
|
33 |
-
}
|
34 |
-
public function setFirstPausedBy($firstPausedBy)
|
35 |
-
{
|
36 |
-
$this->firstPausedBy = $firstPausedBy;
|
37 |
-
}
|
38 |
-
public function getFirstPausedBy()
|
39 |
-
{
|
40 |
-
return $this->firstPausedBy;
|
41 |
-
}
|
42 |
-
public function setHasBuyerPaused($hasBuyerPaused)
|
43 |
-
{
|
44 |
-
$this->hasBuyerPaused = $hasBuyerPaused;
|
45 |
-
}
|
46 |
-
public function getHasBuyerPaused()
|
47 |
-
{
|
48 |
-
return $this->hasBuyerPaused;
|
49 |
-
}
|
50 |
-
public function setHasSellerPaused($hasSellerPaused)
|
51 |
-
{
|
52 |
-
$this->hasSellerPaused = $hasSellerPaused;
|
53 |
-
}
|
54 |
-
public function getHasSellerPaused()
|
55 |
-
{
|
56 |
-
return $this->hasSellerPaused;
|
57 |
-
}
|
58 |
-
public function setSellerPauseReason($sellerPauseReason)
|
59 |
-
{
|
60 |
-
$this->sellerPauseReason = $sellerPauseReason;
|
61 |
-
}
|
62 |
-
public function getSellerPauseReason()
|
63 |
-
{
|
64 |
-
return $this->sellerPauseReason;
|
65 |
-
}
|
66 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTerms.php
DELETED
@@ -1,146 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealTerms extends Google_Model
|
19 |
-
{
|
20 |
-
public $brandingType;
|
21 |
-
public $crossListedExternalDealIdType;
|
22 |
-
public $description;
|
23 |
-
protected $estimatedGrossSpendType = 'Google_Service_AdExchangeBuyer_Price';
|
24 |
-
protected $estimatedGrossSpendDataType = '';
|
25 |
-
public $estimatedImpressionsPerDay;
|
26 |
-
protected $guaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms';
|
27 |
-
protected $guaranteedFixedPriceTermsDataType = '';
|
28 |
-
protected $nonGuaranteedAuctionTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms';
|
29 |
-
protected $nonGuaranteedAuctionTermsDataType = '';
|
30 |
-
protected $nonGuaranteedFixedPriceTermsType = 'Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms';
|
31 |
-
protected $nonGuaranteedFixedPriceTermsDataType = '';
|
32 |
-
protected $rubiconNonGuaranteedTermsType = 'Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms';
|
33 |
-
protected $rubiconNonGuaranteedTermsDataType = '';
|
34 |
-
public $sellerTimeZone;
|
35 |
-
|
36 |
-
public function setBrandingType($brandingType)
|
37 |
-
{
|
38 |
-
$this->brandingType = $brandingType;
|
39 |
-
}
|
40 |
-
public function getBrandingType()
|
41 |
-
{
|
42 |
-
return $this->brandingType;
|
43 |
-
}
|
44 |
-
public function setCrossListedExternalDealIdType($crossListedExternalDealIdType)
|
45 |
-
{
|
46 |
-
$this->crossListedExternalDealIdType = $crossListedExternalDealIdType;
|
47 |
-
}
|
48 |
-
public function getCrossListedExternalDealIdType()
|
49 |
-
{
|
50 |
-
return $this->crossListedExternalDealIdType;
|
51 |
-
}
|
52 |
-
public function setDescription($description)
|
53 |
-
{
|
54 |
-
$this->description = $description;
|
55 |
-
}
|
56 |
-
public function getDescription()
|
57 |
-
{
|
58 |
-
return $this->description;
|
59 |
-
}
|
60 |
-
/**
|
61 |
-
* @param Google_Service_AdExchangeBuyer_Price
|
62 |
-
*/
|
63 |
-
public function setEstimatedGrossSpend(Google_Service_AdExchangeBuyer_Price $estimatedGrossSpend)
|
64 |
-
{
|
65 |
-
$this->estimatedGrossSpend = $estimatedGrossSpend;
|
66 |
-
}
|
67 |
-
/**
|
68 |
-
* @return Google_Service_AdExchangeBuyer_Price
|
69 |
-
*/
|
70 |
-
public function getEstimatedGrossSpend()
|
71 |
-
{
|
72 |
-
return $this->estimatedGrossSpend;
|
73 |
-
}
|
74 |
-
public function setEstimatedImpressionsPerDay($estimatedImpressionsPerDay)
|
75 |
-
{
|
76 |
-
$this->estimatedImpressionsPerDay = $estimatedImpressionsPerDay;
|
77 |
-
}
|
78 |
-
public function getEstimatedImpressionsPerDay()
|
79 |
-
{
|
80 |
-
return $this->estimatedImpressionsPerDay;
|
81 |
-
}
|
82 |
-
/**
|
83 |
-
* @param Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms
|
84 |
-
*/
|
85 |
-
public function setGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms $guaranteedFixedPriceTerms)
|
86 |
-
{
|
87 |
-
$this->guaranteedFixedPriceTerms = $guaranteedFixedPriceTerms;
|
88 |
-
}
|
89 |
-
/**
|
90 |
-
* @return Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms
|
91 |
-
*/
|
92 |
-
public function getGuaranteedFixedPriceTerms()
|
93 |
-
{
|
94 |
-
return $this->guaranteedFixedPriceTerms;
|
95 |
-
}
|
96 |
-
/**
|
97 |
-
* @param Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms
|
98 |
-
*/
|
99 |
-
public function setNonGuaranteedAuctionTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms $nonGuaranteedAuctionTerms)
|
100 |
-
{
|
101 |
-
$this->nonGuaranteedAuctionTerms = $nonGuaranteedAuctionTerms;
|
102 |
-
}
|
103 |
-
/**
|
104 |
-
* @return Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms
|
105 |
-
*/
|
106 |
-
public function getNonGuaranteedAuctionTerms()
|
107 |
-
{
|
108 |
-
return $this->nonGuaranteedAuctionTerms;
|
109 |
-
}
|
110 |
-
/**
|
111 |
-
* @param Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms
|
112 |
-
*/
|
113 |
-
public function setNonGuaranteedFixedPriceTerms(Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms $nonGuaranteedFixedPriceTerms)
|
114 |
-
{
|
115 |
-
$this->nonGuaranteedFixedPriceTerms = $nonGuaranteedFixedPriceTerms;
|
116 |
-
}
|
117 |
-
/**
|
118 |
-
* @return Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms
|
119 |
-
*/
|
120 |
-
public function getNonGuaranteedFixedPriceTerms()
|
121 |
-
{
|
122 |
-
return $this->nonGuaranteedFixedPriceTerms;
|
123 |
-
}
|
124 |
-
/**
|
125 |
-
* @param Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms
|
126 |
-
*/
|
127 |
-
public function setRubiconNonGuaranteedTerms(Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms $rubiconNonGuaranteedTerms)
|
128 |
-
{
|
129 |
-
$this->rubiconNonGuaranteedTerms = $rubiconNonGuaranteedTerms;
|
130 |
-
}
|
131 |
-
/**
|
132 |
-
* @return Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms
|
133 |
-
*/
|
134 |
-
public function getRubiconNonGuaranteedTerms()
|
135 |
-
{
|
136 |
-
return $this->rubiconNonGuaranteedTerms;
|
137 |
-
}
|
138 |
-
public function setSellerTimeZone($sellerTimeZone)
|
139 |
-
{
|
140 |
-
$this->sellerTimeZone = $sellerTimeZone;
|
141 |
-
}
|
142 |
-
public function getSellerTimeZone()
|
143 |
-
{
|
144 |
-
return $this->sellerTimeZone;
|
145 |
-
}
|
146 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTerms.php
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTerms extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'fixedPrices';
|
21 |
-
protected $billingInfoType = 'Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo';
|
22 |
-
protected $billingInfoDataType = '';
|
23 |
-
protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer';
|
24 |
-
protected $fixedPricesDataType = 'array';
|
25 |
-
public $guaranteedImpressions;
|
26 |
-
public $guaranteedLooks;
|
27 |
-
public $minimumDailyLooks;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* @param Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo
|
31 |
-
*/
|
32 |
-
public function setBillingInfo(Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo $billingInfo)
|
33 |
-
{
|
34 |
-
$this->billingInfo = $billingInfo;
|
35 |
-
}
|
36 |
-
/**
|
37 |
-
* @return Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo
|
38 |
-
*/
|
39 |
-
public function getBillingInfo()
|
40 |
-
{
|
41 |
-
return $this->billingInfo;
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* @param Google_Service_AdExchangeBuyer_PricePerBuyer
|
45 |
-
*/
|
46 |
-
public function setFixedPrices($fixedPrices)
|
47 |
-
{
|
48 |
-
$this->fixedPrices = $fixedPrices;
|
49 |
-
}
|
50 |
-
/**
|
51 |
-
* @return Google_Service_AdExchangeBuyer_PricePerBuyer
|
52 |
-
*/
|
53 |
-
public function getFixedPrices()
|
54 |
-
{
|
55 |
-
return $this->fixedPrices;
|
56 |
-
}
|
57 |
-
public function setGuaranteedImpressions($guaranteedImpressions)
|
58 |
-
{
|
59 |
-
$this->guaranteedImpressions = $guaranteedImpressions;
|
60 |
-
}
|
61 |
-
public function getGuaranteedImpressions()
|
62 |
-
{
|
63 |
-
return $this->guaranteedImpressions;
|
64 |
-
}
|
65 |
-
public function setGuaranteedLooks($guaranteedLooks)
|
66 |
-
{
|
67 |
-
$this->guaranteedLooks = $guaranteedLooks;
|
68 |
-
}
|
69 |
-
public function getGuaranteedLooks()
|
70 |
-
{
|
71 |
-
return $this->guaranteedLooks;
|
72 |
-
}
|
73 |
-
public function setMinimumDailyLooks($minimumDailyLooks)
|
74 |
-
{
|
75 |
-
$this->minimumDailyLooks = $minimumDailyLooks;
|
76 |
-
}
|
77 |
-
public function getMinimumDailyLooks()
|
78 |
-
{
|
79 |
-
return $this->minimumDailyLooks;
|
80 |
-
}
|
81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsGuaranteedFixedPriceTermsBillingInfo.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealTermsGuaranteedFixedPriceTermsBillingInfo extends Google_Model
|
19 |
-
{
|
20 |
-
public $currencyConversionTimeMs;
|
21 |
-
public $dfpLineItemId;
|
22 |
-
public $originalContractedQuantity;
|
23 |
-
protected $priceType = 'Google_Service_AdExchangeBuyer_Price';
|
24 |
-
protected $priceDataType = '';
|
25 |
-
|
26 |
-
public function setCurrencyConversionTimeMs($currencyConversionTimeMs)
|
27 |
-
{
|
28 |
-
$this->currencyConversionTimeMs = $currencyConversionTimeMs;
|
29 |
-
}
|
30 |
-
public function getCurrencyConversionTimeMs()
|
31 |
-
{
|
32 |
-
return $this->currencyConversionTimeMs;
|
33 |
-
}
|
34 |
-
public function setDfpLineItemId($dfpLineItemId)
|
35 |
-
{
|
36 |
-
$this->dfpLineItemId = $dfpLineItemId;
|
37 |
-
}
|
38 |
-
public function getDfpLineItemId()
|
39 |
-
{
|
40 |
-
return $this->dfpLineItemId;
|
41 |
-
}
|
42 |
-
public function setOriginalContractedQuantity($originalContractedQuantity)
|
43 |
-
{
|
44 |
-
$this->originalContractedQuantity = $originalContractedQuantity;
|
45 |
-
}
|
46 |
-
public function getOriginalContractedQuantity()
|
47 |
-
{
|
48 |
-
return $this->originalContractedQuantity;
|
49 |
-
}
|
50 |
-
/**
|
51 |
-
* @param Google_Service_AdExchangeBuyer_Price
|
52 |
-
*/
|
53 |
-
public function setPrice(Google_Service_AdExchangeBuyer_Price $price)
|
54 |
-
{
|
55 |
-
$this->price = $price;
|
56 |
-
}
|
57 |
-
/**
|
58 |
-
* @return Google_Service_AdExchangeBuyer_Price
|
59 |
-
*/
|
60 |
-
public function getPrice()
|
61 |
-
{
|
62 |
-
return $this->price;
|
63 |
-
}
|
64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedAuctionTerms.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedAuctionTerms extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'reservePricePerBuyers';
|
21 |
-
public $autoOptimizePrivateAuction;
|
22 |
-
protected $reservePricePerBuyersType = 'Google_Service_AdExchangeBuyer_PricePerBuyer';
|
23 |
-
protected $reservePricePerBuyersDataType = 'array';
|
24 |
-
|
25 |
-
public function setAutoOptimizePrivateAuction($autoOptimizePrivateAuction)
|
26 |
-
{
|
27 |
-
$this->autoOptimizePrivateAuction = $autoOptimizePrivateAuction;
|
28 |
-
}
|
29 |
-
public function getAutoOptimizePrivateAuction()
|
30 |
-
{
|
31 |
-
return $this->autoOptimizePrivateAuction;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_AdExchangeBuyer_PricePerBuyer
|
35 |
-
*/
|
36 |
-
public function setReservePricePerBuyers($reservePricePerBuyers)
|
37 |
-
{
|
38 |
-
$this->reservePricePerBuyers = $reservePricePerBuyers;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_AdExchangeBuyer_PricePerBuyer
|
42 |
-
*/
|
43 |
-
public function getReservePricePerBuyers()
|
44 |
-
{
|
45 |
-
return $this->reservePricePerBuyers;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsNonGuaranteedFixedPriceTerms.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealTermsNonGuaranteedFixedPriceTerms extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'fixedPrices';
|
21 |
-
protected $fixedPricesType = 'Google_Service_AdExchangeBuyer_PricePerBuyer';
|
22 |
-
protected $fixedPricesDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_PricePerBuyer
|
26 |
-
*/
|
27 |
-
public function setFixedPrices($fixedPrices)
|
28 |
-
{
|
29 |
-
$this->fixedPrices = $fixedPrices;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_PricePerBuyer
|
33 |
-
*/
|
34 |
-
public function getFixedPrices()
|
35 |
-
{
|
36 |
-
return $this->fixedPrices;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DealTermsRubiconNonGuaranteedTerms.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DealTermsRubiconNonGuaranteedTerms extends Google_Model
|
19 |
-
{
|
20 |
-
protected $priorityPriceType = 'Google_Service_AdExchangeBuyer_Price';
|
21 |
-
protected $priorityPriceDataType = '';
|
22 |
-
protected $standardPriceType = 'Google_Service_AdExchangeBuyer_Price';
|
23 |
-
protected $standardPriceDataType = '';
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_Price
|
27 |
-
*/
|
28 |
-
public function setPriorityPrice(Google_Service_AdExchangeBuyer_Price $priorityPrice)
|
29 |
-
{
|
30 |
-
$this->priorityPrice = $priorityPrice;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_Price
|
34 |
-
*/
|
35 |
-
public function getPriorityPrice()
|
36 |
-
{
|
37 |
-
return $this->priorityPrice;
|
38 |
-
}
|
39 |
-
/**
|
40 |
-
* @param Google_Service_AdExchangeBuyer_Price
|
41 |
-
*/
|
42 |
-
public function setStandardPrice(Google_Service_AdExchangeBuyer_Price $standardPrice)
|
43 |
-
{
|
44 |
-
$this->standardPrice = $standardPrice;
|
45 |
-
}
|
46 |
-
/**
|
47 |
-
* @return Google_Service_AdExchangeBuyer_Price
|
48 |
-
*/
|
49 |
-
public function getStandardPrice()
|
50 |
-
{
|
51 |
-
return $this->standardPrice;
|
52 |
-
}
|
53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsRequest.php
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'dealIds';
|
21 |
-
public $dealIds;
|
22 |
-
public $proposalRevisionNumber;
|
23 |
-
public $updateAction;
|
24 |
-
|
25 |
-
public function setDealIds($dealIds)
|
26 |
-
{
|
27 |
-
$this->dealIds = $dealIds;
|
28 |
-
}
|
29 |
-
public function getDealIds()
|
30 |
-
{
|
31 |
-
return $this->dealIds;
|
32 |
-
}
|
33 |
-
public function setProposalRevisionNumber($proposalRevisionNumber)
|
34 |
-
{
|
35 |
-
$this->proposalRevisionNumber = $proposalRevisionNumber;
|
36 |
-
}
|
37 |
-
public function getProposalRevisionNumber()
|
38 |
-
{
|
39 |
-
return $this->proposalRevisionNumber;
|
40 |
-
}
|
41 |
-
public function setUpdateAction($updateAction)
|
42 |
-
{
|
43 |
-
$this->updateAction = $updateAction;
|
44 |
-
}
|
45 |
-
public function getUpdateAction()
|
46 |
-
{
|
47 |
-
return $this->updateAction;
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeleteOrderDealsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'deals';
|
21 |
-
protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
|
22 |
-
protected $dealsDataType = 'array';
|
23 |
-
public $proposalRevisionNumber;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceDeal
|
27 |
-
*/
|
28 |
-
public function setDeals($deals)
|
29 |
-
{
|
30 |
-
$this->deals = $deals;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceDeal
|
34 |
-
*/
|
35 |
-
public function getDeals()
|
36 |
-
{
|
37 |
-
return $this->deals;
|
38 |
-
}
|
39 |
-
public function setProposalRevisionNumber($proposalRevisionNumber)
|
40 |
-
{
|
41 |
-
$this->proposalRevisionNumber = $proposalRevisionNumber;
|
42 |
-
}
|
43 |
-
public function getProposalRevisionNumber()
|
44 |
-
{
|
45 |
-
return $this->proposalRevisionNumber;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControl.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DeliveryControl extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'frequencyCaps';
|
21 |
-
public $creativeBlockingLevel;
|
22 |
-
public $deliveryRateType;
|
23 |
-
protected $frequencyCapsType = 'Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap';
|
24 |
-
protected $frequencyCapsDataType = 'array';
|
25 |
-
|
26 |
-
public function setCreativeBlockingLevel($creativeBlockingLevel)
|
27 |
-
{
|
28 |
-
$this->creativeBlockingLevel = $creativeBlockingLevel;
|
29 |
-
}
|
30 |
-
public function getCreativeBlockingLevel()
|
31 |
-
{
|
32 |
-
return $this->creativeBlockingLevel;
|
33 |
-
}
|
34 |
-
public function setDeliveryRateType($deliveryRateType)
|
35 |
-
{
|
36 |
-
$this->deliveryRateType = $deliveryRateType;
|
37 |
-
}
|
38 |
-
public function getDeliveryRateType()
|
39 |
-
{
|
40 |
-
return $this->deliveryRateType;
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* @param Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap
|
44 |
-
*/
|
45 |
-
public function setFrequencyCaps($frequencyCaps)
|
46 |
-
{
|
47 |
-
$this->frequencyCaps = $frequencyCaps;
|
48 |
-
}
|
49 |
-
/**
|
50 |
-
* @return Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap
|
51 |
-
*/
|
52 |
-
public function getFrequencyCaps()
|
53 |
-
{
|
54 |
-
return $this->frequencyCaps;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DeliveryControlFrequencyCap.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DeliveryControlFrequencyCap extends Google_Model
|
19 |
-
{
|
20 |
-
public $maxImpressions;
|
21 |
-
public $numTimeUnits;
|
22 |
-
public $timeUnitType;
|
23 |
-
|
24 |
-
public function setMaxImpressions($maxImpressions)
|
25 |
-
{
|
26 |
-
$this->maxImpressions = $maxImpressions;
|
27 |
-
}
|
28 |
-
public function getMaxImpressions()
|
29 |
-
{
|
30 |
-
return $this->maxImpressions;
|
31 |
-
}
|
32 |
-
public function setNumTimeUnits($numTimeUnits)
|
33 |
-
{
|
34 |
-
$this->numTimeUnits = $numTimeUnits;
|
35 |
-
}
|
36 |
-
public function getNumTimeUnits()
|
37 |
-
{
|
38 |
-
return $this->numTimeUnits;
|
39 |
-
}
|
40 |
-
public function setTimeUnitType($timeUnitType)
|
41 |
-
{
|
42 |
-
$this->timeUnitType = $timeUnitType;
|
43 |
-
}
|
44 |
-
public function getTimeUnitType()
|
45 |
-
{
|
46 |
-
return $this->timeUnitType;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Dimension.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Dimension extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'dimensionValues';
|
21 |
-
public $dimensionType;
|
22 |
-
protected $dimensionValuesType = 'Google_Service_AdExchangeBuyer_DimensionDimensionValue';
|
23 |
-
protected $dimensionValuesDataType = 'array';
|
24 |
-
|
25 |
-
public function setDimensionType($dimensionType)
|
26 |
-
{
|
27 |
-
$this->dimensionType = $dimensionType;
|
28 |
-
}
|
29 |
-
public function getDimensionType()
|
30 |
-
{
|
31 |
-
return $this->dimensionType;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_AdExchangeBuyer_DimensionDimensionValue
|
35 |
-
*/
|
36 |
-
public function setDimensionValues($dimensionValues)
|
37 |
-
{
|
38 |
-
$this->dimensionValues = $dimensionValues;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_AdExchangeBuyer_DimensionDimensionValue
|
42 |
-
*/
|
43 |
-
public function getDimensionValues()
|
44 |
-
{
|
45 |
-
return $this->dimensionValues;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/DimensionDimensionValue.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_DimensionDimensionValue extends Google_Model
|
19 |
-
{
|
20 |
-
public $id;
|
21 |
-
public $name;
|
22 |
-
public $percentage;
|
23 |
-
|
24 |
-
public function setId($id)
|
25 |
-
{
|
26 |
-
$this->id = $id;
|
27 |
-
}
|
28 |
-
public function getId()
|
29 |
-
{
|
30 |
-
return $this->id;
|
31 |
-
}
|
32 |
-
public function setName($name)
|
33 |
-
{
|
34 |
-
$this->name = $name;
|
35 |
-
}
|
36 |
-
public function getName()
|
37 |
-
{
|
38 |
-
return $this->name;
|
39 |
-
}
|
40 |
-
public function setPercentage($percentage)
|
41 |
-
{
|
42 |
-
$this->percentage = $percentage;
|
43 |
-
}
|
44 |
-
public function getPercentage()
|
45 |
-
{
|
46 |
-
return $this->percentage;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsRequest.php
DELETED
@@ -1,72 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'deals';
|
21 |
-
protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
|
22 |
-
protected $dealsDataType = 'array';
|
23 |
-
protected $proposalType = 'Google_Service_AdExchangeBuyer_Proposal';
|
24 |
-
protected $proposalDataType = '';
|
25 |
-
public $proposalRevisionNumber;
|
26 |
-
public $updateAction;
|
27 |
-
|
28 |
-
/**
|
29 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceDeal
|
30 |
-
*/
|
31 |
-
public function setDeals($deals)
|
32 |
-
{
|
33 |
-
$this->deals = $deals;
|
34 |
-
}
|
35 |
-
/**
|
36 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceDeal
|
37 |
-
*/
|
38 |
-
public function getDeals()
|
39 |
-
{
|
40 |
-
return $this->deals;
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* @param Google_Service_AdExchangeBuyer_Proposal
|
44 |
-
*/
|
45 |
-
public function setProposal(Google_Service_AdExchangeBuyer_Proposal $proposal)
|
46 |
-
{
|
47 |
-
$this->proposal = $proposal;
|
48 |
-
}
|
49 |
-
/**
|
50 |
-
* @return Google_Service_AdExchangeBuyer_Proposal
|
51 |
-
*/
|
52 |
-
public function getProposal()
|
53 |
-
{
|
54 |
-
return $this->proposal;
|
55 |
-
}
|
56 |
-
public function setProposalRevisionNumber($proposalRevisionNumber)
|
57 |
-
{
|
58 |
-
$this->proposalRevisionNumber = $proposalRevisionNumber;
|
59 |
-
}
|
60 |
-
public function getProposalRevisionNumber()
|
61 |
-
{
|
62 |
-
return $this->proposalRevisionNumber;
|
63 |
-
}
|
64 |
-
public function setUpdateAction($updateAction)
|
65 |
-
{
|
66 |
-
$this->updateAction = $updateAction;
|
67 |
-
}
|
68 |
-
public function getUpdateAction()
|
69 |
-
{
|
70 |
-
return $this->updateAction;
|
71 |
-
}
|
72 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/EditAllOrderDealsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'deals';
|
21 |
-
protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
|
22 |
-
protected $dealsDataType = 'array';
|
23 |
-
public $orderRevisionNumber;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceDeal
|
27 |
-
*/
|
28 |
-
public function setDeals($deals)
|
29 |
-
{
|
30 |
-
$this->deals = $deals;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceDeal
|
34 |
-
*/
|
35 |
-
public function getDeals()
|
36 |
-
{
|
37 |
-
return $this->deals;
|
38 |
-
}
|
39 |
-
public function setOrderRevisionNumber($orderRevisionNumber)
|
40 |
-
{
|
41 |
-
$this->orderRevisionNumber = $orderRevisionNumber;
|
42 |
-
}
|
43 |
-
public function getOrderRevisionNumber()
|
44 |
-
{
|
45 |
-
return $this->orderRevisionNumber;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOffersResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_GetOffersResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'products';
|
21 |
-
protected $productsType = 'Google_Service_AdExchangeBuyer_Product';
|
22 |
-
protected $productsDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_Product
|
26 |
-
*/
|
27 |
-
public function setProducts($products)
|
28 |
-
{
|
29 |
-
$this->products = $products;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_Product
|
33 |
-
*/
|
34 |
-
public function getProducts()
|
35 |
-
{
|
36 |
-
return $this->products;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderDealsResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_GetOrderDealsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'deals';
|
21 |
-
protected $dealsType = 'Google_Service_AdExchangeBuyer_MarketplaceDeal';
|
22 |
-
protected $dealsDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceDeal
|
26 |
-
*/
|
27 |
-
public function setDeals($deals)
|
28 |
-
{
|
29 |
-
$this->deals = $deals;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceDeal
|
33 |
-
*/
|
34 |
-
public function getDeals()
|
35 |
-
{
|
36 |
-
return $this->deals;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrderNotesResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_GetOrderNotesResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'notes';
|
21 |
-
protected $notesType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
|
22 |
-
protected $notesDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceNote
|
26 |
-
*/
|
27 |
-
public function setNotes($notes)
|
28 |
-
{
|
29 |
-
$this->notes = $notes;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceNote
|
33 |
-
*/
|
34 |
-
public function getNotes()
|
35 |
-
{
|
36 |
-
return $this->notes;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetOrdersResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_GetOrdersResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'proposals';
|
21 |
-
protected $proposalsType = 'Google_Service_AdExchangeBuyer_Proposal';
|
22 |
-
protected $proposalsDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_Proposal
|
26 |
-
*/
|
27 |
-
public function setProposals($proposals)
|
28 |
-
{
|
29 |
-
$this->proposals = $proposals;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_Proposal
|
33 |
-
*/
|
34 |
-
public function getProposals()
|
35 |
-
{
|
36 |
-
return $this->proposals;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/GetPublisherProfilesByAccountIdResponse.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'profiles';
|
21 |
-
protected $profilesType = 'Google_Service_AdExchangeBuyer_PublisherProfileApiProto';
|
22 |
-
protected $profilesDataType = 'array';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param Google_Service_AdExchangeBuyer_PublisherProfileApiProto
|
26 |
-
*/
|
27 |
-
public function setProfiles($profiles)
|
28 |
-
{
|
29 |
-
$this->profiles = $profiles;
|
30 |
-
}
|
31 |
-
/**
|
32 |
-
* @return Google_Service_AdExchangeBuyer_PublisherProfileApiProto
|
33 |
-
*/
|
34 |
-
public function getProfiles()
|
35 |
-
{
|
36 |
-
return $this->profiles;
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDeal.php
DELETED
@@ -1,289 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_MarketplaceDeal extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'sharedTargetings';
|
21 |
-
protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData';
|
22 |
-
protected $buyerPrivateDataDataType = '';
|
23 |
-
public $creationTimeMs;
|
24 |
-
public $creativePreApprovalPolicy;
|
25 |
-
public $creativeSafeFrameCompatibility;
|
26 |
-
public $dealId;
|
27 |
-
protected $dealServingMetadataType = 'Google_Service_AdExchangeBuyer_DealServingMetadata';
|
28 |
-
protected $dealServingMetadataDataType = '';
|
29 |
-
protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl';
|
30 |
-
protected $deliveryControlDataType = '';
|
31 |
-
public $externalDealId;
|
32 |
-
public $flightEndTimeMs;
|
33 |
-
public $flightStartTimeMs;
|
34 |
-
public $inventoryDescription;
|
35 |
-
public $isRfpTemplate;
|
36 |
-
public $isSetupComplete;
|
37 |
-
public $kind;
|
38 |
-
public $lastUpdateTimeMs;
|
39 |
-
public $name;
|
40 |
-
public $productId;
|
41 |
-
public $productRevisionNumber;
|
42 |
-
public $programmaticCreativeSource;
|
43 |
-
public $proposalId;
|
44 |
-
protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
|
45 |
-
protected $sellerContactsDataType = 'array';
|
46 |
-
protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting';
|
47 |
-
protected $sharedTargetingsDataType = 'array';
|
48 |
-
public $syndicationProduct;
|
49 |
-
protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms';
|
50 |
-
protected $termsDataType = '';
|
51 |
-
public $webPropertyCode;
|
52 |
-
|
53 |
-
/**
|
54 |
-
* @param Google_Service_AdExchangeBuyer_PrivateData
|
55 |
-
*/
|
56 |
-
public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData)
|
57 |
-
{
|
58 |
-
$this->buyerPrivateData = $buyerPrivateData;
|
59 |
-
}
|
60 |
-
/**
|
61 |
-
* @return Google_Service_AdExchangeBuyer_PrivateData
|
62 |
-
*/
|
63 |
-
public function getBuyerPrivateData()
|
64 |
-
{
|
65 |
-
return $this->buyerPrivateData;
|
66 |
-
}
|
67 |
-
public function setCreationTimeMs($creationTimeMs)
|
68 |
-
{
|
69 |
-
$this->creationTimeMs = $creationTimeMs;
|
70 |
-
}
|
71 |
-
public function getCreationTimeMs()
|
72 |
-
{
|
73 |
-
return $this->creationTimeMs;
|
74 |
-
}
|
75 |
-
public function setCreativePreApprovalPolicy($creativePreApprovalPolicy)
|
76 |
-
{
|
77 |
-
$this->creativePreApprovalPolicy = $creativePreApprovalPolicy;
|
78 |
-
}
|
79 |
-
public function getCreativePreApprovalPolicy()
|
80 |
-
{
|
81 |
-
return $this->creativePreApprovalPolicy;
|
82 |
-
}
|
83 |
-
public function setCreativeSafeFrameCompatibility($creativeSafeFrameCompatibility)
|
84 |
-
{
|
85 |
-
$this->creativeSafeFrameCompatibility = $creativeSafeFrameCompatibility;
|
86 |
-
}
|
87 |
-
public function getCreativeSafeFrameCompatibility()
|
88 |
-
{
|
89 |
-
return $this->creativeSafeFrameCompatibility;
|
90 |
-
}
|
91 |
-
public function setDealId($dealId)
|
92 |
-
{
|
93 |
-
$this->dealId = $dealId;
|
94 |
-
}
|
95 |
-
public function getDealId()
|
96 |
-
{
|
97 |
-
return $this->dealId;
|
98 |
-
}
|
99 |
-
/**
|
100 |
-
* @param Google_Service_AdExchangeBuyer_DealServingMetadata
|
101 |
-
*/
|
102 |
-
public function setDealServingMetadata(Google_Service_AdExchangeBuyer_DealServingMetadata $dealServingMetadata)
|
103 |
-
{
|
104 |
-
$this->dealServingMetadata = $dealServingMetadata;
|
105 |
-
}
|
106 |
-
/**
|
107 |
-
* @return Google_Service_AdExchangeBuyer_DealServingMetadata
|
108 |
-
*/
|
109 |
-
public function getDealServingMetadata()
|
110 |
-
{
|
111 |
-
return $this->dealServingMetadata;
|
112 |
-
}
|
113 |
-
/**
|
114 |
-
* @param Google_Service_AdExchangeBuyer_DeliveryControl
|
115 |
-
*/
|
116 |
-
public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl)
|
117 |
-
{
|
118 |
-
$this->deliveryControl = $deliveryControl;
|
119 |
-
}
|
120 |
-
/**
|
121 |
-
* @return Google_Service_AdExchangeBuyer_DeliveryControl
|
122 |
-
*/
|
123 |
-
public function getDeliveryControl()
|
124 |
-
{
|
125 |
-
return $this->deliveryControl;
|
126 |
-
}
|
127 |
-
public function setExternalDealId($externalDealId)
|
128 |
-
{
|
129 |
-
$this->externalDealId = $externalDealId;
|
130 |
-
}
|
131 |
-
public function getExternalDealId()
|
132 |
-
{
|
133 |
-
return $this->externalDealId;
|
134 |
-
}
|
135 |
-
public function setFlightEndTimeMs($flightEndTimeMs)
|
136 |
-
{
|
137 |
-
$this->flightEndTimeMs = $flightEndTimeMs;
|
138 |
-
}
|
139 |
-
public function getFlightEndTimeMs()
|
140 |
-
{
|
141 |
-
return $this->flightEndTimeMs;
|
142 |
-
}
|
143 |
-
public function setFlightStartTimeMs($flightStartTimeMs)
|
144 |
-
{
|
145 |
-
$this->flightStartTimeMs = $flightStartTimeMs;
|
146 |
-
}
|
147 |
-
public function getFlightStartTimeMs()
|
148 |
-
{
|
149 |
-
return $this->flightStartTimeMs;
|
150 |
-
}
|
151 |
-
public function setInventoryDescription($inventoryDescription)
|
152 |
-
{
|
153 |
-
$this->inventoryDescription = $inventoryDescription;
|
154 |
-
}
|
155 |
-
public function getInventoryDescription()
|
156 |
-
{
|
157 |
-
return $this->inventoryDescription;
|
158 |
-
}
|
159 |
-
public function setIsRfpTemplate($isRfpTemplate)
|
160 |
-
{
|
161 |
-
$this->isRfpTemplate = $isRfpTemplate;
|
162 |
-
}
|
163 |
-
public function getIsRfpTemplate()
|
164 |
-
{
|
165 |
-
return $this->isRfpTemplate;
|
166 |
-
}
|
167 |
-
public function setIsSetupComplete($isSetupComplete)
|
168 |
-
{
|
169 |
-
$this->isSetupComplete = $isSetupComplete;
|
170 |
-
}
|
171 |
-
public function getIsSetupComplete()
|
172 |
-
{
|
173 |
-
return $this->isSetupComplete;
|
174 |
-
}
|
175 |
-
public function setKind($kind)
|
176 |
-
{
|
177 |
-
$this->kind = $kind;
|
178 |
-
}
|
179 |
-
public function getKind()
|
180 |
-
{
|
181 |
-
return $this->kind;
|
182 |
-
}
|
183 |
-
public function setLastUpdateTimeMs($lastUpdateTimeMs)
|
184 |
-
{
|
185 |
-
$this->lastUpdateTimeMs = $lastUpdateTimeMs;
|
186 |
-
}
|
187 |
-
public function getLastUpdateTimeMs()
|
188 |
-
{
|
189 |
-
return $this->lastUpdateTimeMs;
|
190 |
-
}
|
191 |
-
public function setName($name)
|
192 |
-
{
|
193 |
-
$this->name = $name;
|
194 |
-
}
|
195 |
-
public function getName()
|
196 |
-
{
|
197 |
-
return $this->name;
|
198 |
-
}
|
199 |
-
public function setProductId($productId)
|
200 |
-
{
|
201 |
-
$this->productId = $productId;
|
202 |
-
}
|
203 |
-
public function getProductId()
|
204 |
-
{
|
205 |
-
return $this->productId;
|
206 |
-
}
|
207 |
-
public function setProductRevisionNumber($productRevisionNumber)
|
208 |
-
{
|
209 |
-
$this->productRevisionNumber = $productRevisionNumber;
|
210 |
-
}
|
211 |
-
public function getProductRevisionNumber()
|
212 |
-
{
|
213 |
-
return $this->productRevisionNumber;
|
214 |
-
}
|
215 |
-
public function setProgrammaticCreativeSource($programmaticCreativeSource)
|
216 |
-
{
|
217 |
-
$this->programmaticCreativeSource = $programmaticCreativeSource;
|
218 |
-
}
|
219 |
-
public function getProgrammaticCreativeSource()
|
220 |
-
{
|
221 |
-
return $this->programmaticCreativeSource;
|
222 |
-
}
|
223 |
-
public function setProposalId($proposalId)
|
224 |
-
{
|
225 |
-
$this->proposalId = $proposalId;
|
226 |
-
}
|
227 |
-
public function getProposalId()
|
228 |
-
{
|
229 |
-
return $this->proposalId;
|
230 |
-
}
|
231 |
-
/**
|
232 |
-
* @param Google_Service_AdExchangeBuyer_ContactInformation
|
233 |
-
*/
|
234 |
-
public function setSellerContacts($sellerContacts)
|
235 |
-
{
|
236 |
-
$this->sellerContacts = $sellerContacts;
|
237 |
-
}
|
238 |
-
/**
|
239 |
-
* @return Google_Service_AdExchangeBuyer_ContactInformation
|
240 |
-
*/
|
241 |
-
public function getSellerContacts()
|
242 |
-
{
|
243 |
-
return $this->sellerContacts;
|
244 |
-
}
|
245 |
-
/**
|
246 |
-
* @param Google_Service_AdExchangeBuyer_SharedTargeting
|
247 |
-
*/
|
248 |
-
public function setSharedTargetings($sharedTargetings)
|
249 |
-
{
|
250 |
-
$this->sharedTargetings = $sharedTargetings;
|
251 |
-
}
|
252 |
-
/**
|
253 |
-
* @return Google_Service_AdExchangeBuyer_SharedTargeting
|
254 |
-
*/
|
255 |
-
public function getSharedTargetings()
|
256 |
-
{
|
257 |
-
return $this->sharedTargetings;
|
258 |
-
}
|
259 |
-
public function setSyndicationProduct($syndicationProduct)
|
260 |
-
{
|
261 |
-
$this->syndicationProduct = $syndicationProduct;
|
262 |
-
}
|
263 |
-
public function getSyndicationProduct()
|
264 |
-
{
|
265 |
-
return $this->syndicationProduct;
|
266 |
-
}
|
267 |
-
/**
|
268 |
-
* @param Google_Service_AdExchangeBuyer_DealTerms
|
269 |
-
*/
|
270 |
-
public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms)
|
271 |
-
{
|
272 |
-
$this->terms = $terms;
|
273 |
-
}
|
274 |
-
/**
|
275 |
-
* @return Google_Service_AdExchangeBuyer_DealTerms
|
276 |
-
*/
|
277 |
-
public function getTerms()
|
278 |
-
{
|
279 |
-
return $this->terms;
|
280 |
-
}
|
281 |
-
public function setWebPropertyCode($webPropertyCode)
|
282 |
-
{
|
283 |
-
$this->webPropertyCode = $webPropertyCode;
|
284 |
-
}
|
285 |
-
public function getWebPropertyCode()
|
286 |
-
{
|
287 |
-
return $this->webPropertyCode;
|
288 |
-
}
|
289 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceDealParty.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_MarketplaceDealParty extends Google_Model
|
19 |
-
{
|
20 |
-
protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer';
|
21 |
-
protected $buyerDataType = '';
|
22 |
-
protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
|
23 |
-
protected $sellerDataType = '';
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_Buyer
|
27 |
-
*/
|
28 |
-
public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer)
|
29 |
-
{
|
30 |
-
$this->buyer = $buyer;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_Buyer
|
34 |
-
*/
|
35 |
-
public function getBuyer()
|
36 |
-
{
|
37 |
-
return $this->buyer;
|
38 |
-
}
|
39 |
-
/**
|
40 |
-
* @param Google_Service_AdExchangeBuyer_Seller
|
41 |
-
*/
|
42 |
-
public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
|
43 |
-
{
|
44 |
-
$this->seller = $seller;
|
45 |
-
}
|
46 |
-
/**
|
47 |
-
* @return Google_Service_AdExchangeBuyer_Seller
|
48 |
-
*/
|
49 |
-
public function getSeller()
|
50 |
-
{
|
51 |
-
return $this->seller;
|
52 |
-
}
|
53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceLabel.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_MarketplaceLabel extends Google_Model
|
19 |
-
{
|
20 |
-
public $accountId;
|
21 |
-
public $createTimeMs;
|
22 |
-
protected $deprecatedMarketplaceDealPartyType = 'Google_Service_AdExchangeBuyer_MarketplaceDealParty';
|
23 |
-
protected $deprecatedMarketplaceDealPartyDataType = '';
|
24 |
-
public $label;
|
25 |
-
|
26 |
-
public function setAccountId($accountId)
|
27 |
-
{
|
28 |
-
$this->accountId = $accountId;
|
29 |
-
}
|
30 |
-
public function getAccountId()
|
31 |
-
{
|
32 |
-
return $this->accountId;
|
33 |
-
}
|
34 |
-
public function setCreateTimeMs($createTimeMs)
|
35 |
-
{
|
36 |
-
$this->createTimeMs = $createTimeMs;
|
37 |
-
}
|
38 |
-
public function getCreateTimeMs()
|
39 |
-
{
|
40 |
-
return $this->createTimeMs;
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceDealParty
|
44 |
-
*/
|
45 |
-
public function setDeprecatedMarketplaceDealParty(Google_Service_AdExchangeBuyer_MarketplaceDealParty $deprecatedMarketplaceDealParty)
|
46 |
-
{
|
47 |
-
$this->deprecatedMarketplaceDealParty = $deprecatedMarketplaceDealParty;
|
48 |
-
}
|
49 |
-
/**
|
50 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceDealParty
|
51 |
-
*/
|
52 |
-
public function getDeprecatedMarketplaceDealParty()
|
53 |
-
{
|
54 |
-
return $this->deprecatedMarketplaceDealParty;
|
55 |
-
}
|
56 |
-
public function setLabel($label)
|
57 |
-
{
|
58 |
-
$this->label = $label;
|
59 |
-
}
|
60 |
-
public function getLabel()
|
61 |
-
{
|
62 |
-
return $this->label;
|
63 |
-
}
|
64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/MarketplaceNote.php
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_MarketplaceNote extends Google_Model
|
19 |
-
{
|
20 |
-
public $creatorRole;
|
21 |
-
public $dealId;
|
22 |
-
public $kind;
|
23 |
-
public $note;
|
24 |
-
public $noteId;
|
25 |
-
public $proposalId;
|
26 |
-
public $proposalRevisionNumber;
|
27 |
-
public $timestampMs;
|
28 |
-
|
29 |
-
public function setCreatorRole($creatorRole)
|
30 |
-
{
|
31 |
-
$this->creatorRole = $creatorRole;
|
32 |
-
}
|
33 |
-
public function getCreatorRole()
|
34 |
-
{
|
35 |
-
return $this->creatorRole;
|
36 |
-
}
|
37 |
-
public function setDealId($dealId)
|
38 |
-
{
|
39 |
-
$this->dealId = $dealId;
|
40 |
-
}
|
41 |
-
public function getDealId()
|
42 |
-
{
|
43 |
-
return $this->dealId;
|
44 |
-
}
|
45 |
-
public function setKind($kind)
|
46 |
-
{
|
47 |
-
$this->kind = $kind;
|
48 |
-
}
|
49 |
-
public function getKind()
|
50 |
-
{
|
51 |
-
return $this->kind;
|
52 |
-
}
|
53 |
-
public function setNote($note)
|
54 |
-
{
|
55 |
-
$this->note = $note;
|
56 |
-
}
|
57 |
-
public function getNote()
|
58 |
-
{
|
59 |
-
return $this->note;
|
60 |
-
}
|
61 |
-
public function setNoteId($noteId)
|
62 |
-
{
|
63 |
-
$this->noteId = $noteId;
|
64 |
-
}
|
65 |
-
public function getNoteId()
|
66 |
-
{
|
67 |
-
return $this->noteId;
|
68 |
-
}
|
69 |
-
public function setProposalId($proposalId)
|
70 |
-
{
|
71 |
-
$this->proposalId = $proposalId;
|
72 |
-
}
|
73 |
-
public function getProposalId()
|
74 |
-
{
|
75 |
-
return $this->proposalId;
|
76 |
-
}
|
77 |
-
public function setProposalRevisionNumber($proposalRevisionNumber)
|
78 |
-
{
|
79 |
-
$this->proposalRevisionNumber = $proposalRevisionNumber;
|
80 |
-
}
|
81 |
-
public function getProposalRevisionNumber()
|
82 |
-
{
|
83 |
-
return $this->proposalRevisionNumber;
|
84 |
-
}
|
85 |
-
public function setTimestampMs($timestampMs)
|
86 |
-
{
|
87 |
-
$this->timestampMs = $timestampMs;
|
88 |
-
}
|
89 |
-
public function getTimestampMs()
|
90 |
-
{
|
91 |
-
return $this->timestampMs;
|
92 |
-
}
|
93 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReport.php
DELETED
@@ -1,220 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PerformanceReport extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'hostedMatchStatusRate';
|
21 |
-
public $bidRate;
|
22 |
-
public $bidRequestRate;
|
23 |
-
public $calloutStatusRate;
|
24 |
-
public $cookieMatcherStatusRate;
|
25 |
-
public $creativeStatusRate;
|
26 |
-
public $filteredBidRate;
|
27 |
-
public $hostedMatchStatusRate;
|
28 |
-
public $inventoryMatchRate;
|
29 |
-
public $kind;
|
30 |
-
public $latency50thPercentile;
|
31 |
-
public $latency85thPercentile;
|
32 |
-
public $latency95thPercentile;
|
33 |
-
public $noQuotaInRegion;
|
34 |
-
public $outOfQuota;
|
35 |
-
public $pixelMatchRequests;
|
36 |
-
public $pixelMatchResponses;
|
37 |
-
public $quotaConfiguredLimit;
|
38 |
-
public $quotaThrottledLimit;
|
39 |
-
public $region;
|
40 |
-
public $successfulRequestRate;
|
41 |
-
public $timestamp;
|
42 |
-
public $unsuccessfulRequestRate;
|
43 |
-
|
44 |
-
public function setBidRate($bidRate)
|
45 |
-
{
|
46 |
-
$this->bidRate = $bidRate;
|
47 |
-
}
|
48 |
-
public function getBidRate()
|
49 |
-
{
|
50 |
-
return $this->bidRate;
|
51 |
-
}
|
52 |
-
public function setBidRequestRate($bidRequestRate)
|
53 |
-
{
|
54 |
-
$this->bidRequestRate = $bidRequestRate;
|
55 |
-
}
|
56 |
-
public function getBidRequestRate()
|
57 |
-
{
|
58 |
-
return $this->bidRequestRate;
|
59 |
-
}
|
60 |
-
public function setCalloutStatusRate($calloutStatusRate)
|
61 |
-
{
|
62 |
-
$this->calloutStatusRate = $calloutStatusRate;
|
63 |
-
}
|
64 |
-
public function getCalloutStatusRate()
|
65 |
-
{
|
66 |
-
return $this->calloutStatusRate;
|
67 |
-
}
|
68 |
-
public function setCookieMatcherStatusRate($cookieMatcherStatusRate)
|
69 |
-
{
|
70 |
-
$this->cookieMatcherStatusRate = $cookieMatcherStatusRate;
|
71 |
-
}
|
72 |
-
public function getCookieMatcherStatusRate()
|
73 |
-
{
|
74 |
-
return $this->cookieMatcherStatusRate;
|
75 |
-
}
|
76 |
-
public function setCreativeStatusRate($creativeStatusRate)
|
77 |
-
{
|
78 |
-
$this->creativeStatusRate = $creativeStatusRate;
|
79 |
-
}
|
80 |
-
public function getCreativeStatusRate()
|
81 |
-
{
|
82 |
-
return $this->creativeStatusRate;
|
83 |
-
}
|
84 |
-
public function setFilteredBidRate($filteredBidRate)
|
85 |
-
{
|
86 |
-
$this->filteredBidRate = $filteredBidRate;
|
87 |
-
}
|
88 |
-
public function getFilteredBidRate()
|
89 |
-
{
|
90 |
-
return $this->filteredBidRate;
|
91 |
-
}
|
92 |
-
public function setHostedMatchStatusRate($hostedMatchStatusRate)
|
93 |
-
{
|
94 |
-
$this->hostedMatchStatusRate = $hostedMatchStatusRate;
|
95 |
-
}
|
96 |
-
public function getHostedMatchStatusRate()
|
97 |
-
{
|
98 |
-
return $this->hostedMatchStatusRate;
|
99 |
-
}
|
100 |
-
public function setInventoryMatchRate($inventoryMatchRate)
|
101 |
-
{
|
102 |
-
$this->inventoryMatchRate = $inventoryMatchRate;
|
103 |
-
}
|
104 |
-
public function getInventoryMatchRate()
|
105 |
-
{
|
106 |
-
return $this->inventoryMatchRate;
|
107 |
-
}
|
108 |
-
public function setKind($kind)
|
109 |
-
{
|
110 |
-
$this->kind = $kind;
|
111 |
-
}
|
112 |
-
public function getKind()
|
113 |
-
{
|
114 |
-
return $this->kind;
|
115 |
-
}
|
116 |
-
public function setLatency50thPercentile($latency50thPercentile)
|
117 |
-
{
|
118 |
-
$this->latency50thPercentile = $latency50thPercentile;
|
119 |
-
}
|
120 |
-
public function getLatency50thPercentile()
|
121 |
-
{
|
122 |
-
return $this->latency50thPercentile;
|
123 |
-
}
|
124 |
-
public function setLatency85thPercentile($latency85thPercentile)
|
125 |
-
{
|
126 |
-
$this->latency85thPercentile = $latency85thPercentile;
|
127 |
-
}
|
128 |
-
public function getLatency85thPercentile()
|
129 |
-
{
|
130 |
-
return $this->latency85thPercentile;
|
131 |
-
}
|
132 |
-
public function setLatency95thPercentile($latency95thPercentile)
|
133 |
-
{
|
134 |
-
$this->latency95thPercentile = $latency95thPercentile;
|
135 |
-
}
|
136 |
-
public function getLatency95thPercentile()
|
137 |
-
{
|
138 |
-
return $this->latency95thPercentile;
|
139 |
-
}
|
140 |
-
public function setNoQuotaInRegion($noQuotaInRegion)
|
141 |
-
{
|
142 |
-
$this->noQuotaInRegion = $noQuotaInRegion;
|
143 |
-
}
|
144 |
-
public function getNoQuotaInRegion()
|
145 |
-
{
|
146 |
-
return $this->noQuotaInRegion;
|
147 |
-
}
|
148 |
-
public function setOutOfQuota($outOfQuota)
|
149 |
-
{
|
150 |
-
$this->outOfQuota = $outOfQuota;
|
151 |
-
}
|
152 |
-
public function getOutOfQuota()
|
153 |
-
{
|
154 |
-
return $this->outOfQuota;
|
155 |
-
}
|
156 |
-
public function setPixelMatchRequests($pixelMatchRequests)
|
157 |
-
{
|
158 |
-
$this->pixelMatchRequests = $pixelMatchRequests;
|
159 |
-
}
|
160 |
-
public function getPixelMatchRequests()
|
161 |
-
{
|
162 |
-
return $this->pixelMatchRequests;
|
163 |
-
}
|
164 |
-
public function setPixelMatchResponses($pixelMatchResponses)
|
165 |
-
{
|
166 |
-
$this->pixelMatchResponses = $pixelMatchResponses;
|
167 |
-
}
|
168 |
-
public function getPixelMatchResponses()
|
169 |
-
{
|
170 |
-
return $this->pixelMatchResponses;
|
171 |
-
}
|
172 |
-
public function setQuotaConfiguredLimit($quotaConfiguredLimit)
|
173 |
-
{
|
174 |
-
$this->quotaConfiguredLimit = $quotaConfiguredLimit;
|
175 |
-
}
|
176 |
-
public function getQuotaConfiguredLimit()
|
177 |
-
{
|
178 |
-
return $this->quotaConfiguredLimit;
|
179 |
-
}
|
180 |
-
public function setQuotaThrottledLimit($quotaThrottledLimit)
|
181 |
-
{
|
182 |
-
$this->quotaThrottledLimit = $quotaThrottledLimit;
|
183 |
-
}
|
184 |
-
public function getQuotaThrottledLimit()
|
185 |
-
{
|
186 |
-
return $this->quotaThrottledLimit;
|
187 |
-
}
|
188 |
-
public function setRegion($region)
|
189 |
-
{
|
190 |
-
$this->region = $region;
|
191 |
-
}
|
192 |
-
public function getRegion()
|
193 |
-
{
|
194 |
-
return $this->region;
|
195 |
-
}
|
196 |
-
public function setSuccessfulRequestRate($successfulRequestRate)
|
197 |
-
{
|
198 |
-
$this->successfulRequestRate = $successfulRequestRate;
|
199 |
-
}
|
200 |
-
public function getSuccessfulRequestRate()
|
201 |
-
{
|
202 |
-
return $this->successfulRequestRate;
|
203 |
-
}
|
204 |
-
public function setTimestamp($timestamp)
|
205 |
-
{
|
206 |
-
$this->timestamp = $timestamp;
|
207 |
-
}
|
208 |
-
public function getTimestamp()
|
209 |
-
{
|
210 |
-
return $this->timestamp;
|
211 |
-
}
|
212 |
-
public function setUnsuccessfulRequestRate($unsuccessfulRequestRate)
|
213 |
-
{
|
214 |
-
$this->unsuccessfulRequestRate = $unsuccessfulRequestRate;
|
215 |
-
}
|
216 |
-
public function getUnsuccessfulRequestRate()
|
217 |
-
{
|
218 |
-
return $this->unsuccessfulRequestRate;
|
219 |
-
}
|
220 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PerformanceReportList.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PerformanceReportList extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'performanceReport';
|
21 |
-
public $kind;
|
22 |
-
protected $performanceReportType = 'Google_Service_AdExchangeBuyer_PerformanceReport';
|
23 |
-
protected $performanceReportDataType = 'array';
|
24 |
-
|
25 |
-
public function setKind($kind)
|
26 |
-
{
|
27 |
-
$this->kind = $kind;
|
28 |
-
}
|
29 |
-
public function getKind()
|
30 |
-
{
|
31 |
-
return $this->kind;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_AdExchangeBuyer_PerformanceReport
|
35 |
-
*/
|
36 |
-
public function setPerformanceReport($performanceReport)
|
37 |
-
{
|
38 |
-
$this->performanceReport = $performanceReport;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_AdExchangeBuyer_PerformanceReport
|
42 |
-
*/
|
43 |
-
public function getPerformanceReport()
|
44 |
-
{
|
45 |
-
return $this->performanceReport;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfig.php
DELETED
@@ -1,284 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PretargetingConfig extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'videoPlayerSizes';
|
21 |
-
public $billingId;
|
22 |
-
public $configId;
|
23 |
-
public $configName;
|
24 |
-
public $creativeType;
|
25 |
-
protected $dimensionsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigDimensions';
|
26 |
-
protected $dimensionsDataType = 'array';
|
27 |
-
public $excludedContentLabels;
|
28 |
-
public $excludedGeoCriteriaIds;
|
29 |
-
protected $excludedPlacementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements';
|
30 |
-
protected $excludedPlacementsDataType = 'array';
|
31 |
-
public $excludedUserLists;
|
32 |
-
public $excludedVerticals;
|
33 |
-
public $geoCriteriaIds;
|
34 |
-
public $isActive;
|
35 |
-
public $kind;
|
36 |
-
public $languages;
|
37 |
-
public $minimumViewabilityDecile;
|
38 |
-
public $mobileCarriers;
|
39 |
-
public $mobileDevices;
|
40 |
-
public $mobileOperatingSystemVersions;
|
41 |
-
protected $placementsType = 'Google_Service_AdExchangeBuyer_PretargetingConfigPlacements';
|
42 |
-
protected $placementsDataType = 'array';
|
43 |
-
public $platforms;
|
44 |
-
public $supportedCreativeAttributes;
|
45 |
-
public $userIdentifierDataRequired;
|
46 |
-
public $userLists;
|
47 |
-
public $vendorTypes;
|
48 |
-
public $verticals;
|
49 |
-
protected $videoPlayerSizesType = 'Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes';
|
50 |
-
protected $videoPlayerSizesDataType = 'array';
|
51 |
-
|
52 |
-
public function setBillingId($billingId)
|
53 |
-
{
|
54 |
-
$this->billingId = $billingId;
|
55 |
-
}
|
56 |
-
public function getBillingId()
|
57 |
-
{
|
58 |
-
return $this->billingId;
|
59 |
-
}
|
60 |
-
public function setConfigId($configId)
|
61 |
-
{
|
62 |
-
$this->configId = $configId;
|
63 |
-
}
|
64 |
-
public function getConfigId()
|
65 |
-
{
|
66 |
-
return $this->configId;
|
67 |
-
}
|
68 |
-
public function setConfigName($configName)
|
69 |
-
{
|
70 |
-
$this->configName = $configName;
|
71 |
-
}
|
72 |
-
public function getConfigName()
|
73 |
-
{
|
74 |
-
return $this->configName;
|
75 |
-
}
|
76 |
-
public function setCreativeType($creativeType)
|
77 |
-
{
|
78 |
-
$this->creativeType = $creativeType;
|
79 |
-
}
|
80 |
-
public function getCreativeType()
|
81 |
-
{
|
82 |
-
return $this->creativeType;
|
83 |
-
}
|
84 |
-
/**
|
85 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfigDimensions
|
86 |
-
*/
|
87 |
-
public function setDimensions($dimensions)
|
88 |
-
{
|
89 |
-
$this->dimensions = $dimensions;
|
90 |
-
}
|
91 |
-
/**
|
92 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfigDimensions
|
93 |
-
*/
|
94 |
-
public function getDimensions()
|
95 |
-
{
|
96 |
-
return $this->dimensions;
|
97 |
-
}
|
98 |
-
public function setExcludedContentLabels($excludedContentLabels)
|
99 |
-
{
|
100 |
-
$this->excludedContentLabels = $excludedContentLabels;
|
101 |
-
}
|
102 |
-
public function getExcludedContentLabels()
|
103 |
-
{
|
104 |
-
return $this->excludedContentLabels;
|
105 |
-
}
|
106 |
-
public function setExcludedGeoCriteriaIds($excludedGeoCriteriaIds)
|
107 |
-
{
|
108 |
-
$this->excludedGeoCriteriaIds = $excludedGeoCriteriaIds;
|
109 |
-
}
|
110 |
-
public function getExcludedGeoCriteriaIds()
|
111 |
-
{
|
112 |
-
return $this->excludedGeoCriteriaIds;
|
113 |
-
}
|
114 |
-
/**
|
115 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements
|
116 |
-
*/
|
117 |
-
public function setExcludedPlacements($excludedPlacements)
|
118 |
-
{
|
119 |
-
$this->excludedPlacements = $excludedPlacements;
|
120 |
-
}
|
121 |
-
/**
|
122 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements
|
123 |
-
*/
|
124 |
-
public function getExcludedPlacements()
|
125 |
-
{
|
126 |
-
return $this->excludedPlacements;
|
127 |
-
}
|
128 |
-
public function setExcludedUserLists($excludedUserLists)
|
129 |
-
{
|
130 |
-
$this->excludedUserLists = $excludedUserLists;
|
131 |
-
}
|
132 |
-
public function getExcludedUserLists()
|
133 |
-
{
|
134 |
-
return $this->excludedUserLists;
|
135 |
-
}
|
136 |
-
public function setExcludedVerticals($excludedVerticals)
|
137 |
-
{
|
138 |
-
$this->excludedVerticals = $excludedVerticals;
|
139 |
-
}
|
140 |
-
public function getExcludedVerticals()
|
141 |
-
{
|
142 |
-
return $this->excludedVerticals;
|
143 |
-
}
|
144 |
-
public function setGeoCriteriaIds($geoCriteriaIds)
|
145 |
-
{
|
146 |
-
$this->geoCriteriaIds = $geoCriteriaIds;
|
147 |
-
}
|
148 |
-
public function getGeoCriteriaIds()
|
149 |
-
{
|
150 |
-
return $this->geoCriteriaIds;
|
151 |
-
}
|
152 |
-
public function setIsActive($isActive)
|
153 |
-
{
|
154 |
-
$this->isActive = $isActive;
|
155 |
-
}
|
156 |
-
public function getIsActive()
|
157 |
-
{
|
158 |
-
return $this->isActive;
|
159 |
-
}
|
160 |
-
public function setKind($kind)
|
161 |
-
{
|
162 |
-
$this->kind = $kind;
|
163 |
-
}
|
164 |
-
public function getKind()
|
165 |
-
{
|
166 |
-
return $this->kind;
|
167 |
-
}
|
168 |
-
public function setLanguages($languages)
|
169 |
-
{
|
170 |
-
$this->languages = $languages;
|
171 |
-
}
|
172 |
-
public function getLanguages()
|
173 |
-
{
|
174 |
-
return $this->languages;
|
175 |
-
}
|
176 |
-
public function setMinimumViewabilityDecile($minimumViewabilityDecile)
|
177 |
-
{
|
178 |
-
$this->minimumViewabilityDecile = $minimumViewabilityDecile;
|
179 |
-
}
|
180 |
-
public function getMinimumViewabilityDecile()
|
181 |
-
{
|
182 |
-
return $this->minimumViewabilityDecile;
|
183 |
-
}
|
184 |
-
public function setMobileCarriers($mobileCarriers)
|
185 |
-
{
|
186 |
-
$this->mobileCarriers = $mobileCarriers;
|
187 |
-
}
|
188 |
-
public function getMobileCarriers()
|
189 |
-
{
|
190 |
-
return $this->mobileCarriers;
|
191 |
-
}
|
192 |
-
public function setMobileDevices($mobileDevices)
|
193 |
-
{
|
194 |
-
$this->mobileDevices = $mobileDevices;
|
195 |
-
}
|
196 |
-
public function getMobileDevices()
|
197 |
-
{
|
198 |
-
return $this->mobileDevices;
|
199 |
-
}
|
200 |
-
public function setMobileOperatingSystemVersions($mobileOperatingSystemVersions)
|
201 |
-
{
|
202 |
-
$this->mobileOperatingSystemVersions = $mobileOperatingSystemVersions;
|
203 |
-
}
|
204 |
-
public function getMobileOperatingSystemVersions()
|
205 |
-
{
|
206 |
-
return $this->mobileOperatingSystemVersions;
|
207 |
-
}
|
208 |
-
/**
|
209 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfigPlacements
|
210 |
-
*/
|
211 |
-
public function setPlacements($placements)
|
212 |
-
{
|
213 |
-
$this->placements = $placements;
|
214 |
-
}
|
215 |
-
/**
|
216 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfigPlacements
|
217 |
-
*/
|
218 |
-
public function getPlacements()
|
219 |
-
{
|
220 |
-
return $this->placements;
|
221 |
-
}
|
222 |
-
public function setPlatforms($platforms)
|
223 |
-
{
|
224 |
-
$this->platforms = $platforms;
|
225 |
-
}
|
226 |
-
public function getPlatforms()
|
227 |
-
{
|
228 |
-
return $this->platforms;
|
229 |
-
}
|
230 |
-
public function setSupportedCreativeAttributes($supportedCreativeAttributes)
|
231 |
-
{
|
232 |
-
$this->supportedCreativeAttributes = $supportedCreativeAttributes;
|
233 |
-
}
|
234 |
-
public function getSupportedCreativeAttributes()
|
235 |
-
{
|
236 |
-
return $this->supportedCreativeAttributes;
|
237 |
-
}
|
238 |
-
public function setUserIdentifierDataRequired($userIdentifierDataRequired)
|
239 |
-
{
|
240 |
-
$this->userIdentifierDataRequired = $userIdentifierDataRequired;
|
241 |
-
}
|
242 |
-
public function getUserIdentifierDataRequired()
|
243 |
-
{
|
244 |
-
return $this->userIdentifierDataRequired;
|
245 |
-
}
|
246 |
-
public function setUserLists($userLists)
|
247 |
-
{
|
248 |
-
$this->userLists = $userLists;
|
249 |
-
}
|
250 |
-
public function getUserLists()
|
251 |
-
{
|
252 |
-
return $this->userLists;
|
253 |
-
}
|
254 |
-
public function setVendorTypes($vendorTypes)
|
255 |
-
{
|
256 |
-
$this->vendorTypes = $vendorTypes;
|
257 |
-
}
|
258 |
-
public function getVendorTypes()
|
259 |
-
{
|
260 |
-
return $this->vendorTypes;
|
261 |
-
}
|
262 |
-
public function setVerticals($verticals)
|
263 |
-
{
|
264 |
-
$this->verticals = $verticals;
|
265 |
-
}
|
266 |
-
public function getVerticals()
|
267 |
-
{
|
268 |
-
return $this->verticals;
|
269 |
-
}
|
270 |
-
/**
|
271 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes
|
272 |
-
*/
|
273 |
-
public function setVideoPlayerSizes($videoPlayerSizes)
|
274 |
-
{
|
275 |
-
$this->videoPlayerSizes = $videoPlayerSizes;
|
276 |
-
}
|
277 |
-
/**
|
278 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes
|
279 |
-
*/
|
280 |
-
public function getVideoPlayerSizes()
|
281 |
-
{
|
282 |
-
return $this->videoPlayerSizes;
|
283 |
-
}
|
284 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigDimensions.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PretargetingConfigDimensions extends Google_Model
|
19 |
-
{
|
20 |
-
public $height;
|
21 |
-
public $width;
|
22 |
-
|
23 |
-
public function setHeight($height)
|
24 |
-
{
|
25 |
-
$this->height = $height;
|
26 |
-
}
|
27 |
-
public function getHeight()
|
28 |
-
{
|
29 |
-
return $this->height;
|
30 |
-
}
|
31 |
-
public function setWidth($width)
|
32 |
-
{
|
33 |
-
$this->width = $width;
|
34 |
-
}
|
35 |
-
public function getWidth()
|
36 |
-
{
|
37 |
-
return $this->width;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigExcludedPlacements.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PretargetingConfigExcludedPlacements extends Google_Model
|
19 |
-
{
|
20 |
-
public $token;
|
21 |
-
public $type;
|
22 |
-
|
23 |
-
public function setToken($token)
|
24 |
-
{
|
25 |
-
$this->token = $token;
|
26 |
-
}
|
27 |
-
public function getToken()
|
28 |
-
{
|
29 |
-
return $this->token;
|
30 |
-
}
|
31 |
-
public function setType($type)
|
32 |
-
{
|
33 |
-
$this->type = $type;
|
34 |
-
}
|
35 |
-
public function getType()
|
36 |
-
{
|
37 |
-
return $this->type;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigList.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PretargetingConfigList extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'items';
|
21 |
-
protected $itemsType = 'Google_Service_AdExchangeBuyer_PretargetingConfig';
|
22 |
-
protected $itemsDataType = 'array';
|
23 |
-
public $kind;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfig
|
27 |
-
*/
|
28 |
-
public function setItems($items)
|
29 |
-
{
|
30 |
-
$this->items = $items;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfig
|
34 |
-
*/
|
35 |
-
public function getItems()
|
36 |
-
{
|
37 |
-
return $this->items;
|
38 |
-
}
|
39 |
-
public function setKind($kind)
|
40 |
-
{
|
41 |
-
$this->kind = $kind;
|
42 |
-
}
|
43 |
-
public function getKind()
|
44 |
-
{
|
45 |
-
return $this->kind;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigPlacements.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PretargetingConfigPlacements extends Google_Model
|
19 |
-
{
|
20 |
-
public $token;
|
21 |
-
public $type;
|
22 |
-
|
23 |
-
public function setToken($token)
|
24 |
-
{
|
25 |
-
$this->token = $token;
|
26 |
-
}
|
27 |
-
public function getToken()
|
28 |
-
{
|
29 |
-
return $this->token;
|
30 |
-
}
|
31 |
-
public function setType($type)
|
32 |
-
{
|
33 |
-
$this->type = $type;
|
34 |
-
}
|
35 |
-
public function getType()
|
36 |
-
{
|
37 |
-
return $this->type;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PretargetingConfigVideoPlayerSizes.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PretargetingConfigVideoPlayerSizes extends Google_Model
|
19 |
-
{
|
20 |
-
public $aspectRatio;
|
21 |
-
public $minHeight;
|
22 |
-
public $minWidth;
|
23 |
-
|
24 |
-
public function setAspectRatio($aspectRatio)
|
25 |
-
{
|
26 |
-
$this->aspectRatio = $aspectRatio;
|
27 |
-
}
|
28 |
-
public function getAspectRatio()
|
29 |
-
{
|
30 |
-
return $this->aspectRatio;
|
31 |
-
}
|
32 |
-
public function setMinHeight($minHeight)
|
33 |
-
{
|
34 |
-
$this->minHeight = $minHeight;
|
35 |
-
}
|
36 |
-
public function getMinHeight()
|
37 |
-
{
|
38 |
-
return $this->minHeight;
|
39 |
-
}
|
40 |
-
public function setMinWidth($minWidth)
|
41 |
-
{
|
42 |
-
$this->minWidth = $minWidth;
|
43 |
-
}
|
44 |
-
public function getMinWidth()
|
45 |
-
{
|
46 |
-
return $this->minWidth;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Price.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Price extends Google_Model
|
19 |
-
{
|
20 |
-
public $amountMicros;
|
21 |
-
public $currencyCode;
|
22 |
-
public $expectedCpmMicros;
|
23 |
-
public $pricingType;
|
24 |
-
|
25 |
-
public function setAmountMicros($amountMicros)
|
26 |
-
{
|
27 |
-
$this->amountMicros = $amountMicros;
|
28 |
-
}
|
29 |
-
public function getAmountMicros()
|
30 |
-
{
|
31 |
-
return $this->amountMicros;
|
32 |
-
}
|
33 |
-
public function setCurrencyCode($currencyCode)
|
34 |
-
{
|
35 |
-
$this->currencyCode = $currencyCode;
|
36 |
-
}
|
37 |
-
public function getCurrencyCode()
|
38 |
-
{
|
39 |
-
return $this->currencyCode;
|
40 |
-
}
|
41 |
-
public function setExpectedCpmMicros($expectedCpmMicros)
|
42 |
-
{
|
43 |
-
$this->expectedCpmMicros = $expectedCpmMicros;
|
44 |
-
}
|
45 |
-
public function getExpectedCpmMicros()
|
46 |
-
{
|
47 |
-
return $this->expectedCpmMicros;
|
48 |
-
}
|
49 |
-
public function setPricingType($pricingType)
|
50 |
-
{
|
51 |
-
$this->pricingType = $pricingType;
|
52 |
-
}
|
53 |
-
public function getPricingType()
|
54 |
-
{
|
55 |
-
return $this->pricingType;
|
56 |
-
}
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PricePerBuyer.php
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PricePerBuyer extends Google_Model
|
19 |
-
{
|
20 |
-
public $auctionTier;
|
21 |
-
protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer';
|
22 |
-
protected $billedBuyerDataType = '';
|
23 |
-
protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer';
|
24 |
-
protected $buyerDataType = '';
|
25 |
-
protected $priceType = 'Google_Service_AdExchangeBuyer_Price';
|
26 |
-
protected $priceDataType = '';
|
27 |
-
|
28 |
-
public function setAuctionTier($auctionTier)
|
29 |
-
{
|
30 |
-
$this->auctionTier = $auctionTier;
|
31 |
-
}
|
32 |
-
public function getAuctionTier()
|
33 |
-
{
|
34 |
-
return $this->auctionTier;
|
35 |
-
}
|
36 |
-
/**
|
37 |
-
* @param Google_Service_AdExchangeBuyer_Buyer
|
38 |
-
*/
|
39 |
-
public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer)
|
40 |
-
{
|
41 |
-
$this->billedBuyer = $billedBuyer;
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* @return Google_Service_AdExchangeBuyer_Buyer
|
45 |
-
*/
|
46 |
-
public function getBilledBuyer()
|
47 |
-
{
|
48 |
-
return $this->billedBuyer;
|
49 |
-
}
|
50 |
-
/**
|
51 |
-
* @param Google_Service_AdExchangeBuyer_Buyer
|
52 |
-
*/
|
53 |
-
public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer)
|
54 |
-
{
|
55 |
-
$this->buyer = $buyer;
|
56 |
-
}
|
57 |
-
/**
|
58 |
-
* @return Google_Service_AdExchangeBuyer_Buyer
|
59 |
-
*/
|
60 |
-
public function getBuyer()
|
61 |
-
{
|
62 |
-
return $this->buyer;
|
63 |
-
}
|
64 |
-
/**
|
65 |
-
* @param Google_Service_AdExchangeBuyer_Price
|
66 |
-
*/
|
67 |
-
public function setPrice(Google_Service_AdExchangeBuyer_Price $price)
|
68 |
-
{
|
69 |
-
$this->price = $price;
|
70 |
-
}
|
71 |
-
/**
|
72 |
-
* @return Google_Service_AdExchangeBuyer_Price
|
73 |
-
*/
|
74 |
-
public function getPrice()
|
75 |
-
{
|
76 |
-
return $this->price;
|
77 |
-
}
|
78 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PrivateData.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PrivateData extends Google_Model
|
19 |
-
{
|
20 |
-
public $referenceId;
|
21 |
-
public $referencePayload;
|
22 |
-
|
23 |
-
public function setReferenceId($referenceId)
|
24 |
-
{
|
25 |
-
$this->referenceId = $referenceId;
|
26 |
-
}
|
27 |
-
public function getReferenceId()
|
28 |
-
{
|
29 |
-
return $this->referenceId;
|
30 |
-
}
|
31 |
-
public function setReferencePayload($referencePayload)
|
32 |
-
{
|
33 |
-
$this->referencePayload = $referencePayload;
|
34 |
-
}
|
35 |
-
public function getReferencePayload()
|
36 |
-
{
|
37 |
-
return $this->referencePayload;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Product.php
DELETED
@@ -1,328 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Product extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'sharedTargetings';
|
21 |
-
protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer';
|
22 |
-
protected $billedBuyerDataType = '';
|
23 |
-
protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer';
|
24 |
-
protected $buyerDataType = '';
|
25 |
-
public $creationTimeMs;
|
26 |
-
protected $creatorContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
|
27 |
-
protected $creatorContactsDataType = 'array';
|
28 |
-
public $creatorRole;
|
29 |
-
protected $deliveryControlType = 'Google_Service_AdExchangeBuyer_DeliveryControl';
|
30 |
-
protected $deliveryControlDataType = '';
|
31 |
-
public $flightEndTimeMs;
|
32 |
-
public $flightStartTimeMs;
|
33 |
-
public $hasCreatorSignedOff;
|
34 |
-
public $inventorySource;
|
35 |
-
public $kind;
|
36 |
-
protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel';
|
37 |
-
protected $labelsDataType = 'array';
|
38 |
-
public $lastUpdateTimeMs;
|
39 |
-
public $legacyOfferId;
|
40 |
-
public $marketplacePublisherProfileId;
|
41 |
-
public $name;
|
42 |
-
public $privateAuctionId;
|
43 |
-
public $productId;
|
44 |
-
public $publisherProfileId;
|
45 |
-
protected $publisherProvidedForecastType = 'Google_Service_AdExchangeBuyer_PublisherProvidedForecast';
|
46 |
-
protected $publisherProvidedForecastDataType = '';
|
47 |
-
public $revisionNumber;
|
48 |
-
protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
|
49 |
-
protected $sellerDataType = '';
|
50 |
-
protected $sharedTargetingsType = 'Google_Service_AdExchangeBuyer_SharedTargeting';
|
51 |
-
protected $sharedTargetingsDataType = 'array';
|
52 |
-
public $state;
|
53 |
-
public $syndicationProduct;
|
54 |
-
protected $termsType = 'Google_Service_AdExchangeBuyer_DealTerms';
|
55 |
-
protected $termsDataType = '';
|
56 |
-
public $webPropertyCode;
|
57 |
-
|
58 |
-
/**
|
59 |
-
* @param Google_Service_AdExchangeBuyer_Buyer
|
60 |
-
*/
|
61 |
-
public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer)
|
62 |
-
{
|
63 |
-
$this->billedBuyer = $billedBuyer;
|
64 |
-
}
|
65 |
-
/**
|
66 |
-
* @return Google_Service_AdExchangeBuyer_Buyer
|
67 |
-
*/
|
68 |
-
public function getBilledBuyer()
|
69 |
-
{
|
70 |
-
return $this->billedBuyer;
|
71 |
-
}
|
72 |
-
/**
|
73 |
-
* @param Google_Service_AdExchangeBuyer_Buyer
|
74 |
-
*/
|
75 |
-
public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer)
|
76 |
-
{
|
77 |
-
$this->buyer = $buyer;
|
78 |
-
}
|
79 |
-
/**
|
80 |
-
* @return Google_Service_AdExchangeBuyer_Buyer
|
81 |
-
*/
|
82 |
-
public function getBuyer()
|
83 |
-
{
|
84 |
-
return $this->buyer;
|
85 |
-
}
|
86 |
-
public function setCreationTimeMs($creationTimeMs)
|
87 |
-
{
|
88 |
-
$this->creationTimeMs = $creationTimeMs;
|
89 |
-
}
|
90 |
-
public function getCreationTimeMs()
|
91 |
-
{
|
92 |
-
return $this->creationTimeMs;
|
93 |
-
}
|
94 |
-
/**
|
95 |
-
* @param Google_Service_AdExchangeBuyer_ContactInformation
|
96 |
-
*/
|
97 |
-
public function setCreatorContacts($creatorContacts)
|
98 |
-
{
|
99 |
-
$this->creatorContacts = $creatorContacts;
|
100 |
-
}
|
101 |
-
/**
|
102 |
-
* @return Google_Service_AdExchangeBuyer_ContactInformation
|
103 |
-
*/
|
104 |
-
public function getCreatorContacts()
|
105 |
-
{
|
106 |
-
return $this->creatorContacts;
|
107 |
-
}
|
108 |
-
public function setCreatorRole($creatorRole)
|
109 |
-
{
|
110 |
-
$this->creatorRole = $creatorRole;
|
111 |
-
}
|
112 |
-
public function getCreatorRole()
|
113 |
-
{
|
114 |
-
return $this->creatorRole;
|
115 |
-
}
|
116 |
-
/**
|
117 |
-
* @param Google_Service_AdExchangeBuyer_DeliveryControl
|
118 |
-
*/
|
119 |
-
public function setDeliveryControl(Google_Service_AdExchangeBuyer_DeliveryControl $deliveryControl)
|
120 |
-
{
|
121 |
-
$this->deliveryControl = $deliveryControl;
|
122 |
-
}
|
123 |
-
/**
|
124 |
-
* @return Google_Service_AdExchangeBuyer_DeliveryControl
|
125 |
-
*/
|
126 |
-
public function getDeliveryControl()
|
127 |
-
{
|
128 |
-
return $this->deliveryControl;
|
129 |
-
}
|
130 |
-
public function setFlightEndTimeMs($flightEndTimeMs)
|
131 |
-
{
|
132 |
-
$this->flightEndTimeMs = $flightEndTimeMs;
|
133 |
-
}
|
134 |
-
public function getFlightEndTimeMs()
|
135 |
-
{
|
136 |
-
return $this->flightEndTimeMs;
|
137 |
-
}
|
138 |
-
public function setFlightStartTimeMs($flightStartTimeMs)
|
139 |
-
{
|
140 |
-
$this->flightStartTimeMs = $flightStartTimeMs;
|
141 |
-
}
|
142 |
-
public function getFlightStartTimeMs()
|
143 |
-
{
|
144 |
-
return $this->flightStartTimeMs;
|
145 |
-
}
|
146 |
-
public function setHasCreatorSignedOff($hasCreatorSignedOff)
|
147 |
-
{
|
148 |
-
$this->hasCreatorSignedOff = $hasCreatorSignedOff;
|
149 |
-
}
|
150 |
-
public function getHasCreatorSignedOff()
|
151 |
-
{
|
152 |
-
return $this->hasCreatorSignedOff;
|
153 |
-
}
|
154 |
-
public function setInventorySource($inventorySource)
|
155 |
-
{
|
156 |
-
$this->inventorySource = $inventorySource;
|
157 |
-
}
|
158 |
-
public function getInventorySource()
|
159 |
-
{
|
160 |
-
return $this->inventorySource;
|
161 |
-
}
|
162 |
-
public function setKind($kind)
|
163 |
-
{
|
164 |
-
$this->kind = $kind;
|
165 |
-
}
|
166 |
-
public function getKind()
|
167 |
-
{
|
168 |
-
return $this->kind;
|
169 |
-
}
|
170 |
-
/**
|
171 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceLabel
|
172 |
-
*/
|
173 |
-
public function setLabels($labels)
|
174 |
-
{
|
175 |
-
$this->labels = $labels;
|
176 |
-
}
|
177 |
-
/**
|
178 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceLabel
|
179 |
-
*/
|
180 |
-
public function getLabels()
|
181 |
-
{
|
182 |
-
return $this->labels;
|
183 |
-
}
|
184 |
-
public function setLastUpdateTimeMs($lastUpdateTimeMs)
|
185 |
-
{
|
186 |
-
$this->lastUpdateTimeMs = $lastUpdateTimeMs;
|
187 |
-
}
|
188 |
-
public function getLastUpdateTimeMs()
|
189 |
-
{
|
190 |
-
return $this->lastUpdateTimeMs;
|
191 |
-
}
|
192 |
-
public function setLegacyOfferId($legacyOfferId)
|
193 |
-
{
|
194 |
-
$this->legacyOfferId = $legacyOfferId;
|
195 |
-
}
|
196 |
-
public function getLegacyOfferId()
|
197 |
-
{
|
198 |
-
return $this->legacyOfferId;
|
199 |
-
}
|
200 |
-
public function setMarketplacePublisherProfileId($marketplacePublisherProfileId)
|
201 |
-
{
|
202 |
-
$this->marketplacePublisherProfileId = $marketplacePublisherProfileId;
|
203 |
-
}
|
204 |
-
public function getMarketplacePublisherProfileId()
|
205 |
-
{
|
206 |
-
return $this->marketplacePublisherProfileId;
|
207 |
-
}
|
208 |
-
public function setName($name)
|
209 |
-
{
|
210 |
-
$this->name = $name;
|
211 |
-
}
|
212 |
-
public function getName()
|
213 |
-
{
|
214 |
-
return $this->name;
|
215 |
-
}
|
216 |
-
public function setPrivateAuctionId($privateAuctionId)
|
217 |
-
{
|
218 |
-
$this->privateAuctionId = $privateAuctionId;
|
219 |
-
}
|
220 |
-
public function getPrivateAuctionId()
|
221 |
-
{
|
222 |
-
return $this->privateAuctionId;
|
223 |
-
}
|
224 |
-
public function setProductId($productId)
|
225 |
-
{
|
226 |
-
$this->productId = $productId;
|
227 |
-
}
|
228 |
-
public function getProductId()
|
229 |
-
{
|
230 |
-
return $this->productId;
|
231 |
-
}
|
232 |
-
public function setPublisherProfileId($publisherProfileId)
|
233 |
-
{
|
234 |
-
$this->publisherProfileId = $publisherProfileId;
|
235 |
-
}
|
236 |
-
public function getPublisherProfileId()
|
237 |
-
{
|
238 |
-
return $this->publisherProfileId;
|
239 |
-
}
|
240 |
-
/**
|
241 |
-
* @param Google_Service_AdExchangeBuyer_PublisherProvidedForecast
|
242 |
-
*/
|
243 |
-
public function setPublisherProvidedForecast(Google_Service_AdExchangeBuyer_PublisherProvidedForecast $publisherProvidedForecast)
|
244 |
-
{
|
245 |
-
$this->publisherProvidedForecast = $publisherProvidedForecast;
|
246 |
-
}
|
247 |
-
/**
|
248 |
-
* @return Google_Service_AdExchangeBuyer_PublisherProvidedForecast
|
249 |
-
*/
|
250 |
-
public function getPublisherProvidedForecast()
|
251 |
-
{
|
252 |
-
return $this->publisherProvidedForecast;
|
253 |
-
}
|
254 |
-
public function setRevisionNumber($revisionNumber)
|
255 |
-
{
|
256 |
-
$this->revisionNumber = $revisionNumber;
|
257 |
-
}
|
258 |
-
public function getRevisionNumber()
|
259 |
-
{
|
260 |
-
return $this->revisionNumber;
|
261 |
-
}
|
262 |
-
/**
|
263 |
-
* @param Google_Service_AdExchangeBuyer_Seller
|
264 |
-
*/
|
265 |
-
public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
|
266 |
-
{
|
267 |
-
$this->seller = $seller;
|
268 |
-
}
|
269 |
-
/**
|
270 |
-
* @return Google_Service_AdExchangeBuyer_Seller
|
271 |
-
*/
|
272 |
-
public function getSeller()
|
273 |
-
{
|
274 |
-
return $this->seller;
|
275 |
-
}
|
276 |
-
/**
|
277 |
-
* @param Google_Service_AdExchangeBuyer_SharedTargeting
|
278 |
-
*/
|
279 |
-
public function setSharedTargetings($sharedTargetings)
|
280 |
-
{
|
281 |
-
$this->sharedTargetings = $sharedTargetings;
|
282 |
-
}
|
283 |
-
/**
|
284 |
-
* @return Google_Service_AdExchangeBuyer_SharedTargeting
|
285 |
-
*/
|
286 |
-
public function getSharedTargetings()
|
287 |
-
{
|
288 |
-
return $this->sharedTargetings;
|
289 |
-
}
|
290 |
-
public function setState($state)
|
291 |
-
{
|
292 |
-
$this->state = $state;
|
293 |
-
}
|
294 |
-
public function getState()
|
295 |
-
{
|
296 |
-
return $this->state;
|
297 |
-
}
|
298 |
-
public function setSyndicationProduct($syndicationProduct)
|
299 |
-
{
|
300 |
-
$this->syndicationProduct = $syndicationProduct;
|
301 |
-
}
|
302 |
-
public function getSyndicationProduct()
|
303 |
-
{
|
304 |
-
return $this->syndicationProduct;
|
305 |
-
}
|
306 |
-
/**
|
307 |
-
* @param Google_Service_AdExchangeBuyer_DealTerms
|
308 |
-
*/
|
309 |
-
public function setTerms(Google_Service_AdExchangeBuyer_DealTerms $terms)
|
310 |
-
{
|
311 |
-
$this->terms = $terms;
|
312 |
-
}
|
313 |
-
/**
|
314 |
-
* @return Google_Service_AdExchangeBuyer_DealTerms
|
315 |
-
*/
|
316 |
-
public function getTerms()
|
317 |
-
{
|
318 |
-
return $this->terms;
|
319 |
-
}
|
320 |
-
public function setWebPropertyCode($webPropertyCode)
|
321 |
-
{
|
322 |
-
$this->webPropertyCode = $webPropertyCode;
|
323 |
-
}
|
324 |
-
public function getWebPropertyCode()
|
325 |
-
{
|
326 |
-
return $this->webPropertyCode;
|
327 |
-
}
|
328 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Proposal.php
DELETED
@@ -1,278 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Proposal extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'sellerContacts';
|
21 |
-
protected $billedBuyerType = 'Google_Service_AdExchangeBuyer_Buyer';
|
22 |
-
protected $billedBuyerDataType = '';
|
23 |
-
protected $buyerType = 'Google_Service_AdExchangeBuyer_Buyer';
|
24 |
-
protected $buyerDataType = '';
|
25 |
-
protected $buyerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
|
26 |
-
protected $buyerContactsDataType = 'array';
|
27 |
-
protected $buyerPrivateDataType = 'Google_Service_AdExchangeBuyer_PrivateData';
|
28 |
-
protected $buyerPrivateDataDataType = '';
|
29 |
-
public $dbmAdvertiserIds;
|
30 |
-
public $hasBuyerSignedOff;
|
31 |
-
public $hasSellerSignedOff;
|
32 |
-
public $inventorySource;
|
33 |
-
public $isRenegotiating;
|
34 |
-
public $isSetupComplete;
|
35 |
-
public $kind;
|
36 |
-
protected $labelsType = 'Google_Service_AdExchangeBuyer_MarketplaceLabel';
|
37 |
-
protected $labelsDataType = 'array';
|
38 |
-
public $lastUpdaterOrCommentorRole;
|
39 |
-
public $name;
|
40 |
-
public $negotiationId;
|
41 |
-
public $originatorRole;
|
42 |
-
public $privateAuctionId;
|
43 |
-
public $proposalId;
|
44 |
-
public $proposalState;
|
45 |
-
public $revisionNumber;
|
46 |
-
public $revisionTimeMs;
|
47 |
-
protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
|
48 |
-
protected $sellerDataType = '';
|
49 |
-
protected $sellerContactsType = 'Google_Service_AdExchangeBuyer_ContactInformation';
|
50 |
-
protected $sellerContactsDataType = 'array';
|
51 |
-
|
52 |
-
/**
|
53 |
-
* @param Google_Service_AdExchangeBuyer_Buyer
|
54 |
-
*/
|
55 |
-
public function setBilledBuyer(Google_Service_AdExchangeBuyer_Buyer $billedBuyer)
|
56 |
-
{
|
57 |
-
$this->billedBuyer = $billedBuyer;
|
58 |
-
}
|
59 |
-
/**
|
60 |
-
* @return Google_Service_AdExchangeBuyer_Buyer
|
61 |
-
*/
|
62 |
-
public function getBilledBuyer()
|
63 |
-
{
|
64 |
-
return $this->billedBuyer;
|
65 |
-
}
|
66 |
-
/**
|
67 |
-
* @param Google_Service_AdExchangeBuyer_Buyer
|
68 |
-
*/
|
69 |
-
public function setBuyer(Google_Service_AdExchangeBuyer_Buyer $buyer)
|
70 |
-
{
|
71 |
-
$this->buyer = $buyer;
|
72 |
-
}
|
73 |
-
/**
|
74 |
-
* @return Google_Service_AdExchangeBuyer_Buyer
|
75 |
-
*/
|
76 |
-
public function getBuyer()
|
77 |
-
{
|
78 |
-
return $this->buyer;
|
79 |
-
}
|
80 |
-
/**
|
81 |
-
* @param Google_Service_AdExchangeBuyer_ContactInformation
|
82 |
-
*/
|
83 |
-
public function setBuyerContacts($buyerContacts)
|
84 |
-
{
|
85 |
-
$this->buyerContacts = $buyerContacts;
|
86 |
-
}
|
87 |
-
/**
|
88 |
-
* @return Google_Service_AdExchangeBuyer_ContactInformation
|
89 |
-
*/
|
90 |
-
public function getBuyerContacts()
|
91 |
-
{
|
92 |
-
return $this->buyerContacts;
|
93 |
-
}
|
94 |
-
/**
|
95 |
-
* @param Google_Service_AdExchangeBuyer_PrivateData
|
96 |
-
*/
|
97 |
-
public function setBuyerPrivateData(Google_Service_AdExchangeBuyer_PrivateData $buyerPrivateData)
|
98 |
-
{
|
99 |
-
$this->buyerPrivateData = $buyerPrivateData;
|
100 |
-
}
|
101 |
-
/**
|
102 |
-
* @return Google_Service_AdExchangeBuyer_PrivateData
|
103 |
-
*/
|
104 |
-
public function getBuyerPrivateData()
|
105 |
-
{
|
106 |
-
return $this->buyerPrivateData;
|
107 |
-
}
|
108 |
-
public function setDbmAdvertiserIds($dbmAdvertiserIds)
|
109 |
-
{
|
110 |
-
$this->dbmAdvertiserIds = $dbmAdvertiserIds;
|
111 |
-
}
|
112 |
-
public function getDbmAdvertiserIds()
|
113 |
-
{
|
114 |
-
return $this->dbmAdvertiserIds;
|
115 |
-
}
|
116 |
-
public function setHasBuyerSignedOff($hasBuyerSignedOff)
|
117 |
-
{
|
118 |
-
$this->hasBuyerSignedOff = $hasBuyerSignedOff;
|
119 |
-
}
|
120 |
-
public function getHasBuyerSignedOff()
|
121 |
-
{
|
122 |
-
return $this->hasBuyerSignedOff;
|
123 |
-
}
|
124 |
-
public function setHasSellerSignedOff($hasSellerSignedOff)
|
125 |
-
{
|
126 |
-
$this->hasSellerSignedOff = $hasSellerSignedOff;
|
127 |
-
}
|
128 |
-
public function getHasSellerSignedOff()
|
129 |
-
{
|
130 |
-
return $this->hasSellerSignedOff;
|
131 |
-
}
|
132 |
-
public function setInventorySource($inventorySource)
|
133 |
-
{
|
134 |
-
$this->inventorySource = $inventorySource;
|
135 |
-
}
|
136 |
-
public function getInventorySource()
|
137 |
-
{
|
138 |
-
return $this->inventorySource;
|
139 |
-
}
|
140 |
-
public function setIsRenegotiating($isRenegotiating)
|
141 |
-
{
|
142 |
-
$this->isRenegotiating = $isRenegotiating;
|
143 |
-
}
|
144 |
-
public function getIsRenegotiating()
|
145 |
-
{
|
146 |
-
return $this->isRenegotiating;
|
147 |
-
}
|
148 |
-
public function setIsSetupComplete($isSetupComplete)
|
149 |
-
{
|
150 |
-
$this->isSetupComplete = $isSetupComplete;
|
151 |
-
}
|
152 |
-
public function getIsSetupComplete()
|
153 |
-
{
|
154 |
-
return $this->isSetupComplete;
|
155 |
-
}
|
156 |
-
public function setKind($kind)
|
157 |
-
{
|
158 |
-
$this->kind = $kind;
|
159 |
-
}
|
160 |
-
public function getKind()
|
161 |
-
{
|
162 |
-
return $this->kind;
|
163 |
-
}
|
164 |
-
/**
|
165 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceLabel
|
166 |
-
*/
|
167 |
-
public function setLabels($labels)
|
168 |
-
{
|
169 |
-
$this->labels = $labels;
|
170 |
-
}
|
171 |
-
/**
|
172 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceLabel
|
173 |
-
*/
|
174 |
-
public function getLabels()
|
175 |
-
{
|
176 |
-
return $this->labels;
|
177 |
-
}
|
178 |
-
public function setLastUpdaterOrCommentorRole($lastUpdaterOrCommentorRole)
|
179 |
-
{
|
180 |
-
$this->lastUpdaterOrCommentorRole = $lastUpdaterOrCommentorRole;
|
181 |
-
}
|
182 |
-
public function getLastUpdaterOrCommentorRole()
|
183 |
-
{
|
184 |
-
return $this->lastUpdaterOrCommentorRole;
|
185 |
-
}
|
186 |
-
public function setName($name)
|
187 |
-
{
|
188 |
-
$this->name = $name;
|
189 |
-
}
|
190 |
-
public function getName()
|
191 |
-
{
|
192 |
-
return $this->name;
|
193 |
-
}
|
194 |
-
public function setNegotiationId($negotiationId)
|
195 |
-
{
|
196 |
-
$this->negotiationId = $negotiationId;
|
197 |
-
}
|
198 |
-
public function getNegotiationId()
|
199 |
-
{
|
200 |
-
return $this->negotiationId;
|
201 |
-
}
|
202 |
-
public function setOriginatorRole($originatorRole)
|
203 |
-
{
|
204 |
-
$this->originatorRole = $originatorRole;
|
205 |
-
}
|
206 |
-
public function getOriginatorRole()
|
207 |
-
{
|
208 |
-
return $this->originatorRole;
|
209 |
-
}
|
210 |
-
public function setPrivateAuctionId($privateAuctionId)
|
211 |
-
{
|
212 |
-
$this->privateAuctionId = $privateAuctionId;
|
213 |
-
}
|
214 |
-
public function getPrivateAuctionId()
|
215 |
-
{
|
216 |
-
return $this->privateAuctionId;
|
217 |
-
}
|
218 |
-
public function setProposalId($proposalId)
|
219 |
-
{
|
220 |
-
$this->proposalId = $proposalId;
|
221 |
-
}
|
222 |
-
public function getProposalId()
|
223 |
-
{
|
224 |
-
return $this->proposalId;
|
225 |
-
}
|
226 |
-
public function setProposalState($proposalState)
|
227 |
-
{
|
228 |
-
$this->proposalState = $proposalState;
|
229 |
-
}
|
230 |
-
public function getProposalState()
|
231 |
-
{
|
232 |
-
return $this->proposalState;
|
233 |
-
}
|
234 |
-
public function setRevisionNumber($revisionNumber)
|
235 |
-
{
|
236 |
-
$this->revisionNumber = $revisionNumber;
|
237 |
-
}
|
238 |
-
public function getRevisionNumber()
|
239 |
-
{
|
240 |
-
return $this->revisionNumber;
|
241 |
-
}
|
242 |
-
public function setRevisionTimeMs($revisionTimeMs)
|
243 |
-
{
|
244 |
-
$this->revisionTimeMs = $revisionTimeMs;
|
245 |
-
}
|
246 |
-
public function getRevisionTimeMs()
|
247 |
-
{
|
248 |
-
return $this->revisionTimeMs;
|
249 |
-
}
|
250 |
-
/**
|
251 |
-
* @param Google_Service_AdExchangeBuyer_Seller
|
252 |
-
*/
|
253 |
-
public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
|
254 |
-
{
|
255 |
-
$this->seller = $seller;
|
256 |
-
}
|
257 |
-
/**
|
258 |
-
* @return Google_Service_AdExchangeBuyer_Seller
|
259 |
-
*/
|
260 |
-
public function getSeller()
|
261 |
-
{
|
262 |
-
return $this->seller;
|
263 |
-
}
|
264 |
-
/**
|
265 |
-
* @param Google_Service_AdExchangeBuyer_ContactInformation
|
266 |
-
*/
|
267 |
-
public function setSellerContacts($sellerContacts)
|
268 |
-
{
|
269 |
-
$this->sellerContacts = $sellerContacts;
|
270 |
-
}
|
271 |
-
/**
|
272 |
-
* @return Google_Service_AdExchangeBuyer_ContactInformation
|
273 |
-
*/
|
274 |
-
public function getSellerContacts()
|
275 |
-
{
|
276 |
-
return $this->sellerContacts;
|
277 |
-
}
|
278 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProfileApiProto.php
DELETED
@@ -1,243 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PublisherProfileApiProto extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'topHeadlines';
|
21 |
-
public $accountId;
|
22 |
-
public $audience;
|
23 |
-
public $buyerPitchStatement;
|
24 |
-
public $directContact;
|
25 |
-
public $exchange;
|
26 |
-
public $googlePlusLink;
|
27 |
-
public $isParent;
|
28 |
-
public $isPublished;
|
29 |
-
public $kind;
|
30 |
-
public $logoUrl;
|
31 |
-
public $mediaKitLink;
|
32 |
-
public $name;
|
33 |
-
public $overview;
|
34 |
-
public $profileId;
|
35 |
-
public $programmaticContact;
|
36 |
-
public $publisherDomains;
|
37 |
-
public $publisherProfileId;
|
38 |
-
protected $publisherProvidedForecastType = 'Google_Service_AdExchangeBuyer_PublisherProvidedForecast';
|
39 |
-
protected $publisherProvidedForecastDataType = '';
|
40 |
-
public $rateCardInfoLink;
|
41 |
-
public $samplePageLink;
|
42 |
-
protected $sellerType = 'Google_Service_AdExchangeBuyer_Seller';
|
43 |
-
protected $sellerDataType = '';
|
44 |
-
public $state;
|
45 |
-
public $topHeadlines;
|
46 |
-
|
47 |
-
public function setAccountId($accountId)
|
48 |
-
{
|
49 |
-
$this->accountId = $accountId;
|
50 |
-
}
|
51 |
-
public function getAccountId()
|
52 |
-
{
|
53 |
-
return $this->accountId;
|
54 |
-
}
|
55 |
-
public function setAudience($audience)
|
56 |
-
{
|
57 |
-
$this->audience = $audience;
|
58 |
-
}
|
59 |
-
public function getAudience()
|
60 |
-
{
|
61 |
-
return $this->audience;
|
62 |
-
}
|
63 |
-
public function setBuyerPitchStatement($buyerPitchStatement)
|
64 |
-
{
|
65 |
-
$this->buyerPitchStatement = $buyerPitchStatement;
|
66 |
-
}
|
67 |
-
public function getBuyerPitchStatement()
|
68 |
-
{
|
69 |
-
return $this->buyerPitchStatement;
|
70 |
-
}
|
71 |
-
public function setDirectContact($directContact)
|
72 |
-
{
|
73 |
-
$this->directContact = $directContact;
|
74 |
-
}
|
75 |
-
public function getDirectContact()
|
76 |
-
{
|
77 |
-
return $this->directContact;
|
78 |
-
}
|
79 |
-
public function setExchange($exchange)
|
80 |
-
{
|
81 |
-
$this->exchange = $exchange;
|
82 |
-
}
|
83 |
-
public function getExchange()
|
84 |
-
{
|
85 |
-
return $this->exchange;
|
86 |
-
}
|
87 |
-
public function setGooglePlusLink($googlePlusLink)
|
88 |
-
{
|
89 |
-
$this->googlePlusLink = $googlePlusLink;
|
90 |
-
}
|
91 |
-
public function getGooglePlusLink()
|
92 |
-
{
|
93 |
-
return $this->googlePlusLink;
|
94 |
-
}
|
95 |
-
public function setIsParent($isParent)
|
96 |
-
{
|
97 |
-
$this->isParent = $isParent;
|
98 |
-
}
|
99 |
-
public function getIsParent()
|
100 |
-
{
|
101 |
-
return $this->isParent;
|
102 |
-
}
|
103 |
-
public function setIsPublished($isPublished)
|
104 |
-
{
|
105 |
-
$this->isPublished = $isPublished;
|
106 |
-
}
|
107 |
-
public function getIsPublished()
|
108 |
-
{
|
109 |
-
return $this->isPublished;
|
110 |
-
}
|
111 |
-
public function setKind($kind)
|
112 |
-
{
|
113 |
-
$this->kind = $kind;
|
114 |
-
}
|
115 |
-
public function getKind()
|
116 |
-
{
|
117 |
-
return $this->kind;
|
118 |
-
}
|
119 |
-
public function setLogoUrl($logoUrl)
|
120 |
-
{
|
121 |
-
$this->logoUrl = $logoUrl;
|
122 |
-
}
|
123 |
-
public function getLogoUrl()
|
124 |
-
{
|
125 |
-
return $this->logoUrl;
|
126 |
-
}
|
127 |
-
public function setMediaKitLink($mediaKitLink)
|
128 |
-
{
|
129 |
-
$this->mediaKitLink = $mediaKitLink;
|
130 |
-
}
|
131 |
-
public function getMediaKitLink()
|
132 |
-
{
|
133 |
-
return $this->mediaKitLink;
|
134 |
-
}
|
135 |
-
public function setName($name)
|
136 |
-
{
|
137 |
-
$this->name = $name;
|
138 |
-
}
|
139 |
-
public function getName()
|
140 |
-
{
|
141 |
-
return $this->name;
|
142 |
-
}
|
143 |
-
public function setOverview($overview)
|
144 |
-
{
|
145 |
-
$this->overview = $overview;
|
146 |
-
}
|
147 |
-
public function getOverview()
|
148 |
-
{
|
149 |
-
return $this->overview;
|
150 |
-
}
|
151 |
-
public function setProfileId($profileId)
|
152 |
-
{
|
153 |
-
$this->profileId = $profileId;
|
154 |
-
}
|
155 |
-
public function getProfileId()
|
156 |
-
{
|
157 |
-
return $this->profileId;
|
158 |
-
}
|
159 |
-
public function setProgrammaticContact($programmaticContact)
|
160 |
-
{
|
161 |
-
$this->programmaticContact = $programmaticContact;
|
162 |
-
}
|
163 |
-
public function getProgrammaticContact()
|
164 |
-
{
|
165 |
-
return $this->programmaticContact;
|
166 |
-
}
|
167 |
-
public function setPublisherDomains($publisherDomains)
|
168 |
-
{
|
169 |
-
$this->publisherDomains = $publisherDomains;
|
170 |
-
}
|
171 |
-
public function getPublisherDomains()
|
172 |
-
{
|
173 |
-
return $this->publisherDomains;
|
174 |
-
}
|
175 |
-
public function setPublisherProfileId($publisherProfileId)
|
176 |
-
{
|
177 |
-
$this->publisherProfileId = $publisherProfileId;
|
178 |
-
}
|
179 |
-
public function getPublisherProfileId()
|
180 |
-
{
|
181 |
-
return $this->publisherProfileId;
|
182 |
-
}
|
183 |
-
/**
|
184 |
-
* @param Google_Service_AdExchangeBuyer_PublisherProvidedForecast
|
185 |
-
*/
|
186 |
-
public function setPublisherProvidedForecast(Google_Service_AdExchangeBuyer_PublisherProvidedForecast $publisherProvidedForecast)
|
187 |
-
{
|
188 |
-
$this->publisherProvidedForecast = $publisherProvidedForecast;
|
189 |
-
}
|
190 |
-
/**
|
191 |
-
* @return Google_Service_AdExchangeBuyer_PublisherProvidedForecast
|
192 |
-
*/
|
193 |
-
public function getPublisherProvidedForecast()
|
194 |
-
{
|
195 |
-
return $this->publisherProvidedForecast;
|
196 |
-
}
|
197 |
-
public function setRateCardInfoLink($rateCardInfoLink)
|
198 |
-
{
|
199 |
-
$this->rateCardInfoLink = $rateCardInfoLink;
|
200 |
-
}
|
201 |
-
public function getRateCardInfoLink()
|
202 |
-
{
|
203 |
-
return $this->rateCardInfoLink;
|
204 |
-
}
|
205 |
-
public function setSamplePageLink($samplePageLink)
|
206 |
-
{
|
207 |
-
$this->samplePageLink = $samplePageLink;
|
208 |
-
}
|
209 |
-
public function getSamplePageLink()
|
210 |
-
{
|
211 |
-
return $this->samplePageLink;
|
212 |
-
}
|
213 |
-
/**
|
214 |
-
* @param Google_Service_AdExchangeBuyer_Seller
|
215 |
-
*/
|
216 |
-
public function setSeller(Google_Service_AdExchangeBuyer_Seller $seller)
|
217 |
-
{
|
218 |
-
$this->seller = $seller;
|
219 |
-
}
|
220 |
-
/**
|
221 |
-
* @return Google_Service_AdExchangeBuyer_Seller
|
222 |
-
*/
|
223 |
-
public function getSeller()
|
224 |
-
{
|
225 |
-
return $this->seller;
|
226 |
-
}
|
227 |
-
public function setState($state)
|
228 |
-
{
|
229 |
-
$this->state = $state;
|
230 |
-
}
|
231 |
-
public function getState()
|
232 |
-
{
|
233 |
-
return $this->state;
|
234 |
-
}
|
235 |
-
public function setTopHeadlines($topHeadlines)
|
236 |
-
{
|
237 |
-
$this->topHeadlines = $topHeadlines;
|
238 |
-
}
|
239 |
-
public function getTopHeadlines()
|
240 |
-
{
|
241 |
-
return $this->topHeadlines;
|
242 |
-
}
|
243 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/PublisherProvidedForecast.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_PublisherProvidedForecast extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'dimensions';
|
21 |
-
protected $dimensionsType = 'Google_Service_AdExchangeBuyer_Dimension';
|
22 |
-
protected $dimensionsDataType = 'array';
|
23 |
-
public $weeklyImpressions;
|
24 |
-
public $weeklyUniques;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyer_Dimension
|
28 |
-
*/
|
29 |
-
public function setDimensions($dimensions)
|
30 |
-
{
|
31 |
-
$this->dimensions = $dimensions;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyer_Dimension
|
35 |
-
*/
|
36 |
-
public function getDimensions()
|
37 |
-
{
|
38 |
-
return $this->dimensions;
|
39 |
-
}
|
40 |
-
public function setWeeklyImpressions($weeklyImpressions)
|
41 |
-
{
|
42 |
-
$this->weeklyImpressions = $weeklyImpressions;
|
43 |
-
}
|
44 |
-
public function getWeeklyImpressions()
|
45 |
-
{
|
46 |
-
return $this->weeklyImpressions;
|
47 |
-
}
|
48 |
-
public function setWeeklyUniques($weeklyUniques)
|
49 |
-
{
|
50 |
-
$this->weeklyUniques = $weeklyUniques;
|
51 |
-
}
|
52 |
-
public function getWeeklyUniques()
|
53 |
-
{
|
54 |
-
return $this->weeklyUniques;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Accounts.php
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "accounts" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $accounts = $adexchangebuyerService->accounts;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Accounts extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Gets one account by ID. (accounts.get)
|
30 |
-
*
|
31 |
-
* @param int $id The account id
|
32 |
-
* @param array $optParams Optional parameters.
|
33 |
-
* @return Google_Service_AdExchangeBuyer_Account
|
34 |
-
*/
|
35 |
-
public function get($id, $optParams = array())
|
36 |
-
{
|
37 |
-
$params = array('id' => $id);
|
38 |
-
$params = array_merge($params, $optParams);
|
39 |
-
return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account");
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* Retrieves the authenticated user's list of accounts. (accounts.listAccounts)
|
43 |
-
*
|
44 |
-
* @param array $optParams Optional parameters.
|
45 |
-
* @return Google_Service_AdExchangeBuyer_AccountsList
|
46 |
-
*/
|
47 |
-
public function listAccounts($optParams = array())
|
48 |
-
{
|
49 |
-
$params = array();
|
50 |
-
$params = array_merge($params, $optParams);
|
51 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList");
|
52 |
-
}
|
53 |
-
/**
|
54 |
-
* Updates an existing account. This method supports patch semantics.
|
55 |
-
* (accounts.patch)
|
56 |
-
*
|
57 |
-
* @param int $id The account id
|
58 |
-
* @param Google_Service_AdExchangeBuyer_Account $postBody
|
59 |
-
* @param array $optParams Optional parameters.
|
60 |
-
*
|
61 |
-
* @opt_param bool confirmUnsafeAccountChange Confirmation for erasing bidder
|
62 |
-
* and cookie matching urls.
|
63 |
-
* @return Google_Service_AdExchangeBuyer_Account
|
64 |
-
*/
|
65 |
-
public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
|
66 |
-
{
|
67 |
-
$params = array('id' => $id, 'postBody' => $postBody);
|
68 |
-
$params = array_merge($params, $optParams);
|
69 |
-
return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account");
|
70 |
-
}
|
71 |
-
/**
|
72 |
-
* Updates an existing account. (accounts.update)
|
73 |
-
*
|
74 |
-
* @param int $id The account id
|
75 |
-
* @param Google_Service_AdExchangeBuyer_Account $postBody
|
76 |
-
* @param array $optParams Optional parameters.
|
77 |
-
*
|
78 |
-
* @opt_param bool confirmUnsafeAccountChange Confirmation for erasing bidder
|
79 |
-
* and cookie matching urls.
|
80 |
-
* @return Google_Service_AdExchangeBuyer_Account
|
81 |
-
*/
|
82 |
-
public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array())
|
83 |
-
{
|
84 |
-
$params = array('id' => $id, 'postBody' => $postBody);
|
85 |
-
$params = array_merge($params, $optParams);
|
86 |
-
return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Account");
|
87 |
-
}
|
88 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/BillingInfo.php
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "billingInfo" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $billingInfo = $adexchangebuyerService->billingInfo;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_BillingInfo extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Returns the billing information for one account specified by account ID.
|
30 |
-
* (billingInfo.get)
|
31 |
-
*
|
32 |
-
* @param int $accountId The account id.
|
33 |
-
* @param array $optParams Optional parameters.
|
34 |
-
* @return Google_Service_AdExchangeBuyer_BillingInfo
|
35 |
-
*/
|
36 |
-
public function get($accountId, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('accountId' => $accountId);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_BillingInfo");
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* Retrieves a list of billing information for all accounts of the authenticated
|
44 |
-
* user. (billingInfo.listBillingInfo)
|
45 |
-
*
|
46 |
-
* @param array $optParams Optional parameters.
|
47 |
-
* @return Google_Service_AdExchangeBuyer_BillingInfoList
|
48 |
-
*/
|
49 |
-
public function listBillingInfo($optParams = array())
|
50 |
-
{
|
51 |
-
$params = array();
|
52 |
-
$params = array_merge($params, $optParams);
|
53 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_BillingInfoList");
|
54 |
-
}
|
55 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Budget.php
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "budget" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $budget = $adexchangebuyerService->budget;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Budget extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Returns the budget information for the adgroup specified by the accountId and
|
30 |
-
* billingId. (budget.get)
|
31 |
-
*
|
32 |
-
* @param string $accountId The account id to get the budget information for.
|
33 |
-
* @param string $billingId The billing id to get the budget information for.
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
* @return Google_Service_AdExchangeBuyer_Budget
|
36 |
-
*/
|
37 |
-
public function get($accountId, $billingId, $optParams = array())
|
38 |
-
{
|
39 |
-
$params = array('accountId' => $accountId, 'billingId' => $billingId);
|
40 |
-
$params = array_merge($params, $optParams);
|
41 |
-
return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Budget");
|
42 |
-
}
|
43 |
-
/**
|
44 |
-
* Updates the budget amount for the budget of the adgroup specified by the
|
45 |
-
* accountId and billingId, with the budget amount in the request. This method
|
46 |
-
* supports patch semantics. (budget.patch)
|
47 |
-
*
|
48 |
-
* @param string $accountId The account id associated with the budget being
|
49 |
-
* updated.
|
50 |
-
* @param string $billingId The billing id associated with the budget being
|
51 |
-
* updated.
|
52 |
-
* @param Google_Service_AdExchangeBuyer_Budget $postBody
|
53 |
-
* @param array $optParams Optional parameters.
|
54 |
-
* @return Google_Service_AdExchangeBuyer_Budget
|
55 |
-
*/
|
56 |
-
public function patch($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array())
|
57 |
-
{
|
58 |
-
$params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody);
|
59 |
-
$params = array_merge($params, $optParams);
|
60 |
-
return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Budget");
|
61 |
-
}
|
62 |
-
/**
|
63 |
-
* Updates the budget amount for the budget of the adgroup specified by the
|
64 |
-
* accountId and billingId, with the budget amount in the request.
|
65 |
-
* (budget.update)
|
66 |
-
*
|
67 |
-
* @param string $accountId The account id associated with the budget being
|
68 |
-
* updated.
|
69 |
-
* @param string $billingId The billing id associated with the budget being
|
70 |
-
* updated.
|
71 |
-
* @param Google_Service_AdExchangeBuyer_Budget $postBody
|
72 |
-
* @param array $optParams Optional parameters.
|
73 |
-
* @return Google_Service_AdExchangeBuyer_Budget
|
74 |
-
*/
|
75 |
-
public function update($accountId, $billingId, Google_Service_AdExchangeBuyer_Budget $postBody, $optParams = array())
|
76 |
-
{
|
77 |
-
$params = array('accountId' => $accountId, 'billingId' => $billingId, 'postBody' => $postBody);
|
78 |
-
$params = array_merge($params, $optParams);
|
79 |
-
return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Budget");
|
80 |
-
}
|
81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Creatives.php
DELETED
@@ -1,127 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "creatives" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $creatives = $adexchangebuyerService->creatives;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Creatives extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Add a deal id association for the creative. (creatives.addDeal)
|
30 |
-
*
|
31 |
-
* @param int $accountId The id for the account that will serve this creative.
|
32 |
-
* @param string $buyerCreativeId The buyer-specific id for this creative.
|
33 |
-
* @param string $dealId The id of the deal id to associate with this creative.
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
*/
|
36 |
-
public function addDeal($accountId, $buyerCreativeId, $dealId, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('addDeal', array($params));
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* Gets the status for a single creative. A creative will be available 30-40
|
44 |
-
* minutes after submission. (creatives.get)
|
45 |
-
*
|
46 |
-
* @param int $accountId The id for the account that will serve this creative.
|
47 |
-
* @param string $buyerCreativeId The buyer-specific id for this creative.
|
48 |
-
* @param array $optParams Optional parameters.
|
49 |
-
* @return Google_Service_AdExchangeBuyer_Creative
|
50 |
-
*/
|
51 |
-
public function get($accountId, $buyerCreativeId, $optParams = array())
|
52 |
-
{
|
53 |
-
$params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
|
54 |
-
$params = array_merge($params, $optParams);
|
55 |
-
return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Creative");
|
56 |
-
}
|
57 |
-
/**
|
58 |
-
* Submit a new creative. (creatives.insert)
|
59 |
-
*
|
60 |
-
* @param Google_Service_AdExchangeBuyer_Creative $postBody
|
61 |
-
* @param array $optParams Optional parameters.
|
62 |
-
* @return Google_Service_AdExchangeBuyer_Creative
|
63 |
-
*/
|
64 |
-
public function insert(Google_Service_AdExchangeBuyer_Creative $postBody, $optParams = array())
|
65 |
-
{
|
66 |
-
$params = array('postBody' => $postBody);
|
67 |
-
$params = array_merge($params, $optParams);
|
68 |
-
return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_Creative");
|
69 |
-
}
|
70 |
-
/**
|
71 |
-
* Retrieves a list of the authenticated user's active creatives. A creative
|
72 |
-
* will be available 30-40 minutes after submission. (creatives.listCreatives)
|
73 |
-
*
|
74 |
-
* @param array $optParams Optional parameters.
|
75 |
-
*
|
76 |
-
* @opt_param int accountId When specified, only creatives for the given account
|
77 |
-
* ids are returned.
|
78 |
-
* @opt_param string buyerCreativeId When specified, only creatives for the
|
79 |
-
* given buyer creative ids are returned.
|
80 |
-
* @opt_param string dealsStatusFilter When specified, only creatives having the
|
81 |
-
* given deals status are returned.
|
82 |
-
* @opt_param string maxResults Maximum number of entries returned on one result
|
83 |
-
* page. If not set, the default is 100. Optional.
|
84 |
-
* @opt_param string openAuctionStatusFilter When specified, only creatives
|
85 |
-
* having the given open auction status are returned.
|
86 |
-
* @opt_param string pageToken A continuation token, used to page through ad
|
87 |
-
* clients. To retrieve the next page, set this parameter to the value of
|
88 |
-
* "nextPageToken" from the previous response. Optional.
|
89 |
-
* @return Google_Service_AdExchangeBuyer_CreativesList
|
90 |
-
*/
|
91 |
-
public function listCreatives($optParams = array())
|
92 |
-
{
|
93 |
-
$params = array();
|
94 |
-
$params = array_merge($params, $optParams);
|
95 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_CreativesList");
|
96 |
-
}
|
97 |
-
/**
|
98 |
-
* Lists the external deal ids associated with the creative.
|
99 |
-
* (creatives.listDeals)
|
100 |
-
*
|
101 |
-
* @param int $accountId The id for the account that will serve this creative.
|
102 |
-
* @param string $buyerCreativeId The buyer-specific id for this creative.
|
103 |
-
* @param array $optParams Optional parameters.
|
104 |
-
* @return Google_Service_AdExchangeBuyer_CreativeDealIds
|
105 |
-
*/
|
106 |
-
public function listDeals($accountId, $buyerCreativeId, $optParams = array())
|
107 |
-
{
|
108 |
-
$params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
|
109 |
-
$params = array_merge($params, $optParams);
|
110 |
-
return $this->call('listDeals', array($params), "Google_Service_AdExchangeBuyer_CreativeDealIds");
|
111 |
-
}
|
112 |
-
/**
|
113 |
-
* Remove a deal id associated with the creative. (creatives.removeDeal)
|
114 |
-
*
|
115 |
-
* @param int $accountId The id for the account that will serve this creative.
|
116 |
-
* @param string $buyerCreativeId The buyer-specific id for this creative.
|
117 |
-
* @param string $dealId The id of the deal id to disassociate with this
|
118 |
-
* creative.
|
119 |
-
* @param array $optParams Optional parameters.
|
120 |
-
*/
|
121 |
-
public function removeDeal($accountId, $buyerCreativeId, $dealId, $optParams = array())
|
122 |
-
{
|
123 |
-
$params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId, 'dealId' => $dealId);
|
124 |
-
$params = array_merge($params, $optParams);
|
125 |
-
return $this->call('removeDeal', array($params));
|
126 |
-
}
|
127 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacedeals.php
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "marketplacedeals" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $marketplacedeals = $adexchangebuyerService->marketplacedeals;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Marketplacedeals extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Delete the specified deals from the proposal (marketplacedeals.delete)
|
30 |
-
*
|
31 |
-
* @param string $proposalId The proposalId to delete deals from.
|
32 |
-
* @param Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody
|
33 |
-
* @param array $optParams Optional parameters.
|
34 |
-
* @return Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse
|
35 |
-
*/
|
36 |
-
public function delete($proposalId, Google_Service_AdExchangeBuyer_DeleteOrderDealsRequest $postBody, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('proposalId' => $proposalId, 'postBody' => $postBody);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('delete', array($params), "Google_Service_AdExchangeBuyer_DeleteOrderDealsResponse");
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* Add new deals for the specified proposal (marketplacedeals.insert)
|
44 |
-
*
|
45 |
-
* @param string $proposalId proposalId for which deals need to be added.
|
46 |
-
* @param Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody
|
47 |
-
* @param array $optParams Optional parameters.
|
48 |
-
* @return Google_Service_AdExchangeBuyer_AddOrderDealsResponse
|
49 |
-
*/
|
50 |
-
public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderDealsRequest $postBody, $optParams = array())
|
51 |
-
{
|
52 |
-
$params = array('proposalId' => $proposalId, 'postBody' => $postBody);
|
53 |
-
$params = array_merge($params, $optParams);
|
54 |
-
return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderDealsResponse");
|
55 |
-
}
|
56 |
-
/**
|
57 |
-
* List all the deals for a given proposal
|
58 |
-
* (marketplacedeals.listMarketplacedeals)
|
59 |
-
*
|
60 |
-
* @param string $proposalId The proposalId to get deals for. To search across
|
61 |
-
* all proposals specify order_id = '-' as part of the URL.
|
62 |
-
* @param array $optParams Optional parameters.
|
63 |
-
*
|
64 |
-
* @opt_param string pqlQuery Query string to retrieve specific deals.
|
65 |
-
* @return Google_Service_AdExchangeBuyer_GetOrderDealsResponse
|
66 |
-
*/
|
67 |
-
public function listMarketplacedeals($proposalId, $optParams = array())
|
68 |
-
{
|
69 |
-
$params = array('proposalId' => $proposalId);
|
70 |
-
$params = array_merge($params, $optParams);
|
71 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderDealsResponse");
|
72 |
-
}
|
73 |
-
/**
|
74 |
-
* Replaces all the deals in the proposal with the passed in deals
|
75 |
-
* (marketplacedeals.update)
|
76 |
-
*
|
77 |
-
* @param string $proposalId The proposalId to edit deals on.
|
78 |
-
* @param Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody
|
79 |
-
* @param array $optParams Optional parameters.
|
80 |
-
* @return Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse
|
81 |
-
*/
|
82 |
-
public function update($proposalId, Google_Service_AdExchangeBuyer_EditAllOrderDealsRequest $postBody, $optParams = array())
|
83 |
-
{
|
84 |
-
$params = array('proposalId' => $proposalId, 'postBody' => $postBody);
|
85 |
-
$params = array_merge($params, $optParams);
|
86 |
-
return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_EditAllOrderDealsResponse");
|
87 |
-
}
|
88 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplacenotes.php
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "marketplacenotes" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $marketplacenotes = $adexchangebuyerService->marketplacenotes;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Marketplacenotes extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Add notes to the proposal (marketplacenotes.insert)
|
30 |
-
*
|
31 |
-
* @param string $proposalId The proposalId to add notes for.
|
32 |
-
* @param Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody
|
33 |
-
* @param array $optParams Optional parameters.
|
34 |
-
* @return Google_Service_AdExchangeBuyer_AddOrderNotesResponse
|
35 |
-
*/
|
36 |
-
public function insert($proposalId, Google_Service_AdExchangeBuyer_AddOrderNotesRequest $postBody, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('proposalId' => $proposalId, 'postBody' => $postBody);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_AddOrderNotesResponse");
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* Get all the notes associated with a proposal
|
44 |
-
* (marketplacenotes.listMarketplacenotes)
|
45 |
-
*
|
46 |
-
* @param string $proposalId The proposalId to get notes for. To search across
|
47 |
-
* all proposals specify order_id = '-' as part of the URL.
|
48 |
-
* @param array $optParams Optional parameters.
|
49 |
-
*
|
50 |
-
* @opt_param string pqlQuery Query string to retrieve specific notes. To search
|
51 |
-
* the text contents of notes, please use syntax like "WHERE note.note = "foo"
|
52 |
-
* or "WHERE note.note LIKE "%bar%"
|
53 |
-
* @return Google_Service_AdExchangeBuyer_GetOrderNotesResponse
|
54 |
-
*/
|
55 |
-
public function listMarketplacenotes($proposalId, $optParams = array())
|
56 |
-
{
|
57 |
-
$params = array('proposalId' => $proposalId);
|
58 |
-
$params = array_merge($params, $optParams);
|
59 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetOrderNotesResponse");
|
60 |
-
}
|
61 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Marketplaceprivateauction.php
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "marketplaceprivateauction" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $marketplaceprivateauction = $adexchangebuyerService->marketplaceprivateauction;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Marketplaceprivateauction extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Update a given private auction proposal
|
30 |
-
* (marketplaceprivateauction.updateproposal)
|
31 |
-
*
|
32 |
-
* @param string $privateAuctionId The private auction id to be updated.
|
33 |
-
* @param Google_Service_AdExchangeBuyer_UpdatePrivateAuctionProposalRequest $postBody
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
*/
|
36 |
-
public function updateproposal($privateAuctionId, Google_Service_AdExchangeBuyer_UpdatePrivateAuctionProposalRequest $postBody, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('privateAuctionId' => $privateAuctionId, 'postBody' => $postBody);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('updateproposal', array($params));
|
41 |
-
}
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PerformanceReport.php
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "performanceReport" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $performanceReport = $adexchangebuyerService->performanceReport;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_PerformanceReport extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Retrieves the authenticated user's list of performance metrics.
|
30 |
-
* (performanceReport.listPerformanceReport)
|
31 |
-
*
|
32 |
-
* @param string $accountId The account id to get the reports.
|
33 |
-
* @param string $endDateTime The end time of the report in ISO 8601 timestamp
|
34 |
-
* format using UTC.
|
35 |
-
* @param string $startDateTime The start time of the report in ISO 8601
|
36 |
-
* timestamp format using UTC.
|
37 |
-
* @param array $optParams Optional parameters.
|
38 |
-
*
|
39 |
-
* @opt_param string maxResults Maximum number of entries returned on one result
|
40 |
-
* page. If not set, the default is 100. Optional.
|
41 |
-
* @opt_param string pageToken A continuation token, used to page through
|
42 |
-
* performance reports. To retrieve the next page, set this parameter to the
|
43 |
-
* value of "nextPageToken" from the previous response. Optional.
|
44 |
-
* @return Google_Service_AdExchangeBuyer_PerformanceReportList
|
45 |
-
*/
|
46 |
-
public function listPerformanceReport($accountId, $endDateTime, $startDateTime, $optParams = array())
|
47 |
-
{
|
48 |
-
$params = array('accountId' => $accountId, 'endDateTime' => $endDateTime, 'startDateTime' => $startDateTime);
|
49 |
-
$params = array_merge($params, $optParams);
|
50 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PerformanceReportList");
|
51 |
-
}
|
52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/PretargetingConfig.php
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "pretargetingConfig" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $pretargetingConfig = $adexchangebuyerService->pretargetingConfig;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_PretargetingConfig extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Deletes an existing pretargeting config. (pretargetingConfig.delete)
|
30 |
-
*
|
31 |
-
* @param string $accountId The account id to delete the pretargeting config
|
32 |
-
* for.
|
33 |
-
* @param string $configId The specific id of the configuration to delete.
|
34 |
-
* @param array $optParams Optional parameters.
|
35 |
-
*/
|
36 |
-
public function delete($accountId, $configId, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('accountId' => $accountId, 'configId' => $configId);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('delete', array($params));
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* Gets a specific pretargeting configuration (pretargetingConfig.get)
|
44 |
-
*
|
45 |
-
* @param string $accountId The account id to get the pretargeting config for.
|
46 |
-
* @param string $configId The specific id of the configuration to retrieve.
|
47 |
-
* @param array $optParams Optional parameters.
|
48 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfig
|
49 |
-
*/
|
50 |
-
public function get($accountId, $configId, $optParams = array())
|
51 |
-
{
|
52 |
-
$params = array('accountId' => $accountId, 'configId' => $configId);
|
53 |
-
$params = array_merge($params, $optParams);
|
54 |
-
return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
|
55 |
-
}
|
56 |
-
/**
|
57 |
-
* Inserts a new pretargeting configuration. (pretargetingConfig.insert)
|
58 |
-
*
|
59 |
-
* @param string $accountId The account id to insert the pretargeting config
|
60 |
-
* for.
|
61 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
|
62 |
-
* @param array $optParams Optional parameters.
|
63 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfig
|
64 |
-
*/
|
65 |
-
public function insert($accountId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array())
|
66 |
-
{
|
67 |
-
$params = array('accountId' => $accountId, 'postBody' => $postBody);
|
68 |
-
$params = array_merge($params, $optParams);
|
69 |
-
return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
|
70 |
-
}
|
71 |
-
/**
|
72 |
-
* Retrieves a list of the authenticated user's pretargeting configurations.
|
73 |
-
* (pretargetingConfig.listPretargetingConfig)
|
74 |
-
*
|
75 |
-
* @param string $accountId The account id to get the pretargeting configs for.
|
76 |
-
* @param array $optParams Optional parameters.
|
77 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfigList
|
78 |
-
*/
|
79 |
-
public function listPretargetingConfig($accountId, $optParams = array())
|
80 |
-
{
|
81 |
-
$params = array('accountId' => $accountId);
|
82 |
-
$params = array_merge($params, $optParams);
|
83 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfigList");
|
84 |
-
}
|
85 |
-
/**
|
86 |
-
* Updates an existing pretargeting config. This method supports patch
|
87 |
-
* semantics. (pretargetingConfig.patch)
|
88 |
-
*
|
89 |
-
* @param string $accountId The account id to update the pretargeting config
|
90 |
-
* for.
|
91 |
-
* @param string $configId The specific id of the configuration to update.
|
92 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
|
93 |
-
* @param array $optParams Optional parameters.
|
94 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfig
|
95 |
-
*/
|
96 |
-
public function patch($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array())
|
97 |
-
{
|
98 |
-
$params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody);
|
99 |
-
$params = array_merge($params, $optParams);
|
100 |
-
return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
|
101 |
-
}
|
102 |
-
/**
|
103 |
-
* Updates an existing pretargeting config. (pretargetingConfig.update)
|
104 |
-
*
|
105 |
-
* @param string $accountId The account id to update the pretargeting config
|
106 |
-
* for.
|
107 |
-
* @param string $configId The specific id of the configuration to update.
|
108 |
-
* @param Google_Service_AdExchangeBuyer_PretargetingConfig $postBody
|
109 |
-
* @param array $optParams Optional parameters.
|
110 |
-
* @return Google_Service_AdExchangeBuyer_PretargetingConfig
|
111 |
-
*/
|
112 |
-
public function update($accountId, $configId, Google_Service_AdExchangeBuyer_PretargetingConfig $postBody, $optParams = array())
|
113 |
-
{
|
114 |
-
$params = array('accountId' => $accountId, 'configId' => $configId, 'postBody' => $postBody);
|
115 |
-
$params = array_merge($params, $optParams);
|
116 |
-
return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_PretargetingConfig");
|
117 |
-
}
|
118 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Products.php
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "products" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $products = $adexchangebuyerService->products;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Products extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Gets the requested product by id. (products.get)
|
30 |
-
*
|
31 |
-
* @param string $productId The id for the product to get the head revision for.
|
32 |
-
* @param array $optParams Optional parameters.
|
33 |
-
* @return Google_Service_AdExchangeBuyer_Product
|
34 |
-
*/
|
35 |
-
public function get($productId, $optParams = array())
|
36 |
-
{
|
37 |
-
$params = array('productId' => $productId);
|
38 |
-
$params = array_merge($params, $optParams);
|
39 |
-
return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Product");
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* Gets the requested product. (products.search)
|
43 |
-
*
|
44 |
-
* @param array $optParams Optional parameters.
|
45 |
-
*
|
46 |
-
* @opt_param string pqlQuery The pql query used to query for products.
|
47 |
-
* @return Google_Service_AdExchangeBuyer_GetOffersResponse
|
48 |
-
*/
|
49 |
-
public function search($optParams = array())
|
50 |
-
{
|
51 |
-
$params = array();
|
52 |
-
$params = array_merge($params, $optParams);
|
53 |
-
return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOffersResponse");
|
54 |
-
}
|
55 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Proposals.php
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "proposals" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $proposals = $adexchangebuyerService->proposals;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Proposals extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Get a proposal given its id (proposals.get)
|
30 |
-
*
|
31 |
-
* @param string $proposalId Id of the proposal to retrieve.
|
32 |
-
* @param array $optParams Optional parameters.
|
33 |
-
* @return Google_Service_AdExchangeBuyer_Proposal
|
34 |
-
*/
|
35 |
-
public function get($proposalId, $optParams = array())
|
36 |
-
{
|
37 |
-
$params = array('proposalId' => $proposalId);
|
38 |
-
$params = array_merge($params, $optParams);
|
39 |
-
return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Proposal");
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* Create the given list of proposals (proposals.insert)
|
43 |
-
*
|
44 |
-
* @param Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody
|
45 |
-
* @param array $optParams Optional parameters.
|
46 |
-
* @return Google_Service_AdExchangeBuyer_CreateOrdersResponse
|
47 |
-
*/
|
48 |
-
public function insert(Google_Service_AdExchangeBuyer_CreateOrdersRequest $postBody, $optParams = array())
|
49 |
-
{
|
50 |
-
$params = array('postBody' => $postBody);
|
51 |
-
$params = array_merge($params, $optParams);
|
52 |
-
return $this->call('insert', array($params), "Google_Service_AdExchangeBuyer_CreateOrdersResponse");
|
53 |
-
}
|
54 |
-
/**
|
55 |
-
* Update the given proposal. This method supports patch semantics.
|
56 |
-
* (proposals.patch)
|
57 |
-
*
|
58 |
-
* @param string $proposalId The proposal id to update.
|
59 |
-
* @param string $revisionNumber The last known revision number to update. If
|
60 |
-
* the head revision in the marketplace database has since changed, an error
|
61 |
-
* will be thrown. The caller should then fetch the latest proposal at head
|
62 |
-
* revision and retry the update at that revision.
|
63 |
-
* @param string $updateAction The proposed action to take on the proposal. This
|
64 |
-
* field is required and it must be set when updating a proposal.
|
65 |
-
* @param Google_Service_AdExchangeBuyer_Proposal $postBody
|
66 |
-
* @param array $optParams Optional parameters.
|
67 |
-
* @return Google_Service_AdExchangeBuyer_Proposal
|
68 |
-
*/
|
69 |
-
public function patch($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array())
|
70 |
-
{
|
71 |
-
$params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody);
|
72 |
-
$params = array_merge($params, $optParams);
|
73 |
-
return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Proposal");
|
74 |
-
}
|
75 |
-
/**
|
76 |
-
* Search for proposals using pql query (proposals.search)
|
77 |
-
*
|
78 |
-
* @param array $optParams Optional parameters.
|
79 |
-
*
|
80 |
-
* @opt_param string pqlQuery Query string to retrieve specific proposals.
|
81 |
-
* @return Google_Service_AdExchangeBuyer_GetOrdersResponse
|
82 |
-
*/
|
83 |
-
public function search($optParams = array())
|
84 |
-
{
|
85 |
-
$params = array();
|
86 |
-
$params = array_merge($params, $optParams);
|
87 |
-
return $this->call('search', array($params), "Google_Service_AdExchangeBuyer_GetOrdersResponse");
|
88 |
-
}
|
89 |
-
/**
|
90 |
-
* Update the given proposal to indicate that setup has been completed.
|
91 |
-
* (proposals.setupcomplete)
|
92 |
-
*
|
93 |
-
* @param string $proposalId The proposal id for which the setup is complete
|
94 |
-
* @param array $optParams Optional parameters.
|
95 |
-
*/
|
96 |
-
public function setupcomplete($proposalId, $optParams = array())
|
97 |
-
{
|
98 |
-
$params = array('proposalId' => $proposalId);
|
99 |
-
$params = array_merge($params, $optParams);
|
100 |
-
return $this->call('setupcomplete', array($params));
|
101 |
-
}
|
102 |
-
/**
|
103 |
-
* Update the given proposal (proposals.update)
|
104 |
-
*
|
105 |
-
* @param string $proposalId The proposal id to update.
|
106 |
-
* @param string $revisionNumber The last known revision number to update. If
|
107 |
-
* the head revision in the marketplace database has since changed, an error
|
108 |
-
* will be thrown. The caller should then fetch the latest proposal at head
|
109 |
-
* revision and retry the update at that revision.
|
110 |
-
* @param string $updateAction The proposed action to take on the proposal. This
|
111 |
-
* field is required and it must be set when updating a proposal.
|
112 |
-
* @param Google_Service_AdExchangeBuyer_Proposal $postBody
|
113 |
-
* @param array $optParams Optional parameters.
|
114 |
-
* @return Google_Service_AdExchangeBuyer_Proposal
|
115 |
-
*/
|
116 |
-
public function update($proposalId, $revisionNumber, $updateAction, Google_Service_AdExchangeBuyer_Proposal $postBody, $optParams = array())
|
117 |
-
{
|
118 |
-
$params = array('proposalId' => $proposalId, 'revisionNumber' => $revisionNumber, 'updateAction' => $updateAction, 'postBody' => $postBody);
|
119 |
-
$params = array_merge($params, $optParams);
|
120 |
-
return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Proposal");
|
121 |
-
}
|
122 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Resource/Pubprofiles.php
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* The "pubprofiles" collection of methods.
|
20 |
-
* Typical usage is:
|
21 |
-
* <code>
|
22 |
-
* $adexchangebuyerService = new Google_Service_AdExchangeBuyer(...);
|
23 |
-
* $pubprofiles = $adexchangebuyerService->pubprofiles;
|
24 |
-
* </code>
|
25 |
-
*/
|
26 |
-
class Google_Service_AdExchangeBuyer_Resource_Pubprofiles extends Google_Service_Resource
|
27 |
-
{
|
28 |
-
/**
|
29 |
-
* Gets the requested publisher profile(s) by publisher accountId.
|
30 |
-
* (pubprofiles.listPubprofiles)
|
31 |
-
*
|
32 |
-
* @param int $accountId The accountId of the publisher to get profiles for.
|
33 |
-
* @param array $optParams Optional parameters.
|
34 |
-
* @return Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse
|
35 |
-
*/
|
36 |
-
public function listPubprofiles($accountId, $optParams = array())
|
37 |
-
{
|
38 |
-
$params = array('accountId' => $accountId);
|
39 |
-
$params = array_merge($params, $optParams);
|
40 |
-
return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_GetPublisherProfilesByAccountIdResponse");
|
41 |
-
}
|
42 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/Seller.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_Seller extends Google_Model
|
19 |
-
{
|
20 |
-
public $accountId;
|
21 |
-
public $subAccountId;
|
22 |
-
|
23 |
-
public function setAccountId($accountId)
|
24 |
-
{
|
25 |
-
$this->accountId = $accountId;
|
26 |
-
}
|
27 |
-
public function getAccountId()
|
28 |
-
{
|
29 |
-
return $this->accountId;
|
30 |
-
}
|
31 |
-
public function setSubAccountId($subAccountId)
|
32 |
-
{
|
33 |
-
$this->subAccountId = $subAccountId;
|
34 |
-
}
|
35 |
-
public function getSubAccountId()
|
36 |
-
{
|
37 |
-
return $this->subAccountId;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/SharedTargeting.php
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_SharedTargeting extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'inclusions';
|
21 |
-
protected $exclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue';
|
22 |
-
protected $exclusionsDataType = 'array';
|
23 |
-
protected $inclusionsType = 'Google_Service_AdExchangeBuyer_TargetingValue';
|
24 |
-
protected $inclusionsDataType = 'array';
|
25 |
-
public $key;
|
26 |
-
|
27 |
-
/**
|
28 |
-
* @param Google_Service_AdExchangeBuyer_TargetingValue
|
29 |
-
*/
|
30 |
-
public function setExclusions($exclusions)
|
31 |
-
{
|
32 |
-
$this->exclusions = $exclusions;
|
33 |
-
}
|
34 |
-
/**
|
35 |
-
* @return Google_Service_AdExchangeBuyer_TargetingValue
|
36 |
-
*/
|
37 |
-
public function getExclusions()
|
38 |
-
{
|
39 |
-
return $this->exclusions;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @param Google_Service_AdExchangeBuyer_TargetingValue
|
43 |
-
*/
|
44 |
-
public function setInclusions($inclusions)
|
45 |
-
{
|
46 |
-
$this->inclusions = $inclusions;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @return Google_Service_AdExchangeBuyer_TargetingValue
|
50 |
-
*/
|
51 |
-
public function getInclusions()
|
52 |
-
{
|
53 |
-
return $this->inclusions;
|
54 |
-
}
|
55 |
-
public function setKey($key)
|
56 |
-
{
|
57 |
-
$this->key = $key;
|
58 |
-
}
|
59 |
-
public function getKey()
|
60 |
-
{
|
61 |
-
return $this->key;
|
62 |
-
}
|
63 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValue.php
DELETED
@@ -1,71 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_TargetingValue extends Google_Model
|
19 |
-
{
|
20 |
-
protected $creativeSizeValueType = 'Google_Service_AdExchangeBuyer_TargetingValueCreativeSize';
|
21 |
-
protected $creativeSizeValueDataType = '';
|
22 |
-
protected $dayPartTargetingValueType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting';
|
23 |
-
protected $dayPartTargetingValueDataType = '';
|
24 |
-
public $longValue;
|
25 |
-
public $stringValue;
|
26 |
-
|
27 |
-
/**
|
28 |
-
* @param Google_Service_AdExchangeBuyer_TargetingValueCreativeSize
|
29 |
-
*/
|
30 |
-
public function setCreativeSizeValue(Google_Service_AdExchangeBuyer_TargetingValueCreativeSize $creativeSizeValue)
|
31 |
-
{
|
32 |
-
$this->creativeSizeValue = $creativeSizeValue;
|
33 |
-
}
|
34 |
-
/**
|
35 |
-
* @return Google_Service_AdExchangeBuyer_TargetingValueCreativeSize
|
36 |
-
*/
|
37 |
-
public function getCreativeSizeValue()
|
38 |
-
{
|
39 |
-
return $this->creativeSizeValue;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @param Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting
|
43 |
-
*/
|
44 |
-
public function setDayPartTargetingValue(Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting $dayPartTargetingValue)
|
45 |
-
{
|
46 |
-
$this->dayPartTargetingValue = $dayPartTargetingValue;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @return Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting
|
50 |
-
*/
|
51 |
-
public function getDayPartTargetingValue()
|
52 |
-
{
|
53 |
-
return $this->dayPartTargetingValue;
|
54 |
-
}
|
55 |
-
public function setLongValue($longValue)
|
56 |
-
{
|
57 |
-
$this->longValue = $longValue;
|
58 |
-
}
|
59 |
-
public function getLongValue()
|
60 |
-
{
|
61 |
-
return $this->longValue;
|
62 |
-
}
|
63 |
-
public function setStringValue($stringValue)
|
64 |
-
{
|
65 |
-
$this->stringValue = $stringValue;
|
66 |
-
}
|
67 |
-
public function getStringValue()
|
68 |
-
{
|
69 |
-
return $this->stringValue;
|
70 |
-
}
|
71 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueCreativeSize.php
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_TargetingValueCreativeSize extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'companionSizes';
|
21 |
-
protected $companionSizesType = 'Google_Service_AdExchangeBuyer_TargetingValueSize';
|
22 |
-
protected $companionSizesDataType = 'array';
|
23 |
-
public $creativeSizeType;
|
24 |
-
public $nativeTemplate;
|
25 |
-
protected $sizeType = 'Google_Service_AdExchangeBuyer_TargetingValueSize';
|
26 |
-
protected $sizeDataType = '';
|
27 |
-
public $skippableAdType;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* @param Google_Service_AdExchangeBuyer_TargetingValueSize
|
31 |
-
*/
|
32 |
-
public function setCompanionSizes($companionSizes)
|
33 |
-
{
|
34 |
-
$this->companionSizes = $companionSizes;
|
35 |
-
}
|
36 |
-
/**
|
37 |
-
* @return Google_Service_AdExchangeBuyer_TargetingValueSize
|
38 |
-
*/
|
39 |
-
public function getCompanionSizes()
|
40 |
-
{
|
41 |
-
return $this->companionSizes;
|
42 |
-
}
|
43 |
-
public function setCreativeSizeType($creativeSizeType)
|
44 |
-
{
|
45 |
-
$this->creativeSizeType = $creativeSizeType;
|
46 |
-
}
|
47 |
-
public function getCreativeSizeType()
|
48 |
-
{
|
49 |
-
return $this->creativeSizeType;
|
50 |
-
}
|
51 |
-
public function setNativeTemplate($nativeTemplate)
|
52 |
-
{
|
53 |
-
$this->nativeTemplate = $nativeTemplate;
|
54 |
-
}
|
55 |
-
public function getNativeTemplate()
|
56 |
-
{
|
57 |
-
return $this->nativeTemplate;
|
58 |
-
}
|
59 |
-
/**
|
60 |
-
* @param Google_Service_AdExchangeBuyer_TargetingValueSize
|
61 |
-
*/
|
62 |
-
public function setSize(Google_Service_AdExchangeBuyer_TargetingValueSize $size)
|
63 |
-
{
|
64 |
-
$this->size = $size;
|
65 |
-
}
|
66 |
-
/**
|
67 |
-
* @return Google_Service_AdExchangeBuyer_TargetingValueSize
|
68 |
-
*/
|
69 |
-
public function getSize()
|
70 |
-
{
|
71 |
-
return $this->size;
|
72 |
-
}
|
73 |
-
public function setSkippableAdType($skippableAdType)
|
74 |
-
{
|
75 |
-
$this->skippableAdType = $skippableAdType;
|
76 |
-
}
|
77 |
-
public function getSkippableAdType()
|
78 |
-
{
|
79 |
-
return $this->skippableAdType;
|
80 |
-
}
|
81 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargeting.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargeting extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'dayParts';
|
21 |
-
protected $dayPartsType = 'Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart';
|
22 |
-
protected $dayPartsDataType = 'array';
|
23 |
-
public $timeZoneType;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart
|
27 |
-
*/
|
28 |
-
public function setDayParts($dayParts)
|
29 |
-
{
|
30 |
-
$this->dayParts = $dayParts;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart
|
34 |
-
*/
|
35 |
-
public function getDayParts()
|
36 |
-
{
|
37 |
-
return $this->dayParts;
|
38 |
-
}
|
39 |
-
public function setTimeZoneType($timeZoneType)
|
40 |
-
{
|
41 |
-
$this->timeZoneType = $timeZoneType;
|
42 |
-
}
|
43 |
-
public function getTimeZoneType()
|
44 |
-
{
|
45 |
-
return $this->timeZoneType;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueDayPartTargetingDayPart.php
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_TargetingValueDayPartTargetingDayPart extends Google_Model
|
19 |
-
{
|
20 |
-
public $dayOfWeek;
|
21 |
-
public $endHour;
|
22 |
-
public $endMinute;
|
23 |
-
public $startHour;
|
24 |
-
public $startMinute;
|
25 |
-
|
26 |
-
public function setDayOfWeek($dayOfWeek)
|
27 |
-
{
|
28 |
-
$this->dayOfWeek = $dayOfWeek;
|
29 |
-
}
|
30 |
-
public function getDayOfWeek()
|
31 |
-
{
|
32 |
-
return $this->dayOfWeek;
|
33 |
-
}
|
34 |
-
public function setEndHour($endHour)
|
35 |
-
{
|
36 |
-
$this->endHour = $endHour;
|
37 |
-
}
|
38 |
-
public function getEndHour()
|
39 |
-
{
|
40 |
-
return $this->endHour;
|
41 |
-
}
|
42 |
-
public function setEndMinute($endMinute)
|
43 |
-
{
|
44 |
-
$this->endMinute = $endMinute;
|
45 |
-
}
|
46 |
-
public function getEndMinute()
|
47 |
-
{
|
48 |
-
return $this->endMinute;
|
49 |
-
}
|
50 |
-
public function setStartHour($startHour)
|
51 |
-
{
|
52 |
-
$this->startHour = $startHour;
|
53 |
-
}
|
54 |
-
public function getStartHour()
|
55 |
-
{
|
56 |
-
return $this->startHour;
|
57 |
-
}
|
58 |
-
public function setStartMinute($startMinute)
|
59 |
-
{
|
60 |
-
$this->startMinute = $startMinute;
|
61 |
-
}
|
62 |
-
public function getStartMinute()
|
63 |
-
{
|
64 |
-
return $this->startMinute;
|
65 |
-
}
|
66 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/TargetingValueSize.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_TargetingValueSize extends Google_Model
|
19 |
-
{
|
20 |
-
public $height;
|
21 |
-
public $width;
|
22 |
-
|
23 |
-
public function setHeight($height)
|
24 |
-
{
|
25 |
-
$this->height = $height;
|
26 |
-
}
|
27 |
-
public function getHeight()
|
28 |
-
{
|
29 |
-
return $this->height;
|
30 |
-
}
|
31 |
-
public function setWidth($width)
|
32 |
-
{
|
33 |
-
$this->width = $width;
|
34 |
-
}
|
35 |
-
public function getWidth()
|
36 |
-
{
|
37 |
-
return $this->width;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/UpdatePrivateAuctionProposalRequest.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyer_UpdatePrivateAuctionProposalRequest extends Google_Model
|
19 |
-
{
|
20 |
-
public $externalDealId;
|
21 |
-
protected $noteType = 'Google_Service_AdExchangeBuyer_MarketplaceNote';
|
22 |
-
protected $noteDataType = '';
|
23 |
-
public $proposalRevisionNumber;
|
24 |
-
public $updateAction;
|
25 |
-
|
26 |
-
public function setExternalDealId($externalDealId)
|
27 |
-
{
|
28 |
-
$this->externalDealId = $externalDealId;
|
29 |
-
}
|
30 |
-
public function getExternalDealId()
|
31 |
-
{
|
32 |
-
return $this->externalDealId;
|
33 |
-
}
|
34 |
-
/**
|
35 |
-
* @param Google_Service_AdExchangeBuyer_MarketplaceNote
|
36 |
-
*/
|
37 |
-
public function setNote(Google_Service_AdExchangeBuyer_MarketplaceNote $note)
|
38 |
-
{
|
39 |
-
$this->note = $note;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @return Google_Service_AdExchangeBuyer_MarketplaceNote
|
43 |
-
*/
|
44 |
-
public function getNote()
|
45 |
-
{
|
46 |
-
return $this->note;
|
47 |
-
}
|
48 |
-
public function setProposalRevisionNumber($proposalRevisionNumber)
|
49 |
-
{
|
50 |
-
$this->proposalRevisionNumber = $proposalRevisionNumber;
|
51 |
-
}
|
52 |
-
public function getProposalRevisionNumber()
|
53 |
-
{
|
54 |
-
return $this->proposalRevisionNumber;
|
55 |
-
}
|
56 |
-
public function setUpdateAction($updateAction)
|
57 |
-
{
|
58 |
-
$this->updateAction = $updateAction;
|
59 |
-
}
|
60 |
-
public function getUpdateAction()
|
61 |
-
{
|
62 |
-
return $this->updateAction;
|
63 |
-
}
|
64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII.php
DELETED
@@ -1,908 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Service definition for AdExchangeBuyerII (v2beta1).
|
20 |
-
*
|
21 |
-
* <p>
|
22 |
-
* Accesses the latest features for managing Ad Exchange accounts, Real-Time
|
23 |
-
* Bidding configurations and auction metrics, and Marketplace programmatic
|
24 |
-
* deals.</p>
|
25 |
-
*
|
26 |
-
* <p>
|
27 |
-
* For more information about this service, see the API
|
28 |
-
* <a href="https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/" target="_blank">Documentation</a>
|
29 |
-
* </p>
|
30 |
-
*
|
31 |
-
* @author Google, Inc.
|
32 |
-
*/
|
33 |
-
class Google_Service_AdExchangeBuyerII extends Google_Service
|
34 |
-
{
|
35 |
-
/** Manage your Ad Exchange buyer account configuration. */
|
36 |
-
const ADEXCHANGE_BUYER =
|
37 |
-
"https://www.googleapis.com/auth/adexchange.buyer";
|
38 |
-
|
39 |
-
public $accounts_clients;
|
40 |
-
public $accounts_clients_invitations;
|
41 |
-
public $accounts_clients_users;
|
42 |
-
public $accounts_creatives;
|
43 |
-
public $accounts_creatives_dealAssociations;
|
44 |
-
public $accounts_filterSets;
|
45 |
-
public $accounts_filterSets_bidMetrics;
|
46 |
-
public $accounts_filterSets_bidResponseErrors;
|
47 |
-
public $accounts_filterSets_bidResponsesWithoutBids;
|
48 |
-
public $accounts_filterSets_filteredBidRequests;
|
49 |
-
public $accounts_filterSets_filteredBids;
|
50 |
-
public $accounts_filterSets_filteredBids_creatives;
|
51 |
-
public $accounts_filterSets_filteredBids_creatives_details;
|
52 |
-
public $accounts_filterSets_filteredBids_details;
|
53 |
-
public $accounts_filterSets_impressionMetrics;
|
54 |
-
public $accounts_filterSets_losingBids;
|
55 |
-
public $accounts_filterSets_nonBillableWinningBids;
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Constructs the internal representation of the AdExchangeBuyerII service.
|
59 |
-
*
|
60 |
-
* @param Google_Client $client
|
61 |
-
*/
|
62 |
-
public function __construct(Google_Client $client)
|
63 |
-
{
|
64 |
-
parent::__construct($client);
|
65 |
-
$this->rootUrl = 'https://adexchangebuyer.googleapis.com/';
|
66 |
-
$this->servicePath = '';
|
67 |
-
$this->version = 'v2beta1';
|
68 |
-
$this->serviceName = 'adexchangebuyer2';
|
69 |
-
|
70 |
-
$this->accounts_clients = new Google_Service_AdExchangeBuyerII_Resource_AccountsClients(
|
71 |
-
$this,
|
72 |
-
$this->serviceName,
|
73 |
-
'clients',
|
74 |
-
array(
|
75 |
-
'methods' => array(
|
76 |
-
'create' => array(
|
77 |
-
'path' => 'v2beta1/accounts/{accountId}/clients',
|
78 |
-
'httpMethod' => 'POST',
|
79 |
-
'parameters' => array(
|
80 |
-
'accountId' => array(
|
81 |
-
'location' => 'path',
|
82 |
-
'type' => 'string',
|
83 |
-
'required' => true,
|
84 |
-
),
|
85 |
-
),
|
86 |
-
),'get' => array(
|
87 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}',
|
88 |
-
'httpMethod' => 'GET',
|
89 |
-
'parameters' => array(
|
90 |
-
'accountId' => array(
|
91 |
-
'location' => 'path',
|
92 |
-
'type' => 'string',
|
93 |
-
'required' => true,
|
94 |
-
),
|
95 |
-
'clientAccountId' => array(
|
96 |
-
'location' => 'path',
|
97 |
-
'type' => 'string',
|
98 |
-
'required' => true,
|
99 |
-
),
|
100 |
-
),
|
101 |
-
),'list' => array(
|
102 |
-
'path' => 'v2beta1/accounts/{accountId}/clients',
|
103 |
-
'httpMethod' => 'GET',
|
104 |
-
'parameters' => array(
|
105 |
-
'accountId' => array(
|
106 |
-
'location' => 'path',
|
107 |
-
'type' => 'string',
|
108 |
-
'required' => true,
|
109 |
-
),
|
110 |
-
'pageToken' => array(
|
111 |
-
'location' => 'query',
|
112 |
-
'type' => 'string',
|
113 |
-
),
|
114 |
-
'pageSize' => array(
|
115 |
-
'location' => 'query',
|
116 |
-
'type' => 'integer',
|
117 |
-
),
|
118 |
-
),
|
119 |
-
),'update' => array(
|
120 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}',
|
121 |
-
'httpMethod' => 'PUT',
|
122 |
-
'parameters' => array(
|
123 |
-
'accountId' => array(
|
124 |
-
'location' => 'path',
|
125 |
-
'type' => 'string',
|
126 |
-
'required' => true,
|
127 |
-
),
|
128 |
-
'clientAccountId' => array(
|
129 |
-
'location' => 'path',
|
130 |
-
'type' => 'string',
|
131 |
-
'required' => true,
|
132 |
-
),
|
133 |
-
),
|
134 |
-
),
|
135 |
-
)
|
136 |
-
)
|
137 |
-
);
|
138 |
-
$this->accounts_clients_invitations = new Google_Service_AdExchangeBuyerII_Resource_AccountsClientsInvitations(
|
139 |
-
$this,
|
140 |
-
$this->serviceName,
|
141 |
-
'invitations',
|
142 |
-
array(
|
143 |
-
'methods' => array(
|
144 |
-
'create' => array(
|
145 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations',
|
146 |
-
'httpMethod' => 'POST',
|
147 |
-
'parameters' => array(
|
148 |
-
'accountId' => array(
|
149 |
-
'location' => 'path',
|
150 |
-
'type' => 'string',
|
151 |
-
'required' => true,
|
152 |
-
),
|
153 |
-
'clientAccountId' => array(
|
154 |
-
'location' => 'path',
|
155 |
-
'type' => 'string',
|
156 |
-
'required' => true,
|
157 |
-
),
|
158 |
-
),
|
159 |
-
),'get' => array(
|
160 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}',
|
161 |
-
'httpMethod' => 'GET',
|
162 |
-
'parameters' => array(
|
163 |
-
'accountId' => array(
|
164 |
-
'location' => 'path',
|
165 |
-
'type' => 'string',
|
166 |
-
'required' => true,
|
167 |
-
),
|
168 |
-
'clientAccountId' => array(
|
169 |
-
'location' => 'path',
|
170 |
-
'type' => 'string',
|
171 |
-
'required' => true,
|
172 |
-
),
|
173 |
-
'invitationId' => array(
|
174 |
-
'location' => 'path',
|
175 |
-
'type' => 'string',
|
176 |
-
'required' => true,
|
177 |
-
),
|
178 |
-
),
|
179 |
-
),'list' => array(
|
180 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations',
|
181 |
-
'httpMethod' => 'GET',
|
182 |
-
'parameters' => array(
|
183 |
-
'accountId' => array(
|
184 |
-
'location' => 'path',
|
185 |
-
'type' => 'string',
|
186 |
-
'required' => true,
|
187 |
-
),
|
188 |
-
'clientAccountId' => array(
|
189 |
-
'location' => 'path',
|
190 |
-
'type' => 'string',
|
191 |
-
'required' => true,
|
192 |
-
),
|
193 |
-
'pageToken' => array(
|
194 |
-
'location' => 'query',
|
195 |
-
'type' => 'string',
|
196 |
-
),
|
197 |
-
'pageSize' => array(
|
198 |
-
'location' => 'query',
|
199 |
-
'type' => 'integer',
|
200 |
-
),
|
201 |
-
),
|
202 |
-
),
|
203 |
-
)
|
204 |
-
)
|
205 |
-
);
|
206 |
-
$this->accounts_clients_users = new Google_Service_AdExchangeBuyerII_Resource_AccountsClientsUsers(
|
207 |
-
$this,
|
208 |
-
$this->serviceName,
|
209 |
-
'users',
|
210 |
-
array(
|
211 |
-
'methods' => array(
|
212 |
-
'get' => array(
|
213 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}',
|
214 |
-
'httpMethod' => 'GET',
|
215 |
-
'parameters' => array(
|
216 |
-
'accountId' => array(
|
217 |
-
'location' => 'path',
|
218 |
-
'type' => 'string',
|
219 |
-
'required' => true,
|
220 |
-
),
|
221 |
-
'clientAccountId' => array(
|
222 |
-
'location' => 'path',
|
223 |
-
'type' => 'string',
|
224 |
-
'required' => true,
|
225 |
-
),
|
226 |
-
'userId' => array(
|
227 |
-
'location' => 'path',
|
228 |
-
'type' => 'string',
|
229 |
-
'required' => true,
|
230 |
-
),
|
231 |
-
),
|
232 |
-
),'list' => array(
|
233 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users',
|
234 |
-
'httpMethod' => 'GET',
|
235 |
-
'parameters' => array(
|
236 |
-
'accountId' => array(
|
237 |
-
'location' => 'path',
|
238 |
-
'type' => 'string',
|
239 |
-
'required' => true,
|
240 |
-
),
|
241 |
-
'clientAccountId' => array(
|
242 |
-
'location' => 'path',
|
243 |
-
'type' => 'string',
|
244 |
-
'required' => true,
|
245 |
-
),
|
246 |
-
'pageToken' => array(
|
247 |
-
'location' => 'query',
|
248 |
-
'type' => 'string',
|
249 |
-
),
|
250 |
-
'pageSize' => array(
|
251 |
-
'location' => 'query',
|
252 |
-
'type' => 'integer',
|
253 |
-
),
|
254 |
-
),
|
255 |
-
),'update' => array(
|
256 |
-
'path' => 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}',
|
257 |
-
'httpMethod' => 'PUT',
|
258 |
-
'parameters' => array(
|
259 |
-
'accountId' => array(
|
260 |
-
'location' => 'path',
|
261 |
-
'type' => 'string',
|
262 |
-
'required' => true,
|
263 |
-
),
|
264 |
-
'clientAccountId' => array(
|
265 |
-
'location' => 'path',
|
266 |
-
'type' => 'string',
|
267 |
-
'required' => true,
|
268 |
-
),
|
269 |
-
'userId' => array(
|
270 |
-
'location' => 'path',
|
271 |
-
'type' => 'string',
|
272 |
-
'required' => true,
|
273 |
-
),
|
274 |
-
),
|
275 |
-
),
|
276 |
-
)
|
277 |
-
)
|
278 |
-
);
|
279 |
-
$this->accounts_creatives = new Google_Service_AdExchangeBuyerII_Resource_AccountsCreatives(
|
280 |
-
$this,
|
281 |
-
$this->serviceName,
|
282 |
-
'creatives',
|
283 |
-
array(
|
284 |
-
'methods' => array(
|
285 |
-
'create' => array(
|
286 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives',
|
287 |
-
'httpMethod' => 'POST',
|
288 |
-
'parameters' => array(
|
289 |
-
'accountId' => array(
|
290 |
-
'location' => 'path',
|
291 |
-
'type' => 'string',
|
292 |
-
'required' => true,
|
293 |
-
),
|
294 |
-
'duplicateIdMode' => array(
|
295 |
-
'location' => 'query',
|
296 |
-
'type' => 'string',
|
297 |
-
),
|
298 |
-
),
|
299 |
-
),'get' => array(
|
300 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}',
|
301 |
-
'httpMethod' => 'GET',
|
302 |
-
'parameters' => array(
|
303 |
-
'accountId' => array(
|
304 |
-
'location' => 'path',
|
305 |
-
'type' => 'string',
|
306 |
-
'required' => true,
|
307 |
-
),
|
308 |
-
'creativeId' => array(
|
309 |
-
'location' => 'path',
|
310 |
-
'type' => 'string',
|
311 |
-
'required' => true,
|
312 |
-
),
|
313 |
-
),
|
314 |
-
),'list' => array(
|
315 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives',
|
316 |
-
'httpMethod' => 'GET',
|
317 |
-
'parameters' => array(
|
318 |
-
'accountId' => array(
|
319 |
-
'location' => 'path',
|
320 |
-
'type' => 'string',
|
321 |
-
'required' => true,
|
322 |
-
),
|
323 |
-
'pageToken' => array(
|
324 |
-
'location' => 'query',
|
325 |
-
'type' => 'string',
|
326 |
-
),
|
327 |
-
'pageSize' => array(
|
328 |
-
'location' => 'query',
|
329 |
-
'type' => 'integer',
|
330 |
-
),
|
331 |
-
'query' => array(
|
332 |
-
'location' => 'query',
|
333 |
-
'type' => 'string',
|
334 |
-
),
|
335 |
-
),
|
336 |
-
),'stopWatching' => array(
|
337 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching',
|
338 |
-
'httpMethod' => 'POST',
|
339 |
-
'parameters' => array(
|
340 |
-
'accountId' => array(
|
341 |
-
'location' => 'path',
|
342 |
-
'type' => 'string',
|
343 |
-
'required' => true,
|
344 |
-
),
|
345 |
-
'creativeId' => array(
|
346 |
-
'location' => 'path',
|
347 |
-
'type' => 'string',
|
348 |
-
'required' => true,
|
349 |
-
),
|
350 |
-
),
|
351 |
-
),'update' => array(
|
352 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}',
|
353 |
-
'httpMethod' => 'PUT',
|
354 |
-
'parameters' => array(
|
355 |
-
'accountId' => array(
|
356 |
-
'location' => 'path',
|
357 |
-
'type' => 'string',
|
358 |
-
'required' => true,
|
359 |
-
),
|
360 |
-
'creativeId' => array(
|
361 |
-
'location' => 'path',
|
362 |
-
'type' => 'string',
|
363 |
-
'required' => true,
|
364 |
-
),
|
365 |
-
),
|
366 |
-
),'watch' => array(
|
367 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch',
|
368 |
-
'httpMethod' => 'POST',
|
369 |
-
'parameters' => array(
|
370 |
-
'accountId' => array(
|
371 |
-
'location' => 'path',
|
372 |
-
'type' => 'string',
|
373 |
-
'required' => true,
|
374 |
-
),
|
375 |
-
'creativeId' => array(
|
376 |
-
'location' => 'path',
|
377 |
-
'type' => 'string',
|
378 |
-
'required' => true,
|
379 |
-
),
|
380 |
-
),
|
381 |
-
),
|
382 |
-
)
|
383 |
-
)
|
384 |
-
);
|
385 |
-
$this->accounts_creatives_dealAssociations = new Google_Service_AdExchangeBuyerII_Resource_AccountsCreativesDealAssociations(
|
386 |
-
$this,
|
387 |
-
$this->serviceName,
|
388 |
-
'dealAssociations',
|
389 |
-
array(
|
390 |
-
'methods' => array(
|
391 |
-
'add' => array(
|
392 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add',
|
393 |
-
'httpMethod' => 'POST',
|
394 |
-
'parameters' => array(
|
395 |
-
'accountId' => array(
|
396 |
-
'location' => 'path',
|
397 |
-
'type' => 'string',
|
398 |
-
'required' => true,
|
399 |
-
),
|
400 |
-
'creativeId' => array(
|
401 |
-
'location' => 'path',
|
402 |
-
'type' => 'string',
|
403 |
-
'required' => true,
|
404 |
-
),
|
405 |
-
),
|
406 |
-
),'list' => array(
|
407 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations',
|
408 |
-
'httpMethod' => 'GET',
|
409 |
-
'parameters' => array(
|
410 |
-
'accountId' => array(
|
411 |
-
'location' => 'path',
|
412 |
-
'type' => 'string',
|
413 |
-
'required' => true,
|
414 |
-
),
|
415 |
-
'creativeId' => array(
|
416 |
-
'location' => 'path',
|
417 |
-
'type' => 'string',
|
418 |
-
'required' => true,
|
419 |
-
),
|
420 |
-
'pageToken' => array(
|
421 |
-
'location' => 'query',
|
422 |
-
'type' => 'string',
|
423 |
-
),
|
424 |
-
'pageSize' => array(
|
425 |
-
'location' => 'query',
|
426 |
-
'type' => 'integer',
|
427 |
-
),
|
428 |
-
'query' => array(
|
429 |
-
'location' => 'query',
|
430 |
-
'type' => 'string',
|
431 |
-
),
|
432 |
-
),
|
433 |
-
),'remove' => array(
|
434 |
-
'path' => 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove',
|
435 |
-
'httpMethod' => 'POST',
|
436 |
-
'parameters' => array(
|
437 |
-
'accountId' => array(
|
438 |
-
'location' => 'path',
|
439 |
-
'type' => 'string',
|
440 |
-
'required' => true,
|
441 |
-
),
|
442 |
-
'creativeId' => array(
|
443 |
-
'location' => 'path',
|
444 |
-
'type' => 'string',
|
445 |
-
'required' => true,
|
446 |
-
),
|
447 |
-
),
|
448 |
-
),
|
449 |
-
)
|
450 |
-
)
|
451 |
-
);
|
452 |
-
$this->accounts_filterSets = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSets(
|
453 |
-
$this,
|
454 |
-
$this->serviceName,
|
455 |
-
'filterSets',
|
456 |
-
array(
|
457 |
-
'methods' => array(
|
458 |
-
'create' => array(
|
459 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets',
|
460 |
-
'httpMethod' => 'POST',
|
461 |
-
'parameters' => array(
|
462 |
-
'accountId' => array(
|
463 |
-
'location' => 'path',
|
464 |
-
'type' => 'string',
|
465 |
-
'required' => true,
|
466 |
-
),
|
467 |
-
'isTransient' => array(
|
468 |
-
'location' => 'query',
|
469 |
-
'type' => 'boolean',
|
470 |
-
),
|
471 |
-
),
|
472 |
-
),'delete' => array(
|
473 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}',
|
474 |
-
'httpMethod' => 'DELETE',
|
475 |
-
'parameters' => array(
|
476 |
-
'accountId' => array(
|
477 |
-
'location' => 'path',
|
478 |
-
'type' => 'string',
|
479 |
-
'required' => true,
|
480 |
-
),
|
481 |
-
'filterSetId' => array(
|
482 |
-
'location' => 'path',
|
483 |
-
'type' => 'string',
|
484 |
-
'required' => true,
|
485 |
-
),
|
486 |
-
),
|
487 |
-
),'get' => array(
|
488 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}',
|
489 |
-
'httpMethod' => 'GET',
|
490 |
-
'parameters' => array(
|
491 |
-
'accountId' => array(
|
492 |
-
'location' => 'path',
|
493 |
-
'type' => 'string',
|
494 |
-
'required' => true,
|
495 |
-
),
|
496 |
-
'filterSetId' => array(
|
497 |
-
'location' => 'path',
|
498 |
-
'type' => 'string',
|
499 |
-
'required' => true,
|
500 |
-
),
|
501 |
-
),
|
502 |
-
),'list' => array(
|
503 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets',
|
504 |
-
'httpMethod' => 'GET',
|
505 |
-
'parameters' => array(
|
506 |
-
'accountId' => array(
|
507 |
-
'location' => 'path',
|
508 |
-
'type' => 'string',
|
509 |
-
'required' => true,
|
510 |
-
),
|
511 |
-
'pageToken' => array(
|
512 |
-
'location' => 'query',
|
513 |
-
'type' => 'string',
|
514 |
-
),
|
515 |
-
'pageSize' => array(
|
516 |
-
'location' => 'query',
|
517 |
-
'type' => 'integer',
|
518 |
-
),
|
519 |
-
),
|
520 |
-
),
|
521 |
-
)
|
522 |
-
)
|
523 |
-
);
|
524 |
-
$this->accounts_filterSets_bidMetrics = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsBidMetrics(
|
525 |
-
$this,
|
526 |
-
$this->serviceName,
|
527 |
-
'bidMetrics',
|
528 |
-
array(
|
529 |
-
'methods' => array(
|
530 |
-
'list' => array(
|
531 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidMetrics',
|
532 |
-
'httpMethod' => 'GET',
|
533 |
-
'parameters' => array(
|
534 |
-
'accountId' => array(
|
535 |
-
'location' => 'path',
|
536 |
-
'type' => 'string',
|
537 |
-
'required' => true,
|
538 |
-
),
|
539 |
-
'filterSetId' => array(
|
540 |
-
'location' => 'path',
|
541 |
-
'type' => 'string',
|
542 |
-
'required' => true,
|
543 |
-
),
|
544 |
-
'pageToken' => array(
|
545 |
-
'location' => 'query',
|
546 |
-
'type' => 'string',
|
547 |
-
),
|
548 |
-
'pageSize' => array(
|
549 |
-
'location' => 'query',
|
550 |
-
'type' => 'integer',
|
551 |
-
),
|
552 |
-
),
|
553 |
-
),
|
554 |
-
)
|
555 |
-
)
|
556 |
-
);
|
557 |
-
$this->accounts_filterSets_bidResponseErrors = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsBidResponseErrors(
|
558 |
-
$this,
|
559 |
-
$this->serviceName,
|
560 |
-
'bidResponseErrors',
|
561 |
-
array(
|
562 |
-
'methods' => array(
|
563 |
-
'list' => array(
|
564 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponseErrors',
|
565 |
-
'httpMethod' => 'GET',
|
566 |
-
'parameters' => array(
|
567 |
-
'accountId' => array(
|
568 |
-
'location' => 'path',
|
569 |
-
'type' => 'string',
|
570 |
-
'required' => true,
|
571 |
-
),
|
572 |
-
'filterSetId' => array(
|
573 |
-
'location' => 'path',
|
574 |
-
'type' => 'string',
|
575 |
-
'required' => true,
|
576 |
-
),
|
577 |
-
'pageToken' => array(
|
578 |
-
'location' => 'query',
|
579 |
-
'type' => 'string',
|
580 |
-
),
|
581 |
-
'pageSize' => array(
|
582 |
-
'location' => 'query',
|
583 |
-
'type' => 'integer',
|
584 |
-
),
|
585 |
-
),
|
586 |
-
),
|
587 |
-
)
|
588 |
-
)
|
589 |
-
);
|
590 |
-
$this->accounts_filterSets_bidResponsesWithoutBids = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsBidResponsesWithoutBids(
|
591 |
-
$this,
|
592 |
-
$this->serviceName,
|
593 |
-
'bidResponsesWithoutBids',
|
594 |
-
array(
|
595 |
-
'methods' => array(
|
596 |
-
'list' => array(
|
597 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/bidResponsesWithoutBids',
|
598 |
-
'httpMethod' => 'GET',
|
599 |
-
'parameters' => array(
|
600 |
-
'accountId' => array(
|
601 |
-
'location' => 'path',
|
602 |
-
'type' => 'string',
|
603 |
-
'required' => true,
|
604 |
-
),
|
605 |
-
'filterSetId' => array(
|
606 |
-
'location' => 'path',
|
607 |
-
'type' => 'string',
|
608 |
-
'required' => true,
|
609 |
-
),
|
610 |
-
'pageSize' => array(
|
611 |
-
'location' => 'query',
|
612 |
-
'type' => 'integer',
|
613 |
-
),
|
614 |
-
'pageToken' => array(
|
615 |
-
'location' => 'query',
|
616 |
-
'type' => 'string',
|
617 |
-
),
|
618 |
-
),
|
619 |
-
),
|
620 |
-
)
|
621 |
-
)
|
622 |
-
);
|
623 |
-
$this->accounts_filterSets_filteredBidRequests = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsFilteredBidRequests(
|
624 |
-
$this,
|
625 |
-
$this->serviceName,
|
626 |
-
'filteredBidRequests',
|
627 |
-
array(
|
628 |
-
'methods' => array(
|
629 |
-
'list' => array(
|
630 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBidRequests',
|
631 |
-
'httpMethod' => 'GET',
|
632 |
-
'parameters' => array(
|
633 |
-
'accountId' => array(
|
634 |
-
'location' => 'path',
|
635 |
-
'type' => 'string',
|
636 |
-
'required' => true,
|
637 |
-
),
|
638 |
-
'filterSetId' => array(
|
639 |
-
'location' => 'path',
|
640 |
-
'type' => 'string',
|
641 |
-
'required' => true,
|
642 |
-
),
|
643 |
-
'pageToken' => array(
|
644 |
-
'location' => 'query',
|
645 |
-
'type' => 'string',
|
646 |
-
),
|
647 |
-
'pageSize' => array(
|
648 |
-
'location' => 'query',
|
649 |
-
'type' => 'integer',
|
650 |
-
),
|
651 |
-
),
|
652 |
-
),
|
653 |
-
)
|
654 |
-
)
|
655 |
-
);
|
656 |
-
$this->accounts_filterSets_filteredBids = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsFilteredBids(
|
657 |
-
$this,
|
658 |
-
$this->serviceName,
|
659 |
-
'filteredBids',
|
660 |
-
array(
|
661 |
-
'methods' => array(
|
662 |
-
'list' => array(
|
663 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids',
|
664 |
-
'httpMethod' => 'GET',
|
665 |
-
'parameters' => array(
|
666 |
-
'accountId' => array(
|
667 |
-
'location' => 'path',
|
668 |
-
'type' => 'string',
|
669 |
-
'required' => true,
|
670 |
-
),
|
671 |
-
'filterSetId' => array(
|
672 |
-
'location' => 'path',
|
673 |
-
'type' => 'string',
|
674 |
-
'required' => true,
|
675 |
-
),
|
676 |
-
'pageToken' => array(
|
677 |
-
'location' => 'query',
|
678 |
-
'type' => 'string',
|
679 |
-
),
|
680 |
-
'pageSize' => array(
|
681 |
-
'location' => 'query',
|
682 |
-
'type' => 'integer',
|
683 |
-
),
|
684 |
-
),
|
685 |
-
),
|
686 |
-
)
|
687 |
-
)
|
688 |
-
);
|
689 |
-
$this->accounts_filterSets_filteredBids_creatives = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsFilteredBidsCreatives(
|
690 |
-
$this,
|
691 |
-
$this->serviceName,
|
692 |
-
'creatives',
|
693 |
-
array(
|
694 |
-
'methods' => array(
|
695 |
-
'list' => array(
|
696 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives',
|
697 |
-
'httpMethod' => 'GET',
|
698 |
-
'parameters' => array(
|
699 |
-
'accountId' => array(
|
700 |
-
'location' => 'path',
|
701 |
-
'type' => 'string',
|
702 |
-
'required' => true,
|
703 |
-
),
|
704 |
-
'filterSetId' => array(
|
705 |
-
'location' => 'path',
|
706 |
-
'type' => 'string',
|
707 |
-
'required' => true,
|
708 |
-
),
|
709 |
-
'creativeStatusId' => array(
|
710 |
-
'location' => 'path',
|
711 |
-
'type' => 'integer',
|
712 |
-
'required' => true,
|
713 |
-
),
|
714 |
-
'pageToken' => array(
|
715 |
-
'location' => 'query',
|
716 |
-
'type' => 'string',
|
717 |
-
),
|
718 |
-
'pageSize' => array(
|
719 |
-
'location' => 'query',
|
720 |
-
'type' => 'integer',
|
721 |
-
),
|
722 |
-
),
|
723 |
-
),
|
724 |
-
)
|
725 |
-
)
|
726 |
-
);
|
727 |
-
$this->accounts_filterSets_filteredBids_creatives_details = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsFilteredBidsCreativesDetails(
|
728 |
-
$this,
|
729 |
-
$this->serviceName,
|
730 |
-
'details',
|
731 |
-
array(
|
732 |
-
'methods' => array(
|
733 |
-
'list' => array(
|
734 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details',
|
735 |
-
'httpMethod' => 'GET',
|
736 |
-
'parameters' => array(
|
737 |
-
'accountId' => array(
|
738 |
-
'location' => 'path',
|
739 |
-
'type' => 'string',
|
740 |
-
'required' => true,
|
741 |
-
),
|
742 |
-
'filterSetId' => array(
|
743 |
-
'location' => 'path',
|
744 |
-
'type' => 'string',
|
745 |
-
'required' => true,
|
746 |
-
),
|
747 |
-
'creativeStatusId' => array(
|
748 |
-
'location' => 'path',
|
749 |
-
'type' => 'integer',
|
750 |
-
'required' => true,
|
751 |
-
),
|
752 |
-
'creativeId' => array(
|
753 |
-
'location' => 'path',
|
754 |
-
'type' => 'string',
|
755 |
-
'required' => true,
|
756 |
-
),
|
757 |
-
'pageToken' => array(
|
758 |
-
'location' => 'query',
|
759 |
-
'type' => 'string',
|
760 |
-
),
|
761 |
-
'pageSize' => array(
|
762 |
-
'location' => 'query',
|
763 |
-
'type' => 'integer',
|
764 |
-
),
|
765 |
-
),
|
766 |
-
),
|
767 |
-
)
|
768 |
-
)
|
769 |
-
);
|
770 |
-
$this->accounts_filterSets_filteredBids_details = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsFilteredBidsDetails(
|
771 |
-
$this,
|
772 |
-
$this->serviceName,
|
773 |
-
'details',
|
774 |
-
array(
|
775 |
-
'methods' => array(
|
776 |
-
'list' => array(
|
777 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/details',
|
778 |
-
'httpMethod' => 'GET',
|
779 |
-
'parameters' => array(
|
780 |
-
'accountId' => array(
|
781 |
-
'location' => 'path',
|
782 |
-
'type' => 'string',
|
783 |
-
'required' => true,
|
784 |
-
),
|
785 |
-
'filterSetId' => array(
|
786 |
-
'location' => 'path',
|
787 |
-
'type' => 'string',
|
788 |
-
'required' => true,
|
789 |
-
),
|
790 |
-
'creativeStatusId' => array(
|
791 |
-
'location' => 'path',
|
792 |
-
'type' => 'integer',
|
793 |
-
'required' => true,
|
794 |
-
),
|
795 |
-
'pageToken' => array(
|
796 |
-
'location' => 'query',
|
797 |
-
'type' => 'string',
|
798 |
-
),
|
799 |
-
'pageSize' => array(
|
800 |
-
'location' => 'query',
|
801 |
-
'type' => 'integer',
|
802 |
-
),
|
803 |
-
),
|
804 |
-
),
|
805 |
-
)
|
806 |
-
)
|
807 |
-
);
|
808 |
-
$this->accounts_filterSets_impressionMetrics = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsImpressionMetrics(
|
809 |
-
$this,
|
810 |
-
$this->serviceName,
|
811 |
-
'impressionMetrics',
|
812 |
-
array(
|
813 |
-
'methods' => array(
|
814 |
-
'list' => array(
|
815 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/impressionMetrics',
|
816 |
-
'httpMethod' => 'GET',
|
817 |
-
'parameters' => array(
|
818 |
-
'accountId' => array(
|
819 |
-
'location' => 'path',
|
820 |
-
'type' => 'string',
|
821 |
-
'required' => true,
|
822 |
-
),
|
823 |
-
'filterSetId' => array(
|
824 |
-
'location' => 'path',
|
825 |
-
'type' => 'string',
|
826 |
-
'required' => true,
|
827 |
-
),
|
828 |
-
'pageToken' => array(
|
829 |
-
'location' => 'query',
|
830 |
-
'type' => 'string',
|
831 |
-
),
|
832 |
-
'pageSize' => array(
|
833 |
-
'location' => 'query',
|
834 |
-
'type' => 'integer',
|
835 |
-
),
|
836 |
-
),
|
837 |
-
),
|
838 |
-
)
|
839 |
-
)
|
840 |
-
);
|
841 |
-
$this->accounts_filterSets_losingBids = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsLosingBids(
|
842 |
-
$this,
|
843 |
-
$this->serviceName,
|
844 |
-
'losingBids',
|
845 |
-
array(
|
846 |
-
'methods' => array(
|
847 |
-
'list' => array(
|
848 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/losingBids',
|
849 |
-
'httpMethod' => 'GET',
|
850 |
-
'parameters' => array(
|
851 |
-
'accountId' => array(
|
852 |
-
'location' => 'path',
|
853 |
-
'type' => 'string',
|
854 |
-
'required' => true,
|
855 |
-
),
|
856 |
-
'filterSetId' => array(
|
857 |
-
'location' => 'path',
|
858 |
-
'type' => 'string',
|
859 |
-
'required' => true,
|
860 |
-
),
|
861 |
-
'pageToken' => array(
|
862 |
-
'location' => 'query',
|
863 |
-
'type' => 'string',
|
864 |
-
),
|
865 |
-
'pageSize' => array(
|
866 |
-
'location' => 'query',
|
867 |
-
'type' => 'integer',
|
868 |
-
),
|
869 |
-
),
|
870 |
-
),
|
871 |
-
)
|
872 |
-
)
|
873 |
-
);
|
874 |
-
$this->accounts_filterSets_nonBillableWinningBids = new Google_Service_AdExchangeBuyerII_Resource_AccountsFilterSetsNonBillableWinningBids(
|
875 |
-
$this,
|
876 |
-
$this->serviceName,
|
877 |
-
'nonBillableWinningBids',
|
878 |
-
array(
|
879 |
-
'methods' => array(
|
880 |
-
'list' => array(
|
881 |
-
'path' => 'v2beta1/accounts/{accountId}/filterSets/{filterSetId}/nonBillableWinningBids',
|
882 |
-
'httpMethod' => 'GET',
|
883 |
-
'parameters' => array(
|
884 |
-
'accountId' => array(
|
885 |
-
'location' => 'path',
|
886 |
-
'type' => 'string',
|
887 |
-
'required' => true,
|
888 |
-
),
|
889 |
-
'filterSetId' => array(
|
890 |
-
'location' => 'path',
|
891 |
-
'type' => 'string',
|
892 |
-
'required' => true,
|
893 |
-
),
|
894 |
-
'pageSize' => array(
|
895 |
-
'location' => 'query',
|
896 |
-
'type' => 'integer',
|
897 |
-
),
|
898 |
-
'pageToken' => array(
|
899 |
-
'location' => 'query',
|
900 |
-
'type' => 'string',
|
901 |
-
),
|
902 |
-
),
|
903 |
-
),
|
904 |
-
)
|
905 |
-
)
|
906 |
-
);
|
907 |
-
}
|
908 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AbsoluteDateRange.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_AbsoluteDateRange extends Google_Model
|
19 |
-
{
|
20 |
-
protected $endDateType = 'Google_Service_AdExchangeBuyerII_Date';
|
21 |
-
protected $endDateDataType = '';
|
22 |
-
protected $startDateType = 'Google_Service_AdExchangeBuyerII_Date';
|
23 |
-
protected $startDateDataType = '';
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_Date
|
27 |
-
*/
|
28 |
-
public function setEndDate(Google_Service_AdExchangeBuyerII_Date $endDate)
|
29 |
-
{
|
30 |
-
$this->endDate = $endDate;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_Date
|
34 |
-
*/
|
35 |
-
public function getEndDate()
|
36 |
-
{
|
37 |
-
return $this->endDate;
|
38 |
-
}
|
39 |
-
/**
|
40 |
-
* @param Google_Service_AdExchangeBuyerII_Date
|
41 |
-
*/
|
42 |
-
public function setStartDate(Google_Service_AdExchangeBuyerII_Date $startDate)
|
43 |
-
{
|
44 |
-
$this->startDate = $startDate;
|
45 |
-
}
|
46 |
-
/**
|
47 |
-
* @return Google_Service_AdExchangeBuyerII_Date
|
48 |
-
*/
|
49 |
-
public function getStartDate()
|
50 |
-
{
|
51 |
-
return $this->startDate;
|
52 |
-
}
|
53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AddDealAssociationRequest.php
DELETED
@@ -1,37 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_AddDealAssociationRequest extends Google_Model
|
19 |
-
{
|
20 |
-
protected $associationType = 'Google_Service_AdExchangeBuyerII_CreativeDealAssociation';
|
21 |
-
protected $associationDataType = '';
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @param Google_Service_AdExchangeBuyerII_CreativeDealAssociation
|
25 |
-
*/
|
26 |
-
public function setAssociation(Google_Service_AdExchangeBuyerII_CreativeDealAssociation $association)
|
27 |
-
{
|
28 |
-
$this->association = $association;
|
29 |
-
}
|
30 |
-
/**
|
31 |
-
* @return Google_Service_AdExchangeBuyerII_CreativeDealAssociation
|
32 |
-
*/
|
33 |
-
public function getAssociation()
|
34 |
-
{
|
35 |
-
return $this->association;
|
36 |
-
}
|
37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Adexchangebuyer2Empty.php
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_Adexchangebuyer2Empty extends Google_Model
|
19 |
-
{
|
20 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AppContext.php
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_AppContext extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'appTypes';
|
21 |
-
public $appTypes;
|
22 |
-
|
23 |
-
public function setAppTypes($appTypes)
|
24 |
-
{
|
25 |
-
$this->appTypes = $appTypes;
|
26 |
-
}
|
27 |
-
public function getAppTypes()
|
28 |
-
{
|
29 |
-
return $this->appTypes;
|
30 |
-
}
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/AuctionContext.php
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_AuctionContext extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'auctionTypes';
|
21 |
-
public $auctionTypes;
|
22 |
-
|
23 |
-
public function setAuctionTypes($auctionTypes)
|
24 |
-
{
|
25 |
-
$this->auctionTypes = $auctionTypes;
|
26 |
-
}
|
27 |
-
public function getAuctionTypes()
|
28 |
-
{
|
29 |
-
return $this->auctionTypes;
|
30 |
-
}
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/BidMetricsRow.php
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_BidMetricsRow extends Google_Model
|
19 |
-
{
|
20 |
-
protected $bidsType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
21 |
-
protected $bidsDataType = '';
|
22 |
-
protected $bidsInAuctionType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
23 |
-
protected $bidsInAuctionDataType = '';
|
24 |
-
protected $billedImpressionsType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
25 |
-
protected $billedImpressionsDataType = '';
|
26 |
-
protected $impressionsWonType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
27 |
-
protected $impressionsWonDataType = '';
|
28 |
-
protected $measurableImpressionsType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
29 |
-
protected $measurableImpressionsDataType = '';
|
30 |
-
protected $rowDimensionsType = 'Google_Service_AdExchangeBuyerII_RowDimensions';
|
31 |
-
protected $rowDimensionsDataType = '';
|
32 |
-
protected $viewableImpressionsType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
33 |
-
protected $viewableImpressionsDataType = '';
|
34 |
-
|
35 |
-
/**
|
36 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
37 |
-
*/
|
38 |
-
public function setBids(Google_Service_AdExchangeBuyerII_MetricValue $bids)
|
39 |
-
{
|
40 |
-
$this->bids = $bids;
|
41 |
-
}
|
42 |
-
/**
|
43 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
44 |
-
*/
|
45 |
-
public function getBids()
|
46 |
-
{
|
47 |
-
return $this->bids;
|
48 |
-
}
|
49 |
-
/**
|
50 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
51 |
-
*/
|
52 |
-
public function setBidsInAuction(Google_Service_AdExchangeBuyerII_MetricValue $bidsInAuction)
|
53 |
-
{
|
54 |
-
$this->bidsInAuction = $bidsInAuction;
|
55 |
-
}
|
56 |
-
/**
|
57 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
58 |
-
*/
|
59 |
-
public function getBidsInAuction()
|
60 |
-
{
|
61 |
-
return $this->bidsInAuction;
|
62 |
-
}
|
63 |
-
/**
|
64 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
65 |
-
*/
|
66 |
-
public function setBilledImpressions(Google_Service_AdExchangeBuyerII_MetricValue $billedImpressions)
|
67 |
-
{
|
68 |
-
$this->billedImpressions = $billedImpressions;
|
69 |
-
}
|
70 |
-
/**
|
71 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
72 |
-
*/
|
73 |
-
public function getBilledImpressions()
|
74 |
-
{
|
75 |
-
return $this->billedImpressions;
|
76 |
-
}
|
77 |
-
/**
|
78 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
79 |
-
*/
|
80 |
-
public function setImpressionsWon(Google_Service_AdExchangeBuyerII_MetricValue $impressionsWon)
|
81 |
-
{
|
82 |
-
$this->impressionsWon = $impressionsWon;
|
83 |
-
}
|
84 |
-
/**
|
85 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
86 |
-
*/
|
87 |
-
public function getImpressionsWon()
|
88 |
-
{
|
89 |
-
return $this->impressionsWon;
|
90 |
-
}
|
91 |
-
/**
|
92 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
93 |
-
*/
|
94 |
-
public function setMeasurableImpressions(Google_Service_AdExchangeBuyerII_MetricValue $measurableImpressions)
|
95 |
-
{
|
96 |
-
$this->measurableImpressions = $measurableImpressions;
|
97 |
-
}
|
98 |
-
/**
|
99 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
100 |
-
*/
|
101 |
-
public function getMeasurableImpressions()
|
102 |
-
{
|
103 |
-
return $this->measurableImpressions;
|
104 |
-
}
|
105 |
-
/**
|
106 |
-
* @param Google_Service_AdExchangeBuyerII_RowDimensions
|
107 |
-
*/
|
108 |
-
public function setRowDimensions(Google_Service_AdExchangeBuyerII_RowDimensions $rowDimensions)
|
109 |
-
{
|
110 |
-
$this->rowDimensions = $rowDimensions;
|
111 |
-
}
|
112 |
-
/**
|
113 |
-
* @return Google_Service_AdExchangeBuyerII_RowDimensions
|
114 |
-
*/
|
115 |
-
public function getRowDimensions()
|
116 |
-
{
|
117 |
-
return $this->rowDimensions;
|
118 |
-
}
|
119 |
-
/**
|
120 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
121 |
-
*/
|
122 |
-
public function setViewableImpressions(Google_Service_AdExchangeBuyerII_MetricValue $viewableImpressions)
|
123 |
-
{
|
124 |
-
$this->viewableImpressions = $viewableImpressions;
|
125 |
-
}
|
126 |
-
/**
|
127 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
128 |
-
*/
|
129 |
-
public function getViewableImpressions()
|
130 |
-
{
|
131 |
-
return $this->viewableImpressions;
|
132 |
-
}
|
133 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/BidResponseWithoutBidsStatusRow.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_BidResponseWithoutBidsStatusRow extends Google_Model
|
19 |
-
{
|
20 |
-
protected $impressionCountType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
21 |
-
protected $impressionCountDataType = '';
|
22 |
-
protected $rowDimensionsType = 'Google_Service_AdExchangeBuyerII_RowDimensions';
|
23 |
-
protected $rowDimensionsDataType = '';
|
24 |
-
public $status;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
28 |
-
*/
|
29 |
-
public function setImpressionCount(Google_Service_AdExchangeBuyerII_MetricValue $impressionCount)
|
30 |
-
{
|
31 |
-
$this->impressionCount = $impressionCount;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
35 |
-
*/
|
36 |
-
public function getImpressionCount()
|
37 |
-
{
|
38 |
-
return $this->impressionCount;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @param Google_Service_AdExchangeBuyerII_RowDimensions
|
42 |
-
*/
|
43 |
-
public function setRowDimensions(Google_Service_AdExchangeBuyerII_RowDimensions $rowDimensions)
|
44 |
-
{
|
45 |
-
$this->rowDimensions = $rowDimensions;
|
46 |
-
}
|
47 |
-
/**
|
48 |
-
* @return Google_Service_AdExchangeBuyerII_RowDimensions
|
49 |
-
*/
|
50 |
-
public function getRowDimensions()
|
51 |
-
{
|
52 |
-
return $this->rowDimensions;
|
53 |
-
}
|
54 |
-
public function setStatus($status)
|
55 |
-
{
|
56 |
-
$this->status = $status;
|
57 |
-
}
|
58 |
-
public function getStatus()
|
59 |
-
{
|
60 |
-
return $this->status;
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CalloutStatusRow.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_CalloutStatusRow extends Google_Model
|
19 |
-
{
|
20 |
-
public $calloutStatusId;
|
21 |
-
protected $impressionCountType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
22 |
-
protected $impressionCountDataType = '';
|
23 |
-
protected $rowDimensionsType = 'Google_Service_AdExchangeBuyerII_RowDimensions';
|
24 |
-
protected $rowDimensionsDataType = '';
|
25 |
-
|
26 |
-
public function setCalloutStatusId($calloutStatusId)
|
27 |
-
{
|
28 |
-
$this->calloutStatusId = $calloutStatusId;
|
29 |
-
}
|
30 |
-
public function getCalloutStatusId()
|
31 |
-
{
|
32 |
-
return $this->calloutStatusId;
|
33 |
-
}
|
34 |
-
/**
|
35 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
36 |
-
*/
|
37 |
-
public function setImpressionCount(Google_Service_AdExchangeBuyerII_MetricValue $impressionCount)
|
38 |
-
{
|
39 |
-
$this->impressionCount = $impressionCount;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
43 |
-
*/
|
44 |
-
public function getImpressionCount()
|
45 |
-
{
|
46 |
-
return $this->impressionCount;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @param Google_Service_AdExchangeBuyerII_RowDimensions
|
50 |
-
*/
|
51 |
-
public function setRowDimensions(Google_Service_AdExchangeBuyerII_RowDimensions $rowDimensions)
|
52 |
-
{
|
53 |
-
$this->rowDimensions = $rowDimensions;
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* @return Google_Service_AdExchangeBuyerII_RowDimensions
|
57 |
-
*/
|
58 |
-
public function getRowDimensions()
|
59 |
-
{
|
60 |
-
return $this->rowDimensions;
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Client.php
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_Client extends Google_Model
|
19 |
-
{
|
20 |
-
public $clientAccountId;
|
21 |
-
public $clientName;
|
22 |
-
public $entityId;
|
23 |
-
public $entityName;
|
24 |
-
public $entityType;
|
25 |
-
public $role;
|
26 |
-
public $status;
|
27 |
-
public $visibleToSeller;
|
28 |
-
|
29 |
-
public function setClientAccountId($clientAccountId)
|
30 |
-
{
|
31 |
-
$this->clientAccountId = $clientAccountId;
|
32 |
-
}
|
33 |
-
public function getClientAccountId()
|
34 |
-
{
|
35 |
-
return $this->clientAccountId;
|
36 |
-
}
|
37 |
-
public function setClientName($clientName)
|
38 |
-
{
|
39 |
-
$this->clientName = $clientName;
|
40 |
-
}
|
41 |
-
public function getClientName()
|
42 |
-
{
|
43 |
-
return $this->clientName;
|
44 |
-
}
|
45 |
-
public function setEntityId($entityId)
|
46 |
-
{
|
47 |
-
$this->entityId = $entityId;
|
48 |
-
}
|
49 |
-
public function getEntityId()
|
50 |
-
{
|
51 |
-
return $this->entityId;
|
52 |
-
}
|
53 |
-
public function setEntityName($entityName)
|
54 |
-
{
|
55 |
-
$this->entityName = $entityName;
|
56 |
-
}
|
57 |
-
public function getEntityName()
|
58 |
-
{
|
59 |
-
return $this->entityName;
|
60 |
-
}
|
61 |
-
public function setEntityType($entityType)
|
62 |
-
{
|
63 |
-
$this->entityType = $entityType;
|
64 |
-
}
|
65 |
-
public function getEntityType()
|
66 |
-
{
|
67 |
-
return $this->entityType;
|
68 |
-
}
|
69 |
-
public function setRole($role)
|
70 |
-
{
|
71 |
-
$this->role = $role;
|
72 |
-
}
|
73 |
-
public function getRole()
|
74 |
-
{
|
75 |
-
return $this->role;
|
76 |
-
}
|
77 |
-
public function setStatus($status)
|
78 |
-
{
|
79 |
-
$this->status = $status;
|
80 |
-
}
|
81 |
-
public function getStatus()
|
82 |
-
{
|
83 |
-
return $this->status;
|
84 |
-
}
|
85 |
-
public function setVisibleToSeller($visibleToSeller)
|
86 |
-
{
|
87 |
-
$this->visibleToSeller = $visibleToSeller;
|
88 |
-
}
|
89 |
-
public function getVisibleToSeller()
|
90 |
-
{
|
91 |
-
return $this->visibleToSeller;
|
92 |
-
}
|
93 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUser.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ClientUser extends Google_Model
|
19 |
-
{
|
20 |
-
public $clientAccountId;
|
21 |
-
public $email;
|
22 |
-
public $status;
|
23 |
-
public $userId;
|
24 |
-
|
25 |
-
public function setClientAccountId($clientAccountId)
|
26 |
-
{
|
27 |
-
$this->clientAccountId = $clientAccountId;
|
28 |
-
}
|
29 |
-
public function getClientAccountId()
|
30 |
-
{
|
31 |
-
return $this->clientAccountId;
|
32 |
-
}
|
33 |
-
public function setEmail($email)
|
34 |
-
{
|
35 |
-
$this->email = $email;
|
36 |
-
}
|
37 |
-
public function getEmail()
|
38 |
-
{
|
39 |
-
return $this->email;
|
40 |
-
}
|
41 |
-
public function setStatus($status)
|
42 |
-
{
|
43 |
-
$this->status = $status;
|
44 |
-
}
|
45 |
-
public function getStatus()
|
46 |
-
{
|
47 |
-
return $this->status;
|
48 |
-
}
|
49 |
-
public function setUserId($userId)
|
50 |
-
{
|
51 |
-
$this->userId = $userId;
|
52 |
-
}
|
53 |
-
public function getUserId()
|
54 |
-
{
|
55 |
-
return $this->userId;
|
56 |
-
}
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ClientUserInvitation.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ClientUserInvitation extends Google_Model
|
19 |
-
{
|
20 |
-
public $clientAccountId;
|
21 |
-
public $email;
|
22 |
-
public $invitationId;
|
23 |
-
|
24 |
-
public function setClientAccountId($clientAccountId)
|
25 |
-
{
|
26 |
-
$this->clientAccountId = $clientAccountId;
|
27 |
-
}
|
28 |
-
public function getClientAccountId()
|
29 |
-
{
|
30 |
-
return $this->clientAccountId;
|
31 |
-
}
|
32 |
-
public function setEmail($email)
|
33 |
-
{
|
34 |
-
$this->email = $email;
|
35 |
-
}
|
36 |
-
public function getEmail()
|
37 |
-
{
|
38 |
-
return $this->email;
|
39 |
-
}
|
40 |
-
public function setInvitationId($invitationId)
|
41 |
-
{
|
42 |
-
$this->invitationId = $invitationId;
|
43 |
-
}
|
44 |
-
public function getInvitationId()
|
45 |
-
{
|
46 |
-
return $this->invitationId;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Correction.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_Correction extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'details';
|
21 |
-
protected $contextsType = 'Google_Service_AdExchangeBuyerII_ServingContext';
|
22 |
-
protected $contextsDataType = 'array';
|
23 |
-
public $details;
|
24 |
-
public $type;
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyerII_ServingContext
|
28 |
-
*/
|
29 |
-
public function setContexts($contexts)
|
30 |
-
{
|
31 |
-
$this->contexts = $contexts;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyerII_ServingContext
|
35 |
-
*/
|
36 |
-
public function getContexts()
|
37 |
-
{
|
38 |
-
return $this->contexts;
|
39 |
-
}
|
40 |
-
public function setDetails($details)
|
41 |
-
{
|
42 |
-
$this->details = $details;
|
43 |
-
}
|
44 |
-
public function getDetails()
|
45 |
-
{
|
46 |
-
return $this->details;
|
47 |
-
}
|
48 |
-
public function setType($type)
|
49 |
-
{
|
50 |
-
$this->type = $type;
|
51 |
-
}
|
52 |
-
public function getType()
|
53 |
-
{
|
54 |
-
return $this->type;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Creative.php
DELETED
@@ -1,289 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_Creative extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'vendorIds';
|
21 |
-
public $accountId;
|
22 |
-
public $adChoicesDestinationUrl;
|
23 |
-
public $advertiserName;
|
24 |
-
public $agencyId;
|
25 |
-
public $apiUpdateTime;
|
26 |
-
public $attributes;
|
27 |
-
public $clickThroughUrls;
|
28 |
-
protected $correctionsType = 'Google_Service_AdExchangeBuyerII_Correction';
|
29 |
-
protected $correctionsDataType = 'array';
|
30 |
-
public $creativeId;
|
31 |
-
public $dealsStatus;
|
32 |
-
public $detectedAdvertiserIds;
|
33 |
-
public $detectedDomains;
|
34 |
-
public $detectedLanguages;
|
35 |
-
public $detectedProductCategories;
|
36 |
-
public $detectedSensitiveCategories;
|
37 |
-
protected $filteringStatsType = 'Google_Service_AdExchangeBuyerII_FilteringStats';
|
38 |
-
protected $filteringStatsDataType = '';
|
39 |
-
protected $htmlType = 'Google_Service_AdExchangeBuyerII_HtmlContent';
|
40 |
-
protected $htmlDataType = '';
|
41 |
-
public $impressionTrackingUrls;
|
42 |
-
protected $nativeType = 'Google_Service_AdExchangeBuyerII_NativeContent';
|
43 |
-
protected $nativeDataType = '';
|
44 |
-
public $openAuctionStatus;
|
45 |
-
public $restrictedCategories;
|
46 |
-
protected $servingRestrictionsType = 'Google_Service_AdExchangeBuyerII_ServingRestriction';
|
47 |
-
protected $servingRestrictionsDataType = 'array';
|
48 |
-
public $vendorIds;
|
49 |
-
public $version;
|
50 |
-
protected $videoType = 'Google_Service_AdExchangeBuyerII_VideoContent';
|
51 |
-
protected $videoDataType = '';
|
52 |
-
|
53 |
-
public function setAccountId($accountId)
|
54 |
-
{
|
55 |
-
$this->accountId = $accountId;
|
56 |
-
}
|
57 |
-
public function getAccountId()
|
58 |
-
{
|
59 |
-
return $this->accountId;
|
60 |
-
}
|
61 |
-
public function setAdChoicesDestinationUrl($adChoicesDestinationUrl)
|
62 |
-
{
|
63 |
-
$this->adChoicesDestinationUrl = $adChoicesDestinationUrl;
|
64 |
-
}
|
65 |
-
public function getAdChoicesDestinationUrl()
|
66 |
-
{
|
67 |
-
return $this->adChoicesDestinationUrl;
|
68 |
-
}
|
69 |
-
public function setAdvertiserName($advertiserName)
|
70 |
-
{
|
71 |
-
$this->advertiserName = $advertiserName;
|
72 |
-
}
|
73 |
-
public function getAdvertiserName()
|
74 |
-
{
|
75 |
-
return $this->advertiserName;
|
76 |
-
}
|
77 |
-
public function setAgencyId($agencyId)
|
78 |
-
{
|
79 |
-
$this->agencyId = $agencyId;
|
80 |
-
}
|
81 |
-
public function getAgencyId()
|
82 |
-
{
|
83 |
-
return $this->agencyId;
|
84 |
-
}
|
85 |
-
public function setApiUpdateTime($apiUpdateTime)
|
86 |
-
{
|
87 |
-
$this->apiUpdateTime = $apiUpdateTime;
|
88 |
-
}
|
89 |
-
public function getApiUpdateTime()
|
90 |
-
{
|
91 |
-
return $this->apiUpdateTime;
|
92 |
-
}
|
93 |
-
public function setAttributes($attributes)
|
94 |
-
{
|
95 |
-
$this->attributes = $attributes;
|
96 |
-
}
|
97 |
-
public function getAttributes()
|
98 |
-
{
|
99 |
-
return $this->attributes;
|
100 |
-
}
|
101 |
-
public function setClickThroughUrls($clickThroughUrls)
|
102 |
-
{
|
103 |
-
$this->clickThroughUrls = $clickThroughUrls;
|
104 |
-
}
|
105 |
-
public function getClickThroughUrls()
|
106 |
-
{
|
107 |
-
return $this->clickThroughUrls;
|
108 |
-
}
|
109 |
-
/**
|
110 |
-
* @param Google_Service_AdExchangeBuyerII_Correction
|
111 |
-
*/
|
112 |
-
public function setCorrections($corrections)
|
113 |
-
{
|
114 |
-
$this->corrections = $corrections;
|
115 |
-
}
|
116 |
-
/**
|
117 |
-
* @return Google_Service_AdExchangeBuyerII_Correction
|
118 |
-
*/
|
119 |
-
public function getCorrections()
|
120 |
-
{
|
121 |
-
return $this->corrections;
|
122 |
-
}
|
123 |
-
public function setCreativeId($creativeId)
|
124 |
-
{
|
125 |
-
$this->creativeId = $creativeId;
|
126 |
-
}
|
127 |
-
public function getCreativeId()
|
128 |
-
{
|
129 |
-
return $this->creativeId;
|
130 |
-
}
|
131 |
-
public function setDealsStatus($dealsStatus)
|
132 |
-
{
|
133 |
-
$this->dealsStatus = $dealsStatus;
|
134 |
-
}
|
135 |
-
public function getDealsStatus()
|
136 |
-
{
|
137 |
-
return $this->dealsStatus;
|
138 |
-
}
|
139 |
-
public function setDetectedAdvertiserIds($detectedAdvertiserIds)
|
140 |
-
{
|
141 |
-
$this->detectedAdvertiserIds = $detectedAdvertiserIds;
|
142 |
-
}
|
143 |
-
public function getDetectedAdvertiserIds()
|
144 |
-
{
|
145 |
-
return $this->detectedAdvertiserIds;
|
146 |
-
}
|
147 |
-
public function setDetectedDomains($detectedDomains)
|
148 |
-
{
|
149 |
-
$this->detectedDomains = $detectedDomains;
|
150 |
-
}
|
151 |
-
public function getDetectedDomains()
|
152 |
-
{
|
153 |
-
return $this->detectedDomains;
|
154 |
-
}
|
155 |
-
public function setDetectedLanguages($detectedLanguages)
|
156 |
-
{
|
157 |
-
$this->detectedLanguages = $detectedLanguages;
|
158 |
-
}
|
159 |
-
public function getDetectedLanguages()
|
160 |
-
{
|
161 |
-
return $this->detectedLanguages;
|
162 |
-
}
|
163 |
-
public function setDetectedProductCategories($detectedProductCategories)
|
164 |
-
{
|
165 |
-
$this->detectedProductCategories = $detectedProductCategories;
|
166 |
-
}
|
167 |
-
public function getDetectedProductCategories()
|
168 |
-
{
|
169 |
-
return $this->detectedProductCategories;
|
170 |
-
}
|
171 |
-
public function setDetectedSensitiveCategories($detectedSensitiveCategories)
|
172 |
-
{
|
173 |
-
$this->detectedSensitiveCategories = $detectedSensitiveCategories;
|
174 |
-
}
|
175 |
-
public function getDetectedSensitiveCategories()
|
176 |
-
{
|
177 |
-
return $this->detectedSensitiveCategories;
|
178 |
-
}
|
179 |
-
/**
|
180 |
-
* @param Google_Service_AdExchangeBuyerII_FilteringStats
|
181 |
-
*/
|
182 |
-
public function setFilteringStats(Google_Service_AdExchangeBuyerII_FilteringStats $filteringStats)
|
183 |
-
{
|
184 |
-
$this->filteringStats = $filteringStats;
|
185 |
-
}
|
186 |
-
/**
|
187 |
-
* @return Google_Service_AdExchangeBuyerII_FilteringStats
|
188 |
-
*/
|
189 |
-
public function getFilteringStats()
|
190 |
-
{
|
191 |
-
return $this->filteringStats;
|
192 |
-
}
|
193 |
-
/**
|
194 |
-
* @param Google_Service_AdExchangeBuyerII_HtmlContent
|
195 |
-
*/
|
196 |
-
public function setHtml(Google_Service_AdExchangeBuyerII_HtmlContent $html)
|
197 |
-
{
|
198 |
-
$this->html = $html;
|
199 |
-
}
|
200 |
-
/**
|
201 |
-
* @return Google_Service_AdExchangeBuyerII_HtmlContent
|
202 |
-
*/
|
203 |
-
public function getHtml()
|
204 |
-
{
|
205 |
-
return $this->html;
|
206 |
-
}
|
207 |
-
public function setImpressionTrackingUrls($impressionTrackingUrls)
|
208 |
-
{
|
209 |
-
$this->impressionTrackingUrls = $impressionTrackingUrls;
|
210 |
-
}
|
211 |
-
public function getImpressionTrackingUrls()
|
212 |
-
{
|
213 |
-
return $this->impressionTrackingUrls;
|
214 |
-
}
|
215 |
-
/**
|
216 |
-
* @param Google_Service_AdExchangeBuyerII_NativeContent
|
217 |
-
*/
|
218 |
-
public function setNative(Google_Service_AdExchangeBuyerII_NativeContent $native)
|
219 |
-
{
|
220 |
-
$this->native = $native;
|
221 |
-
}
|
222 |
-
/**
|
223 |
-
* @return Google_Service_AdExchangeBuyerII_NativeContent
|
224 |
-
*/
|
225 |
-
public function getNative()
|
226 |
-
{
|
227 |
-
return $this->native;
|
228 |
-
}
|
229 |
-
public function setOpenAuctionStatus($openAuctionStatus)
|
230 |
-
{
|
231 |
-
$this->openAuctionStatus = $openAuctionStatus;
|
232 |
-
}
|
233 |
-
public function getOpenAuctionStatus()
|
234 |
-
{
|
235 |
-
return $this->openAuctionStatus;
|
236 |
-
}
|
237 |
-
public function setRestrictedCategories($restrictedCategories)
|
238 |
-
{
|
239 |
-
$this->restrictedCategories = $restrictedCategories;
|
240 |
-
}
|
241 |
-
public function getRestrictedCategories()
|
242 |
-
{
|
243 |
-
return $this->restrictedCategories;
|
244 |
-
}
|
245 |
-
/**
|
246 |
-
* @param Google_Service_AdExchangeBuyerII_ServingRestriction
|
247 |
-
*/
|
248 |
-
public function setServingRestrictions($servingRestrictions)
|
249 |
-
{
|
250 |
-
$this->servingRestrictions = $servingRestrictions;
|
251 |
-
}
|
252 |
-
/**
|
253 |
-
* @return Google_Service_AdExchangeBuyerII_ServingRestriction
|
254 |
-
*/
|
255 |
-
public function getServingRestrictions()
|
256 |
-
{
|
257 |
-
return $this->servingRestrictions;
|
258 |
-
}
|
259 |
-
public function setVendorIds($vendorIds)
|
260 |
-
{
|
261 |
-
$this->vendorIds = $vendorIds;
|
262 |
-
}
|
263 |
-
public function getVendorIds()
|
264 |
-
{
|
265 |
-
return $this->vendorIds;
|
266 |
-
}
|
267 |
-
public function setVersion($version)
|
268 |
-
{
|
269 |
-
$this->version = $version;
|
270 |
-
}
|
271 |
-
public function getVersion()
|
272 |
-
{
|
273 |
-
return $this->version;
|
274 |
-
}
|
275 |
-
/**
|
276 |
-
* @param Google_Service_AdExchangeBuyerII_VideoContent
|
277 |
-
*/
|
278 |
-
public function setVideo(Google_Service_AdExchangeBuyerII_VideoContent $video)
|
279 |
-
{
|
280 |
-
$this->video = $video;
|
281 |
-
}
|
282 |
-
/**
|
283 |
-
* @return Google_Service_AdExchangeBuyerII_VideoContent
|
284 |
-
*/
|
285 |
-
public function getVideo()
|
286 |
-
{
|
287 |
-
return $this->video;
|
288 |
-
}
|
289 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeDealAssociation.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_CreativeDealAssociation extends Google_Model
|
19 |
-
{
|
20 |
-
public $accountId;
|
21 |
-
public $creativeId;
|
22 |
-
public $dealsId;
|
23 |
-
|
24 |
-
public function setAccountId($accountId)
|
25 |
-
{
|
26 |
-
$this->accountId = $accountId;
|
27 |
-
}
|
28 |
-
public function getAccountId()
|
29 |
-
{
|
30 |
-
return $this->accountId;
|
31 |
-
}
|
32 |
-
public function setCreativeId($creativeId)
|
33 |
-
{
|
34 |
-
$this->creativeId = $creativeId;
|
35 |
-
}
|
36 |
-
public function getCreativeId()
|
37 |
-
{
|
38 |
-
return $this->creativeId;
|
39 |
-
}
|
40 |
-
public function setDealsId($dealsId)
|
41 |
-
{
|
42 |
-
$this->dealsId = $dealsId;
|
43 |
-
}
|
44 |
-
public function getDealsId()
|
45 |
-
{
|
46 |
-
return $this->dealsId;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/CreativeStatusRow.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_CreativeStatusRow extends Google_Model
|
19 |
-
{
|
20 |
-
protected $bidCountType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
21 |
-
protected $bidCountDataType = '';
|
22 |
-
public $creativeStatusId;
|
23 |
-
protected $rowDimensionsType = 'Google_Service_AdExchangeBuyerII_RowDimensions';
|
24 |
-
protected $rowDimensionsDataType = '';
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
28 |
-
*/
|
29 |
-
public function setBidCount(Google_Service_AdExchangeBuyerII_MetricValue $bidCount)
|
30 |
-
{
|
31 |
-
$this->bidCount = $bidCount;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
35 |
-
*/
|
36 |
-
public function getBidCount()
|
37 |
-
{
|
38 |
-
return $this->bidCount;
|
39 |
-
}
|
40 |
-
public function setCreativeStatusId($creativeStatusId)
|
41 |
-
{
|
42 |
-
$this->creativeStatusId = $creativeStatusId;
|
43 |
-
}
|
44 |
-
public function getCreativeStatusId()
|
45 |
-
{
|
46 |
-
return $this->creativeStatusId;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @param Google_Service_AdExchangeBuyerII_RowDimensions
|
50 |
-
*/
|
51 |
-
public function setRowDimensions(Google_Service_AdExchangeBuyerII_RowDimensions $rowDimensions)
|
52 |
-
{
|
53 |
-
$this->rowDimensions = $rowDimensions;
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* @return Google_Service_AdExchangeBuyerII_RowDimensions
|
57 |
-
*/
|
58 |
-
public function getRowDimensions()
|
59 |
-
{
|
60 |
-
return $this->rowDimensions;
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Date.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_Date extends Google_Model
|
19 |
-
{
|
20 |
-
public $day;
|
21 |
-
public $month;
|
22 |
-
public $year;
|
23 |
-
|
24 |
-
public function setDay($day)
|
25 |
-
{
|
26 |
-
$this->day = $day;
|
27 |
-
}
|
28 |
-
public function getDay()
|
29 |
-
{
|
30 |
-
return $this->day;
|
31 |
-
}
|
32 |
-
public function setMonth($month)
|
33 |
-
{
|
34 |
-
$this->month = $month;
|
35 |
-
}
|
36 |
-
public function getMonth()
|
37 |
-
{
|
38 |
-
return $this->month;
|
39 |
-
}
|
40 |
-
public function setYear($year)
|
41 |
-
{
|
42 |
-
$this->year = $year;
|
43 |
-
}
|
44 |
-
public function getYear()
|
45 |
-
{
|
46 |
-
return $this->year;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Disapproval.php
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_Disapproval extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'details';
|
21 |
-
public $details;
|
22 |
-
public $reason;
|
23 |
-
|
24 |
-
public function setDetails($details)
|
25 |
-
{
|
26 |
-
$this->details = $details;
|
27 |
-
}
|
28 |
-
public function getDetails()
|
29 |
-
{
|
30 |
-
return $this->details;
|
31 |
-
}
|
32 |
-
public function setReason($reason)
|
33 |
-
{
|
34 |
-
$this->reason = $reason;
|
35 |
-
}
|
36 |
-
public function getReason()
|
37 |
-
{
|
38 |
-
return $this->reason;
|
39 |
-
}
|
40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilterSet.php
DELETED
@@ -1,160 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_FilterSet extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'sellerNetworkIds';
|
21 |
-
protected $absoluteDateRangeType = 'Google_Service_AdExchangeBuyerII_AbsoluteDateRange';
|
22 |
-
protected $absoluteDateRangeDataType = '';
|
23 |
-
public $buyerAccountId;
|
24 |
-
public $creativeId;
|
25 |
-
public $dealId;
|
26 |
-
public $environment;
|
27 |
-
public $filterSetId;
|
28 |
-
public $format;
|
29 |
-
public $ownerAccountId;
|
30 |
-
public $platforms;
|
31 |
-
protected $realtimeTimeRangeType = 'Google_Service_AdExchangeBuyerII_RealtimeTimeRange';
|
32 |
-
protected $realtimeTimeRangeDataType = '';
|
33 |
-
protected $relativeDateRangeType = 'Google_Service_AdExchangeBuyerII_RelativeDateRange';
|
34 |
-
protected $relativeDateRangeDataType = '';
|
35 |
-
public $sellerNetworkIds;
|
36 |
-
public $timeSeriesGranularity;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @param Google_Service_AdExchangeBuyerII_AbsoluteDateRange
|
40 |
-
*/
|
41 |
-
public function setAbsoluteDateRange(Google_Service_AdExchangeBuyerII_AbsoluteDateRange $absoluteDateRange)
|
42 |
-
{
|
43 |
-
$this->absoluteDateRange = $absoluteDateRange;
|
44 |
-
}
|
45 |
-
/**
|
46 |
-
* @return Google_Service_AdExchangeBuyerII_AbsoluteDateRange
|
47 |
-
*/
|
48 |
-
public function getAbsoluteDateRange()
|
49 |
-
{
|
50 |
-
return $this->absoluteDateRange;
|
51 |
-
}
|
52 |
-
public function setBuyerAccountId($buyerAccountId)
|
53 |
-
{
|
54 |
-
$this->buyerAccountId = $buyerAccountId;
|
55 |
-
}
|
56 |
-
public function getBuyerAccountId()
|
57 |
-
{
|
58 |
-
return $this->buyerAccountId;
|
59 |
-
}
|
60 |
-
public function setCreativeId($creativeId)
|
61 |
-
{
|
62 |
-
$this->creativeId = $creativeId;
|
63 |
-
}
|
64 |
-
public function getCreativeId()
|
65 |
-
{
|
66 |
-
return $this->creativeId;
|
67 |
-
}
|
68 |
-
public function setDealId($dealId)
|
69 |
-
{
|
70 |
-
$this->dealId = $dealId;
|
71 |
-
}
|
72 |
-
public function getDealId()
|
73 |
-
{
|
74 |
-
return $this->dealId;
|
75 |
-
}
|
76 |
-
public function setEnvironment($environment)
|
77 |
-
{
|
78 |
-
$this->environment = $environment;
|
79 |
-
}
|
80 |
-
public function getEnvironment()
|
81 |
-
{
|
82 |
-
return $this->environment;
|
83 |
-
}
|
84 |
-
public function setFilterSetId($filterSetId)
|
85 |
-
{
|
86 |
-
$this->filterSetId = $filterSetId;
|
87 |
-
}
|
88 |
-
public function getFilterSetId()
|
89 |
-
{
|
90 |
-
return $this->filterSetId;
|
91 |
-
}
|
92 |
-
public function setFormat($format)
|
93 |
-
{
|
94 |
-
$this->format = $format;
|
95 |
-
}
|
96 |
-
public function getFormat()
|
97 |
-
{
|
98 |
-
return $this->format;
|
99 |
-
}
|
100 |
-
public function setOwnerAccountId($ownerAccountId)
|
101 |
-
{
|
102 |
-
$this->ownerAccountId = $ownerAccountId;
|
103 |
-
}
|
104 |
-
public function getOwnerAccountId()
|
105 |
-
{
|
106 |
-
return $this->ownerAccountId;
|
107 |
-
}
|
108 |
-
public function setPlatforms($platforms)
|
109 |
-
{
|
110 |
-
$this->platforms = $platforms;
|
111 |
-
}
|
112 |
-
public function getPlatforms()
|
113 |
-
{
|
114 |
-
return $this->platforms;
|
115 |
-
}
|
116 |
-
/**
|
117 |
-
* @param Google_Service_AdExchangeBuyerII_RealtimeTimeRange
|
118 |
-
*/
|
119 |
-
public function setRealtimeTimeRange(Google_Service_AdExchangeBuyerII_RealtimeTimeRange $realtimeTimeRange)
|
120 |
-
{
|
121 |
-
$this->realtimeTimeRange = $realtimeTimeRange;
|
122 |
-
}
|
123 |
-
/**
|
124 |
-
* @return Google_Service_AdExchangeBuyerII_RealtimeTimeRange
|
125 |
-
*/
|
126 |
-
public function getRealtimeTimeRange()
|
127 |
-
{
|
128 |
-
return $this->realtimeTimeRange;
|
129 |
-
}
|
130 |
-
/**
|
131 |
-
* @param Google_Service_AdExchangeBuyerII_RelativeDateRange
|
132 |
-
*/
|
133 |
-
public function setRelativeDateRange(Google_Service_AdExchangeBuyerII_RelativeDateRange $relativeDateRange)
|
134 |
-
{
|
135 |
-
$this->relativeDateRange = $relativeDateRange;
|
136 |
-
}
|
137 |
-
/**
|
138 |
-
* @return Google_Service_AdExchangeBuyerII_RelativeDateRange
|
139 |
-
*/
|
140 |
-
public function getRelativeDateRange()
|
141 |
-
{
|
142 |
-
return $this->relativeDateRange;
|
143 |
-
}
|
144 |
-
public function setSellerNetworkIds($sellerNetworkIds)
|
145 |
-
{
|
146 |
-
$this->sellerNetworkIds = $sellerNetworkIds;
|
147 |
-
}
|
148 |
-
public function getSellerNetworkIds()
|
149 |
-
{
|
150 |
-
return $this->sellerNetworkIds;
|
151 |
-
}
|
152 |
-
public function setTimeSeriesGranularity($timeSeriesGranularity)
|
153 |
-
{
|
154 |
-
$this->timeSeriesGranularity = $timeSeriesGranularity;
|
155 |
-
}
|
156 |
-
public function getTimeSeriesGranularity()
|
157 |
-
{
|
158 |
-
return $this->timeSeriesGranularity;
|
159 |
-
}
|
160 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteredBidCreativeRow.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_FilteredBidCreativeRow extends Google_Model
|
19 |
-
{
|
20 |
-
protected $bidCountType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
21 |
-
protected $bidCountDataType = '';
|
22 |
-
public $creativeId;
|
23 |
-
protected $rowDimensionsType = 'Google_Service_AdExchangeBuyerII_RowDimensions';
|
24 |
-
protected $rowDimensionsDataType = '';
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
28 |
-
*/
|
29 |
-
public function setBidCount(Google_Service_AdExchangeBuyerII_MetricValue $bidCount)
|
30 |
-
{
|
31 |
-
$this->bidCount = $bidCount;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
35 |
-
*/
|
36 |
-
public function getBidCount()
|
37 |
-
{
|
38 |
-
return $this->bidCount;
|
39 |
-
}
|
40 |
-
public function setCreativeId($creativeId)
|
41 |
-
{
|
42 |
-
$this->creativeId = $creativeId;
|
43 |
-
}
|
44 |
-
public function getCreativeId()
|
45 |
-
{
|
46 |
-
return $this->creativeId;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @param Google_Service_AdExchangeBuyerII_RowDimensions
|
50 |
-
*/
|
51 |
-
public function setRowDimensions(Google_Service_AdExchangeBuyerII_RowDimensions $rowDimensions)
|
52 |
-
{
|
53 |
-
$this->rowDimensions = $rowDimensions;
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* @return Google_Service_AdExchangeBuyerII_RowDimensions
|
57 |
-
*/
|
58 |
-
public function getRowDimensions()
|
59 |
-
{
|
60 |
-
return $this->rowDimensions;
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteredBidDetailRow.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_FilteredBidDetailRow extends Google_Model
|
19 |
-
{
|
20 |
-
protected $bidCountType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
21 |
-
protected $bidCountDataType = '';
|
22 |
-
public $detailId;
|
23 |
-
protected $rowDimensionsType = 'Google_Service_AdExchangeBuyerII_RowDimensions';
|
24 |
-
protected $rowDimensionsDataType = '';
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
28 |
-
*/
|
29 |
-
public function setBidCount(Google_Service_AdExchangeBuyerII_MetricValue $bidCount)
|
30 |
-
{
|
31 |
-
$this->bidCount = $bidCount;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
35 |
-
*/
|
36 |
-
public function getBidCount()
|
37 |
-
{
|
38 |
-
return $this->bidCount;
|
39 |
-
}
|
40 |
-
public function setDetailId($detailId)
|
41 |
-
{
|
42 |
-
$this->detailId = $detailId;
|
43 |
-
}
|
44 |
-
public function getDetailId()
|
45 |
-
{
|
46 |
-
return $this->detailId;
|
47 |
-
}
|
48 |
-
/**
|
49 |
-
* @param Google_Service_AdExchangeBuyerII_RowDimensions
|
50 |
-
*/
|
51 |
-
public function setRowDimensions(Google_Service_AdExchangeBuyerII_RowDimensions $rowDimensions)
|
52 |
-
{
|
53 |
-
$this->rowDimensions = $rowDimensions;
|
54 |
-
}
|
55 |
-
/**
|
56 |
-
* @return Google_Service_AdExchangeBuyerII_RowDimensions
|
57 |
-
*/
|
58 |
-
public function getRowDimensions()
|
59 |
-
{
|
60 |
-
return $this->rowDimensions;
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/FilteringStats.php
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_FilteringStats extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'reasons';
|
21 |
-
protected $dateType = 'Google_Service_AdExchangeBuyerII_Date';
|
22 |
-
protected $dateDataType = '';
|
23 |
-
protected $reasonsType = 'Google_Service_AdExchangeBuyerII_Reason';
|
24 |
-
protected $reasonsDataType = 'array';
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param Google_Service_AdExchangeBuyerII_Date
|
28 |
-
*/
|
29 |
-
public function setDate(Google_Service_AdExchangeBuyerII_Date $date)
|
30 |
-
{
|
31 |
-
$this->date = $date;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @return Google_Service_AdExchangeBuyerII_Date
|
35 |
-
*/
|
36 |
-
public function getDate()
|
37 |
-
{
|
38 |
-
return $this->date;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @param Google_Service_AdExchangeBuyerII_Reason
|
42 |
-
*/
|
43 |
-
public function setReasons($reasons)
|
44 |
-
{
|
45 |
-
$this->reasons = $reasons;
|
46 |
-
}
|
47 |
-
/**
|
48 |
-
* @return Google_Service_AdExchangeBuyerII_Reason
|
49 |
-
*/
|
50 |
-
public function getReasons()
|
51 |
-
{
|
52 |
-
return $this->reasons;
|
53 |
-
}
|
54 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/HtmlContent.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_HtmlContent extends Google_Model
|
19 |
-
{
|
20 |
-
public $height;
|
21 |
-
public $snippet;
|
22 |
-
public $width;
|
23 |
-
|
24 |
-
public function setHeight($height)
|
25 |
-
{
|
26 |
-
$this->height = $height;
|
27 |
-
}
|
28 |
-
public function getHeight()
|
29 |
-
{
|
30 |
-
return $this->height;
|
31 |
-
}
|
32 |
-
public function setSnippet($snippet)
|
33 |
-
{
|
34 |
-
$this->snippet = $snippet;
|
35 |
-
}
|
36 |
-
public function getSnippet()
|
37 |
-
{
|
38 |
-
return $this->snippet;
|
39 |
-
}
|
40 |
-
public function setWidth($width)
|
41 |
-
{
|
42 |
-
$this->width = $width;
|
43 |
-
}
|
44 |
-
public function getWidth()
|
45 |
-
{
|
46 |
-
return $this->width;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/Image.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_Image extends Google_Model
|
19 |
-
{
|
20 |
-
public $height;
|
21 |
-
public $url;
|
22 |
-
public $width;
|
23 |
-
|
24 |
-
public function setHeight($height)
|
25 |
-
{
|
26 |
-
$this->height = $height;
|
27 |
-
}
|
28 |
-
public function getHeight()
|
29 |
-
{
|
30 |
-
return $this->height;
|
31 |
-
}
|
32 |
-
public function setUrl($url)
|
33 |
-
{
|
34 |
-
$this->url = $url;
|
35 |
-
}
|
36 |
-
public function getUrl()
|
37 |
-
{
|
38 |
-
return $this->url;
|
39 |
-
}
|
40 |
-
public function setWidth($width)
|
41 |
-
{
|
42 |
-
$this->width = $width;
|
43 |
-
}
|
44 |
-
public function getWidth()
|
45 |
-
{
|
46 |
-
return $this->width;
|
47 |
-
}
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ImpressionMetricsRow.php
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ImpressionMetricsRow extends Google_Model
|
19 |
-
{
|
20 |
-
protected $availableImpressionsType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
21 |
-
protected $availableImpressionsDataType = '';
|
22 |
-
protected $bidRequestsType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
23 |
-
protected $bidRequestsDataType = '';
|
24 |
-
protected $inventoryMatchesType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
25 |
-
protected $inventoryMatchesDataType = '';
|
26 |
-
protected $responsesWithBidsType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
27 |
-
protected $responsesWithBidsDataType = '';
|
28 |
-
protected $rowDimensionsType = 'Google_Service_AdExchangeBuyerII_RowDimensions';
|
29 |
-
protected $rowDimensionsDataType = '';
|
30 |
-
protected $successfulResponsesType = 'Google_Service_AdExchangeBuyerII_MetricValue';
|
31 |
-
protected $successfulResponsesDataType = '';
|
32 |
-
|
33 |
-
/**
|
34 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
35 |
-
*/
|
36 |
-
public function setAvailableImpressions(Google_Service_AdExchangeBuyerII_MetricValue $availableImpressions)
|
37 |
-
{
|
38 |
-
$this->availableImpressions = $availableImpressions;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
42 |
-
*/
|
43 |
-
public function getAvailableImpressions()
|
44 |
-
{
|
45 |
-
return $this->availableImpressions;
|
46 |
-
}
|
47 |
-
/**
|
48 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
49 |
-
*/
|
50 |
-
public function setBidRequests(Google_Service_AdExchangeBuyerII_MetricValue $bidRequests)
|
51 |
-
{
|
52 |
-
$this->bidRequests = $bidRequests;
|
53 |
-
}
|
54 |
-
/**
|
55 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
56 |
-
*/
|
57 |
-
public function getBidRequests()
|
58 |
-
{
|
59 |
-
return $this->bidRequests;
|
60 |
-
}
|
61 |
-
/**
|
62 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
63 |
-
*/
|
64 |
-
public function setInventoryMatches(Google_Service_AdExchangeBuyerII_MetricValue $inventoryMatches)
|
65 |
-
{
|
66 |
-
$this->inventoryMatches = $inventoryMatches;
|
67 |
-
}
|
68 |
-
/**
|
69 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
70 |
-
*/
|
71 |
-
public function getInventoryMatches()
|
72 |
-
{
|
73 |
-
return $this->inventoryMatches;
|
74 |
-
}
|
75 |
-
/**
|
76 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
77 |
-
*/
|
78 |
-
public function setResponsesWithBids(Google_Service_AdExchangeBuyerII_MetricValue $responsesWithBids)
|
79 |
-
{
|
80 |
-
$this->responsesWithBids = $responsesWithBids;
|
81 |
-
}
|
82 |
-
/**
|
83 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
84 |
-
*/
|
85 |
-
public function getResponsesWithBids()
|
86 |
-
{
|
87 |
-
return $this->responsesWithBids;
|
88 |
-
}
|
89 |
-
/**
|
90 |
-
* @param Google_Service_AdExchangeBuyerII_RowDimensions
|
91 |
-
*/
|
92 |
-
public function setRowDimensions(Google_Service_AdExchangeBuyerII_RowDimensions $rowDimensions)
|
93 |
-
{
|
94 |
-
$this->rowDimensions = $rowDimensions;
|
95 |
-
}
|
96 |
-
/**
|
97 |
-
* @return Google_Service_AdExchangeBuyerII_RowDimensions
|
98 |
-
*/
|
99 |
-
public function getRowDimensions()
|
100 |
-
{
|
101 |
-
return $this->rowDimensions;
|
102 |
-
}
|
103 |
-
/**
|
104 |
-
* @param Google_Service_AdExchangeBuyerII_MetricValue
|
105 |
-
*/
|
106 |
-
public function setSuccessfulResponses(Google_Service_AdExchangeBuyerII_MetricValue $successfulResponses)
|
107 |
-
{
|
108 |
-
$this->successfulResponses = $successfulResponses;
|
109 |
-
}
|
110 |
-
/**
|
111 |
-
* @return Google_Service_AdExchangeBuyerII_MetricValue
|
112 |
-
*/
|
113 |
-
public function getSuccessfulResponses()
|
114 |
-
{
|
115 |
-
return $this->successfulResponses;
|
116 |
-
}
|
117 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListBidMetricsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListBidMetricsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'bidMetricsRows';
|
21 |
-
protected $bidMetricsRowsType = 'Google_Service_AdExchangeBuyerII_BidMetricsRow';
|
22 |
-
protected $bidMetricsRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_BidMetricsRow
|
27 |
-
*/
|
28 |
-
public function setBidMetricsRows($bidMetricsRows)
|
29 |
-
{
|
30 |
-
$this->bidMetricsRows = $bidMetricsRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_BidMetricsRow
|
34 |
-
*/
|
35 |
-
public function getBidMetricsRows()
|
36 |
-
{
|
37 |
-
return $this->bidMetricsRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListBidResponseErrorsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListBidResponseErrorsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'calloutStatusRows';
|
21 |
-
protected $calloutStatusRowsType = 'Google_Service_AdExchangeBuyerII_CalloutStatusRow';
|
22 |
-
protected $calloutStatusRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_CalloutStatusRow
|
27 |
-
*/
|
28 |
-
public function setCalloutStatusRows($calloutStatusRows)
|
29 |
-
{
|
30 |
-
$this->calloutStatusRows = $calloutStatusRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_CalloutStatusRow
|
34 |
-
*/
|
35 |
-
public function getCalloutStatusRows()
|
36 |
-
{
|
37 |
-
return $this->calloutStatusRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListBidResponsesWithoutBidsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListBidResponsesWithoutBidsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'bidResponseWithoutBidsStatusRows';
|
21 |
-
protected $bidResponseWithoutBidsStatusRowsType = 'Google_Service_AdExchangeBuyerII_BidResponseWithoutBidsStatusRow';
|
22 |
-
protected $bidResponseWithoutBidsStatusRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_BidResponseWithoutBidsStatusRow
|
27 |
-
*/
|
28 |
-
public function setBidResponseWithoutBidsStatusRows($bidResponseWithoutBidsStatusRows)
|
29 |
-
{
|
30 |
-
$this->bidResponseWithoutBidsStatusRows = $bidResponseWithoutBidsStatusRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_BidResponseWithoutBidsStatusRow
|
34 |
-
*/
|
35 |
-
public function getBidResponseWithoutBidsStatusRows()
|
36 |
-
{
|
37 |
-
return $this->bidResponseWithoutBidsStatusRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUserInvitationsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListClientUserInvitationsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'invitations';
|
21 |
-
protected $invitationsType = 'Google_Service_AdExchangeBuyerII_ClientUserInvitation';
|
22 |
-
protected $invitationsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_ClientUserInvitation
|
27 |
-
*/
|
28 |
-
public function setInvitations($invitations)
|
29 |
-
{
|
30 |
-
$this->invitations = $invitations;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_ClientUserInvitation
|
34 |
-
*/
|
35 |
-
public function getInvitations()
|
36 |
-
{
|
37 |
-
return $this->invitations;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientUsersResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListClientUsersResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'users';
|
21 |
-
public $nextPageToken;
|
22 |
-
protected $usersType = 'Google_Service_AdExchangeBuyerII_ClientUser';
|
23 |
-
protected $usersDataType = 'array';
|
24 |
-
|
25 |
-
public function setNextPageToken($nextPageToken)
|
26 |
-
{
|
27 |
-
$this->nextPageToken = $nextPageToken;
|
28 |
-
}
|
29 |
-
public function getNextPageToken()
|
30 |
-
{
|
31 |
-
return $this->nextPageToken;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_AdExchangeBuyerII_ClientUser
|
35 |
-
*/
|
36 |
-
public function setUsers($users)
|
37 |
-
{
|
38 |
-
$this->users = $users;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_AdExchangeBuyerII_ClientUser
|
42 |
-
*/
|
43 |
-
public function getUsers()
|
44 |
-
{
|
45 |
-
return $this->users;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListClientsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListClientsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'clients';
|
21 |
-
protected $clientsType = 'Google_Service_AdExchangeBuyerII_Client';
|
22 |
-
protected $clientsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_Client
|
27 |
-
*/
|
28 |
-
public function setClients($clients)
|
29 |
-
{
|
30 |
-
$this->clients = $clients;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_Client
|
34 |
-
*/
|
35 |
-
public function getClients()
|
36 |
-
{
|
37 |
-
return $this->clients;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativeStatusAndCreativeBreakdownByDetailResponse.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListCreativeStatusAndCreativeBreakdownByDetailResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'filteredBidDetailRows';
|
21 |
-
public $detailType;
|
22 |
-
protected $filteredBidDetailRowsType = 'Google_Service_AdExchangeBuyerII_FilteredBidDetailRow';
|
23 |
-
protected $filteredBidDetailRowsDataType = 'array';
|
24 |
-
public $nextPageToken;
|
25 |
-
|
26 |
-
public function setDetailType($detailType)
|
27 |
-
{
|
28 |
-
$this->detailType = $detailType;
|
29 |
-
}
|
30 |
-
public function getDetailType()
|
31 |
-
{
|
32 |
-
return $this->detailType;
|
33 |
-
}
|
34 |
-
/**
|
35 |
-
* @param Google_Service_AdExchangeBuyerII_FilteredBidDetailRow
|
36 |
-
*/
|
37 |
-
public function setFilteredBidDetailRows($filteredBidDetailRows)
|
38 |
-
{
|
39 |
-
$this->filteredBidDetailRows = $filteredBidDetailRows;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @return Google_Service_AdExchangeBuyerII_FilteredBidDetailRow
|
43 |
-
*/
|
44 |
-
public function getFilteredBidDetailRows()
|
45 |
-
{
|
46 |
-
return $this->filteredBidDetailRows;
|
47 |
-
}
|
48 |
-
public function setNextPageToken($nextPageToken)
|
49 |
-
{
|
50 |
-
$this->nextPageToken = $nextPageToken;
|
51 |
-
}
|
52 |
-
public function getNextPageToken()
|
53 |
-
{
|
54 |
-
return $this->nextPageToken;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativeStatusBreakdownByCreativeResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListCreativeStatusBreakdownByCreativeResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'filteredBidCreativeRows';
|
21 |
-
protected $filteredBidCreativeRowsType = 'Google_Service_AdExchangeBuyerII_FilteredBidCreativeRow';
|
22 |
-
protected $filteredBidCreativeRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_FilteredBidCreativeRow
|
27 |
-
*/
|
28 |
-
public function setFilteredBidCreativeRows($filteredBidCreativeRows)
|
29 |
-
{
|
30 |
-
$this->filteredBidCreativeRows = $filteredBidCreativeRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_FilteredBidCreativeRow
|
34 |
-
*/
|
35 |
-
public function getFilteredBidCreativeRows()
|
36 |
-
{
|
37 |
-
return $this->filteredBidCreativeRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativeStatusBreakdownByDetailResponse.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListCreativeStatusBreakdownByDetailResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'filteredBidDetailRows';
|
21 |
-
public $detailType;
|
22 |
-
protected $filteredBidDetailRowsType = 'Google_Service_AdExchangeBuyerII_FilteredBidDetailRow';
|
23 |
-
protected $filteredBidDetailRowsDataType = 'array';
|
24 |
-
public $nextPageToken;
|
25 |
-
|
26 |
-
public function setDetailType($detailType)
|
27 |
-
{
|
28 |
-
$this->detailType = $detailType;
|
29 |
-
}
|
30 |
-
public function getDetailType()
|
31 |
-
{
|
32 |
-
return $this->detailType;
|
33 |
-
}
|
34 |
-
/**
|
35 |
-
* @param Google_Service_AdExchangeBuyerII_FilteredBidDetailRow
|
36 |
-
*/
|
37 |
-
public function setFilteredBidDetailRows($filteredBidDetailRows)
|
38 |
-
{
|
39 |
-
$this->filteredBidDetailRows = $filteredBidDetailRows;
|
40 |
-
}
|
41 |
-
/**
|
42 |
-
* @return Google_Service_AdExchangeBuyerII_FilteredBidDetailRow
|
43 |
-
*/
|
44 |
-
public function getFilteredBidDetailRows()
|
45 |
-
{
|
46 |
-
return $this->filteredBidDetailRows;
|
47 |
-
}
|
48 |
-
public function setNextPageToken($nextPageToken)
|
49 |
-
{
|
50 |
-
$this->nextPageToken = $nextPageToken;
|
51 |
-
}
|
52 |
-
public function getNextPageToken()
|
53 |
-
{
|
54 |
-
return $this->nextPageToken;
|
55 |
-
}
|
56 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListCreativesResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListCreativesResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'creatives';
|
21 |
-
protected $creativesType = 'Google_Service_AdExchangeBuyerII_Creative';
|
22 |
-
protected $creativesDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_Creative
|
27 |
-
*/
|
28 |
-
public function setCreatives($creatives)
|
29 |
-
{
|
30 |
-
$this->creatives = $creatives;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_Creative
|
34 |
-
*/
|
35 |
-
public function getCreatives()
|
36 |
-
{
|
37 |
-
return $this->creatives;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListDealAssociationsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListDealAssociationsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'associations';
|
21 |
-
protected $associationsType = 'Google_Service_AdExchangeBuyerII_CreativeDealAssociation';
|
22 |
-
protected $associationsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_CreativeDealAssociation
|
27 |
-
*/
|
28 |
-
public function setAssociations($associations)
|
29 |
-
{
|
30 |
-
$this->associations = $associations;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_CreativeDealAssociation
|
34 |
-
*/
|
35 |
-
public function getAssociations()
|
36 |
-
{
|
37 |
-
return $this->associations;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListFilterSetsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListFilterSetsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'filterSets';
|
21 |
-
protected $filterSetsType = 'Google_Service_AdExchangeBuyerII_FilterSet';
|
22 |
-
protected $filterSetsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_FilterSet
|
27 |
-
*/
|
28 |
-
public function setFilterSets($filterSets)
|
29 |
-
{
|
30 |
-
$this->filterSets = $filterSets;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_FilterSet
|
34 |
-
*/
|
35 |
-
public function getFilterSets()
|
36 |
-
{
|
37 |
-
return $this->filterSets;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListFilteredBidRequestsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListFilteredBidRequestsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'calloutStatusRows';
|
21 |
-
protected $calloutStatusRowsType = 'Google_Service_AdExchangeBuyerII_CalloutStatusRow';
|
22 |
-
protected $calloutStatusRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_CalloutStatusRow
|
27 |
-
*/
|
28 |
-
public function setCalloutStatusRows($calloutStatusRows)
|
29 |
-
{
|
30 |
-
$this->calloutStatusRows = $calloutStatusRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_CalloutStatusRow
|
34 |
-
*/
|
35 |
-
public function getCalloutStatusRows()
|
36 |
-
{
|
37 |
-
return $this->calloutStatusRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListFilteredBidsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListFilteredBidsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'creativeStatusRows';
|
21 |
-
protected $creativeStatusRowsType = 'Google_Service_AdExchangeBuyerII_CreativeStatusRow';
|
22 |
-
protected $creativeStatusRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_CreativeStatusRow
|
27 |
-
*/
|
28 |
-
public function setCreativeStatusRows($creativeStatusRows)
|
29 |
-
{
|
30 |
-
$this->creativeStatusRows = $creativeStatusRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_CreativeStatusRow
|
34 |
-
*/
|
35 |
-
public function getCreativeStatusRows()
|
36 |
-
{
|
37 |
-
return $this->creativeStatusRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListImpressionMetricsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListImpressionMetricsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'impressionMetricsRows';
|
21 |
-
protected $impressionMetricsRowsType = 'Google_Service_AdExchangeBuyerII_ImpressionMetricsRow';
|
22 |
-
protected $impressionMetricsRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_ImpressionMetricsRow
|
27 |
-
*/
|
28 |
-
public function setImpressionMetricsRows($impressionMetricsRows)
|
29 |
-
{
|
30 |
-
$this->impressionMetricsRows = $impressionMetricsRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_ImpressionMetricsRow
|
34 |
-
*/
|
35 |
-
public function getImpressionMetricsRows()
|
36 |
-
{
|
37 |
-
return $this->impressionMetricsRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListLosingBidsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListLosingBidsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'creativeStatusRows';
|
21 |
-
protected $creativeStatusRowsType = 'Google_Service_AdExchangeBuyerII_CreativeStatusRow';
|
22 |
-
protected $creativeStatusRowsDataType = 'array';
|
23 |
-
public $nextPageToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @param Google_Service_AdExchangeBuyerII_CreativeStatusRow
|
27 |
-
*/
|
28 |
-
public function setCreativeStatusRows($creativeStatusRows)
|
29 |
-
{
|
30 |
-
$this->creativeStatusRows = $creativeStatusRows;
|
31 |
-
}
|
32 |
-
/**
|
33 |
-
* @return Google_Service_AdExchangeBuyerII_CreativeStatusRow
|
34 |
-
*/
|
35 |
-
public function getCreativeStatusRows()
|
36 |
-
{
|
37 |
-
return $this->creativeStatusRows;
|
38 |
-
}
|
39 |
-
public function setNextPageToken($nextPageToken)
|
40 |
-
{
|
41 |
-
$this->nextPageToken = $nextPageToken;
|
42 |
-
}
|
43 |
-
public function getNextPageToken()
|
44 |
-
{
|
45 |
-
return $this->nextPageToken;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/ListNonBillableWinningBidsResponse.php
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_ListNonBillableWinningBidsResponse extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'nonBillableWinningBidStatusRows';
|
21 |
-
public $nextPageToken;
|
22 |
-
protected $nonBillableWinningBidStatusRowsType = 'Google_Service_AdExchangeBuyerII_NonBillableWinningBidStatusRow';
|
23 |
-
protected $nonBillableWinningBidStatusRowsDataType = 'array';
|
24 |
-
|
25 |
-
public function setNextPageToken($nextPageToken)
|
26 |
-
{
|
27 |
-
$this->nextPageToken = $nextPageToken;
|
28 |
-
}
|
29 |
-
public function getNextPageToken()
|
30 |
-
{
|
31 |
-
return $this->nextPageToken;
|
32 |
-
}
|
33 |
-
/**
|
34 |
-
* @param Google_Service_AdExchangeBuyerII_NonBillableWinningBidStatusRow
|
35 |
-
*/
|
36 |
-
public function setNonBillableWinningBidStatusRows($nonBillableWinningBidStatusRows)
|
37 |
-
{
|
38 |
-
$this->nonBillableWinningBidStatusRows = $nonBillableWinningBidStatusRows;
|
39 |
-
}
|
40 |
-
/**
|
41 |
-
* @return Google_Service_AdExchangeBuyerII_NonBillableWinningBidStatusRow
|
42 |
-
*/
|
43 |
-
public function getNonBillableWinningBidStatusRows()
|
44 |
-
{
|
45 |
-
return $this->nonBillableWinningBidStatusRows;
|
46 |
-
}
|
47 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/LocationContext.php
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_LocationContext extends Google_Collection
|
19 |
-
{
|
20 |
-
protected $collection_key = 'geoCriteriaIds';
|
21 |
-
public $geoCriteriaIds;
|
22 |
-
|
23 |
-
public function setGeoCriteriaIds($geoCriteriaIds)
|
24 |
-
{
|
25 |
-
$this->geoCriteriaIds = $geoCriteriaIds;
|
26 |
-
}
|
27 |
-
public function getGeoCriteriaIds()
|
28 |
-
{
|
29 |
-
return $this->geoCriteriaIds;
|
30 |
-
}
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/MetricValue.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_MetricValue extends Google_Model
|
19 |
-
{
|
20 |
-
public $value;
|
21 |
-
public $variance;
|
22 |
-
|
23 |
-
public function setValue($value)
|
24 |
-
{
|
25 |
-
$this->value = $value;
|
26 |
-
}
|
27 |
-
public function getValue()
|
28 |
-
{
|
29 |
-
return $this->value;
|
30 |
-
}
|
31 |
-
public function setVariance($variance)
|
32 |
-
{
|
33 |
-
$this->variance = $variance;
|
34 |
-
}
|
35 |
-
public function getVariance()
|
36 |
-
{
|
37 |
-
return $this->variance;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NativeContent.php
DELETED
@@ -1,159 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limitations under
|
15 |
-
* the License.
|
16 |
-
*/
|
17 |
-
|
18 |
-
class Google_Service_AdExchangeBuyerII_NativeContent extends Google_Model
|
19 |
-
{
|
20 |
-
public $advertiserName;
|
21 |
-
protected $appIconType = 'Google_Service_AdExchangeBuyerII_Image';
|
22 |
-
protected $appIconDataType = '';
|
23 |
-
public $body;
|
24 |
-
public $callToAction;
|
25 |
-
public $clickLinkUrl;
|
26 |
-
public $clickTrackingUrl;
|
27 |
-
public $headline;
|
28 |
-
protected $imageType = 'Google_Service_AdExchangeBuyerII_Image';
|
29 |
-
protected $imageDataType = '';
|
30 |
-
protected $logoType = 'Google_Service_AdExchangeBuyerII_Image';
|
31 |
-
protected $logoDataType = '';
|
32 |
-
public $priceDisplayText;
|
33 |
-
public $starRating;
|
34 |
-
public $storeUrl;
|
35 |
-
public $videoUrl;
|
36 |
-
|
37 |
-
public function setAdvertiserName($advertiserName)
|
38 |
-
{
|
39 |
-
$this->advertiserName = $advertiserName;
|
40 |
-
}
|
41 |
-
public function getAdvertiserName()
|
42 |
-
{
|
43 |
-
return $this->advertiserName;
|
44 |
-
}
|
45 |
-
/**
|
46 |
-
* @param Google_Service_AdExchangeBuyerII_Image
|
47 |
-
*/
|
48 |
-
public function setAppIcon(Google_Service_AdExchangeBuyerII_Image $appIcon)
|
49 |
-
{
|
50 |
-
$this->appIcon = $appIcon;
|
51 |
-
}
|
52 |
-
/**
|
53 |
-
* @return Google_Service_AdExchangeBuyerII_Image
|
54 |
-
*/
|
55 |
-
public function getAppIcon()
|
56 |
-
{
|
57 |
-
return $this->appIcon;
|
58 |
-
}
|
59 |
-
public function setBody($body)
|
60 |
-
{
|
61 |
-
$this->body = $body;
|
62 |
-
}
|
63 |
-
public function getBody()
|
64 |
-
{
|
65 |
-
return $this->body;
|
66 |
-
}
|
67 |
-
public function setCallToAction($callToAction)
|
68 |
-
{
|
69 |
-
$this->callToAction = $callToAction;
|
70 |
-
}
|
71 |
-
public function getCallToAction()
|
72 |
-
{
|
73 |
-
return $this->callToAction;
|
74 |
-
}
|
75 |
-
public function setClickLinkUrl($clickLinkUrl)
|
76 |
-
{
|
77 |
-
$this->clickLinkUrl = $clickLinkUrl;
|
78 |
-
}
|
79 |
-
public function getClickLinkUrl()
|
80 |
-
{
|
81 |
-
return $this->clickLinkUrl;
|
82 |
-
}
|
83 |
-
public function setClickTrackingUrl($clickTrackingUrl)
|
84 |
-
{
|
85 |
-
$this->clickTrackingUrl = $clickTrackingUrl;
|
86 |
-
}
|
87 |
-
public function getClickTrackingUrl()
|
88 |
-
{
|
89 |
-
return $this->clickTrackingUrl;
|
90 |
-
}
|
91 |
-
public function setHeadline($headline)
|
92 |
-
{
|
93 |
-
$this->headline = $headline;
|
94 |
-
}
|
95 |
-
public function getHeadline()
|
96 |
-
{
|
97 |
-
return $this->headline;
|
98 |
-
}
|
99 |
-
/**
|
100 |
-
* @param Google_Service_AdExchangeBuyerII_Image
|
101 |
-
*/
|
102 |
-
public function setImage(Google_Service_AdExchangeBuyerII_Image $image)
|
103 |
-
{
|
104 |
-
$this->image = $image;
|
105 |
-
}
|
106 |
-
/**
|
107 |
-
* @return Google_Service_AdExchangeBuyerII_Image
|
108 |
-
*/
|
109 |
-
public function getImage()
|
110 |
-
{
|
111 |
-
return $this->image;
|
112 |
-
}
|
113 |
-
/**
|
114 |
-
* @param Google_Service_AdExchangeBuyerII_Image
|
115 |
-
*/
|
116 |
-
public function setLogo(Google_Service_AdExchangeBuyerII_Image $logo)
|
117 |
-
{
|
118 |
-
$this->logo = $logo;
|
119 |
-
}
|
120 |
-
/**
|
121 |
-
* @return Google_Service_AdExchangeBuyerII_Image
|
122 |
-
*/
|
123 |
-
public function getLogo()
|
124 |
-
{
|
125 |
-
return $this->logo;
|
126 |
-
}
|
127 |
-
public function setPriceDisplayText($priceDisplayText)
|
128 |
-
{
|
129 |
-
$this->priceDisplayText = $priceDisplayText;
|
130 |
-
}
|
131 |
-
public function getPriceDisplayText()
|
132 |
-
{
|
133 |
-
return $this->priceDisplayText;
|
134 |
-
}
|
135 |
-
public function setStarRating($starRating)
|
136 |
-
{
|
137 |
-
$this->starRating = $starRating;
|
138 |
-
}
|
139 |
-
public function getStarRating()
|
140 |
-
{
|
141 |
-
return $this->starRating;
|
142 |
-
}
|
143 |
-
public function setStoreUrl($storeUrl)
|
144 |
-
{
|
145 |
-
$this->storeUrl = $storeUrl;
|
146 |
-
}
|
147 |
-
public function getStoreUrl()
|
148 |
-
{
|
149 |
-
return $this->storeUrl;
|
150 |
-
}
|
151 |
-
public function setVideoUrl($videoUrl)
|
152 |
-
{
|
153 |
-
$this->videoUrl = $videoUrl;
|
154 |
-
}
|
155 |
-
public function getVideoUrl()
|
156 |
-
{
|
157 |
-
return $this->videoUrl;
|
158 |
-
}
|
159 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
google/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyerII/NonBillableWinningBidStatusRow.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Copyright 2014 Google Inc.
|
4 |
-
*
|
5 |
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
6 |
-
* use this file except in compliance with the License. You may obtain a copy of
|
7 |
-
* the License at
|
8 |
-
*
|
9 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10 |
-
*
|
11 |
-
* Unless required by applicable law or agreed to in writing, software
|
12 |
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
13 |
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
14 |
-
* License for the specific language governing permissions and limit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|