Php 无法在google adwords api中设置ProductBiddingCategory
我在应用程序中使用google adwords api(v 201705),当我想在库存过滤器中设置Php 无法在google adwords api中设置ProductBiddingCategory,php,google-api,google-ads-api,Php,Google Api,Google Ads Api,我在应用程序中使用google adwords api(v 201705),当我想在库存过滤器中设置ProductBiddingCategory时,它不能正常工作。我有一个带有ID的配置。我使用Laravel5.4和PHP5.6。这是第一级: 'category1stLevel' => array( '-7183678771116356049' => 'Animals & Pet Supplies', '-8901225909846585574
ProductBiddingCategory
时,它不能正常工作。我有一个带有ID的配置。我使用Laravel5.4和PHP5.6。这是第一级:
'category1stLevel' => array(
'-7183678771116356049' => 'Animals & Pet Supplies',
'-8901225909846585574' => 'Arts & Entertainment ',
'-135859741832737125' => 'Baby & Toddler',
'1630781044279653237' => 'Business & Industrial',
'-4047358871470385303' => 'Cameras & Optics',
'-3692872870547437690' => 'Clothing & Accessories',
'-8991081036712453473' => 'Electronics',
'-4844290245982195030' => 'Food, Beverages & Tobacco',
'5791209622805759532' => 'Furniture',
'1689639310991627077' => 'Hardware',
'-1319082945867661876' => 'Health & Beauty',
'-730821788104646261' => 'Home & Garden',
'-5914235892932915235' => 'Luggage & Bags',
'513743549703189181' => 'Mature',
'-823909673284230433' => 'Media',
'7477391641924216366' => 'Office Supplies',
'225849170806580462' => 'Religious & Ceremonial ',
'-7974890371279108093' => 'Software',
'6085370270382652056' => 'Sporting Goods',
'-136928849880388598' => 'Toys & Games',
'-7701278134223972650' => 'Vehicles & Parts'
)
我是这样设置的:
$value = new ProductBiddingCategory();
$value->setType('BIDDING_CATEGORY_L1');
$value->setValue(-7183678771116356049);
$productScope->setDimensions([$value]);
php似乎正在将其转换为指数数(例如-7.18367877111636E+18),当它设置时,我收到错误“无效投标类别-718367877111635789…”,这意味着它不是从一开始的数字。如果我这样设置$value->setValue(-7.18367877111636E+18)
它也不起作用
我应该如何设置它工作?请帮忙