agentleFS
itsryanarmaniitsryanarmani/skills/ads-yelp/SKILL.md

ads-yelp

Skill1 starsChanged 5 days agoMITView on GitHub

Integrate Yelp Ads measurement through Yelp Conversions API, Yelp click-ID attribution, and Yelp partner advertising APIs.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. About 0 are common, 16 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use ad-conversion-hub for the canonical event envelope, consent gate, identity rules, retry policy, and adapter contract.

    line 19
  2. Distinctive:

    Create an app and copy its Client ID.

    line 29
  3. Distinctive:

    Wait for Yelp to enable the app's API key for the Conversions API.

    line 31
  4. Very specific:

    Use a local server-only secret such as YELP_CAPI_API_KEY.

    line 37
  5. Distinctive:

    Ask a Yelp account representative or Solutions Engineer for access.

    line 48
  6. Distinctive:

    Test the program lifecycle against those test listings.

    line 50
  7. Very specific:

    Test credentials use a username and password against https://partner-api.yelp.com/v1/.

    line 53
  8. Distinctive:

    Do not add OAuth scopes to this Ads API adapter.

    line 57
  9. Distinctive:

    If using GTM, send GA4 events to a server-side container and install Yelp's server-side Conversion API template.

    line 66
  10. Very specific:

    Use the hub's bounded retry and dead-letter policy.

    line 150
  11. Distinctive:

    Use the hub's canonical event ID for retries and any separate collection route.

    line 203
  12. Distinctive:

    Keep the event name stable for one conversion.

    line 204
  13. Distinctive:

    Do not add a conversion rule ID, pixel ID, OAuth scope, or console toggle unless Yelp supplies it for the account.

    line 219
  14. Distinctive:

    If the account has Reporting API access, request reports through the Yelp representative.

    line 230
  15. Distinctive:

    Do not use the Reporting API as proof of pixel or store-visit attribution.

    line 233
  16. Distinctive:

    Keep the Yelp API key in a server-only adapter secret.

    line 238
  17. Distinctive:

    Do not send a raw email, phone, name, or other field marked hashed.

    line 240
  18. Very specific:

    Do not hash ylpcid. Yelp requires the click ID unmodified and unhashed.

    line 242
  19. Distinctive:

    Do not send a purchase before payment confirmation.

    line 244
  20. Very specific:

    Do not interpret 202, a valid API key, or a stored event as ad attribution.

    line 246
  21. Very specific:

    Do not retry with a new event_id after an uncertain response.

    line 248
  22. Distinctive:

    Keep the API key in the server secret store.

    line 250

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Yelp Ads

Yelp has a Conversions API, but Yelp does not document self-serve activation for it. Yelp says the product is intended for businesses with 10 or more locations, and asks interested advertisers to work with a Yelp Sales or Customer Success representative. Smaller businesses may not receive attribution reporting. See Yelp Conversions API availability and access.

Yelp also has a separate Advertising API. No open self-serve access is documented for it. It is a Partner API with access disabled by default. Its documented endpoints manage advertising programs; conversion ingestion is documented separately in CAPI. See Yelp Ads API access and scope and Yelp Conversions API.

Use ad-conversion-hub for the canonical event envelope, consent gate, identity rules, retry policy, and adapter contract. Pair this skill with ad-experiments for one-audience tests, seed sizing, and PII-export authorization.

Account and access

For Yelp Conversions API access, follow the sequence in Yelp's CAPI data-access guide:

  1. Sign in to Yelp developer app management.
  2. Create an app and copy its Client ID.
  3. Send the Client ID to the assigned Yelp Customer Success representative.
  4. Wait for Yelp to enable the app's API key for the Conversions API.

Yelp's guide says the API key is required, should be treated as secret, and can be refreshed after a compromise. The key is not usable for CAPI until Yelp enables it. See Yelp CAPI data access.

Use a local server-only secret such as YELP_CAPI_API_KEY. This name is an adapter convention, not a Yelp parameter. Never put the key in browser code, URLs, logs, screenshots, or commits.

The separate Yelp Advertising API uses Basic HTTP authentication over SSL and the credentials used for Yelp's Data Ingestion API. Yelp says access is disabled by default and requires working with the Yelp account team. See Yelp Advertising API authentication.

The Ads API onboarding guide describes a managed two-phase route. See Yelp Ads API onboarding.

  1. Ask a Yelp account representative or Solutions Engineer for access.
  2. Receive test credentials and Yelp-provided test business IDs.
  3. Test the program lifecycle against those test listings.
  4. Request live credentials after Yelp validates the integration.

Test credentials use a username and password against https://partner-api.yelp.com/v1/. Live credentials are tied to the active Yelp payment account. See Yelp Ads API onboarding.

Do not add OAuth scopes to this Ads API adapter. The current Ads API guide documents Basic authentication, not OAuth. See Yelp Ads API authentication.

Client-side tag

The current Yelp CAPI guide documents a server-side Google Tag Manager template. It does not provide a Yelp browser pixel snippet, browser SDK, or public pixel ID for this integration. Do not invent one. See Yelp GTM CAPI integration.

If using GTM, send GA4 events to a server-side container and install Yelp's server-side Conversion API template. Yelp says the template uses the API under the hood and handles normalization and hashing. Set the GTM first_party_collection field to true when passing user data to the server container. See Yelp's GTM setup.

Yelp's guide recommends the direct API or S3 method when possible because GTM debugging can be cumbersome. See Yelp's transfer-method guidance.

Rule setup and event mapping

The direct CAPI schema requires event_time, event_name, action_source, and custom_data. user_data is optional. Direct event_name values are purchase, lead, or a custom name prefixed with custom_; names are limited to 50 characters. action_source accepts app, physical_store, or website. See Yelp's CAPI schema.

The server-side GTM template separately maps standard GA4 names such as checkout, purchase, lead, view_content, and signup. Other names receive a custom_ prefix in that template. See Yelp's published GTM event mappings.

Hub eventDirect API event_nameGTM event nameDispatch rule
page_viewNo conversion nameNot a documented CAPI goalKeep in first-party analytics. Yelp says not to send page views when measuring a transaction.
view_contentcustom_view_contentview_contentSend only when this event is a measured conversion.
leadleadleadSend after the lead is accepted.
signupcustom_signupsignupSend after account creation succeeds.
begin_checkoutcustom_begin_checkoutcheckoutSend only if checkout start is a measured goal.
purchasepurchasepurchaseSend after the payment provider confirms the charge. Include custom_data.value for ROAS.
subscription_startcustom_subscription_startNo documented mappingSend only if the advertiser has chosen this custom goal.
refundNo documented nameNo documented mappingReconcile with payment truth. Do not dispatch an invented Yelp refund event.

The custom names follow Yelp's documented custom_ rule, and the GTM names follow its published template mapping. These are separate routes. See Yelp event names.

Server-side conversions API

Yelp documents two POST endpoints. The single endpoint accepts one conversion; the bulk endpoint accepts an events array with up to 1,000 events per request. Successful requests return 202 Accepted. Yelp recommends bulk requests above 100,000 events per day. See Yelp CAPI endpoints and limits.

The documented request uses a Bearer API key and wraps one event in event. See Yelp's single-event example:

POST https://api.yelp.com/v3/conversion/event
Authorization: Bearer <YELP_CAPI_API_KEY>
Content-Type: application/json
{
  "event": {
    "event_id": "<CANONICAL_EVENT_ID>",
    "event_time": 1693946978,
    "event_name": "purchase",
    "action_source": "website",
    "user_data": {
      "em": ["<SHA256_EMAIL_HEX>"],
      "ylpcid": "<YELP_CLICK_ID>"
    },
    "custom_data": {
      "value": 10.0,
      "currency": "USD",
      "order_id": "<ORDER_ID>"
    }
  },
  "test_event": true
}

The bulk endpoint uses the same event schema inside an events array. See Yelp's bulk-event example:

POST https://api.yelp.com/v3/conversion/events
Authorization: Bearer <YELP_CAPI_API_KEY>
Content-Type: application/json

Yelp documents test_event as an optional Boolean. When true, Yelp runs normal validation without submitting the data to production. Omitting it means production behavior. Each endpoint accepts up to 100 requests per second and 50,000 requests per day. See Yelp CAPI testing and rate limits.

Use the hub's bounded retry and dead-letter policy. Keep the same event_id when retrying a request whose final result is unknown. See Yelp's deduplication rule.

Identity and consent

Apply the hub's consent gate before collecting or hashing ad-user data. Yelp requires SHA-256 hashing for fields marked hashed and says its system prevents unhashed personal identification data from being processed. See Yelp hashing requirements.

For direct API submissions, normalize values as Yelp documents, then hash the fields that require hashing. See Yelp's normalization and hashing rules:

  • Email: lowercase and trim leading or trailing spaces.
  • Phone: send 11 digits with a leading 1, without punctuation or +.
  • First and last name: lowercase, with spaces and punctuation removed.
  • Birth date: YYYYMMDD.
  • Country: lowercase two-character ISO-3166 code.
  • Postal code: lowercase alphanumeric characters only.
  • IP address and user agent: do not hash.

Yelp's schema marks these fields as normalized or hashed and marks IP address and user agent as not hashed. Use only the fields relevant to the measured conversion. See Yelp normalization and field constraints.

Yelp documents em, ph, fn, ln, db, ge, country, st, zp, ct, and external_id in user_data. madid is for mobile events. lead_id is relevant only when using Yelp's Leads API. See Yelp user-data fields.

Click ID and first-party storage

Yelp appends the ylpcid query parameter to a destination URL when a user clicks a Yelp ad. Capture it on the landing request, store it in your own first-party session or cookie storage, and send it in user_data.ylpcid. Yelp says to send this value exactly as received. Do not modify, truncate, or hash it. See Yelp Click ID guidance.

Yelp says ylpcid can directly match a conversion to the ad click and can improve attribution for users who are not logged in. The CAPI schema marks ylpcid optional, so do not block a confirmed conversion when the parameter is absent. See Yelp attribution matching guidance.

Yelp's public guide does not state a ylpcid lifetime. See Yelp's Click ID documentation. Do not promise a 30-day, seven-day, or other attribution window. Store it for the period defined by your consent and measurement policy.

Deduplication

Yelp recommends event_id and says it combines event_id with event_name to form the deduplication key. event_id is optional, must be at most 128 characters, and should uniquely identify one conversion. Without it, Yelp says it cannot deduplicate. Reusing one ID across multiple conversions can lose data. See Yelp CAPI deduplication.

Use the hub's canonical event ID for retries and any separate collection route. Keep the event name stable for one conversion. Yelp does not document a browser-pixel/server-event deduplication contract in this guide. See Yelp CAPI deduplication. Do not invent one.

Yelp settings that override code

  • Yelp must enable the app's API key before CAPI requests can work. Yelp says an inactive or incorrect key can produce 404; missing or invalid auth can produce 401. See Yelp CAPI access errors.
  • A malformed payload or un-hashed required field can produce 400. A rate limit breach can produce 429. See Yelp CAPI errors.
  • CAPI availability and attribution reporting depend on the advertiser's eligibility and Yelp representative. See Yelp CAPI availability.
  • Yelp's Advertising API is separately gated. Do not assume Ads API credentials grant CAPI access. See Yelp API access separation and Yelp CAPI activation.

Do not add a conversion rule ID, pixel ID, OAuth scope, or console toggle unless Yelp supplies it for the account. The fetched CAPI guide documents an API key, not those fields. See Yelp's current CAPI guide.

Verification

  1. Send a minimal payload with test_event: true. Record the redacted request, response status, canonical event ID, and consent decision. Yelp says test mode validates the request without sending it to production. See Yelp test events.
  2. For production, treat 202 Accepted as request acceptance. Reconcile the event with the succeeded payment, lead, or signup record. See Yelp API response behavior.
  3. If the account has Reporting API access, request reports through the Yelp representative. Reporting API access has separate setup from Ads API and Data Ingestion API access. See Yelp Reporting API access.
  4. Do not use the Reporting API as proof of pixel or store-visit attribution. Yelp says those signals are not reflected in that API today. See Yelp Reporting API limitations.

Common pitfalls and security

  • Keep the Yelp API key in a server-only adapter secret. Yelp's CAPI guide calls it an API key, not a browser pixel or OAuth credential. See Yelp CAPI data access.
  • Do not send a raw email, phone, name, or other field marked hashed. Yelp can reject fields that are required to be hashed. See Yelp field validation.
  • Do not hash ylpcid. Yelp requires the click ID unmodified and unhashed. See Yelp Click ID requirements.
  • Do not send a purchase before payment confirmation. Use payment-provider truth for purchase and refund reconciliation.
  • Do not interpret 202, a valid API key, or a stored event as ad attribution. Confirm the account's Yelp reporting path. See Yelp CAPI response and reporting guidance.
  • Do not retry with a new event_id after an uncertain response. That can defeat Yelp's documented deduplication key. See Yelp CAPI deduplication.
  • Keep the API key in the server secret store. Yelp says not to give it to unauthorized users and provides a refresh action if it is compromised. See Yelp API key handling.
  • A vendor failure must not fail checkout or a payment webhook. Record the failure, apply the hub retry policy, and dead-letter after the hub limit.

Official sources checked (2026-08-31)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.