Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
431 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to find a unique identifier for the Bing Ads Campaign Performance Report to help remove duplicates. I'm currently pulling all of these columns from the API:
I'm performing a daily aggregation.
So far this seems to provide an adequate unique identifier:
md5_hex(
concat_ws(
'||'
, trim(lower(coalesce(accountname::varchar, '^^')))
, trim(lower(coalesce(accountstatus::varchar, '^^')))
, trim(lower(coalesce(addistribution::varchar, '^^')))
, trim(lower(coalesce(bidmatchtype::varchar, '^^')))
, trim(lower(coalesce(campaignname::varchar, '^^')))
, trim(lower(coalesce(deliveredmatchtype::varchar, '^^')))
, trim(lower(coalesce(deviceos::varchar, '^^')))
, trim(lower(coalesce(devicetype::varchar, '^^')))
, trim(lower(coalesce(goal::varchar, '^^')))
, trim(lower(coalesce(network::varchar, '^^')))
, trim(lower(coalesce(timeperiod::date::varchar, '^^')))
, trim(lower(coalesce(topvsother::varchar, '^^')))
)
) as id