Plugin Directory

Changeset 3406702


Ignore:
Timestamp:
12/01/2025 10:32:46 AM (3 months ago)
Author:
ratneshmagicbid
Message:

updated a bug fixed

Location:
gam-ads-ad-manager-and-ad-exchange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gam-ads-ad-manager-and-ad-exchange/tags/1.0.2/includescore/ajax-handlers.php

    r3406661 r3406702  
    621621            'expires_at'    => time() + (int)($token['expires_in'] ?? 0),
    622622        ];
     623        update_option('gam_ads_ad_manager_and_ad_exchange_tokens', $normalized);
    623624        // Fetch networks
    624625        // require_once gamadsmbai_PLUGIN_DIR . 'vendor/autoload.php';
     
    629630            count($networks) > 0
    630631        ) {
    631             update_option('gam_ads_ad_manager_and_ad_exchange_tokens', $normalized);
    632632            wp_send_json_success([
    633633                'message'  => '✅ Token and Networks saved successfully'
    634634            ]);
    635635        } else {
     636            delete_option('gam_ads_ad_manager_and_ad_exchange_tokens');
    636637            wp_send_json_error(['message' => "⚠️ Can't find networks, try with other email"]);
    637638        }
  • gam-ads-ad-manager-and-ad-exchange/trunk/includescore/ajax-handlers.php

    r3406661 r3406702  
    621621            'expires_at'    => time() + (int)($token['expires_in'] ?? 0),
    622622        ];
     623        update_option('gam_ads_ad_manager_and_ad_exchange_tokens', $normalized);
    623624        // Fetch networks
    624625        // require_once gamadsmbai_PLUGIN_DIR . 'vendor/autoload.php';
     
    629630            count($networks) > 0
    630631        ) {
    631             update_option('gam_ads_ad_manager_and_ad_exchange_tokens', $normalized);
    632632            wp_send_json_success([
    633633                'message'  => '✅ Token and Networks saved successfully'
    634634            ]);
    635635        } else {
     636            delete_option('gam_ads_ad_manager_and_ad_exchange_tokens');
    636637            wp_send_json_error(['message' => "⚠️ Can't find networks, try with other email"]);
    637638        }
Note: See TracChangeset for help on using the changeset viewer.