Skip to content

Fix Objective-C usage guide examples - #77

Merged
jrosendahl-opt merged 2 commits into
masterfrom
docs/objc-guide-fixes
Oct 29, 2026
Merged

jrosendahl-opt merged 2 commits into
masterfrom
docs/objc-guide-fixes

Conversation

@jrosendahl-opt

@jrosendahl-opt jrosendahl-opt commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

This is a docs only pr.

Several Objective-C guide examples no longer match the SDK:

  • The example delegate declared profileOk: as taking NSHTTPURLResponse * and targetingOk: as taking NSDictionary *. OptableDelegate passes OptableTargeting * to both.
  • The caching section referred to a targetingAndReturnError method that doesn't exist.
  • The GAM360 example used DFPRequest / DFPBannerView, which have been removed from Google Mobile Ads, and passed the whole result as customTargeting.
  • The config example imported OptabletSDKDelegate.h (typo) and used the internal prebidtest tenant with a prebidtest.cloud.optable.co host.

Part of a series of small PRs bringing the README, guides and demo apps back in line with the code (follows #74, #75, #76).

- profileOk/targetingOk receive OptableTargeting, not NSHTTPURLResponse
  or NSDictionary.
- Fix the delegate header typo and use a tenant name and regional host
  in the config example, with the tenant/originSlug/host explanation.
- Replace the nonexistent targetingAndReturnError with the real
  selectors and type the cache example as OptableTargeting.
- Update the GAM360 example to GAMRequest/GAMBannerView and
  gamTargetingKeywords.
- Note that profile id/neighbors are sent unhashed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jrosendahl-opt
jrosendahl-opt merged commit 1d66658 into master Oct 29, 2026
4 checks passed
@jrosendahl-opt
jrosendahl-opt deleted the docs/objc-guide-fixes branch October 29, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants